OGTOOLS

Hearts of Iron IV: Diplomacy commands

These commands turn the diplomacy table completely in your favor. The no war goal command lets you declare war on any country without a justification. The country switch command lets you take over another country in the middle of the game, which is perfect for testing scenarios.

5 codes all HOI4 codes

Most codes here need cheats turned on first. See the section on how to open the console.

add_political_power 1000

Diplomacy commands

5 codes
5 codes listed

Annexes a country

annex TUR

Adds all the territory of the country with the three-letter tag at the end to yours. No war needed, just one command.

It completely breaks the game's balance, so we recommend trying it on a separate save.
PC

Switches the country you play

tag TUR

You take over the country with the three-letter tag at the end. Your old country is left to the AI.

PC

Lets you declare war without a war goal

nocb

You can declare war on any country without justifying a war goal first. Type the command again to turn it off.

PC

Makes the AI say yes to every offer

yesman

The AI accepts every diplomatic offer. Alliances, military access and peace all take a single click.

PC

Makes a white peace between two countries

whitepeace TUR GER

Ends the war between the two country tags you type without any territory changing hands.

PC

Diplomacy commands: Common questions

How do I use the country switch command?
Type the country's three-letter tag at the end of the command, for example TUR for Türkiye. The game puts you in charge of that country, and your old country is left to the AI.
What does the annex command do?
It adds all the territory of the country you type to yours, with a single command and without declaring war. Use it carefully, as it completely breaks the game's balance.
What is the AI agreement command for?
The AI starts accepting every diplomatic offer. Forming alliances, getting military access and making peace all take a single click.

Other HOI4 cheat categories