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

On this page
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
- Press ` (the grave or backtick key, above Tab). You can rebind it in Settings → Controls under “Toggle chat (and Lua console)”.
- Type the command and press Enter.
- 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
| Command | What it does |
|---|---|
/cheat | Turns on cheat mode. |
/cheat all | Researches all technologies, turns on cheat mode and gives you extra items. |
/cheat nauvis | Takes you to the origin of a planet. Replace “nauvis” with the planet’s name, or use a space platform’s name. |
/cheat off | Turns cheat mode off. |
/editor | Switches the map editor on or off. |

Lua cheat commands
Lua commands start with /c. Type them exactly, including brackets and quotes.
| Command | What 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=true | Hand crafting becomes free and instant. Use false to turn it off. |
/c game.speed=2 | Changes the game speed. 1 is normal; lower numbers slow the game down. |
/c game.player.zoom=0.1 | Zooms the camera further out than normal play allows. |
/c game.player.surface.always_day=true | Keeps it daytime on your current surface. |
/c game.player.surface.peaceful_mode=true | Turns 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
| Command | What 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
| Command | What it does |
|---|---|
/help | Lists the commands, or explains one: /help cheat. |
/time | Shows how long the map has been running. |
/seed | Shows the map seed. |
/evolution | Shows the current enemy evolution factor. |
/version | Shows the game version. |
/screenshot | Saves a screenshot without the interface to the script-output folder. |
/color red | Changes your character’s colour. |
/clear | Clears the console. |
/alerts disable alert-name | Turns an alert type on or off. Replace “alert-name” with the alert; the options are enable, disable, mute and unmute. |
/unlock-shortcut-bar | Unlocks every button on the shortcut bar. |
Multiplayer admin commands
| Command | What it does |
|---|---|
/promote PlayerName | Makes a player an admin. /demote PlayerName removes it. |
/admins | Lists the server’s admins. |
/kick PlayerName reason | Removes a player from the game. |
/ban PlayerName reason | Bans a player. /unban PlayerName lifts it; /bans lists bans. |
/mute PlayerName | Stops a player’s chat. /unmute PlayerName undoes it. |
/whitelist add PlayerName | Adds a player to the whitelist (also remove, get, clear). |
/players | Lists players; /players online shows who is connected. |
/whisper PlayerName message | Sends a private message. /reply message answers the last one. |
/server-save | Saves the game on the server. |
/permissions | Opens 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.





