A B C D E F G H I J K L M N O P Q R S T U V W X Y Z #
» » Factorio - Useful Console Commands (Cheat Codes)

Factorio - Useful Console Commands (Cheat Codes)

Mar 1, 2016     Guides
Want to mine at stupid speeds? Hate nights? Hate biters? Spawn in stuff? All possible using console commands! Read this guide to learn how to use the Factorio console commands (cheat codes).

Factorio - Useful Console Commands (Cheat Codes)

How to open the console?



Using the Factorio console is surprisingly simple. Just open the chat box (default is ~ or /).

If you can't find the right key: open the options screen and look for controls, you should be able to find a control named "Toggle Lua console" with a key right next to it.

If you want to repeat a previously executed command, press the up arrow on your keyboard to scroll through the chat/command history.

Console commands (cheat codes)



You can use the console to spawn items, walk faster, unlock researches and many more. Here's a bunch of useful commands.

Mine faster (Default - 1).
/c game.player.force.manual_mining_speed_modifier=100

Craft faster (Default - 1).
/c game.player.force.manual_crafting_speed_modifier=100

Laboratories research faster (Default - 1).
/c game.player.force.laboratory_speed_modifier=100

Complete all researches (This activates all researches as if you have researched them).
/c game.player.force.research_all_technologies()

Zoom out further than usual (Zoom resets when you zoom in again. Note: values below 0.07 are buggy and impact game performance negatively).
/c game.player.zoom=0.1

Always daytime
/c game.always_day=true

Set game speed (Warning: higher speeds negatively affect your framerate/game performance).
/c game.speed=2

Kill all biters
/c game.forces['enemy'].kill_all_units()

Spawn items (Internal name: iron-plate, copper-plate, coal, steam-engine, submachine-gun, etc. You can find more internal item names here.)
/c game.player.insert{name='internal-name', count=1}
Tags:   Factorio, PC