Factorio console commands
All 54 settings and 40 commands from the game's own list, with defaults and examples to copy.
94 commands
- promote
Makes a player an admin, so they can kick, ban and run the other admin commands. Works for players who haven't joined yet.
Command
Admin commands
- ban
Bans a player from the server, with a reason. Works for players who are offline or have never joined.
Command
Admin commands
- kick
Removes a player from the game and shows them your reason. They can join again unless you ban them.
Command
Admin commands
- server-save
Saves the map on the server now, to its own save file.
Command
Server and saves
- config
Reads or changes a server setting on the running server, such as the join password, player limit or autosave interval.
Command
Server and saves
- c
Runs a line of Lua on the server, for anything the other commands can't do. The first use disables achievements on the map.
Command
Lua commands
- whitelist
Manages the whitelist: while it's on, only players on it can join. Add and remove names, list them, or turn it on and off.
Command
Admin commands
- players
Lists the players on the map. Add
onlinefor only the connected ones, orcountfor just the number.Command
Server and saves
- game_password
The password players must enter to join. Empty, the default, lets in anyone with the address.
Default (empty)
server-settings.json: listing and access
- auto_pause
Pauses the map while no players are connected. On by default.
Default true
server-settings.json: saving and pausing
- autosave_interval
How often the server autosaves, in minutes. The default is 10; 0 turns autosaves off.
Default 10
server-settings.json: saving and pausing
- max_players
The most players who can be connected at once. 0, the default, means no limit. Admins can join even when the server is full.
Default 0
server-settings.json: listing and access
- mod-list.json
Turns mods and the expansions on or off: each entry has a mod's name and
enabledtrue or false.Default Not listed
Files
- evolution
Prints the enemy evolution factor for every surface, or the one you name, and how much of it came from time, pollution and spawner kills.
Command
Server and saves
- admin
Opens the player management window in game.
Command
Admin commands
- admins
Lists the server's admins. Add
onlineto list only the admins who are connected.Command
Admin commands
- banlist
Adds or removes names on the ban list, lists it, or clears it. The same as
/banand/unbanin one command.Command
Admin commands
- bans
Lists the banned players.
Command
Admin commands
- delete-blueprint-library
Deletes the blueprint library stored in the save for a player who is offline, or for every offline player.
Command
Admin commands
- demote
Takes admin rights away from a player.
Command
Admin commands
- large-blueprint-size
Reads or sets the size in bytes above which a blueprint counts as large. The default is 10485760 (10 MiB).
Command
Admin commands
- mute
Stops a player from writing in chat.
Command
Admin commands
- mutes
Lists the players who are muted.
Command
Admin commands
- open
Opens another player's inventory, so an admin can look at it.
Command
Admin commands
- permissions
Manages permission groups: which in-game actions the players in each group are allowed to do.
Command
Admin commands
- purge
Clears every chat message from one player out of the chat log.
Command
Admin commands
- swap-players
Swaps two players' characters. With one name, you swap with that player.
Command
Admin commands
- unban
Lifts a ban, so the player can join again.
Command
Admin commands
- unmute
Lets a muted player write in chat again.
Command
Admin commands
- help
Lists the commands you can use, or describes one command.
Command
Server and saves
- quit
Saves the map and shuts the server down cleanly, from the server console.
Command
Server and saves
- save
Saves the map from the server console, under a new name if you give one.
Command
Server and saves
- seed
Prints the map seed the map was generated with.
Command
Server and saves
- time
Prints how long the map has been played, in game time.
Command
Server and saves
- version
Prints the game version the server runs.
Command
Server and saves
- color
Changes your character's color, by name or as RGBA values.
Command
Chat and player commands
- ignore
Hides chat messages from one player for you. Admin messages still show.
Command
Chat and player commands
- ignores
Lists the players you are ignoring.
Command
Chat and player commands
- mute-programmable-speaker
Mutes or unmutes the global sounds that programmable speakers play, for you or, as an admin, for everyone.
Command
Chat and player commands
- reply
Answers the last player who whispered to you.
Command
Chat and player commands
- shout
Sends a message to every player, including players on other forces.
Command
Chat and player commands
- unignore
Shows chat messages from a player you ignored again.
Command
Chat and player commands
- whisper
Sends a private message to one player.
Command
Chat and player commands
- measured-command
Runs a line of Lua like
/cand reports how long it took.Command
Lua commands
- silent-command
Runs a line of Lua like
/c, without printing the command to every player's chat.Command
Lua commands
- description
A description of the game for the server list. It can be empty, but the key must be in
server-settings.json.Default Not listed
server-settings.json: listing and access
- ignore_player_limit_for_returning_players
Lets players who have played on this map before join even when
max_playersis reached. Off by default.Default false
server-settings.json: listing and access
- name
The game's name in the server list. The key must be in
server-settings.jsonor the server won't start.Default Not listed
server-settings.json: listing and access
- password
Your factorio.com account password, for a public listing. It's not the join password: that's
game_password.Default (empty)
server-settings.json: listing and access
- require_user_verification
Lets in only players with a valid factorio.com account. On by default.
Default true
server-settings.json: listing and access
- tags
A list of tags shown with the game in the server list, such as the play style. Empty by default.
Default Not listed
server-settings.json: listing and access
- token
An authentication token from your factorio.com account, used instead of
passwordto list the game publicly. Empty by default.Default (empty)
server-settings.json: listing and access
- username
Your factorio.com username. Needed only to list the game publicly. Empty by default.
Default (empty)
server-settings.json: listing and access
- visibility
Where the game is advertised:
publiclists it on Factorio's official server list,lanon the local network. The key must be in the file.Default Not listed
server-settings.json: listing and access
- afk_autokick_interval
Minutes a player can be idle before the server kicks them. 0, the default, never kicks.
Default 0
server-settings.json: saving and pausing
- allow_commands
Who may run Lua commands such as
/cin game: everyone, nobody, or only admins (the default).Default admins-only (Only admins)
server-settings.json: saving and pausing
- auto_pause_when_players_connect
Pauses the game while a player is connecting. Off by default.
Default false
server-settings.json: saving and pausing
- autosave_only_on_server
Whether autosaves are written only on the server, or on every connected player's game too. On by default.
Default true
server-settings.json: saving and pausing
- autosave_slots
How many autosave files the server cycles through before it overwrites the oldest one.
Default Not listed
server-settings.json: saving and pausing
- non_blocking_saving
Experimental: on Linux the server forks itself to write autosaves, so play doesn't stop while it saves. Off by default.
Default false
server-settings.json: saving and pausing
- only_admins_can_pause_the_game
Lets only admins pause the game. On by default.
Default true
server-settings.json: saving and pausing
- max_heartbeats_per_second
The network tick rate: the most game update packets sent per second before they're bundled together. Default 60, from 6 to 240.
Default 60
server-settings.json: network
- max_upload_in_kilobytes_per_second
Caps the server's upload speed in kilobytes per second. 0, the default, means no limit.
Default 0
server-settings.json: network
- max_upload_slots
How many players can download the map from the server at the same time. 0 means no limit.
Default Not listed
server-settings.json: network
- maximum_segment_size
The largest size for the segments long network messages are split into, used when few players are connected.
Default Not listed
server-settings.json: network
- maximum_segment_size_peer_count
The number of connected players at which the server uses
maximum_segment_size.Default Not listed
server-settings.json: network
- minimum_latency_in_ticks
Sets a minimum latency in ticks for every player. One tick is 16 ms at normal speed. 0, the default, means no minimum.
Default 0
server-settings.json: network
- minimum_segment_size
The smallest size for the segments long network messages are split into, used when many players are connected.
Default Not listed
server-settings.json: network
- minimum_segment_size_peer_count
The number of connected players at which the server uses
minimum_segment_size.Default Not listed
server-settings.json: network
- --bind
The IP address, and optionally the port, the server listens on.
Default Not listed
Launch options
- --console-log
Writes a copy of the server's log to this file.
Default Not listed
Launch options
- --create
Creates a new map file, as if you clicked New game, then exits.
Default Not listed
Launch options
- --map-gen-seed
Sets the map seed for
--createor--start-server-load-scenario. It overrides the seed in the map generator settings.Default Not listed
Launch options
- --map-gen-settings
A JSON file of map generator settings (ores, water, cliffs, enemy bases, map size), used with
--createor--start-server-load-scenario.Default Not listed
Launch options
- --map-settings
A JSON file of map settings such as pollution spread, enemy expansion and evolution, used with
--createor--start-server-load-scenario.Default Not listed
Launch options
- --mod-directory
The folder Factorio loads mods from,
modsby default.Default Not listed
Launch options
- --port
The UDP port the server listens on. Factorio's default is 34197.
Default Not listed
Launch options
- --preset
Picks a map generation preset for
--create: default, rich-resources, marathon, death-world, death-world-marathon, rail-world, ribbon-world, lakes or island.Default Not listed
Launch options
- --rcon-bind
Turns on RCON on a given IP address and TCP port. It can't be combined with
--rcon-port.Default Not listed
Launch options
- --rcon-password
The password RCON clients must give to send commands.
Default Not listed
Launch options
- --rcon-port
Turns on RCON, Factorio's remote console, on this TCP port.
Default Not listed
Launch options
- --server-adminlist
The path of the admin list file,
server-adminlist.jsonby default.Default Not listed
Launch options
- --server-banlist
The path of the ban list file,
server-banlist.jsonby default.Default Not listed
Launch options
- --server-settings
The path of the server settings file to use. See
data/server-settings.example.json.Default Not listed
Launch options
- --server-whitelist
The path of the whitelist file,
server-whitelist.jsonby default. Used with--use-server-whitelist.Default Not listed
Launch options
- --start-server
Starts a headless server that hosts the given save file.
Default Not listed
Launch options
- --start-server-load-latest
Starts a headless server with the newest save in the saves folder.
Default Not listed
Launch options
- --start-server-load-scenario
Starts a headless server with a new game from a scenario, such as a PvP map.
Default Not listed
Launch options
- --use-authserver-bans
Checks joining players against factorio.com's multiplayer bans, and tells factorio.com about your
/banand/unbancommands.Default Not listed
Launch options
- --use-server-whitelist
Makes the server use its whitelist file, so only listed players can join and
/whitelistchanges are saved to it.Default Not listed
Launch options
- server-adminlist.json
The list of admin usernames. Players in it become admin when they join;
/promoteand/demoteupdate it.Default Not listed
Files
- server-banlist.json
The ban list: each ban is a username with a reason.
/banand/unbanupdate it.Default Not listed
Files
- server-settings.json
The server's main settings file: name, description, join password, player limit, autosave, AFK kick, pausing and network.
Default Not listed
Files
- server-whitelist.json
The whitelist: a JSON list of usernames allowed to join, used when the server runs with
--use-server-whitelist.Default Not listed
Files
Nothing matches.
Try part of the name, like freeze or money, or a word from what it does.
Questions
How do I run Factorio commands on my server?
Type commands with the leading slash in the Console tab, which runs them as the server; in game, admins type them in chat. Settings go in config/server-settings.json in the Files tab and apply at the next restart.
How do I keep a setting after a restart?
The server reads its settings from config/server-settings.json when it starts. Change them there, in the Files tab of the server page, then restart the server.
Where does this list come from?
It is the game's own list: the headless server's own help, locale and server-settings.example.json, tested on a 2.1.24 server, plus the official wiki's Console, Multiplayer and Command line parameters pages. The descriptions and examples on the written pages are by SLASHPLAY.
Try them on
your own server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.