Factorio

Release date: February 25, 2016
Platforms: Microsoft Windows

Factorio Cheats and Console Commands

How to activate the console in Factorio and a list of cheats and useful commands
Index

How to activate the console

The console can be opened in-game with "~" or "/" keys. Pressing "Tab" will auto-complete player IDs and commands for you to navigate and use the console more efficiently.

Factorio Cheats and Console Commands-1

List of non-cheat convenience commands

  • /alerts <enable/disable/mute/unmute> <alert> — Enables, disables, mutes or unmutes specified alert type (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 <color> ­ — Changes your current color to a specified color (default, red, green, blue, orange, yellow, pink, purple, white, black, gray, brown, cyan, acid)
  • /h [command] ­ — Describes specified command
  • /evolution ­ — Displays information about alien evolution
  • /permissions ­ — Opens the permissions window (Requires admin role to use)
  • /perf-avg-frames <number> ­ — Sets the number of updates used to average performance counters.
  • /screenshot ­ — Makes a screenshot
  • /seed ­ — Displays the seed of the current map
  • /time ­ — Displays time since the creation of the current map
  • /unlock-shortcut-bar — Unlocks all shortcut bar items
  • /version — Shows the current game version
  • /admin — Opens admin menu for player management (Requires admin role)
  • /admins — Displays all admin players
  • /ban <player> <reason> — Bans the specified player (Requires admin role)
  • /unban <player> — Unbans the specified player (Requires admin role)
  • /banlist get — Displays all banned players
  • /config <get/set> <option> <value> — Displays or sets various multiplayer game options (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) (Requires admin role)
  • /delete-blueprint-library <player> — Deletes the blueprint library storage for the specified offline player. Enter "everybody confirm" to delete the storage of all offline players. (Requires admin role)
  • /demote <player> — Takes away the admin role from the specified player (Requires admin role)
  • /ignore <player> — Prevents you from seeing any chat messages sent by the specified player (Except if they are an admin)
  • /unignore <player> — Deactivates the ignore command for the specified player
  • /ignores — Displays all ignored players
  • /kick <player> <reason> — Kicks the specified player form the server (Requires admin role)
  • /mute <player> — Prevents the specified player from sending any chat messages (Requires admin role)
  • /unmute <player> — Deactivates the mute command for the specified player (Requires admin role)
  • /mutes — Shows all muted players
  • /o <player> — Opens the inventory of the specified player (Requires admin role)
  • /players [online/count] — Displays the number of players online or number of all server members
  • /promote <player> — Gives the admin role to the specified player (Requires admin role)
  • /purge <player> — Clears all of the messages sent in the chat by the specified player (Requires admin role)
  • /r <message> — Replies to the last player who sent you a message with the specified text
  • /server-save — Saves the game on the current server (Requires admin role)
  • /s <message> — Sends a message to all players, including enemies, with the specified text
  • /swap-players <player> — Swaps you with the specified player (Requires admin role)
  • /swap-players <player> <player> — Swaps two specified players (Requires admin role)
  • /w <player> <message> — Sends a private message to the specified player with the specified text
  • /whitelist <add/remove/get/clear> [player] — Adds or removes specified player from the whitelist. Shows or clears your whitelist. Only players included in the whitelist will be able to join your game. If the whitelist is empty, everyone will be able to join you.

List of cheats and script commands

Warning: Using any of these commands will disable achievements for the current save.
  • /cheat <all> — Researches all technology and enables cheat mode that allows for infinite free crafting
  • /c <command> — Executes a Lua command
  • /editor — Enables or disables the map edit mode
  • /c game.player.force.manual_mining_speed_modifier=1000 — Increases mining speed
  • /c game.player.force.manual_crafting_speed_modifier=1000 — Increases crafting speed
  • /c game.player.force.research_all_technologies() — Researches all technologies
  • /c game.player.cheat_mode=<true/false> — Enables or disables cheat mode that allows for infinite free crafting
  • /c game.player.selected.amount=7500 — Hover over a resource tile in-game and use this command to refill it
  • /c local radius=150 game.player.force.chart(game.player.surface, {{game.player.position.x-radius, game.player.position.y-radius}, {game.player.position.x+radius, game.player.position.y+radius}}) — Reveals the map around the player
  • /c game.player.surface.always_day=true — Infinite day
  • /c game.player.surface.freeze_daytime=BOOL — Freezes time
  • /c game.player.surface.clear_pollution() — Clears all pollution
  • /c for _, surface in pairs(game.surfaces) do surface.clear_pollution() end game.map_settings.pollution.enabled = false — Turns off pollution
  • /c game.player.force.friendly_fire = false — Disables friendly fire for your force
  • /c for _, v in pairs(game.player.surface.find_entities_filtered{type="cliff"}) do v.destroy() end — Destroys all cliffs on the map
  • /c local surface=game.player.surface for key, entity in pairs(surface.find_entities_filtered({force="enemy"})) do entity.destroy() end — Destroy all enemies on the map
  • /c game.player.surface.peaceful_mode = true — Peaceful mode. Enemies will not attack unless provoked
  • /c game.player.character=nil — Detaches controls from the current player
  • /c game.player.selected.destroy() — God mode. Use the previous command, then hover over the player with your mouse and use this command. This will allow you to go over obstacles and take no damage.
  • /c game.player.force.laboratory_speed_modifier=1 — Faster research
  • /c for name, recipe in pairs(game.player.force.recipes) do recipe.enabled = true end — Enable all recipes

John Davis