We may earn a commission when you buy through links in our articles. Learn more.

All Hearts of Iron 4 console commands and cheats

A list of all HOI4 cheats to use in game, with console commands to alter HOI4 equipment, puppeting, world tension, resources, and more.

HOI4 console commands Rommel standing on top of a tank in the desert

Hearts of Iron 4 console commands are basically cheats – manual code inputs that automatically change important stuff about the game, without having to play your way there – like resource or equipment cheats to give you an economic boost, or puppet cheats to help grow your empire faster. To help you out, this guide lists all the HOI4 cheats, and explains exactly how to use them in game.

Once you’ve found your feet, you should definitely check out our guides to the best Hearts of Iron 4 mods and Hearts of Iron 4 DLC, to expand the historical horizons of your HOI4 campaigns.

For now, though, read on for the full list of codes, plus a no-nonsense beginner’s tutorial on how to use them in-game. 

HOI4 console commands infantry charge forwards through tank traps on a beach

Hearts of Iron 4 console commands list

Code
acclimization [climate type] [amount] Makes the selected division acclimatize to a specified climate by a specified amount
add_autonomy [country tag] [num] alter a country’s degree of autonomy
add_cic_bank [number] puts Economic Capacity Surplus into the International Market
add_core [state ID] [country tag] Makes the specified state a ‘core’ of the target country
add_equipment [amount] [name] Add a specified amount of a selected equipment type to your national supply. Can be abbreviated to “ae”.
add_ideas [idea name] give a specific idea to the country
add_intel [country tag 1] [country tag 2] [civilian,army,navy,airforce]=[number] permanently set the intel that country 1 holds on the specified armed force of country 2
add_latest_equipment [amount] Add a specified amount of the latest equipment type used to your supply.
add_mines fill your stockpile of naval miles in the selected regions
add_opinion [country tag] Increase the specified country’s opinion of you by 100
add_party_popularity [ideology group] [value] Add a specified amount of popularity to the chosen ideological group: ‘communism’, ‘fascism’, ‘democratic,’ or ‘neutral’.
add_war_support [amount] Increase your nation’s War Support by a specified amount (capped to 100%). Can be abbreviated to “ws”.
addfunds all military industrial organizations gain 1,000 funds
addSize [mio id][number] give the specific military industrial organization trait points. Leaving out the id will apply the bonus to all MIOs
addTaskCapacity [number] give the specific military industrial organization task capacity. Leaving out the id will apply the bonus to all MIOs
Agency.Autocomplete complete agency upgrades immediately
Agency.Instant make all agency activities instantaneous
Agency.InstantSlotUnlock recruiting agents doesn’t take any time
ai_accept Makes AI opponents accept all diplomatic offers
allowdiplo Removes all diplomacy rules, letting you freely use all diplomatic actions
Allowtraits Lets you freely assign traits to Generals and Admirals.
annex [country tag] or all Begin annexing the target country
civilwar [ideology] [target country tag] Create a civil war in the target country, instigated by one of four ideologies: ‘communism’, ‘fascism’, ‘democratic,’ or ‘neutral’
compliance [amount] increase compliance in the selected province
cp [amount] Increase your Command Power by a specified amount (capped to 100%)
debug_crash crash the game. Can be abbreviated to “crash”
debug_nuking Removes all nuke rules, letting you use nukes against any province
Decision.FastRemove decisions only take one day
Decision.NoChecks Lets you ignore Decision requirements
deleteallunits [country] wipe out all the armies and fleets in the specified country. Can be abbreviated to “delall”
deleteallunitsbut [country] wipe out all the armies and fleets on the world map, except for the specified country. Can be abbreviated to “delallbut”.
event [event ID] [country tag] Executes an event in the target country.
focus.autocomplete Instantly complete your National Focus. Can be abbreviated to “fa”
Focus.IgnorePrerequisites Lets you ignore National Focus prerequisites
Focus.NoChecks Lets you ignore National Focus requirements
force_operative_detection all your operatives and spies will be instantly detected
fow Removes fog of war. Toggle on or off
fuel [amount] Add a specified amount of fuel to your deposits
gain_xp [amount] Add a specified amount of XP to a selected General, Admiral, or Leader
gain_xp [trait] Add a specified trait to a selected General, Admiral, or Leader
help [command name] prints a list of all the console commands. Specifying one command will provide its description
instant_prepare Naval invasion preparations are instantaneous. Requires debug mode to be activated by entering tdebug into the command console
Instant_wargoal Lets you use any war goal without a justification
instantconstruction Toggles on/off instant construction for all tasks, including AI. Can be abbreviated to “ic”
instanttraining Divisions and ships are instantaneously trained. Can be abbreviated to “it”
manpower [amount] Adds a specified amount of manpower to your reserves
Nomapicons Removes icons from the map. Toggle on or off.
Nopausetext Removes text on the pause menu. Toggle on or off
nu [number] Adds the specified amount of National Unity to your pool
nuke [amount] Adds the specified number of nukes to your reserves
observe Makes you a spectator in the game
occupationpaint [country tag] toggles on occupation painting. When used with a country tag, it occupies all the land they own. Can be abbreviated to op
Operation.instant finish all operations
political_power [PP amount] Gain political power, or remove it if you use a negative number. Can be abbreviated to “pp”
pp [political power amount] Add a specified amount of political power to your pool
Prevent_operative_detection Prevents your operatives from being detected
puppet [country tag 1] [country tag 2] country 2 becomes the puppet of country 1
remove_ideas [idea name] removes a national idea
research [slot ID | all] Research a specified technology slot, or all technologies at once
research_on_icon_click Instantly research any technology you click on in the tech tree. Can be abbreviated to “roic”
resistance [amount] increases the resistance in the selected province
set_ruling_party [ideology group] Make the specified ideological group the ruling party, from ‘communism’, ‘fascism’, ‘democratic,’ or ‘neutral’
setcontroller [country tag] [province ID] Give control of a province to a specified country
setowner [country tag] Give ownership of a state to a specified country. Select the state with your cursor before entering the code
spawn [sub unit type] [province ID] [amount] Spawns the specified unit in a target province Requires debug mode to be activated by entering tdebug into the command console
st [amount] Increase your Government’s stability by a specified amount (capped to 100%)
tag [country tag] Change the country you’re playing as
tdebug toggle debug information on or off
teleport [province ID] Teleport all selected units to the target province.
whitepeace [country tags] Impose a White Peace between two specified countries. Can be abbreviated to “wp”
winwars Gives you the maximum war score for every current war
xp [XP amount] Add a specified amount of XP to your Army, Navy, and Air forces

