中文

HOI4 cheats

The 35 cheat commands worth knowing, each with a line you can paste into the console.

Press the key left of 1, under Esc: ~ on a US keyboard, § or ^ on many European ones, ё on a Russian one. Type a command and press Enter. Cheats turn off achievements for that game, and they do not work in Ironman or multiplayer.

Need the line for another country, state or piece of equipment? The command builder fills it in from the game's lists.

Political power, manpower and equipment

Type thisWhat it does
pp 500Adds political power. Use a minus number to take it away.
cp 100Adds command power.
manpower 1000000Adds manpower to your pool.
xp 500Adds army, navy and air experience at once.
add_equipment 1000 infantry_equipment_1Puts equipment in your stockpile: the amount, then the equipment ID from the equipment list.
add_latest_equipment 1000Adds that many of the newest model of every equipment type you have researched.
st 20Raises stability by the amount you give. A minus number lowers it.
ws 20Raises war support. A minus number lowers it.
nuke 10Adds nuclear bombs.

Research, construction and focuses

Type thisWhat it does
research allFinishes every technology. With a slot number it finishes the one in that slot.
roicAfter this, clicking a technology in the tree researches it at once.
icTurns instant construction on or off.
Focus.AutoCompleteEvery national focus you pick finishes at once. Type it again to turn it off.
Focus.IgnorePrerequisitesLets you pick a focus without the ones before it.
Focus.NoChecksSkips the conditions a focus asks for.
Decision.NoChecksSkips the conditions of decisions.
allowtraitsLets generals and admirals learn every trait.
gain_xp 500Gives experience to the selected general or admiral.

Countries, war and peace

Type thisWhat it does
tag GERSwitches you to another country. The country tags list has every tag.
annex POLAnnexes the country with that tag.
wp ENGMakes white peace with the countries you name.
setowner GER 64Gives a state to a country: the tag, then the state ID.
setcontroller GER 6521Gives control of a province: the tag, then the province ID.
set_ruling_party communismChanges your ruling party: democratic, communism, fascism or neutrality.
add_party_popularity fascism 30Adds popularity to one party.
civilwar communismStarts a civil war with the ideology you give.
yesmanThe AI accepts every diplomatic offer. Type it again to turn it off.
allowdiploLets you use any diplomatic action, rules or not, such as declaring war without a war goal.
aiTurns the AI off or back on.
observeStops playing any country and watches the game.

Map, events and IDs

Type thisWhat it does
event germany.22 GERFires an event by its ID, here the one where Lithuania hands over Memel. A country tag after the ID picks who gets it.
instanteventsEvents that wait a random time fire straight away.
fowTurns the fog of war off or on.
tp 6521Moves the selected armies or ships to a province.
tdebugShows province and state IDs in the map tooltip.

There are 317 commands in total. The full list with every argument is on the console commands page.

Spotted a mistake on this page, or have an idea for the site?