Company of Heroes 2

Company of Heroes 2

137 ratings
COH2 Console cheats/commands
By RubMyRubberDucky
Helping you cheat your way through those pesky campgaign and AI skirmishes since well, since you've found this guide...
   
Award
Favorite
Favorited
Unfavorite
Description
So you've decided that you need help getting through a certain mission, or you just want to cheat in order to kill time or have more fun. Well you've come to the right place to do just that.

In this guide I'll provide the how-to and console commands that'll give you the edge in your next battle in COH2.
Cheats
To begin, the codes provided here are cheats, and will give you more resources and advantages in your next match. However, these cheats do not quite work in multiplayer, as they will either not be enabled at all, or cause desync and ruin the match for both parties.

First of all, to begin using these commands, you need to set a launch parameter for the next time your game is launched. To do this navigate to your COH2 game in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option to set launch parameters. Open this and when prompted enter in the following code:

-dev

Once done this press Ok/Save and you're ready to launch the game.

Following this, load up a new or saved campaign mission or whatever you look to cheat in, and open the console by pressing Control-Shift-Tilde (Ctrl+Shift+`/~)

This will open up your console, and now you can either enter the codes manually or copy/paste them in. Here are the codes:

FOW_RevealAll --- Toggles the fog of war/ Allows you to see whole map and units.
Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999) - Adds 9999 Manpower

Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999) - Adds 9999 Munition

Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999) - Adds 9999 Fuel

Player_SetResource(Game_GetLocalPlayer(), RT_Command, 5) - Adds 5 Command points
(Beware, add only the amount you need for all abilities, so it's best that you count them first, then you can paste this command in and change the value from 5 to whatever amount you need)

Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000) - Makes your pop-cap larger



There are other cheats for this game, but the basics are these.

The Following is a link to a similar guide for the first Company of Heros, it's the same cheat commands and you may use it as a reference. It also provides addition codes to use in the console.

https://steamcommunity.com/sharedfiles/filedetails/?id=299979247


Have fun cheating!

< >
36 Comments
cseffect Nov 16, 2021 @ 11:06am 
I think he may not be able to use CTRL + SHIFT + TILDE (look for the ~ symbol) command.
so let try in this way

1. Go to the steam folder which you install game
for example
"C:\XXX\Steam\steamapps\common\Company of Heroes"

2. Find "RelicCOH2" (Configuration setting)

3. Open it with notepad

4. Under ; Console
consoleKey = CONTROL+SHIFT+Grave

Change to consoleKey = CONTROL+SHIFT+1

5. then in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option
set launch -dev

6. During gameplay press CONTROL+SHIFT+1

I think now you can use a code you want
nicolas.rivera2 Aug 12, 2021 @ 6:02pm 
newest update may have deleted the -dev command. just check if its still there and if not re-add it.
cseffect May 21, 2021 @ 11:58pm 
@ ✠ sleepnaught ✠
step 1
in the Steam Library, right click on it and select properties. In the tab that opens up you should see an option to set launch -dev

step 2
make sure you can use CTRL + SHIFT + TILDE (look for the ~ symbol) command
if you can use, it will appear a black dropdown box
so you can type a code in it - if you can not use it, can you reply back ?

step 3
copy the following code from notepad and paste it during a single / campaign

Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Command, 32)
Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)

then press enter

To close the cheats console press the CTRL+ SHIFT + TILDE
✠ sleepnaught ✠ May 15, 2021 @ 10:07pm 
none of these work...
cseffect Dec 28, 2020 @ 4:52am 
From my experience, after enable -dev
then play any solo / mission without using any one of them below
you can not get any reward after the game. No more dropbox

Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Command, 32)
Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)
burtonboy2009 Dec 4, 2020 @ 7:26pm 
Make sure you close the end with a ) it took me forever to realize what I was doing wrong
Friedrich Herrman Oct 10, 2020 @ 5:01pm 
for some reason it aint working for me
Delamaine Jul 3, 2020 @ 7:15pm 
FOW_RevealAll

Player_SetResource(Game_GetLocalPlayer(), RT_Manpower, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Munition, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Fuel, 9999)
Player_SetResource(Game_GetLocalPlayer(), RT_Command, 32)
Player_SetPopCapOverride(Game_GetLocalPlayer(), 1000)
Degree Apr 24, 2020 @ 2:02am 
So just a heads up if you care, activating these console commands blocks achievements. It's not like, let's say, New Vegas where if you activate a console command you can just restart the game and they aren't blocked anymore. I don't know if achievements are blocked for the rest of the game or just for the level I used them on, because I saved and quit. I still have the last level to see if I get it or not
Chucky the Dalek Apr 23, 2020 @ 3:13pm 
Not working for me^^ Idk why