And that’s all of ’em!

Hopefully you find some to deploy in your next alternate history WW2 that’ll either turn the tide in your favor, or at the very least make something silly, ahistorical, and entertaining happen. 

HOI4 console commands a standing on top of tank as it drives onto a beach

How to use Hearts of Iron 4 cheats

To use Hearts of Iron 4 cheats, you’ll first have to open the game’s command console. Load up a save file and press the TAB key to bring up the panel (the key might differ between keyboards, so try ~, `, “, or ^ if nothing happens). After that, simply type in the relevant console command code, and slam the enter button. Hey presto, you’ve just activated a cheat!

Some codes will require a ‘country tag’ or ‘state ID’ to use. Finding these is super easy using our HOI4 country tags guide, which lists every country tag in the game. Or, if you want to create more work for yourself, open the command console, enter tdebug, and hover your cursor over the relevant country to reveal an info panel. The country tag will be a three-letter code (e.g. POL for Poland), and its other IDs will be listed.

As a final word of advice, it’s best to save your game before entering a console command. They’re unlikely to corrupt your save file, but it would be a shame if you entered the wrong code by mistake, and cheated any more than you had to.

The best HOI4 cheats

If you’re just looking for a quick way to get ahead, these are the best HOI4 cheats that everyone should know about:

Cheat Code
HOI4 focus cheat focus.autocomplete (to complete)
Focus.NoChecks (to ignore requirements)
Focus.IgnorePrerequisites (to ignore prerequisites)
HOI4 resources cheat add_equipment [amount] [name]
fuel [amount]
nuke [amount]
HOI4 army experience cheat xp [amount]
HOI4 add equipment cheat add_equipment [amount] [name]
HOI4 research all cheat research all

If you’re on the lookout for codes, commands, and cheats for other PC games – hit up our sister site CodesDb for a massive database of the best free game codes.

Alternatively, you could take a Hearts of Iron break and check out our broader guides to the best WW2 games, the best grand strategy games, and the best 4x games available.