LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

factorio

Headless multiplayer game server

TLDR

Create a new save file
$ [path/to]/factorio --create [path/to/save_file.zip]
copy
Start a Factorio server
$ [path/to]/factorio --start-server [path/to/save_file.zip]
copy
Start server with settings
$ [path/to]/factorio --start-server [path/to/save_file.zip] --server-settings [path/to/server-settings.json]
copy
Create save with specific map settings
$ [path/to]/factorio --create [path/to/save.zip] --map-gen-settings [path/to/map_gen_settings.json] --map-settings [path/to/map_settings.json]
copy
Shut the server gracefully (interactive)
$ /quit
copy
Display help
$ [path/to]/factorio [-h|--help]
copy

SYNOPSIS

factorio [options]

DESCRIPTION

factorio runs the Factorio game in headless server mode for multiplayer. It creates and hosts game worlds without requiring a graphical interface.
Used for dedicated Factorio servers and automated testing.

PARAMETERS

--create file

Create new save file
--start-server file
Start server with save file
--map-gen-settings file
Map generation settings JSON
--map-settings file
Map settings JSON
-h, --help
Display help
--port number
Server port number (default: 34197).
--server-settings file
Server configuration JSON file (name, description, visibility, passwords).
--server-adminlist file
JSON file listing admin usernames.
--server-banlist file
JSON file listing banned usernames.
--console-log file
Write server console output to a log file.
--mod-directory dir
Override mod directory path.

CAVEATS

Requires Factorio game installation. Server settings configured via JSON files. Headless mode requires no X server. Commercial game with separate license. Default port is 34197/UDP.

SEE ALSO

screen(1), tmux(1)

Copied to clipboard
Kai