Factorio Console Commands
Factorio Console Commands
About Factorio Console Commands
Copyright © 2020 and All Rights Reserved.

All content on this website ("the Site") is the property of The collection and assembly of content on this Site are the exclusive property of and are protected by copyright and other intellectual property laws. This website is not affiliated with Factorio or Wube Software. All copyrights reserved to their respective owners. We do not assert any claim of copyright for Factorio.


Scripting and Cheat Commands Factorio Console Commands

Factorio console commands, detailed description, and information on how to use command in game.
/c Executes a Lua command.
/command Executes a Lua command.
/measured-command Executes a Lua command and measures time it took.
/silent-command Executes a Lua command without printing it to the console.
/c game.player.print() Use it as calculator.
/c game.player.zoom= Zoom beyond normal bounds. Zooming too far out can cause performance issues.
/c game.player.force.manual_mining_speed_modifier= Mine faster
/c game.player.force.manual_crafting_speed_modifier= Craft faster
/c game.player.force.research_all_technologies() Unlock and research all technologies
See example for the script Unresearch all technologies. This does not reset manually applied bonuses
/c game.player.force.reset() This resets all data for your force, including kill and production statistics, technologies, bonuses and charting status.
/c game.player.game_view_settings.show_rail_block_visualisation = Always show rail block visualization. Permanently show the rail block visualization instead of only when holding a rail signal. Disable by replacing true with false.
/c game.player.cheat_mode= Allows for infinite free crafting. Disable by replacing true with false.
/c game.player.selected.amount= Refill resources (refill oil, iron etc.) While holding the cursor over a resource tile in-game
/c game.player.insert{name=" ", count= } Add items to the player's inventory. Replace iron-plate with the internal name of the item desired.
See example for the script Reveal the map around the player. Reveals the map around the player, similar to a radar.
/c game.player.surface.always_day=true Turn off night. Enables eternal day.
/c game.speed=X Change game speed. 0.5 is half speed, 1 is default, 2 is double speed, etc. Minimum is 0.01. This can be used for a lot of things like when you know you will have to wait for long periods of time for something to complete. Increasing will decrease performance, be careful.
/c game.player.surface.freeze_daytime= Freeze time. Stops the advancement of the time if you replace "BOOL" with "true" or unfreezes it if you replace it with "false".
/c game.player.surface.clear_pollution() Remove all pollution
See example for the script Completely turn off pollution
/c game.player.surface.pollute(game.player.position, ) Add a lot of pollution
/c game.player.force.friendly_fire = Disable friendly fire for your force
/c game.forces[" "].evolution_factor=X Set evolution factor. Ranges from 0 (new game) to 1.
/c game.forces[" "].kill_all_units() Kill all biters on the "enemy" force. Note that this will kill only mobile units, spawners will not be killed.
/c game.player.surface.peaceful_mode = Enable/Disable peaceful mode. Enabling peaceful mode prevents biter attacks until provoked. Substitute true for false to disable. Already existing biters are not affected by this command so attacks could continue for a while after activating peaceful mode.
/c game.map_settings.enemy_expansion.enabled = Enable/Disable biter expansion. Biter expansion allows biters to create new nests, it is enabled by default. Substitute true for false to disable.
/c game.player.print(game.player.position.x .. ", " .. game.player.position.y) Get player position. Prints coordinates of your current position.
/c game.player.teleport({X, Y}) Teleport player. Moves the player to the specified location. You should be able to teleport to a specific player if you obtain their coordinates via them executing the previous command and giving them to you. To teleport to the world's origin, use 0,0.
/c game.player.force.laboratory_speed_modifier= Enable faster research. 1 is normal speed, 2 is double speed 3 is triple etc.
/c game.player.force.technologies[' '].researched= Research specific technologies. The internal technology names can be found in the infoboxes on their respective pages.
/c for name, recipe in pairs( do recipe.enabled = true end Enable all recipes