OGTOOLS

Hearts of Iron IV: Basic and view commands

These commands change the game's rules and what you see. Removing the fog of war lets you see the entire front. Observer mode lets you watch the war from the outside without playing any country, an interesting option if you are curious how historical scenarios play out.

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

Basic and view commands

5 codes
5 codes listed

Removes the fog of war

fow

You can see every unit and front on the map. Type the command again to bring the fog back.

PC

Switches to observer mode

observe

You watch the war from the outside without playing any country. Use the country switch command to come back.

PC

Completes the technology you click instantly

research_on_icon_click

After the command, clicking a technology in the research tree completes it instantly. Type it again to turn it off.

PC

Turns the AI on and off

ai

Stops every AI country from making decisions. Used for testing and setting up scenarios.

PC

Moves the selected unit anywhere

teleport

After typing the command, click a province on the map and the selected unit moves there.

PC

Basic and view commands: Common questions

Can I leave observer mode?
Yes, use the country switch command to take over any country you want. Observer mode is not permanent.
How does research on click work?
After you type the command, clicking a technology in the research tree completes it instantly. Type the command again to return to normal.
Is the delete units command dangerous?
It permanently deletes every army and fleet of the country you name, and this cannot be undone. Use it carefully so you do not delete your own army by accident.

Other HOI4 cheat categories