HOI4 Commands
HOI4 Commands
About HOI4 Commands
Copyright © 2020 and HOI4 Commands. All Rights Reserved.

All content on this website ("the Site") is the property of HOI4 Commands. The collection and assembly of content on this Site are the exclusive property of HOI4 Commands and are protected by copyright and other intellectual property laws. This website is not affiliated with Hearts of Iron IV or Paradox Interactive. All copyrights reserved to their respective owners. We do not assert any claim of copyright for Hearts of Iron IV. We are a fan site.



To open the command console in Hearts of Iron 4, press the ~ key to open the console. The ~ key is usually below the Esc key and to the left of the 1 key.

Click on a command to learn more.

Disclaimer: Because commands can sometimes make unexpected changes to your game, it is recommended that you save your game before using any commands.
add_equipment(ae) [] [] add_equipment(ae) [] [] Adds equipment
add_latest_equipment(ale) [] add_latest_equipment(ale) [] Gives player amount of latest equipment variants
add_opinion [] add_opinion [] Add opinion to/from tag
add_party_popularity add_party_popularity Adds party popularity
allowdiplo(adiplo,nocb) allowdiplo(adiplo,nocb) Allows to use all diplomatic actions for no matter the rules.
annex [] annex [] Begin annex/annexes the specified tag
civilwar [] [] civilwar [] [] Spawns a civil war
debug_nuking debug_nuking Allows to nuke every province without checking any conditions.
event [event id] [] event [event id] [] Executes an event
Focus.AutoComplete Focus.AutoComplete Allows national focuses to be instantly finished
Focus.NoChecks Focus.NoChecks Ignores focus requirements
help [command name] help [command name] Print out all console commands or a specific command description.
instant_prepare instant_prepare Instantly prepares naval invasions
instantconstruction(ic) instantconstruction(ic) Toggles instant construction cheat.
manpower [] manpower [] Adds manpower to player
nu [number] nu [number] Adds the specified amount of National Unity
nuke [number] nuke [number] Adds nuke
observe(spectator) observe(spectator) Switches to play no country at all, and no longer shows messages or pauses the game. However, it also interferes with AI performance and is not a good indication of what the AI will do if observe mode is not used.
occupationpaint(op) occupationpaint(op) Toggles occupation painting
pp(fuhrer_mana,political_power) [PP amount] pp(fuhrer_mana,political_power) [PP amount] Gives political power to player
research [ or "all"] research [ or "all"] Researches a technology from research slot or all.
research_on_icon_click research_on_icon_click Research a technology when clicking on technology tree icon
set_ruling_party set_ruling_party Sets ruling party
setcontroller [country tag] [province id] setcontroller [country tag] [province id] Sets province controller
setowner [country tag] [state id] setowner [country tag] [state id] Sets state owner
spawn [] [] [] spawn [] [] [] Spawns a unit in a province
tag [] tag [] Switch tag to another country
whitepeace(wp) [] whitepeace(wp) [] White peace with the specified countries.
winwars winwars Gives max war score in all wars for the country
xp [XP amount] xp [XP amount] Gives Army, navy and air experience to player
rendertype rendertype Reports what render backend is used
tweakergui tweakergui Spawns a tweaker GUI
add_ideas [] add_ideas [] Adds ideas with to the country
reload [file name] reload [file name] Reloads assets
time time What time is it?
reloadfx [Arguments: map/mapname/postfx or *.fx filename] reloadfx [Arguments: map/mapname/postfx or *.fx filename] Reloads the shader
particle_editor particle_editor Spawns a particle editor
testtool(test) testtool(test) Testing tool.
analyzetheatres(anth) analyzetheatres(anth) Analyze theatres for errors.
massconquer(massc) massconquer(massc) Mass conquer tool.
deleteallunits(delall) deleteallunits(delall) Delete all armies and fleets of the specified countries.
aircombat(airc) [] [] [] [] [] [] [] [] [] aircombat(airc) [] [] [] [] [] [] [] [] [] Spawns an air combat in desired location.
teleport(tp) [] teleport(tp) [] Teleports selected armies or ships to the specified province
theatersrebuild(trebuild) theatersrebuild(trebuild) Rebuilds all theatres in the world. All orders will be cleaned.
fronts fronts Toggle visibility of the foreign fronts
aidump aidump Dump AI front data to log file, needs to have a unit selected
traderoutes traderoutes Toggle visibility of trade routes
debug_tactics debug_tactics Toggle visibility of debug tooltip for tactics
reloadsupply(relsup) reloadsupply(relsup) Reinitializes the supply systems.
deltat [] deltat [] control animation speeds
building_health(bhealth) [] [] [] [] building_health(bhealth) [] [] [] [] Changes specified building health
nomapicons nomapicons Toggles map icons.
nopausetext nopausetext Toggles the pausebanner for nicer screenshots.
nextsong nextsong Changes the currently playing soundtrack.
combatsound combatsound How often does the combat view give a random sound? 0-50
morehumans(humans) [num] morehumans(humans) [num] Adds more humans
window(wnd) [Arguments: open/close] [window gui name] window(wnd) [Arguments: open/close] [window gui name] Opens or closes the specified window
reloadinterface reloadinterface Reloads the entire interface
reloadtechnologies reloadtechnologies Reloads the technology database
updateequipments updateequipments Updates the equipment database
updatesubunits updatesubunits Updates the subunit database
reloadoob [] reloadoob [] Reloads OOBs
update_loc [localization tag] update_loc [localization tag] Updates the localization tag file
poll poll Polls valid Events
pause_in_hours pause_in_hours Pauses the game after X hours have passed after command is called
add_autonomy [] [num] add_autonomy [] [num] Changes a country's autonomy level
testevent [] [] testevent [] [] Tests an event without triggering it
resign resign Resign from the game
add_interest [] add_interest [] Add specified country tag to your interest
remove_interest [] remove_interest [] Removes specified country tag from your interest
add_diplo add_diplo Adds diplomatic entroute
PrintSynchStuff PrintSynchStuff Prints random count and seed
SetRandomCount SetRandomCount Sets the randomcount to 0 or arg
ai ai Toggles the AI on or off
human_ai human_ai Toggles AI for Human countries
ai_invasion ai_invasion Toggles AI AI naval invasions
ai_accept(yesman) ai_accept(yesman) Toggles AI always accept diplomacy
fow(debug_fow) [ OPTIONAL] fow(debug_fow) [ OPTIONAL] Turns off fog of war in a province or in general
collision(debug_collision) collision(debug_collision) Toggles debug display of normals/bounding boxes/collision
savegame savegame Creates a savefile.
savecheck savecheck Makes a save file (Test_01), loads the save file, makes a new savegame (Test_02). Those save files should look the same.
IP IP Shows your IP
requestgamestate requestgamestate Requests the gamestate from host
nudge nudge Go to the nudge tool
mapmode [Mapmode type (int)] mapmode [Mapmode type (int)] Change mapmode.
fullscreen fullscreen Toggles fullscreen
prices prices Price Info
add_core [] [] add_core [] [] Add core
remove_core [] [] remove_core [] [] Remove core. Note:Does not Work
debug_zoom debug_zoom Zooms in the game
debug_types debug_types Will print the data type for all dynamic reference objects. Can only be used if using RTTI.
debug_show_event_ID debug_show_event_ID Shows event ID
debug_commands debug_commands Printing commandcount to message.log
debug_events debug_events Start Counting events
debug_dumpevents debug_dumpevents Dump Event data to game log
debug_diploactions debug_diploactions Start Counting diplomatic actions
debug_dumpdiploactions debug_dumpdiploactions Dump diplomatic action data to game log
debug_assert debug_assert Toggles asserts on/off
debug_smooth debug_smooth Toggle framesmoothing
debug_nomouse debug_nomouse Toggles mouse scrollwheel on/off
debug_terrain debug_terrain Toggles Terrain on/off
debug_cities debug_cities Toggles Cities painting mode on/off
debug_water debug_water Toggles Water on/off
debug_fronts debug_fronts Toggles interpolated fronts debug
debug_off_front_snap(dbg_fsnap) debug_off_front_snap(dbg_fsnap) Toggles offensive fronts snapping debug
debug_borders debug_borders Toggles Borders on/off
debug_trees debug_trees Toggles Trees on/off
debug_rivers debug_rivers Toggles Rivers on/off
debug_postfx debug_postfx Toggles PostFX on/off
debug_sky debug_sky Toggles Sky on/off
debug_bloom debug_bloom Toggles Bloom on/off
debug_tooltip debug_tooltip Toggles Tooltips on/off
flagsoutput [] flagsoutput [] Creates texture atlas files from memory.
cityreload cityreload Reloads the cities
error error Show errors in log
version version Show current game version
debug_nogui debug_nogui Toggles GUI on/off
debug_volume [] debug_volume [] Modifies music volume
debug_lockcamera debug_lockcamera Toggles Camera locked on/off
debug_lines debug_lines Toggles Debuglines
debug_entities debug_entities Toggles Debug entities
debug_info debug_info Toggles Debug info
debug_particle debug_particle Toggles Particles Debug info
debug_ai_budget [CountryTag] debug_ai_budget [CountryTag] Show ai budget data
debug_textures debug_textures Writes Texture info to application debug log
debug_texture debug_texture draws textures like bloom
debug_wireframe debug_wireframe Toggles forced wireframe on/off
debug_achievements_clear debug_achievements_clear Clear all achievements and user stats
moveunit [] [] moveunit [] [] Moves a unit to a province
spawnactor [] [] [ OPTIONAL] spawnactor [] [] [ OPTIONAL] Spawns an actor with an optional animation
guibounds(gui) guibounds(gui) Toggles GUI bounds debug
cameraclamp cameraclamp Toggles the camera clamping
provtooltipdebug(tdebug) provtooltipdebug(tdebug) Toggles the debug info in province tooltip
reloadweather [] reloadweather [] Reload and regenerate weather
weather weather Toggle weather simulation
debug_air_vs_land(dbg_cas) debug_air_vs_land(dbg_cas) Toggle debug mode for air vs land combat.
mapnames mapnames Toggle map names
gbreload gbreload Reloads gradient borders
gbpaint [layer] [channel] gbpaint [layer] [channel] Toggles gradient border painting
profilelog profilelog Prints out the profiling informations into time.log
run run Runs the specified file with list of commands
oos oos Out of Synch
debug_crash(crash) debug_crash(crash) Crash!
sleep(wait) [time in sec] sleep(wait) [time in sec] Sleep
goto_province [province id] goto_province [province id] Centers to province
goto_state [state id] goto_state [state id] Centers to state
trigger_docs(effect_docs) trigger_docs(effect_docs) Print docs for triggers and effects
threat [Threat amount] threat [Threat amount] Adds or show threat level of player
3dstats 3dstats Toggles 3D Stats
hdr hdr Toggles hdr
hdr_debug hdr_debug Toggles hdr debugging
srgb srgb Toggles sRGB
bloom bloom Toggles bloom
PostEffectVolumes.Default [posteffect_values name] PostEffectVolumes.Default [posteffect_values name] Toggles default posteffect values
night night Toggles night
filewatcher filewatcher Toggles filewatcher
createlean createlean Create LEAN textures
helplog helplog Print out all console commands to game.log file.
helphelp helphelp Double Rainbow help.
hsv hsv Converts RGB to HSV
tag_color tag_color Test setting a country's color
browser [url] browser [url] Show browser window
browser_base_url [url] browser_base_url [url] Set browser base url
aiview aiview Enable AI debug info
pp [number] pp [number] Adds the specified amount of Political Power
airealism airealism Enable realistic AI
instant_wargoal instant_wargoal Will allow instant justificatiion of war goals on countries
set_country_flag [] set_country_flag [] Adds a country flag to currently played nation.
set_cosmetic_tag [] [] set_cosmetic_tag [] [] changes the name and flag of the country