Table of Contents
HOI4 (also known as Hearts of Iron 4) is the best game to play. But, it may not be easy for all to complete the challenges of the game.
Gamingrobo is here to introduce a list of 165 HOI4 console commands to make this game easy and entertaining for you.
Let’s start this helpful article with a short and sweet how-to guide to using console commands in this game.
How to Enable Console in HOI4?

You can simply press the tilde key (~ or `) on your keyboard to open the console window in HOI4. In case it doesn’t work, you can press shift + 1 or shift + 2 to open the console.
After opening the console, you can simply enter any of the hoi4 console commands of your choice and hit enter to close the window.
HOI4 Console Commands

Below is the list of 165 HOI4 console commands for you. We hope you can get better gaming experience by using those cheat codes.
Name | Syntax | Description |
add_interest | add_interest [country tag] | This command is used to add the country with the specified tag to your interest. |
bloom | bloom | This command is used to toggle bloom. |
SetRandomCount | setrandomcount [count] | This command is used to set the random count to 0. |
debug_events | debug_events | This command is used to initiate event counting, print data collected from this with the ‘debug_dumpevents’ command. |
nudge | nudge | This command is used to open the nuge tool. |
oos | oos | This command is used to make the client go out of sync. |
debug_texture | debug_texture | This command is used to toggle textures like bloom. |
yesman | yesman | This command is used to cause country AI to automatically accept any diplomatic offers, regardless of the case. |
ai | ai | This command is used to enable and disable AI. |
debug_water | debug_water | This command is used to toggle water. |
ai_accept | ai_accept | This command is used to toggle whether or not AI will always accept diplomacy. |
time | time | This command is used to print the current time. |
reloadfx | reloadfx [map / .fx file] | This command is used to reload the game shaders. |
hsv | hsv | This command is used to convert HSV to RGB. |
pp | pp [amount] | This command is used to add the specified amount of political power to your country. |
requestgamestate | requestgamestate | This command is used to print the gamestate. |
gain_xp | gain_xp [amount] | This command is be used to add experience to a Leader/General. |
debug_crash | debug_crash | This command is used to debug client crashes. |
pause_in_hours | pause_in_hours [hours] | This command is used to paush the game after the specified amount of time. |
research_on_icon_click | research_on_icon_click | This command is used to research any technology instantly. |
debug_smooth | debug_smooth | This command si used to toggle frame smoothing. |
sleep | sleep [duration] | This command is used to pause the game for the specified amount of time in seconds. |
reloadweather | reloadweather [seed] | This command is used to reload weather. |
help | help [command] | This command is used to print a list of commands (if used without arguments) but when executed with a command as an argument, it will print help for the specified command. |
ai_invasion | ai_invasion | This command is used to toggle the AI for naval invasion. |
nuke | nuke [amount] | This command is used to add the specified amount of nukes to your current country. |
particle_editor | particle_editor | This command is sused to open the particle editor GUI. |
whitepeace | whitepeace [country tag] [country tag] | This command is used to make ‘white peace’ between the specified countries. |
weather | weather | This command is used to toggle weather. |
debug_commands | debug_commands | This command is used to print the current ‘commandcount’ to the message.log file. |
debug_terrain | debug_terrain | This command is used to toggle terrain. |
guibounds | guibounds | This command is used to toggle the bounds debug GUI. |
collision | collision | This command is used to toggle the collision debug GUI. |
IP | ip | This command is used to print your IP to the console. |
fow | fow [province id] | This command is used to toggle fog of war either in general, or in the province of the specified ID. |
debug_dumpevents | debug_dumpevents | This command is used to print data collected since the ‘debug_events’ command was last executed. |
fullscreen | fullscreen | This command is used to toggle fullscreen mode. |
error | error | This command is used to print errors from the log file. |
reloadsupply | reloadsupply | This command is used to reload all supply systems.. |
winwars | winwars | This command is used to give your country the maximum war score for all wars it is currently engaged in. |
Decision.NoChecks | decision.nochecks | This command is used to allow for the ignoring of decision requirements. |
cityreload | cityreload | This command is used to reload cities. |
ws | ws [amount] | This command is used toadd war support (max. 100%). |
debug_lockcamera | debug_lockcamera | This command is used to toggle the camera lock. |
debug_achievements_clear | debug_achievements_clear | This command is used to clear all of your achievements and stats. |
debug_postfx | debug_postfx | This command is used to toggle PostFX. |
profilelog | profilelog | This command is used to output profiling data/information to ‘time.log’. |
debug_borders | debug_borders | This command is used to toggle borders. |
Focus.IgnorePrerequisites | focus.ignoreprerequisites | This command is used to allow for the ignoring of focus prerequisites. |
trigger_docs | trigger_docs | This command |
testevent | testevent [event id] [character id] | This command is used to test the specified ID without triggering it. |
browser | browser [url] | This command is used to open the browser window and loads the specified URL. |
debug_particle | debug_particle | This command is used to toggle particles. |
debug_air_vs_land | debug_air_vs_land | This command is used to toggle debug mode for air vs land combat. |
add_latest_equipment | add_latest_equipment [amount] | This command is used to add the specified amount of equipment to each and every piece of equipment you have unlocked/fully researched. |
spawnactor | spawnactor [name] [province id] [animation] | This command is used to spawn an actor. |
aiview | aiview | This command is used to toggle debug info for the AI. |
mapmode | mapmode [mapmode id] | This command is used to change the map mode to the specified type. Map mode IDs: 1 (Default), 2 (Naval), 3 (Air), 4 (Supply), 5 (State), 6 (Resistance), 7 (Resource), 8 (Diplomacy), 9 (Faction). |
createlean | createlean | This command is used to generate LEAN textures. |
goto_province | goto_province [province id] | This command is used to move the center of your camera to the specified province. |
moveunit | moveunit [unit id] [province id] | This command is used to move the specified unit to the specified province. |
theatersrebuild | theatersrebuild | This command is used to rebuild all existing theatres. |
allowdiplo | allowdiplo | This command is used to allow for the use of any diplomatic action without justification. |
occupationpaint | occupationpaint [country tag] | This command is used to toggle occupation painting. If the country tag argument is provided, your country will occupy all land that the specified country owns. |
observe | observe | This command is used to enter you into ‘observe’ mode. |
night | night | This command is used to toggle night. |
remove_interest | remove_interest [country tag] | This command is used to remove the country with the specified tag from your interest. |
annex | annex [country tag / ‘all’] | This command is used to start an annex with the specified country tag (an annex claims their territory for your country). |
debug_lines | debug_lines | This command is used to toggle debug lines. |
event | event [event id] [country tag] | This command is used tostart the specified event in the specified country. |
civilwar | civilwar [ideology] [country tag] | This command is used to start a civil war within a country, with the specified ideology. |
tag | tag [country tag] | This command is used to switch your country to the specified country. |
debug_ai_budget | debug_ai_budget [country tag] | This command is used to print AI budget information to the console. |
nextsong | nextsong | This command is used to skip to the next soundtrack in the in-game music playlist. |
debug_nuking | debug_nuking | After executing this command, nuking in any province is permitted, regardless of conditions. |
tweakergui | tweakergui | This command is used to open a tweaker GUI. |
Focus.NoChecks | focus.nochecks | This command is used to allow for the ignoring of focus requirements. |
debug_fronts | debug_fronts | This command is used to toggle the interpolated fronts debug screen. |
add_diplo | add_diplo | This command is used to add diplomatic enroute for your current country. |
instantconstruction | instantconstruction | This command is used to toggle the instant construction cheat, making all construction happen instantly. |
massconquer | massconquer | This command is used to open the mass conquer tool. |
debug_nomouse | debug_nomouse | This command is used to toggle the scroll wheel’s (mouse) functionality. |
browser_base_url | browser_base_url [url] | This command is used to set the URL of the browser (loads a page). |
human_ai | human_ai | This command is used to toggle AI for human countries. |
tag_color | tag_color [rgb] | This command is be used to set the tag color of your current country. |
setowner | setowner [country tag] [state id] | This command is used to set the owner of a specified state. |
analyzetheatres | analyzetheatres | This command is used to check all threatres in the game for errors. |
version | version | This command is used to print the current version of the game to the console. |
debug_types | debug_types | This command is used to print the data type for all dynamic reference objects to console. |
debug_assert | debug_assert | This command is used to toggle asserts. |
debug_entities | debug_entities | This command is used to toggle entities. |
add_autonomy | add_autonomy [country tag] [amount] | This command is used to add or subtracts from a the specified country’s autonomy level. |
debug_zoom | debug_zoom | This command is used tocause the game to zoom in. |
aircombat | aircombat [scenario] [result] [province id] [airbase state id] [airbase state id] [equipment] [equipment] [equipment creator] [equipment creator] | This command is used to initiate an air combat in the specified location from your desired country, airbase and equipment. |
reloadinterface | reloadinterface | This command is used to reload the game interface. |
rendertype | rendertype | This command is used to print the render type (backend) that is currently being used for your client. |
srgb | srgb | This command is used to toggle color debugging. |
debug_wireframe | debug_wireframe | This command is used to toggle the game’s forced wireframe. |
update_loc | update_loc [localisation key] | This command is used to reload the specified localisation key. |
nopausetext | nopausetext | This command is used to toggle the visibility of the pause menu (useful for screenshots). |
run | run [file name] | This command is used to run a list of commands in a specified file. |
window | window [open / close] [gui name] | This command is used to open (‘open’) or closes (‘close’) the GUI with the specified name. |
mapnames | mapnames | This command is used to toggle map names. |
reloadtechnologies | reloadtechnologies | This command is used to reload all technologies. |
flagsoutput | flagsoutput [path] | This command is used togenerate and save a texture atlas file to the specified path. |
PostEffectVolumes.Default | posteffectvolumes.default [post effect] | This command is be used to enable and disable a specific post effect, relative to the specified name. |
debug_tactics | debug_tactics | This command is used to toggle the visibility of the tactics debug tooltip. |
PrintSynchStuff | printsynchstuff | This command is used to print the current seed of your game. |
cp | cp [amount] | This command is used to add command power (max. 100%). |
st | st [amount] | This command is used to add stability (max. 100%). |
xp | xp [amount] | This command is used to add the specified amount of experience. |
deltat | deltat [speed multiplier] | This command is used to change the speed of animations in the game. |
filewatcher | filewatcher | This command is used to toggle the filewatcher. |
savecheck | savecheck | This command is be used to check that saving is functioning correctly. It will make a save file named ‘Test_01’, load it, and then save that again as ‘Test_02’. |
manpower | manpower [amount] | This command is used to add the specific amount of man power to your country. |
testtool | testtool | This command is used to open the testing tool. |
poll | poll | This command is used to poll valid events. |
aidump | aidump | This command is used to dump AI data from your currently selected unit to a log file. |
prices | prices | This command is used to print price info to game.log. |
3dstats | 3dstats | This command is used to toggle 3D stats. |
updateequipments | updateequipments | This command is used to reload equipment-related files forcefully. |
debug_off_front_snap | debug_off_front_snap | This command is used to toggle the offensive fronts snapping debug screen. |
goto_state | goto_state [state id] | This command is used to move the center of your camera to the specified state. |
reload | reload [file name] | This command is be used to reload a file without opening and closing your game. |
traderoutes | traderoutes | This command is used to toggle the visibility of trade routes. |
nu | nu [amount] | This command is used to add the specified amount of naval utility to your naval utility count. |
updatesubunits | updatesubunits | This command is used to reload unit-related files forcefully. |
resign | resign | This command is used to cause you to resign from your current position. |
add_party_popularity | add_party_popularity [ideology group] [amount] | This command is used to add the specified amount of party popularity to the specified ideology group. |
debug_info | debug_info | This command is used to toggle the debug info screen. |
deleteallunits | deleteallunits [country tag] | This command is used to delete all units of the specified country tag. |
nomapicons | nomapicons | This command is used to toggle the visibility of icons in the map. |
set_ruling_party | set_ruling_party [ideology group] | This command is used to set the specified ideology group as the ruling party. |
building_health | building_health [building type] [state id / province id] [level] [amount] | This command is be used to modify the health of an existing building. |
add_opinion | add_opinion [source country tag] [target country tag] | This command is used to add an opinion from the specified country tag to another country. |
cameraclamp | cameraclamp | This command is used to toggle the camera clamp. |
debug_tooltip | debug_tooltip | This command is used to toggle tooltips. |
savegame | savegame | This command is used to save the game forcefully. |
debug_sky | debug_sky | This command is used to toggle the sky. |
fronts | fronts | This command is used to toggle the visibility of foreign fronts. |
provtooltipdebug | provtooltipdebug | This command is used to toggle province tooltip debug info. The debug info includes things like province ID, state ID, etc when you hover over a province on the map. |
teleport | teleport [province id] | This command is be used to either activate the teleportation tool, or instantly teleport any selected ships or armies to the province with the specified ID. |
debug_nogui | debug_nogui | This command is used to toggle the game GUI. |
airealism | airealism | This command is used to toggle realistic AI for the game. |
tdebug | tdebug | This command is used to toggle debug mode. In debug mode, IDs for things like states, equipment, provinces, etc are shown when you hover over them which are very useful as they are used in console commands. |
debug_textures | debug_textures | This command is used to print texture debug information to the game log (not console. |
debug_trees | debug_trees | This command is used to toggle trees. |
setcontroller | setcontroller [country tag] [province id] | This command is used to set the controller of a specified province. |
combatsound | combatsound [frequency] | This command is be used to modify the frequency of a random sound being emitted from the combat view. |
debug_volume | debug_volume [volume] | This command is used to to adjust the volume of the game. |
add_equipment | add_equipment [amount] [equipment name] | This command is used to to add a specified amount of any equipment other than naval equipment. You can remove equipment by specifying a negative amount. |
debug_show_event_ID | debug_show_event_id | This command is used to print the current event ID. |
helplog | helplog | This command is used to output a list of all commands to the game.log file. |
debug_rivers | debug_rivers | This command is used to toggle rivers. |
research | research [slot id / ‘all’] | This command is used to to research all equipment, or equipment in a specific technology slot. |
add_core | add_core [state id] [country tag] | This command is used to add the specified state as a ‘core’ of the specified country. |
allowtraits | allowtraits | This command is used to remove restrictions on general trait assignment. |
add_ideas | add_ideas [idea name] | This command is used to add the idea with the specified ID/name to your current country. |
reloadoob | reloadoob [country tag] | This command is used to reload the OOB (order of battle) of the country with the specified tag. |
Focus.AutoComplete | focus.autocomplete | This command is used to allow for instant completion of national focuses. Note that this command will affect the game’s AI. |
hdr | hdr | This command is used to toggle high-dynamic-range imaging. |
debug_diploactions | debug_diploactions | This command is used toinitiate diplomatic action logging, print data collected from this with the ‘debug_dumpdiploactions’ command. |
hdr_debug | hdr_debug | This command is used to toggle high-dynamic-range imaging debugging. |
debug_dumpdiploactions | debug_dumpdiploactions | This command is used toprint data collected since the ‘debug_dumpdiploactions’ command was last executed. |
debug_cities | debug_cities | This command is used to toggle cities painting mode. |
Frequently Asked Questions About HOI4

Are there cheats for HOI4?
Yes, there are cheats for this game which you can find on the above table.
Is HOI4 coming to console?
No, it will be limited to PC only.
How do I make HOI4 run faster?
Playing the game with low resolution or graphics makes your game faster and less heat is generated.
How do you spawn units in HOI4?
By using following command you can spawn units: spawn [unit name/id] [province id] [amount].
How do you switch countries in HOI4?
While the game is opening, click on country and you must be able to change it from there.
Can you play HOI4 on PS4?
No, as we said earlier, it will be limited to PC only.
Summary: I hope you enjoyed reading this article and found the HOI4 console commands helpful to make your gaming experience better. You can find console commands for other games here.