Factorio Cheats: Console Commands for PC
- PC Press ~ or / to open the console. Type /cheat all for quick cheats, or /c followed by a Lua command for anything else.
Codes last checked on against the sources listed at the bottom of this page. Covers PC.
Published by Andrew B.
No cheats match that filter.
Cheat mode
| Cheat | Command | Effect |
|---|---|---|
| Enable cheat mode | PC/cheat all | Turns on cheat mode: unlocked recipes, infinite crafting, and no build restrictions |
| Disable cheat mode | PC/cheat off | Turns cheat mode back off |
Items and research
| Cheat | Command | Effect |
|---|---|---|
| Add item | PC/c game.player.insert{name="item-name", count=100} | Add the named item and amount to your inventory |
| Research everything | PC/c game.player.force.research_all_technologies() | Instantly research every technology for your force |
| Toggle player cheat mode | PC/c game.player.cheat_mode=true | Gives free, instant crafting for your character specifically |
Speed and movement
| Cheat | Command | Effect |
|---|---|---|
| Set game speed | PC/c game.speed=2 | Change the game's simulation speed; 1 is normal |
| Teleport player | PC/c game.player.teleport({X, Y}) | Move your character to the given map coordinates |
| Set mining speed | PC/c game.player.force.manual_mining_speed_modifier=1000 | Multiply your force's manual mining speed |
| Set crafting speed | PC/c game.player.force.manual_crafting_speed_modifier=1000 | Multiply your force's manual crafting speed |
World and display
| Cheat | Command | Effect |
|---|---|---|
| Always day | PC/c game.player.surface.always_day=true | Stop the day/night cycle so it's always daytime on the surface |
| Show evolution factor | PC/evolution | Print the current enemy evolution factor to the console |
| Show game time | PC/time | Print the current in-game time to the console |
Debug and testing
| Cheat | Command | Effect |
|---|---|---|
| Open map editor | PC/editor | Toggle the built-in map editor for the current save |
| Take screenshot | PC/screenshot | Save a screenshot to the game's script-output folder |
How to enter cheats
PC
- Press ~ or / to open the console.
- For a listed slash command, type it exactly as shown and press Enter.
- For a Lua command, type /c followed by the code and press Enter.
FAQ
How do you open the console in Factorio?
Press the grave/tilde key (~) or the forward slash (/) key.
Do Factorio console commands disable achievements?
Only the scripting commands do. /c, /sc, /cheat, and the map editor disable achievements for that save; plain commands like /time or /admin don't.
Is there a cheat mode in Factorio?
Yes. /cheat all turns on unlocked recipes and infinite crafting, and /cheat off turns it back off.
How do you add items to your inventory in Factorio?
Use a Lua command like /c game.player.insert{name="iron-plate", count=100}, replacing the item name and count.
How do you research everything instantly in Factorio?
Run /c game.player.force.research_all_technologies() to unlock every technology for your force.
