Are you in search of Factorio console commands and cheats to make the game more interesting & engaging? We know that by using the Cheats console commands you can enable God Mode, increase game speed, and much more.
From modifying the world around them to controlling the spread of biters, from instant teleporting to increasing your inventory size, from adjusting the game speed to enabling instant crafting of items, our Factorio console commands guide will show you exactly how to use all the most useful and powerful cheats in the game.
How to Use the Factorio Console Command?
To Use Factorio’s console, all you have to do is hit the “/” key while in-world. If this doesn’t work, you can check (or assign) which key to press by opening the menu and navigating to Settings >Controls > Basic Interaction >Toggle chat (and Lua console).
List of All Factorio Console Commands
These Factorio cheats directly affect the player, allowing you to quickly move around and expand your manual capabilities.
Factorio Player console commands
Action | Function | Command |
Teleport player | Teleports the player to the specified coordinates. | /c game.player.teleport([x],[y]) |
Mine faster | increases (or decreases) your manual mining speed. 0 = 100%, 1 = 200%, 2 = 300%, etc | /c game.player.force.manual_mining_speed_modifier=100 |
Craft faster | increases (or decreases) your manual crafting speed. 0 = 100%, 1 = 200%, 2 = 300%, etc. | /c game.player.force.manual_crafting_speed_modifier=100 |
Increase player reach | increases the maximum reach distance of the player (how near you have to be to interact with or place an object). The default is 10. | /c local reach = 500 game.player.force.character_build_distance_bonus = reach game.player.force.character_reach_distance_bonus = reach |
Factorio Inventory Console Commands
Become a master of the inventory with these Factorio inventory-focused console commands.
Action | Function | Command |
Enable Cheat Mode | enables or disables Cheat Mode. Cheat Mode allows free and instant crafting of any item. Replace “true” with “false” to disable. | /c game.player.cheat_mode=true |
Add item to inventory | Adds the specified item to your inventory. You can find a list of item IDs here. | /c game.player.insert{name=”infinity-chest”, count=100} |
Increase inventory size | increases your inventory size by adding the specified number of inventory slots. | /c game.player.force.character_inventory_slots_bonus=80 |
Factorio Enemy Console Commands
Control the spread of Biters in your Factorio world using these commands.
Action | Function | Command |
Enable Peaceful Mode | enables or disables Peaceful Mode. While Peaceful Mode is enabled, Biters won’t attack you until provoked. Replace “true” with “false” to disable. | /c game.player.surface.peaceful_mode=true |
Disable Biter Evolution | disables Biter Evolution by both time (first command) and pollution (second command). | /c game.map_settings.enemy_evolution.time_factor=0 /c game.map_settings.enemy_evolution.pollution_factor=0 |
Disable Biter Expansion | enables or disables Biter Expansion. Replace “false” with “true” to enable. | /c game.map_settings.enemy_expansion.enabled=false |
Kill all enemies | kills all enemies in the explored world. | /c game.forces[“enemy”].kill_all_units() |
Kill nearby enemies | kills all enemy units (biters and nest structures) within the specified radius from the player. | /c local surface=game.player.surface local pp = game.player.position local cnt = 0 for key, entity in pairs(surface.find_entities_filtered({force=”enemy”, radius=250, position=pp })) do cnt = cnt+1 entity.destroy() end game.player.print(cnt) |
Set Biter evolution factor | sets the Biter evolution factor. Minimum is 0, maximum is 1. | /c game.forces[“enemy”].evolution_factor=0 |
Factorio World Console Commands
From altering the time of day and speed of time to changing the very terrain around you, these powerful commands will allow you to sculpt your perfect Factorio experience.
Action | Function | Command |
Enable the map editor | toggles the map editor overlay, allowing you to alter the terrain. | /editor |
Reveal the map around the player | explores chunks in a radius around the player, much like a Radar does. | /c local radius=1000 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}}) |
Eternal daytime | locks the time of day to always daytime. Replace “true” with “false” to disable. | /c game.player.surface.always_day=true |
Change game speed | Alters the speed at which the game engine runs. 1 = 100%, 2 = 200%, 3 = 300%, etc. | /c game.speed=2 |
Remove pollution | removes all existing pollution in the world. | /c game.player.surface.clear_pollution() |
Turn off pollution | enables or disables pollution. Replace “false” with “true” to enable. | /c game.map_settings.pollution.enabled=false |
Factorio Research Console Commands
Unlock all technologies or just make researching a lot quicker and easier with these commands.
Action | Function | Command |
Research all technologies | research all technologies | /c game.player.force.research_all_technologies() |
Unlock all recipes | enables all recipes. | /c for name, recipe in pairs(game.player.force.recipes) do recipe.enabled = true end |
Research specific technology | researches the specified technology. | /c game.player.force.technologies[‘steel-processing’].researched=true |
Increase research speed | increases your research speed. 1 = 100%, 2 = 200%, 3 = 300%, etc. | /c game.player.force.laboratory_speed_modifier=2 |
More Factorio Console Commands For God Mod and Spawn Items
It’s worth keeping in mind that typing “/help” into the console while inside a level will bring up a list of helpful consoles. Similarly, for any of the below to work, you’ll need to have loaded a level.
- /seed – Copies the current map’s seed
- /time – Returns info about the map’s age
- /toggle-action-logging – Logs all input actions that the game performs
- /permissions – Opens permissions UI
- /alerts – Disables, enables, mutes, or unmutes alerts like no_material_for_construction
- /unlock-shortcut-bar – Unlocks all items on the shortcut bar
- /admin – Opens player management UI
- /ban – Bans players for a specified reason
- /unban – Unbans player
- /demote – Removes admin powers from player
- /promote – Gives player admin powers
- /ignore – Ignores player
- /unignore – Unignores player
- /kick – Kick players from the server for a specified reason
- /mute – Mutes player
- /unmute – Unmutes player
All Factorio Cheats For Switch
Below, you’ll find a small set of Factorio cheats.These cheats will disable achievements for the game they’re used in, so keep that in mind before taking advantage of what they offer.
- /cheat – Researches all technologies, enables cheat mode
- /editor – Toggles map editor
- /c – Executes command (examples below)
- /c game.player.zoom=0.2 – Zoom past usual bounds
- /c game.player.force.manual_mining_speed_modifier=1000 – Makes mining faster
- /c game.player.force.manual_crafting_speed_modifier=1000 – Makes crafting faster
- /c game.player.cheat_mode=true – Cheat mode, infinite crafting
- /c game.player.selected.amount=7000 – Gives amount of resource present on the tile you’re hovering your mouse cursor over
- /c game.player.insert{name=”item”, count=100} – Gives number of specified item
- /c game.speed=number – Changes game speed
- /c game.player.surface.always_day=true – Disables night
- /c game.player.surface.clear_pollution() – Removes pollution