HOI4 Console Commands: Cheats For Better Gaming in 2021

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?

an image with how to enable console in hoi4 written on it

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

an image with hoi4 console commands written on it

Below is the list of 165 HOI4 console commands for you. We hope you can get better gaming experience by using those cheat codes.

NameSyntaxDescription
add_interestadd_interest [country tag]This command is used to add the country with the specified tag to your interest.
bloombloomThis command is used to toggle bloom.
SetRandomCountsetrandomcount [count]This command is used to set the random count to 0.
debug_eventsdebug_eventsThis command is used to initiate event counting, print data collected from this with the ‘debug_dumpevents’ command.
nudgenudgeThis command is used to open the nuge tool.
oosoosThis command is used to make the client go out of sync.
debug_texturedebug_textureThis command is used to toggle textures like bloom.
yesmanyesmanThis command is used to cause country AI to automatically accept any diplomatic offers, regardless of the case.
aiaiThis command is used to enable and disable AI.
debug_waterdebug_waterThis command is used to toggle water.
ai_acceptai_acceptThis command is used to toggle whether or not AI will always accept diplomacy.
timetimeThis command is used to print the current time.
reloadfxreloadfx [map / .fx file]This command is used to reload the game shaders.
hsvhsvThis command is used to convert HSV to RGB.
pppp [amount]This command is used to add the specified amount of political power to your country.
requestgamestaterequestgamestateThis command is used to print the gamestate.
gain_xpgain_xp [amount]This command is be used to add experience to a Leader/General.
debug_crashdebug_crashThis command is used to debug client crashes.
pause_in_hourspause_in_hours [hours]This command is used to paush the game after the specified amount of time.
research_on_icon_clickresearch_on_icon_clickThis command is used to research any technology instantly.
debug_smoothdebug_smoothThis command si used to toggle frame smoothing.
sleepsleep [duration]This command is used to pause the game for the specified amount of time in seconds.
reloadweatherreloadweather [seed]This command is used to reload weather.
helphelp [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_invasionai_invasionThis command is used to toggle the AI for naval invasion.
nukenuke [amount]This command is used to add the specified amount of nukes to your current country.
particle_editorparticle_editorThis command is sused to open the particle editor GUI.
whitepeacewhitepeace [country tag] [country tag]This command is used to make ‘white peace’ between the specified countries.
weatherweatherThis command is used to toggle weather.
debug_commandsdebug_commandsThis command is used to print the current ‘commandcount’ to the message.log file.
debug_terraindebug_terrainThis command is used to toggle terrain.
guiboundsguiboundsThis command is used to toggle the bounds debug GUI.
collisioncollisionThis command is used to toggle the collision debug GUI.
IPipThis command is used to print your IP to the console.
fowfow [province id]This command is used to toggle fog of war either in general, or in the province of the specified ID.
debug_dumpeventsdebug_dumpeventsThis command is used to print data collected since the ‘debug_events’ command was last executed.
fullscreenfullscreenThis command is used to toggle fullscreen mode.
errorerrorThis command is used to print errors from the log file.
reloadsupplyreloadsupplyThis command is used to reload all supply systems..
winwarswinwarsThis command is used to give your country the maximum war score for all wars it is currently engaged in.
Decision.NoChecksdecision.nochecksThis command is used to allow for the ignoring of decision requirements.
cityreloadcityreloadThis command is used to reload cities.
wsws [amount]This command is used toadd war support (max. 100%).
debug_lockcameradebug_lockcameraThis command is used to toggle the camera lock.
debug_achievements_cleardebug_achievements_clearThis command is used to clear all of your achievements and stats.
debug_postfxdebug_postfxThis command is used to toggle PostFX.
profilelogprofilelogThis command is used to output profiling data/information to ‘time.log’.
debug_bordersdebug_bordersThis command is used to toggle borders.
Focus.IgnorePrerequisitesfocus.ignoreprerequisitesThis command is used to allow for the ignoring of focus prerequisites.
trigger_docstrigger_docsThis command
testeventtestevent [event id] [character id]This command is used to test the specified ID without triggering it.
browserbrowser [url]This command is used to open the browser window and loads the specified URL.
debug_particledebug_particleThis command is used to toggle particles.
debug_air_vs_landdebug_air_vs_landThis command is used to toggle debug mode for air vs land combat.
add_latest_equipmentadd_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.
spawnactorspawnactor [name] [province id] [animation]This command is used to spawn an actor.
aiviewaiviewThis command is used to toggle debug info for the AI.
mapmodemapmode [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).
createleancreateleanThis command is used to generate LEAN textures.
goto_provincegoto_province [province id]This command is used to move the center of your camera to the specified province.
moveunitmoveunit [unit id] [province id]This command is used to move the specified unit to the specified province.
theatersrebuildtheatersrebuildThis command is used to rebuild all existing theatres.
allowdiploallowdiploThis command is used to allow for the use of any diplomatic action without justification.
occupationpaintoccupationpaint [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.
observeobserveThis command is used to enter you into ‘observe’ mode.
nightnightThis command is used to toggle night.
remove_interestremove_interest [country tag]This command is used to remove the country with the specified tag from your interest.
annexannex [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_linesdebug_linesThis command is used to toggle debug lines.
eventevent [event id] [country tag]This command is used tostart the specified event in the specified country.
civilwarcivilwar [ideology] [country tag]This command is used to start a civil war within a country, with the specified ideology.
tagtag [country tag]This command is used to switch your country to the specified country.
debug_ai_budgetdebug_ai_budget [country tag]This command is used to print AI budget information to the console.
nextsongnextsongThis command is used to skip to the next soundtrack in the in-game music playlist.
debug_nukingdebug_nukingAfter executing this command, nuking in any province is permitted, regardless of conditions.
tweakerguitweakerguiThis command is used to open a tweaker GUI.
Focus.NoChecksfocus.nochecksThis command is used to allow for the ignoring of focus requirements.
debug_frontsdebug_frontsThis command is used to toggle the interpolated fronts debug screen.
add_diploadd_diploThis command is used to add diplomatic enroute for your current country.
instantconstructioninstantconstructionThis command is used to toggle the instant construction cheat, making all construction happen instantly.
massconquermassconquerThis command is used to open the mass conquer tool.
debug_nomousedebug_nomouseThis command is used to toggle the scroll wheel’s (mouse) functionality.
browser_base_urlbrowser_base_url [url]This command is used to set the URL of the browser (loads a page).
human_aihuman_aiThis command is used to toggle AI for human countries.
tag_colortag_color [rgb]This command is be used to set the tag color of your current country.
setownersetowner [country tag] [state id]This command is used to set the owner of a specified state.
analyzetheatresanalyzetheatresThis command is used to check all threatres in the game for errors.
versionversionThis command is used to print the current version of the game to the console.
debug_typesdebug_typesThis command is used to print the data type for all dynamic reference objects to console.
debug_assertdebug_assertThis command is used to toggle asserts.
debug_entitiesdebug_entitiesThis command is used to toggle entities.
add_autonomyadd_autonomy [country tag] [amount]This command is used to add or subtracts from a the specified country’s autonomy level.
debug_zoomdebug_zoomThis command is used tocause the game to zoom in.
aircombataircombat [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.
reloadinterfacereloadinterfaceThis command is used to reload the game interface.
rendertyperendertypeThis command is used to print the render type (backend) that is currently being used for your client.
srgbsrgbThis command is used to toggle color debugging.
debug_wireframedebug_wireframeThis command is used to toggle the game’s forced wireframe.
update_locupdate_loc [localisation key]This command is used to reload the specified localisation key.
nopausetextnopausetextThis command is used to toggle the visibility of the pause menu (useful for screenshots).
runrun [file name]This command is used to run a list of commands in a specified file.
windowwindow [open / close] [gui name]This command is used to open (‘open’) or closes (‘close’) the GUI with the specified name.
mapnamesmapnamesThis command is used to toggle map names.
reloadtechnologiesreloadtechnologiesThis command is used to reload all technologies.
flagsoutputflagsoutput [path]This command is used togenerate and save a texture atlas file to the specified path.
PostEffectVolumes.Defaultposteffectvolumes.default [post effect]This command is be used to enable and disable a specific post effect, relative to the specified name.
debug_tacticsdebug_tacticsThis command is used to toggle the visibility of the tactics debug tooltip.
PrintSynchStuffprintsynchstuffThis command is used to print the current seed of your game.
cpcp [amount]This command is used to add command power (max. 100%).
stst [amount]This command is used to add stability (max. 100%).
xpxp [amount]This command is used to add the specified amount of experience.
deltatdeltat [speed multiplier]This command is used to change the speed of animations in the game.
filewatcherfilewatcherThis command is used to toggle the filewatcher.
savechecksavecheckThis 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’.
manpowermanpower [amount]This command is used to add the specific amount of man power to your country.
testtooltesttoolThis command is used to open the testing tool.
pollpollThis command is used to poll valid events.
aidumpaidumpThis command is used to dump AI data from your currently selected unit to a log file.
pricespricesThis command is used to print price info to game.log.
3dstats3dstatsThis command is used to toggle 3D stats.
updateequipmentsupdateequipmentsThis command is used to reload equipment-related files forcefully.
debug_off_front_snapdebug_off_front_snapThis command is used to toggle the offensive fronts snapping debug screen.
goto_stategoto_state [state id]This command is used to move the center of your camera to the specified state.
reloadreload [file name]This command is be used to reload a file without opening and closing your game.
traderoutestraderoutesThis command is used to toggle the visibility of trade routes.
nunu [amount]This command is used to add the specified amount of naval utility to your naval utility count.
updatesubunitsupdatesubunitsThis command is used to reload unit-related files forcefully.
resignresignThis command is used to cause you to resign from your current position.
add_party_popularityadd_party_popularity [ideology group] [amount]This command is used to add the specified amount of party popularity to the specified ideology group.
debug_infodebug_infoThis command is used to toggle the debug info screen.
deleteallunitsdeleteallunits [country tag]This command is used to delete all units of the specified country tag.
nomapiconsnomapiconsThis command is used to toggle the visibility of icons in the map.
set_ruling_partyset_ruling_party [ideology group]This command is used to set the specified ideology group as the ruling party.
building_healthbuilding_health [building type] [state id / province id] [level] [amount]This command is be used to modify the health of an existing building.
add_opinionadd_opinion [source country tag] [target country tag]This command is used to add an opinion from the specified country tag to another country.
cameraclampcameraclampThis command is used to toggle the camera clamp.
debug_tooltipdebug_tooltipThis command is used to toggle tooltips.
savegamesavegameThis command is used to save the game forcefully.
debug_skydebug_skyThis command is used to toggle the sky.
frontsfrontsThis command is used to toggle the visibility of foreign fronts.
provtooltipdebugprovtooltipdebugThis 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.
teleportteleport [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_noguidebug_noguiThis command is used to toggle the game GUI.
airealismairealismThis command is used to toggle realistic AI for the game.
tdebugtdebugThis 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_texturesdebug_texturesThis command is used to print texture debug information to the game log (not console.
debug_treesdebug_treesThis command is used to toggle trees.
setcontrollersetcontroller [country tag] [province id]This command is used to set the controller of a specified province.
combatsoundcombatsound [frequency]This command is be used to modify the frequency of a random sound being emitted from the combat view.
debug_volumedebug_volume [volume]This command is used to to adjust the volume of the game.
add_equipmentadd_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_IDdebug_show_event_idThis command is used to print the current event ID.
helploghelplogThis command is used to output a list of all commands to the game.log file.
debug_riversdebug_riversThis command is used to toggle rivers.
researchresearch [slot id / ‘all’]This command is used to to research all equipment, or equipment in a specific technology slot.
add_coreadd_core [state id] [country tag]This command is used to add the specified state as a ‘core’ of the specified country.
allowtraitsallowtraitsThis command is used to remove restrictions on general trait assignment.
add_ideasadd_ideas [idea name]This command is used to add the idea with the specified ID/name to your current country.
reloadoobreloadoob [country tag]This command is used to reload the OOB (order of battle) of the country with the specified tag.
Focus.AutoCompletefocus.autocompleteThis command is used to allow for instant completion of national focuses. Note that this command will affect the game’s AI.
hdrhdrThis command is used to toggle high-dynamic-range imaging.
debug_diploactionsdebug_diploactionsThis command is used toinitiate diplomatic action logging, print data collected from this with the ‘debug_dumpdiploactions’ command.
hdr_debughdr_debugThis command is used to toggle high-dynamic-range imaging debugging.
debug_dumpdiploactionsdebug_dumpdiploactionsThis command is used toprint data collected since the ‘debug_dumpdiploactions’ command was last executed.
debug_citiesdebug_citiesThis command is used to toggle cities painting mode.

Frequently Asked Questions About HOI4

an image with frequently asked questions about hoi4 written on it

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.

Leave a Comment