Hearts of Iron IV – Cheat Codes (Console Commands)

All HOI4 Console Commands (Cheats)

These commands can help you experiment with the game mechanics, get past difficult situations, or just have fun with alternate scenarios.

However, be aware that using console commands will disable achievements for that game session, and some commands might break your game experience or cause instability if used incorrectly.

How to Use Console Commands

Opening the Console:

  1. Make sure you’re playing in non-Ironman mode (achievements will be disabled)
  2. Press the tilde key (~) located under the Escape key on most keyboards
    • On some keyboards (especially non-US layouts), you might need to press Shift + 2 or Alt Gr + ö
    • UK keyboards may use the grave accent key (`)

Command Syntax:

  • Type the command in the console and press Enter.
  • Many commands require parameters (like country tags, province IDs, etc.)
  • Commands are not case-sensitive.
  • Some commands can be toggled on/off by entering them again.

Resource and Production Commands

CommandDescriptionExample
add_equipment [amount] [equipment_name]Adds equipment to your stockpileadd_equipment 1000 infantry_equipment_1
add_latest_equipment [amount] [type]Adds the latest version of that equipmentadd_latest_equipment 500 infantry
add_resource [resource] [amount] [state_id]Adds specified resource to a stateadd_resource steel 50 5
research_on_icon_clickInstantly completes research when clicking tech iconsresearch_on_icon_click
instantconstructionInstantly completes all constructioninstantconstruction
yesmenAI always accepts diplomatic proposalsyesmen
manpower [amount]Adds manpower to your countrymanpower 10000
xp [amount] [type]Adds army, navy, or air experiencexp 100 army
add_equipment_production [equipment] [amount]Adds equipment to production queueadd_equipment_production infantry_equipment_1 10
add_fuel [amount]Adds fuel to your countryadd_fuel 1000
set_naval_cap_factor [amount]Changes naval production capacityset_naval_cap_factor 2

Political Commands

CommandDescriptionExample
set_ruling_party [ideology]Changes ruling party ideologyset_ruling_party fascism
add_party_popularity [ideology] [amount]Add popularity to a partyadd_party_popularity democratic 25
set_party_popularity [ideology] [amount]Set exact party popularityset_party_popularity communism 75
add_political_power [amount]Adds political poweradd_political_power 150
event [event_id]Triggers a specific eventevent usa.25
focus.autocompleteAuto-completes national focusesfocus.autocomplete
focus.nochecksRemoves prerequisites for focusesfocus.nochecks
stability [amount]Sets stability percentagestability 100
war_support [amount]Sets war support percentagewar_support 85
add_ideas [idea_id]Adds national spirit/idea to countryadd_ideas GER_mefo_bills
remove_ideas [idea_id]Removes national spirit/idea from countryremove_ideas GER_mefo_bills

Warfare and Military Commands

CommandDescriptionExample
annex [country tag]Annexes specified countryannex GER
allowdiploEnables all diplomatic actions regardless of restrictionsallowdiplo
instanttrainingInstantly trains unitsinstanttraining
tpTeleports selected units to target provincetp (then click on map)
deleteallunits [country tag]Deletes all units of specified countrydeleteallunits ITA
aiToggles AI for the player countryai
winwarsWin all wars you are currently inwinwars
whitepeace [tag1] [tag2]Forces white peace between countrieswhitepeace GER SOV
add_compliance [state_id] [amount]Adds compliance to occupied stateadd_compliance 5 50
add_resistance [state_id] [amount]Adds resistance to occupied stateadd_resistance 5 50
set_collaboration [tag1] [tag2] [amount]Sets collaboration level between countriesset_collaboration GER FRA 50
set_supply_limit [amount]Sets supply limit for the playerset_supply_limit 5

Country Commands

CommandDescriptionExample
tag [country tag]Switch to controlling another countrytag USA
civilwar [ideology] [country tag]Starts civil war with specified ideologycivilwar fascism FRA
nocbRemoves justification requirement for war goalsnocb
nofogRemoves fog of war (reveals map)nofog
gain_xp [leader_id] [amount]Gives XP to a specific leadergain_xp 123 100
observeSwitches to observer modeobserve

Technical and Debug Commands

CommandDescriptionExample
debug_achievementsLists achievement IDs and descriptionsdebug_achievements
debug_tacticsShows battle tactics debug infodebug_tactics
debug_nukingShows nuclear weapon debug infodebug_nuking
tdebugShows extra debug informationtdebug
fowToggles fog of warfow
fpsShows FPS counterfps
debugMain debug modedebug
helpShows available console commandshelp
debug_decision_categoriesShows decision category debug infodebug_decision_categories
debug_decisionsShows decision debug infodebug_decisions
add_intel [tag] [amount]Adds intel on target countryadd_intel GER 80

Time Commands

CommandDescriptionExample
set_date [YYYY.MM.DD]Sets the game dateset_date 1942.6.22
setgamedate [YYYY.MM.DD]Alternative date settersetgamedate 1939.9.1
rate [number]Sets game speed (1-5)rate 5
pausePauses the gamepause

IDs

Key Country Tags

These are the most commonly used country tags for the major powers:

CountryTag
GermanyGER
Soviet UnionSOV
United StatesUSA
United KingdomENG
FranceFRA
ItalyITA
JapanJAP
ChinaCHI
Communist ChinaPRC
PolandPOL
CanadaCAN
AustraliaAST
British Raj (India)RAJ

State IDs

The game has over 800 states. Here are some important ones:

StateID
Berlin64
Moscow219
London126
Paris16
Washington DC361
Rome158
Tokyo526
Leningrad195
Stalingrad217
Warsaw86

Resource IDs

ResourceID
Oiloil
Rubberrubber
Steelsteel
Aluminumaluminium
Tungstentungsten
Chromiumchromium

FAQ

Why aren’t console commands working for me?

Make sure you’re playing in non-Ironman mode. Ironman disables the console completely. Also check if you’re using the correct key to open the console (~ or ` on most keyboards).

