LinuxCommandLibrary

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
Create save with specific 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

CAVEATS

Requires Factorio game installation. Server settings configured via JSON files. Headless mode requires no X server. Commercial game with separate license.

SEE ALSO

screen(1), tmux(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community