Factorio Console Commands
Normal Commands
Section titled “Normal Commands”| Command | Example | Description | Admin only |
|---|---|---|---|
/alerts <enable/disable/mute/unmute> <alert> |
/alerts disable turret_fire | Enables, disables, mutes, or unmutes the given alert type. Available alerts: entity_destroyed, entity_under_attack, not_enough_construction_robots, no_material_for_construction, not_enough_repair packs, turret_fire, custom, no_storage, train_out_of_fuel, fluid_mixing. | No |
| /clear | /clear | Clears the console. | No |
/color <color> |
/color 20 255 255 | Changes your color. Can either be one of the pre-defined colors or RGB value in the format of “# # #”. Available colors: default, red, green, blue, orange, yellow, pink, purple, white, black, gray, brown, cyan, acid. | No |
| /enable-research-queue | /enable-research-queue | Enables the research queue. | Yes |
| /evolution | /evolution | Prints info about the alien evolution factor. | No |
/help [command] |
/help | Prints a list of available commands, the optional argument can specify the command that should be described. | No |
/h [command] |
/h | Same as /help. | No |
/mute-programmable-speaker <mute/unmute> <local/everyone> |
/mute-programmable-speaker mute local | Mutes or unmutes the global sounds created by the Programmable Speaker. Use “local” to mute just the local client. Admins can use “everyone” to mute the sounds for everyone on the server. | No |
/perf-avg-frames <number> |
/perf-avg-frames 100 | Number of ticks/updates used to average performance counters. Default is 100. Value of 5-10 is recommended for fast convergence, but numbers will jitter more rapidly. | No |
| /permissions | /permissions | Opens the permissions GUI. | Yes |
/permissions <action> <parameters> |
/permissions add-player DeveloperGroup kovarex | Available actions are add-player |
Yes |
| /reset-tips | /reset-tips | Resets the state of the tips and tricks as if the game was just started for the first time. | No |
/screenshot [x resolution] [y resolution] [zoom] |
/screenshot | Takes a screenshot with the GUI hidden, centered on the player. It is saved in the “script-output” subfolder of your User data directory. Resolution is optional and defaults to the current window size. Zoom is optional and defaults to 1. | No |
| /seed | /seed | Prints the starting map seed. | No |
| /time | /time | Prints info about how old the map is. | No |
| /toggle-action-logging | /toggle-action-logging | Toggles logging all input actions performed by the game. This value isn’t persisted between game restarts and only affects your local game in multiplayer sessions. | Yes |
| /toggle-heavy-mode | /toggle-heavy-mode | Used to investigate desyncs. Will slow down the game and make multiplayer unplayable. | Yes |
| /unlock-shortcut-bar | /unlock-shortcut-bar | Unlocks all shortcut bar items, including blueprint string import, copy & paste, deconstruction and upgrade planner. | No |
| /unlock-tips | /unlock-tips | Unlocks all tips and tricks entries. | No |
| /version | /version | Prints the current game version. | No |
Multiplayer Commands
Section titled “Multiplayer Commands”| Command | Example | Description | Admin only |
|---|---|---|---|
<message> |
Hello team! | Console input that does not start with / is shown as a chat message to your team. |
No |
| /admin | /admin | Opens the player management GUI. | Yes |
| /admins | /admins | Prints a list of game admins. | No |
/ban <player> <reason> |
/ban xTROLLx Throwing grenades in base | Bans the specified player. | Yes |
| /bans | /bans | Prints a list of banned players. | No |
/banlist <add/remove/get/clear> <player> |
/banlist get | Adds or removes a player from the banlist. Same as /ban or /unban. | No |
/config <get/set> <option> <value> |
/config set password hunter2 | Gets or sets various multiplayer game settings. Available configs are: afk-auto-kick, allow-commands, allow-debug-settings, autosave-interval, autosave-only-on-server, ignore-player-limit-for-returning-players, max-players, max-upload-speed, only-admins-can-pause, password, require-user-verification, visibility-lan, visibility-public. The units for the options afk-auto-kick and autosave-interval are in minutes. | Yes |
/delete-blueprint-library <player> |
/delete-blueprint-library everybody confirm | Deletes the blueprint library storage for the given offline player from the save file. Enter “everybody confirm” to delete the storage of all offline players. | Yes |
/demote <player> |
/demote AzureDiamond | Demotes the player from admin. | Yes |
/ignore <player> |
/ignore Cthon98 | Prevents the chat from showing messages from this player. Admin messages are still shown. | No |
| /ignores | /ignores | Prints a list of ignored players. | No |
/kick <player> <reason> |
/kick xTROLLx Throwing grenades in base | Kicks the specified player. | Yes |
/mute <player> |
/mute Cthon98 | Prevents the player from saying anything in chat. | Yes |
| /mutes | /mutes | All players that are muted (can’t talk in chat). | No |
/open <player> |
/open AzureDiamond | Opens another player’s inventory. | Yes |
/o <player> |
/o AzureDiamond | Same as /open. | Yes |
/players [online/o/count/c] |
/players | Prints a list of players in the game. (parameter online/o, it prints only players that are online, count/c prints only count) | No |
/p [online/o/count/c] |
/p o c | Same as /players. | No |
/promote <player> |
/promote AzureDiamond | Promotes the player to admin. | Yes |
/purge <player> |
/purge Cthon98 | Clears all the messages from this player from the chat log. | Yes |
/reply <message> |
/reply oh, really? | Replies to the last player that whispered to you. | No |
/r <message> |
/r oh, really? | Same as /reply. | No |
| /server-save | /server-save | Saves the game on the server in a multiplayer game. | Yes |
/shout <message> |
/shout Hello world! | Sends a message to all players including other forces. | No |
/s <message> |
/s Hello world! | Same as /shout. | No |
/swap-players <player> [player] |
/swap-players AzureDiamond | Swaps your character with the given player’s character, or if two players are given swaps the two player characters. | Yes |
/unban <player> |
/unban xTROLLx | Unbans the specified player. | Yes |
/unignore <player> |
/unignore Cthon98 | Allows the chat to show messages from this player. | No |
/unmute <player> |
/unmute Cthon98 | Allows the player to talk in chat again. | Yes |
/whisper <player> <message> |
/whisper AzureDiamond that’s what I see | Sends a message to the specified player. | No |
/w <player> <message> |
/w AzureDiamond that’s what I see | Same as /whisper. | No |
/whitelist <add/remove/get/clear> [player] |
/whitelist get | Adds or removes a player from the whitelist, where only whitelisted players can join the game. Enter nothing for “player” when using “get” to print a list of all whitelisted players. An empty whitelist disables the whitelist functionality allowing anyone to join. | No |
Scripting and Cheat Commands
Section titled “Scripting and Cheat Commands”| Command | Description |
|---|---|
/cheat <all> |
Researches all technologies and enables cheat mode. Using the all option also gives the player some additional items. |
| /command |
Executes a Lua command (if allowed). |
| /c |
Executes a Lua command (if allowed). |
| /editor | Toggles the map editor. |
| /measured-command |
Executes a Lua command (if allowed) and measures time it took. |
| /mc |
Executes a Lua command (if allowed) and measures time it took. |
| /silent-command |
Executes a Lua command (if allowed) without printing it to the console. |
| /sc |
Executes a Lua command (if allowed) without printing it to the console. |