Will using console commands disable achievements?

Yes, using any console command will disable achievements for that game session.

How do I add multiple resources to my country?

You need to add them to specific states your country owns using the add_resource command followed by the resource type, amount, and state ID.

How can I make a country fascist/communist/democratic instantly?

Use set_ruling_party [ideology] and set_party_popularity [ideology] 100 commands.

Can I undo a console command?

Most commands cannot be directly undone. Save your game before experimenting with commands.

How do I win a specific battle?

There’s no direct command for winning a single battle. You can use commands like instanttraining to quickly deploy troops or tp to teleport units.

How do I get more manpower?

Use the manpower [amount] command to add more manpower to your pool.

Why does the game crash when I use certain commands?

Some commands, especially when used with incorrect parameters or in combination with other commands, can cause instability. Use commands one at a time and be careful with extreme values.

How do I fix broken supply after using teleport?

The supply command can help refresh supply status, but sometimes you may need to reload a save.

Can I use console commands in multiplayer?

No, console commands only work in single-player mode.

Technical Tips

Different Location for Savefiles and Screenshots

It worked for me following these steps:

  1. Close Steam
  2. Inside the folder where hoi4.exe is located, create a text file and save as: userdir (Windows will create it as userdir.txt)
  3. In the userdir.txt write D:/Games/Paradox Interactive/Hearts of Iron IV (the folder must be one you have access to). Save and close it
  4. Search in the game folder for the file launcher-settings.json
  5. Open it using “Open with” and select notepad
  6. On the line “gameDataPath”: write the new path where you want the save games folder like this: “gameDataPath”: “D:/Games/Paradox Interactive/Hearts of Iron IV”,
  7. Save and close it
  8. Manually move the Paradox folder from its old location under Documents to its new location under D:/Games/Paradox Interactive/Hearts of Iron IV
  9. Lastly, launch Steam, and launch the game HOI4
  10. Check that your savegames are present in games and DLCs are applied correctly, then close the game
  11. Check that there is no longer a Paradox Interactive folder under Documents

Note that the paths in userdir.txt and launcher-settings.json must be written using the forward slash ‘/’ and not the backslash ‘\’.

How to Manually Clear Cache

This is more reliable than doing it in launcher:

  1. Open File Explorer.
  2. Go to Documents/Paradox Interactive/Hearts of Iron IV.
  3. Move the mod, save games, Screenshots folders, as well as career profile files to somewhere else on the drive. (If these don’t exist or you don’t care, ignore this step).
  4. Delete everything in the Hearts of Iron IV folder.
  5. Put all the moved files and folders back in.
  6. Launch the game again.

Verify File Integrity

To verify your file integrity on Steam, right click the game in your Library, and go to Properties. In the Menu that pops up, select Local Files and there should be a button that you can select named Verify Integrity of Game Files.

Once you select that, let it verify all the files and you should be able to relaunch the game.

Common Document Issues

If you are having issues finding your game documents from Hearts of Iron, it may be one of a few issues.

One problem may be your One Drive. If you have One Drive enabled, your files may be going to the Cloud service, in which the game cannot read those documents. To make sure that your files aren’t going to the cloud, either turn off One Drive itself, or turn off the Sync function for the folders that you do not wish to be uploaded to the Cloud.

Another issue is the game not being able to read its own documents that it has made, the simple fix for that is to give Hearts of Iron Admin Privileges.

A third issue can be your documents being found as a virus. (This is most common with Avast). To fix this, you can either whitelist the program and files associated with Hearts of Iron within your antivirus, or disable it entirely (or change antivirus entirely which is recommended by some).

Volodymyr Azimoff
About Volodymyr Azimoff 235 Articles
I turned my love for games from a hobby into a job back in 2005, since then working on various gaming / entertainment websites. But in 2016 I finally created my first website about video games – Gameplay Tips. And exactly 4 years later, Game Cheat Codes was created – my second website dedicated to legal game cheats. My experience with games started back in 1994 with the Metal Mutant game on ZX Spectrum computer. And since then, I’ve been playing on anything from consoles, to mobile devices.

Be the first to comment

Leave a Reply

Your email address will not be published.


*