Cheats & CodesFactorio

Factorio Console Commands: /cheat, /editor, Lua Cheats and Admin Commands

Factorio 1
Factorio

Short answer: Press the backtick key (`, left of 1) to open the console, type a command and press Enter. /cheat all researches everything and turns on cheat mode, /editor opens the map editor, and Lua commands such as /c game.player.insert{name="iron-plate", count=100} give items. Cheat and Lua commands permanently disable achievements for that save; the game asks you to enter the command a second time to confirm. These commands work in Factorio 2.0 and 2.1 (Space Age).

How to use the console

  1. Press ` (the grave or backtick key, above Tab). You can rebind it in Settings → Controls under “Toggle chat (and Lua console)”.
  2. Type the command and press Enter.
  3. The first time you use a command that disables achievements, it does not run. The game warns you instead. Enter the same command again (press Up, then Enter) to go ahead.

Make a copy of your save first if you care about achievements: once a cheat or Lua command has run, achievements are gone for that save for good. Normal and admin commands such as /time or /kick do not affect achievements.

Cheat mode and the map editor

CommandWhat it does
/cheatTurns on cheat mode.
/cheat allResearches all technologies, turns on cheat mode and gives you extra items.
/cheat nauvisTakes you to the origin of a planet. Replace “nauvis” with the planet’s name, or use a space platform’s name.
/cheat offTurns cheat mode off.
/editorSwitches the map editor on or off.
Factorio 2
Factorio

Lua cheat commands

Lua commands start with /c. Type them exactly, including brackets and quotes.

CommandWhat it does
/c game.player.insert{name="iron-plate", count=100}Gives you 100 iron plates. Change the item name and the number.
/c game.player.force.research_all_technologies()Researches every technology.
/c game.player.cheat_mode=trueHand crafting becomes free and instant. Use false to turn it off.
/c game.speed=2Changes the game speed. 1 is normal; lower numbers slow the game down.
/c game.player.zoom=0.1Zooms the camera further out than normal play allows.
/c game.player.surface.always_day=trueKeeps it daytime on your current surface.
/c game.player.surface.peaceful_mode=trueTurns on peaceful mode for the surface you are on. Use false to turn it off.
/c game.forces["enemy"].set_evolution_factor(0, game.player.surface)Sets enemy evolution on your surface. Use a number from 0 to 1. In 2.0 evolution is per surface; the old evolution_factor = form from 1.1 no longer applies.

Reveal the map

CommandWhat it does
/c local radius=150 game.player.force.chart(game.player.surface, {{x = -radius, y = -radius}, {x = radius, y = radius}})Reveals the area within 150 tiles of the map centre. Change the radius as needed.
/c game.player.force.chart_all()Reveals every part of the map that has already been generated.

Keep the radius modest. A very large value makes the game chart millions of tiles, and your radars can stop charting for hours while it catches up.

Commands that keep achievements

CommandWhat it does
/helpLists the commands, or explains one: /help cheat.
/timeShows how long the map has been running.
/seedShows the map seed.
/evolutionShows the current enemy evolution factor.
/versionShows the game version.
/screenshotSaves a screenshot without the interface to the script-output folder.
/color redChanges your character’s colour.
/clearClears the console.
/alerts disable alert-nameTurns an alert type on or off. Replace “alert-name” with the alert; the options are enable, disable, mute and unmute.
/unlock-shortcut-barUnlocks every button on the shortcut bar.

Multiplayer admin commands

CommandWhat it does
/promote PlayerNameMakes a player an admin. /demote PlayerName removes it.
/adminsLists the server’s admins.
/kick PlayerName reasonRemoves a player from the game.
/ban PlayerName reasonBans a player. /unban PlayerName lifts it; /bans lists bans.
/mute PlayerNameStops a player’s chat. /unmute PlayerName undoes it.
/whitelist add PlayerNameAdds a player to the whitelist (also remove, get, clear).
/playersLists players; /players online shows who is connected.
/whisper PlayerName messageSends a private message. /reply message answers the last one.
/server-saveSaves the game on the server.
/permissionsOpens the permission groups window.

More Factorio

Everything we have on the game is on the Factorio page. If you like factory games, see our Sandustry review roundup.

Sources

  • Official Factorio Wiki: Console
  • Factorio Lua API documentation: LuaForce, LuaSurface and LuaPlayer
  • GameServerKings: Factorio console commands
  • Supercraft: Factorio admin commands
  • GameWatcher: Factorio console commands and cheats
  • BisectHosting: Factorio peaceful mode
  • Official Factorio forums

Last checked against sources: 17 November 2026.

Found a mistake or a step that no longer works? Tell us and we will check it.