Skip to content
/SLASHPLAY

Factorio console commands

All 54 settings and 40 commands from the game's own list, with defaults and examples to copy.

94 commands

  1. 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

  2. ban

    Bans a player from the server, with a reason. Works for players who are offline or have never joined.

    Command

    Admin commands

  3. kick

    Removes a player from the game and shows them your reason. They can join again unless you ban them.

    Command

    Admin commands

  4. server-save

    Saves the map on the server now, to its own save file.

    Command

    Server and saves

  5. 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

  6. 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

  7. 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

  8. players

    Lists the players on the map. Add online for only the connected ones, or count for just the number.

    Command

    Server and saves

  9. 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

  10. auto_pause

    Pauses the map while no players are connected. On by default.

    Default true

    server-settings.json: saving and pausing

  11. 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

  12. 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

  13. mod-list.json

    Turns mods and the expansions on or off: each entry has a mod's name and enabled true or false.

    Default Not listed

    Files

  14. 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

  15. admin

    Opens the player management window in game.

    Command

    Admin commands

  16. admins

    Lists the server's admins. Add online to list only the admins who are connected.

    Command

    Admin commands

  17. banlist

    Adds or removes names on the ban list, lists it, or clears it. The same as /ban and /unban in one command.

    Command

    Admin commands

  18. bans

    Lists the banned players.

    Command

    Admin commands

  19. 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

  20. demote

    Takes admin rights away from a player.

    Command

    Admin commands

  21. 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

  22. mute

    Stops a player from writing in chat.

    Command

    Admin commands

  23. mutes

    Lists the players who are muted.

    Command

    Admin commands

  24. open

    Opens another player's inventory, so an admin can look at it.

    Command

    Admin commands

  25. permissions

    Manages permission groups: which in-game actions the players in each group are allowed to do.

    Command

    Admin commands

  26. purge

    Clears every chat message from one player out of the chat log.

    Command

    Admin commands

  27. swap-players

    Swaps two players' characters. With one name, you swap with that player.

    Command

    Admin commands

  28. unban

    Lifts a ban, so the player can join again.

    Command

    Admin commands

  29. unmute

    Lets a muted player write in chat again.

    Command

    Admin commands

  30. help

    Lists the commands you can use, or describes one command.

    Command

    Server and saves

  31. quit

    Saves the map and shuts the server down cleanly, from the server console.

    Command

    Server and saves

  32. save

    Saves the map from the server console, under a new name if you give one.

    Command

    Server and saves

  33. seed

    Prints the map seed the map was generated with.

    Command

    Server and saves

  34. time

    Prints how long the map has been played, in game time.

    Command

    Server and saves

  35. version

    Prints the game version the server runs.

    Command

    Server and saves

  36. color

    Changes your character's color, by name or as RGBA values.

    Command

    Chat and player commands

  37. ignore

    Hides chat messages from one player for you. Admin messages still show.

    Command

    Chat and player commands

  38. ignores

    Lists the players you are ignoring.

    Command

    Chat and player commands

  39. 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

  40. reply

    Answers the last player who whispered to you.

    Command

    Chat and player commands

  41. shout

    Sends a message to every player, including players on other forces.

    Command

    Chat and player commands

  42. unignore

    Shows chat messages from a player you ignored again.

    Command

    Chat and player commands

  43. whisper

    Sends a private message to one player.

    Command

    Chat and player commands

  44. measured-command

    Runs a line of Lua like /c and reports how long it took.

    Command

    Lua commands

  45. silent-command

    Runs a line of Lua like /c, without printing the command to every player's chat.

    Command

    Lua commands

  46. 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

  47. ignore_player_limit_for_returning_players

    Lets players who have played on this map before join even when max_players is reached. Off by default.

    Default false

    server-settings.json: listing and access

  48. name

    The game's name in the server list. The key must be in server-settings.json or the server won't start.

    Default Not listed

    server-settings.json: listing and access

  49. 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

  50. require_user_verification

    Lets in only players with a valid factorio.com account. On by default.

    Default true

    server-settings.json: listing and access

  51. 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

  52. token

    An authentication token from your factorio.com account, used instead of password to list the game publicly. Empty by default.

    Default (empty)

    server-settings.json: listing and access

  53. username

    Your factorio.com username. Needed only to list the game publicly. Empty by default.

    Default (empty)

    server-settings.json: listing and access

  54. visibility

    Where the game is advertised: public lists it on Factorio's official server list, lan on the local network. The key must be in the file.

    Default Not listed

    server-settings.json: listing and access

  55. 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

  56. allow_commands

    Who may run Lua commands such as /c in game: everyone, nobody, or only admins (the default).

    Default admins-only (Only admins)

    server-settings.json: saving and pausing

  57. auto_pause_when_players_connect

    Pauses the game while a player is connecting. Off by default.

    Default false

    server-settings.json: saving and pausing

  58. 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

  59. 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

  60. 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

  61. only_admins_can_pause_the_game

    Lets only admins pause the game. On by default.

    Default true

    server-settings.json: saving and pausing

  62. 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

  63. 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

  64. 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

  65. 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

  66. 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

  67. 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

  68. 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

  69. 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

  70. --bind

    The IP address, and optionally the port, the server listens on.

    Default Not listed

    Launch options

  71. --console-log

    Writes a copy of the server's log to this file.

    Default Not listed

    Launch options

  72. --create

    Creates a new map file, as if you clicked New game, then exits.

    Default Not listed

    Launch options

  73. --map-gen-seed

    Sets the map seed for --create or --start-server-load-scenario. It overrides the seed in the map generator settings.

    Default Not listed

    Launch options

  74. --map-gen-settings

    A JSON file of map generator settings (ores, water, cliffs, enemy bases, map size), used with --create or --start-server-load-scenario.

    Default Not listed

    Launch options

  75. --map-settings

    A JSON file of map settings such as pollution spread, enemy expansion and evolution, used with --create or --start-server-load-scenario.

    Default Not listed

    Launch options

  76. --mod-directory

    The folder Factorio loads mods from, mods by default.

    Default Not listed

    Launch options

  77. --port

    The UDP port the server listens on. Factorio's default is 34197.

    Default Not listed

    Launch options

  78. --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

  79. --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

  80. --rcon-password

    The password RCON clients must give to send commands.

    Default Not listed

    Launch options

  81. --rcon-port

    Turns on RCON, Factorio's remote console, on this TCP port.

    Default Not listed

    Launch options

  82. --server-adminlist

    The path of the admin list file, server-adminlist.json by default.

    Default Not listed

    Launch options

  83. --server-banlist

    The path of the ban list file, server-banlist.json by default.

    Default Not listed

    Launch options

  84. --server-settings

    The path of the server settings file to use. See data/server-settings.example.json.

    Default Not listed

    Launch options

  85. --server-whitelist

    The path of the whitelist file, server-whitelist.json by default. Used with --use-server-whitelist.

    Default Not listed

    Launch options

  86. --start-server

    Starts a headless server that hosts the given save file.

    Default Not listed

    Launch options

  87. --start-server-load-latest

    Starts a headless server with the newest save in the saves folder.

    Default Not listed

    Launch options

  88. --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

  89. --use-authserver-bans

    Checks joining players against factorio.com's multiplayer bans, and tells factorio.com about your /ban and /unban commands.

    Default Not listed

    Launch options

  90. --use-server-whitelist

    Makes the server use its whitelist file, so only listed players can join and /whitelist changes are saved to it.

    Default Not listed

    Launch options

  91. server-adminlist.json

    The list of admin usernames. Players in it become admin when they join; /promote and /demote update it.

    Default Not listed

    Files

  92. server-banlist.json

    The ban list: each ban is a username with a reason. /ban and /unban update it.

    Default Not listed

    Files

  93. 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

  94. 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

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.