Console Commands: Full Lists for PC Games
Some games ship with the developer console the studio used while building them. Typing a command there can add money, spawn an item, turn on god mode or change the world outright. 82 of our guides are command lists of this kind.
We write commands exactly as the game expects them, including the arguments they take and their valid ranges.
Games in this collection
82 guidesHow to open 7 Days to Die's F1 console and use debug mode, creative mode and item commands on PC.
How to turn on American Truck Simulator's developer console through the config file and the commands for traffic, fines, time, and teleporting.
ARK: Survival Evolved admin commands for PC, Xbox and PlayStation: god mode, infinite stats, items, engrams, fly, taming and summoning.
Arma 3's built-in server admin commands: log in as admin, control missions, restart or shut down the server, and vote or monitor players.
Black Mesa's single-player console commands: god mode, noclip, notarget, item and weapon give codes, and NPC spawning.
Civ 6 console commands: set EnableDebugMenu 1 in AppOptions.txt, press ~ in game and type Reveal All to uncover the whole map.
15 Company of Heroes dev-console commands for PC: manpower, munitions, fuel, population cap, fog of war and more.
Company of Heroes 2 console commands: add -dev to the launch options, open the SCAR console and set manpower, munitions and fuel or reveal the map.
How to open Conan Exiles' single-player admin panel and the commands for god mode, flying, spawning items and teleporting.
The Game.cookies browser console commands and the saysopensesame debug menu, built right into Cookie Clicker.
CS 1.6 console commands for PC: sv_cheats, god, noclip, impulse 101 for $16,000, gravity, bots, buy time and round settings for your own server.
CS2 practice console commands for PC: sv_cheats, noclip, buddha mode, infinite ammo, max money, grenades, bots and round setup.
How to open Crusader Kings II's console and the commands for gold, piety, prestige, traits, and titles.
How to turn on debug mode for Crusader Kings III and the console commands for gold, titles, traits, and time.
Crysis (2007) PC dev mode cheats: god mode, unlimited ammo, unlimited weapons, all items and a speed boost.
CS:GO practice console commands for PC: sv_cheats, god mode, noclip, infinite ammo, 60,000 money, grenade trajectories, bots and round setup.
Diablo 2 commands for Resurrected on PC: /players 1-8 for harder solo games, plus /nopickup, /fps and the chat, friends and channel commands.
Don't Starve's built-in debug console: god mode, spawning and giving items, revealing the map, and skipping days.
Dragon Age: Origins console commands for PC: money, XP, pc_immortal god mode, kill all hostiles, party and approval scripts, and how to enable the console.
How to turn on Euro Truck Simulator 2's developer console through config.cfg and the commands for traffic, fines, time, and teleporting.
How to open the Europa Universalis IV console and the commands for ducats, monarch points, manpower, annexing countries and revealing the map.
Europa Universalis V console commands confirmed for the current game, covering diplomacy, conquest, research, and time.
How to open Factorio's console and use /cheat mode or Lua commands for free items, instant research, and more.
The PC console commands for Fallout 3: turn on god mode, hand yourself caps, level up fast, and teleport anywhere.
Every useful Fallout 4 PC console command: god mode, caps, noclip, level and SPECIAL edits, map reveal, teleports and quest fixes.
The PC console commands for Fallout: New Vegas, from god mode and free caps to faction reputation and fast travel.
How to unlock Farming Simulator 22's developer console on PC and use its commands for money, farmland, fuel and time.
Garry's Mod console commands for PC: sv_cheats 1, god, buddha, noclip, impulse 101 and give, plus the sbox_ settings for god mode, noclip and prop limits.
How to open Gothic 3's hidden marvin/test mode console and the god, item and stat commands it unlocks.
Green Hell's debug mode keys on PC: god mode, item and creature spawning, time skips, a full notebook, teleporting and the debug menus.
Half-Life cheats for PC: turn on sv_cheats 1, then use god, noclip, impulse 101, give and map in the developer console of the 1998 original.
The Half-Life 2 developer console commands worth knowing: sv_cheats 1, god, noclip, impulse 101 and more.
How to open the Hearts of Iron 4 console and the commands for manpower, political power, equipment, research, annexation and debug tools.
Heroes of Might and Magic V console cheats for PC: unlock the console with one autoexec.cfg line, then add gold, resources, armies, spells and experience.
House Flipper cheats for PC: unlock the hidden console with iddqd, then add money, unlock all tools, max skills, finish jobs instantly and fly with noclip.
Every official Icarus admin command for dedicated servers: log in as admin, kick, ban and unban players, return to lobby and send server messages.
How to enable Imperator: Rome's debug console and the commands for gold, manpower, characters, and war.
Turn on devmode for Kingdom Come: Deliverance's console commands: money, items, and camera and HUD tweaks.
The KCD2 console commands that still work after launch, from free Groschen to teleporting across the map.
Left 4 Dead console commands for PC: sv_cheats 1, god mode, infinite ammo, give items, spawn a Tank or Witch, warp survivors and stop the Director.
Left 4 Dead 2 console commands for PC: god mode, buddha, noclip, infinite ammo, weapon give codes, Director controls and teleports.
Mass Effect console commands for the original PC release: credits, XP, gear, fly and ghost, plus the BIOInput.ini line that turns the console on.
The PC console commands for Medal of Honor: Allied Assault: god mode, all weapons, no clipping and level warps.
The built-in console commands for money, units, traits, and the campaign map in Medieval II: Total War.
The Minecraft commands people use most, from /gamemode and /give to keep inventory, time and teleport, with Java and Bedrock syntax side by side.
My Summer Car console commands for PC: unlock the hidden console with the Rauhijoketti surname, then add money, god mode, teleports, time and weather.
Neverwinter Nights cheats: turn on DebugMode, then use dm_ console commands for gold, XP, levels, god mode, ability scores and teleporting.
Every official Of Ash and Steel debug console command: spawn items, revive NPCs, finish quests and edit stats, skills and perks with Shift + F12.
All official Palworld admin commands for dedicated servers: become admin, spectator mode, teleport, kick, ban, broadcast, save and shutdown.
Portal 2 console commands for PC: sv_cheats 1, god, noclip, portals on any surface, spawn cubes and gels, and co-op commands for Atlas and P-Body.
How to enable Postal 2's console cheats with sissy, plus the invulnerability, ammo and no-clip commands.
How to turn on Project Zomboid's -debug mode solo, and the main admin commands for a server you host yourself.
Every Quake cheat for PC: god, noclip, fly, impulse 9 for all weapons and keys, quad damage, give commands and level warps, for the original and remaster.
Quake 2 cheats for PC: god, noclip, notarget, give all, single weapons, ammo and key items, infinite ammo with dmflags and level warps with map.
Every Quake III Arena PC console command worth knowing: god mode, give-all, powerups, no clipping and more.
The PC console commands for Return to Castle Wolfenstein: god mode, no clipping, every weapon, and full ammo.
How to unlock Risen's hidden test-mode console on PC, plus commands for god mode, gold, items, teleporting NPCs and skills.
Rust admin commands for your own PC server: make yourself owner, noclip, god mode, teleport, give items, kick, ban, time, weather and saves.
Every S.T.A.L.K.E.R.: Shadow of Chernobyl console command on PC: movement, saves, HUD, FPS counter and video settings.
SCUM admin commands for your own server: spawn items and vehicles, teleport, set time and weather, kick, ban, mute and announce, plus how to become admin.
How to open the debug console in Sons of the Forest and the commands worth trying, from god mode to a full inventory.
Soulmask admin commands for your own server: add experience, teleport, reveal the map, unlock tech, recruit NPCs, set time and weather, plus how to become GM.
Jedi Outcast cheats for PC: turn on cheat mode with helpusobi 1, then use console commands for god mode, weapons, Force powers and levels.
KOTOR cheats for PC: enable the console in swkotor.ini, then use givecredits, invulnerability, addlevel, whereami and dancedancemalak.
Enable KOTOR 2's invisible PC cheat console with one ini edit, then use its commands for stats, items and credits.
Useful Starfield PC console commands: credits, digipicks, god mode, noclip, level and perks, carry weight, all powers, gravity and NPC control.
Stellaris console commands for resources, research, population, diplomacy, and your fleets, straight from the Paradox wiki.
Stranded Deep's developer console commands: fly around the map, open the item-spawning menu, set the time of day, and show your FPS.
How to open Subnautica's built-in console on PC and the commands for creative mode, infinite oxygen and teleporting.
SWAT 4's single-player console commands: god mode, ghost/fly mode, invisibility, third-person view and ammo refills.
TF2 console commands for your own sv_cheats server: buddha, noclip, impulse 101, addcond buffs, spawning sentries and bosses, and bot controls.
Terra Invicta console commands for PC: resources, all techs, control points, GDP, councilor XP, prospecting, coups and how to enable the console.
Morrowind console commands for PC: tgm god mode, gold with player-AddItem, tcl, coc teleports, levitation, stat menus and the syntax rules that trip people up.
Oblivion console commands for PC: tgm god mode, gold with player.additem F, psb, coc teleports, quest fixes, and what changed in Oblivion Remastered.
Every Skyrim console command worth knowing: god mode, item IDs, perks, quest stages and targeted NPC commands, with how to select a target.
The Witcher 3 PC debug console: how to turn it on and the commands for god mode, money, items, experience and fast travel.
Unturned's built-in cheat commands for giving items, spawning vehicles and teleporting, plus how they differ on servers.
V Rising admin commands for PC: invulnerability, item and blood potion spawning, teleports, time skips, and kick and ban tools for your server.
Valheim's console cheats: god mode, ghost mode, free camera, spawning, skill and character resets, and world time and weather controls.
How to open Victoria 3's debug console and the commands for money, population, politics, and diplomacy.
19 Dawn of War console commands for PC: requisition, power, instant building, map reveal and rendering toggles.
How to turn on XCOM 2's hidden debug console and the single-player commands worth trying once it's open.
How you enter cheats in each game
| Game | Platforms | Codes | How you enter them |
|---|---|---|---|
| 7 Days to Die | PC | 11 | PC: Press F1 to open the console, type a command and press Enter. |
| American Truck Simulator | PC | 12 | PC: Set g_console and g_developer to 1 in the config file, then press ` in-game to open the console. |
| ARK: Survival Evolved | PC, Xbox, PlayStation | 30 | PC: Press Tab to open the console, type a command and press Enter. Single-player needs no password.; Xbox: Open the pause screen and press LB + RB + X + Y together to open the console. |
| Arma 3 | PC | 13 | PC: Open chat, log in with #login and the admin password, then type a # command and press Enter. |
| Black Mesa | PC | 11 | PC: Add -console to the Steam launch options, press ~, type sv_cheats 1, then type a command and press Enter. |
| Civilization VI | PC | 4 | PC: Set EnableDebugMenu 1 in AppOptions.txt, restart the game, then press ~ and type Reveal All. |
| Company of Heroes | PC | 15 | PC: Add -dev to the game's Steam launch options, then press Ctrl+Shift+~ in a single-player match to open the console and type a command. |
| Company of Heroes 2 | PC · Steam, single player and skirmish against the AI | 13 | PC: Add -dev to the Steam launch options, start a match, press Ctrl + Shift + ~ and paste a command. |
| Conan Exiles | PC | 17 | PC: Grant yourself admin from Settings Server Settings, then press Insert or ~ to type commands. |
| Cookie Clicker | Browser | 12 | Browser console: Open developer tools (F12) and type a command in the Console tab, then press Enter.; Debug menu: Add saysopensesame to your bakery's name, then click the cookie and framerate counter that appears. |
| Counter-Strike 1.6 | PC | 30 | PC: Tick Enable developer console (~) under Options, Keyboard, Advanced, then press ~ on your own server, type sv_cheats 1 and press Enter. |
| Counter-Strike 2 | PC | 40 | PC: Turn on the developer console in Settings, press ~ in a private match, type sv_cheats 1 and press Enter. |
| Crusader Kings II | PC | 20 | PC: Press ` (grave/tilde) to open the console, type a command and press Enter. |
| Crusader Kings III | PC | 19 | PC: Turn on debug mode via launch options, then press the tilde (~) key to open the console, type a command and press Enter. |
| Crysis | PC | 15 | PC: Launch with -DEVMODE, press ~, type con_restricted = 0, then type a command and press Enter. |
| CS:GO | PC | 35 | PC: In an offline match with bots, press ~ to open the console, type sv_cheats 1 and press Enter. |
| Diablo II: Resurrected | PC | 26 | PC: Press Enter to open the chat box, type the command and press Enter again.; Single player: Type /players 8 in a solo game to get party-sized monsters, drops and experience. |
| Don't Starve | PC | 13 | PC: Press ~ to open the console, run RunScript("consolecommands") once, then type a command and press Enter. |
| Dragon Age: Origins | PC | 29 | PC: Launch with -enabledeveloperconsole, press ` in-game, type a command such as runscript addxp 1000 and press Enter.; Blind typing: The console stays invisible, so type carefully; the hotkeys stop working while it is open. |
| Euro Truck Simulator 2 | PC | 12 | PC: Set g_console and g_developer to 1 in config.cfg, then press ` in-game to open the console. |
| Europa Universalis IV | PC | 31 | PC: Press ` or ~ to open the console, type a command and press Enter. |
| Europa Universalis V | PC | 19 | PC: Add -debug_mode to the game's launch options, then press the tilde (~) key to open the console, type a command and press Enter. |
| Factorio | PC | 14 | PC: Press the grave key (`) to open the console. Type /cheat all for quick cheats, or /c followed by a Lua command for anything else. |
| Fallout 3 | PC | 19 | PC: Press ~ (tilde) to open the console, type a command and press Enter. |
| Fallout 4 | PC | 31 | PC: Press ~ (tilde) to open the console, type a command and press Enter. |
| Fallout: New Vegas | PC | 20 | PC: Press ~ (tilde) to open the console, type a command and press Enter. |
| Farming Simulator 22 | PC | 11 | PC: Enable controls in game.xml, add -cheats to your Steam launch options, then press ` (backtick) to type commands. |
| Garry's Mod | PC | 15 | PC: Turn on the developer console, press ~, type sv_cheats 1, then type a command and press Enter. |
| Gothic 3 | PC | 16 | Unpatched: Set TestMode=true in ge3.ini, then press ~ (tilde) in-game to open the console.; Community Patch 1.7x: Press C to open the character screen and type marvin to turn on marvin mode, then press ~ (tilde) to open the console. |
| Green Hell | PC | 34 | PC: Create an empty file named DEBUG in GH_Data/Resources/scripts/Debug, start the game and press the keys below. |
| Half-Life | PC | 21 | PC: Launch with -console, press ~, type sv_cheats 1, reload a save, then type a command and press Enter. |
| Half-Life 2 | PC | 18 | PC: Enable the developer console in Options Keyboard, press ~ to open it, type sv_cheats 1 and press Enter, then type each command and press Enter. |
| Hearts of Iron IV | PC | 29 | Turn off ironman: Start a single-player game with ironman off; the console is dead in ironman and multiplayer.; Open the console: Press ~, or §, Shift+2, Shift+3, \, `, ^ or TAB on other keyboard layouts. |
| Heroes of Might and Magic V | PC | 11 | PC: Unlock the console in autoexec.cfg, then press ~ in a game, type a command and press Enter. |
| House Flipper | PC | 22 | PC: In the pause menu press ~, type iddqd and press Enter, then press ~ in the game to open the console and enter a command. |
| Icarus | PC · dedicated servers | 7 | PC: Open the chat on a dedicated server, type /AdminLogin with the admin password, then type the other commands with a / in front. |
| Imperator: Rome | PC | 20 | Enable debug mode: Add -debug_mode to the game's launch options in Steam (right-click the game, Properties, General, Launch Options).; Open the console: Press the grave/tilde key (`); some keyboards use Shift+2, Shift+3, Alt+2+1, §, ^ or ° instead. |
| Kingdom Come: Deliverance | PC | 17 | PC: Add -devmode to the game's Steam launch options, then press ~ to open the console. |
| Kingdom Come: Deliverance II | PC | 13 | PC: Add -devmode to the game's Steam launch options, then press ~ in-game to open the console. |
| Left 4 Dead | PC | 30 | PC: Turn on the developer console, press ~ in a local game, type sv_cheats 1, then type a command and press Enter. |
| Left 4 Dead 2 | PC | 39 | PC: Turn on the developer console, press ~, type sv_cheats 1, then type a command and press Enter. |
| Mass Effect | PC | 30 | PC: Add ConsoleKey=Tilde under [Engine.Console] in BIOInput.ini, then press ~ in-game, type a command and press Enter. |
| Medal of Honor: Allied Assault | PC | 13 | PC: Edit your shortcut to add the developer flags, turn on the Console option, press ~, then type a command. |
| Medieval II: Total War | PC | 20 | PC: Press ~ to open the console, type a command and press Enter. |
| Minecraft | Java Edition · Bedrock Edition | 29 | Java: Turn on Allow Commands for the world, press T or /, type the command and press Enter.; Bedrock: Turn on Allow Cheats in the world settings, open chat, type the command and press Enter. |
| My Summer Car | PC | 28 | PC: Start a new game with the last name Rauhijoketti, press F1 or Esc to open the console, type a command and press Enter. |
| Neverwinter Nights | PC / Mac | 29 | PC / Mac: Press ~, type DebugMode 1 and press Enter, then type a dm_ command and click your character if the game asks for a target.; Enhanced Edition: If ~ does nothing, load a module and type the command in the chat line with ## in front, such as ##DebugMode 1. |
| Of Ash and Steel | PC | 19 | PC: Load a save on patch 1.05 or later, press Shift + F12, type a command and press Enter. |
| Palworld | PC · Steam dedicated server | 13 | PC server: Press Enter to open chat, type /AdminPassword and your server's admin password, then type any admin command. |
| Portal 2 | PC | 29 | PC: Turn on the console in Options Keyboard/Mouse, press ~, type sv_cheats 1, then type a command and press Enter. |
| Postal 2 | PC | 22 | PC: Press ~ to open the console, type sissy twice to turn on cheats, then type any command and press Enter. |
| Project Zomboid | PC | 16 | Single-player debug mode: Add -debug to the game's Steam launch options, then click the ladybug icon that appears in-game.; Server admin commands: Press T or Enter to open chat and type a command starting with a slash. |
| Quake | PC | 21 | PC: Press ~ to open the console, type a command such as god and press Enter.; Remaster: In the 2021 remaster, type sv_cheats 1 first, then enter the commands. |
| Quake II | PC | 33 | PC: Press ~ to open the console, type a command such as god and press Enter.; Several at once: Separate commands with semicolons, for example notarget; god; noclip. |
| Quake III Arena | PC | 21 | PC: Open the console with ~, type /sv_cheats 1, load a level with /devmap mapname, then type any command. |
| Return to Castle Wolfenstein | PC | 15 | PC: Add +set sv_cheats 1 to your shortcut, launch the game, press ~ to open the console, then type a command and press Enter. |
| Risen | PC | 14 | PC: Type minsky and press Enter to unlock the console, then press ~ or F1 to open it, type a command and press Enter. |
| Rust | PC · your own server (admin auth level) | 30 | PC server: Run ownerid with your SteamID64 from the server console, reconnect, then press F1 in the game and type a command. |
| S.T.A.L.K.E.R.: Shadow of Chernobyl | PC | 29 | PC: Press ~ to open the console, type a command followed by a space and its value, then press Enter. |
| SCUM | PC · servers where you are admin | 28 | PC: List your Steam64 ID in AdminUsers.ini, restart the server, then press T in game and type the command with a # in front. |
| Sons of the Forest | PC | 16 | PC: Type cheatstick during gameplay, press F1 to open the console, then type a command and press Enter. |
| Soulmask | PC · servers where you have the admin password | 38 | PC: Press ~ to open the console, type gm key and the server's admin password, then type any command. |
| Star Wars: Jedi Knight II - Jedi Outcast | PC | 30 | PC: Press Shift + ~, type helpusobi 1 and press Enter, then type any command and press Enter. |
| Star Wars: Knights of the Old Republic | PC | 34 | PC: Add EnableCheats=1 under [Game Options] in swkotor.ini, then press ~ in-game, type a command and press Enter.; Numbers: Where a command shows #, type a number in its place, for example a credit amount or a skill value. |
| Star Wars: Knights of the Old Republic II - The Sith Lords | PC | 30 | PC: Add EnableCheats=1 under [Game Options] in swkotor2.ini, then press ~ in-game to open the invisible console. |
| Starfield | PC | 30 | PC: Press ~ (tilde) to open the console, type a command and press Enter. |
| Stellaris | PC | 22 | PC: Press ~ (or your layout's console key) to open the console, type a command and press Enter. |
| Stranded Deep | PC | 13 | PC: Press \ (or ~) to open the developer console, type a command and press Enter. |
| Subnautica | PC | 14 | Enable the console: Press F3 for the debug menu, then F8 for mouse control, and untick Disable Console.; Run a command: Press Enter to open the console box, type a command, and press Enter again to run it. |
| SWAT 4 | PC | 10 | PC: Turn on EnableDevTools in SWAT4.ini, press ~ in a mission, then type a command and press Enter. |
| Team Fortress 2 | PC | 27 | PC: Enable the developer console, host your own server, press ~, type sv_cheats 1, then type a command and press Enter. |
| Terra Invicta | PC | 40 | PC: Set "debug_ConsoleActive" to true in TIGlobalConfig.json, then press ~ in game, type a command and press Enter. |
| The Elder Scrolls III: Morrowind | PC | 34 | PC: Press ~ (` on UK keyboards), type a command such as tgm and press Enter.; Targeted: Start with player- to affect yourself, or click an object with the console open. |
| The Elder Scrolls IV: Oblivion | PC | 35 | PC: Press ~ to open the console, type a command such as tgm and press Enter.; Remastered: The same ~ key opens the console; prefix an old command with obvConsole if it isn't recognised. |
| The Elder Scrolls V: Skyrim | PC | 54 | PC: Press ~ (tilde) to open the console, type a command and press Enter. Click an NPC or object first for the commands that need a target. |
| The Witcher 3: Wild Hunt | PC | 21 | PC: Enable the console once in general.ini, then press ~ (tilde) in-game, type a command and press Enter. |
| Unturned | PC | 11 | PC: Turn on Cheats when creating your world, then type a / command in chat and press Enter. |
| V Rising | PC | 26 | PC: Turn on the console in the options, press `, type adminauth, then type a command and press Enter. |
| Valheim | PC | 12 | PC: Add -console to Steam launch options, press F5, type devcommands, then type a command and press Enter. |
| Victoria 3 | PC | 19 | Enable debug mode: Add -debug_mode to the launch options in Steam, or launch in debug mode from the Paradox Launcher.; Open the console: Press the grave/tilde key (~); some keyboard layouts use Shift+2, Shift+3, or §. |
| Warhammer 40,000: Dawn of War | PC | 19 | PC: Add -dev to the game's launch options, then press Ctrl+Shift+~ during a match to open the console and type a command. |
| XCOM 2 | PC | 19 | Enable the console: On Steam, add -allowconsole to XCOM 2's launch options. On GOG, add it to the end of the game shortcut's Target field.; Run a command: Press ~ in-game to open the console, type a command, then press Enter. |
FAQ
What is the difference between a cheat code and a console command?
A cheat code is a word or button sequence you enter while playing. A console command is typed into a separate developer console, usually takes arguments, and can do much more.
Can commands break my game?
Some can. Commands that spawn or remove objects, change quests or teleport you can leave a save in a bad state. Keep a separate save before experimenting; each guide's warnings cover the risky ones.
