Factorio Console Commands
Factorio Console Commands
About Factorio Console Commands
Copyright © 2020 and All Rights Reserved.

All content on this website ("the Site") is the property of The collection and assembly of content on this Site are the exclusive property of and are protected by copyright and other intellectual property laws. This website is not affiliated with Factorio or Wube Software. All copyrights reserved to their respective owners. We do not assert any claim of copyright for Factorio.


Factorio Console Commands

Factorio console commands, detailed description, and information on how to use command in game.
/alerts 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.
/clear Clears the console.
/color Changes your color. Can either be one of the pre-defined colors or RGBA value in the format of “# # # #”. Available colors: default, red, green, blue, orange, yellow, pink, purple, white, black, gray, brown, cyan, acid.
/evolution Prints info about the alien evolution factor.
/help [command] Prints a list of available commands, the optional argument can specify the command that should be described.
/h [command] Same as /help.
/mute-programmable-speaker 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.
/perf-avg-frames 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.
/permissions Opens the permissions GUI.
/screenshot [x resolution] [y resolution] [zoom] 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.
/seed Prints the starting map seed.
/time Prints info about how old the map is.
/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.
/toggle-heavy-mode Used to investigate desyncs. Will slow down the game and make multiplayer unplayable.
/toggle-rockets-sent-gui Toggles if the rockets sent button is shown in the upper left corner of the screen.
/version Prints the current game version.
Console input that does not start with / is shown as a chat message to your team.
/admins Prints a list of game admins.
/ban Bans the specified player.
/banlist Adds or removes a player from the banlist. Same as /ban or /unban.
/config 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.
/delete-blueprint-library 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.
/demote Demotes the player from admin.
/ignore Prevents the chat from showing messages from this player. Admin messages are still shown.
/ignores Prints a list of ignored players.
/kick Kicks the specified player.
/mute Prevents the player from saying anything in chat.
/mutes All players that are muted (can’t talk in chat).
/open Opens another player’s inventory.
/o Same as /open.
/players [online/o/count/c] Prints a list of players in the game. (parameter online/o, it prints only players that are online, count/c prints only count)
/promote Promotes the player to admin.
/purge Clears all the messages from this player from the chat log.
/reply Replies to the last player that whispered to you.
/r Same as /reply.
/server-save Saves the game on the server in a multiplayer game.
/shout Sends a message to all players including other forces.
/s Same as /shout.
/swap-players [player] Swaps your character with the given player’s character, or if two players are given swaps the two player characters.
/unban Unbans the specified player.
/unignore Allows the chat to show messages from this player.
/unmute Allows the player to talk in chat again.
/whisper Sends a message to the specified player.
/w Same as /whisper.
/whitelist [player] 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.
/c Executes a Lua command.
/command Executes a Lua command.
/measured-command Executes a Lua command and measures time it took.
/silent-command Executes a Lua command without printing it to the console.
/c game.player.print() Use it as calculator.
/c game.player.zoom= Zoom beyond normal bounds. Zooming too far out can cause performance issues.
/c game.player.force.manual_mining_speed_modifier= Mine faster
/c game.player.force.manual_crafting_speed_modifier= Craft faster
/c game.player.force.research_all_technologies() Unlock and research all technologies
See example for the script Unresearch all technologies. This does not reset manually applied bonuses
/c game.player.force.reset() This resets all data for your force, including kill and production statistics, technologies, bonuses and charting status.
/c game.player.game_view_settings.show_rail_block_visualisation = Always show rail block visualization. Permanently show the rail block visualization instead of only when holding a rail signal. Disable by replacing true with false.
/c game.player.cheat_mode= Allows for infinite free crafting. Disable by replacing true with false.
/c game.player.selected.amount= Refill resources (refill oil, iron etc.) While holding the cursor over a resource tile in-game
/c game.player.insert{name=" ", count= } Add items to the player's inventory. Replace iron-plate with the internal name of the item desired.
See example for the script Reveal the map around the player. Reveals the map around the player, similar to a radar.
/c game.player.surface.always_day=true Turn off night. Enables eternal day.
/c game.speed=X Change game speed. 0.5 is half speed, 1 is default, 2 is double speed, etc. Minimum is 0.01. This can be used for a lot of things like when you know you will have to wait for long periods of time for something to complete. Increasing will decrease performance, be careful.
/c game.player.surface.freeze_daytime= Freeze time. Stops the advancement of the time if you replace "BOOL" with "true" or unfreezes it if you replace it with "false".
/c game.player.surface.clear_pollution() Remove all pollution
See example for the script Completely turn off pollution
/c game.player.surface.pollute(game.player.position, ) Add a lot of pollution
/c game.player.force.friendly_fire = Disable friendly fire for your force
/c game.forces[" "].evolution_factor=X Set evolution factor. Ranges from 0 (new game) to 1.
/c game.forces[" "].kill_all_units() Kill all biters on the "enemy" force. Note that this will kill only mobile units, spawners will not be killed.
/c game.player.surface.peaceful_mode = Enable/Disable peaceful mode. Enabling peaceful mode prevents biter attacks until provoked. Substitute true for false to disable. Already existing biters are not affected by this command so attacks could continue for a while after activating peaceful mode.
/c game.map_settings.enemy_expansion.enabled = Enable/Disable biter expansion. Biter expansion allows biters to create new nests, it is enabled by default. Substitute true for false to disable.
/c game.player.print(game.player.position.x .. ", " .. game.player.position.y) Get player position. Prints coordinates of your current position.
/c game.player.teleport({X, Y}) Teleport player. Moves the player to the specified location. You should be able to teleport to a specific player if you obtain their coordinates via them executing the previous command and giving them to you. To teleport to the world's origin, use 0,0.
/c game.player.force.laboratory_speed_modifier= Enable faster research. 1 is normal speed, 2 is double speed 3 is triple etc.
/c game.player.force.technologies[' '].researched= Research specific technologies. The internal technology names can be found in the infoboxes on their respective pages.
/c for name, recipe in pairs( do recipe.enabled = true end Enable all recipes
-h [ --help ] display help
--version show version information
-v [ --verbose ] enable verbose logging
-c [ --config ] PATH config file to use
--no-log-rotation don't rotate log file
--mod-directory PATH Mod directory to use
--check-unused-prototype-data Print a warning for all prototype values that were not accessed
-s [ --map2scenario ] arg map to scenario conversion
-m [ --scenario2map ] arg scenario to map conversion
--apply-update arg immediately apply update package
--create FILE create a new map
--map-gen-settings FILE Map generation settings for use with --create. See data/map-gen-settings.example.json
--map-settings FILE Map settings for use with --create. See data/base/prototypes/map-settings.lua
--preset arg Name of the map generation preset to be used.
--generate-map-preview FILE Generate preview images of the map
--map-preview-size SCALE (=1,024) Size (in pixels) of map preview
--map-preview-scale SCALE (=1) Scale (meters per pixel) of map preview
--map-preview-offset X,Y (=0,0) Offset of the center of the map, in meters
--start-server FILE start a multiplayer server
--start-server-load-scenario FILE start a multiplayer server and load the specified scenario
--start-server-load-latest start a multiplayer server and load the latest available save
--until-tick TICK run a save until given map tick
--mp-connect ADDRESS start factorio and connect to address
--load-game FILE start Factorio and load a game in singleplayer
--benchmark FILE load save and run benchmark
--benchmark-ticks N (=1,000) number of ticks for benchmarking. Default is 1000
--force-opengl use OpenGL for rendering
--force-d3d use Direct3D for rendering
--fullscreen BOOL start game in windowed mode (saved to configuration)
--max-texture-size N maximal size of texture that the game can use (saved to configuration). Should be power of two greater than 2048
--graphics-quality arg accepted values: normal, low, very-low
--video-memory-usage arg accepted values: all, high, medium, low
--gfx-safe-mode resets some graphics settings to values that should work on most configurations
--shader arg enable/disable shader postprocessing (saved to configuration)
--disable-audio Disable audio. Mainly for faster startup during development.
--port N network port to use
--bind ADDRESS[:PORT] IP address (and optionally port) to bind to
--rcon-port N Port to use for RCON
--rcon-password PASSWORD Password for RCON
--server-settings FILE Path to file with server settings. See data/server-settings.example.json
--server-whitelist FILE Path to file with server whitelist.
--server-banlist FILE Path to file with server banlist.
--console-log FILE Path to file where a copy of the server's log will be stored
--server-id FILE Path where server ID will be stored or read from
--start-server SAVE Will start a Headless (Dedicated) server, with no GUI.
--mp-connect ADDRESS ADDRESS is the IP:port of the remote host. Port is optional.