EU51.4.9 · unofficial

EU5 / Console commands

EU5 console commands

All 343 commands the console of Europa Universalis V knows, from the game's own command table. Each has what you type after it and a line you can copy.

From the game files: Europa Universalis V 1.4.9 (Río Salado), the 1 April 1337 start. Commands read from binaries/eu5.exe.

Build a command

Pick a command, then the country, location or key from the game's own lists, and copy the line.

Resources
Cheat modes
Country
War
Land
Diplomacy
Government
Ruler and faith
Events and time

Play as another country. The game's help: Change player to specific tag

tag FRA

Commands for one character, such as set_ruler or kill_character, want the character's ID number from the running game. The game files don't have those numbers, so they are not in the builder.

How do you open the console?

Press ` (the key left of 1) or Alt+C to open the console. The game binds the physical key, so it works whatever your keyboard prints on it. The key settings list it as "Console", where you can change it. Type help for the list inside the game, or help and a command name for one command. Tab completes a name as you type.

The console refuses cheats in ironman and in multiplayer with "Console command not available in multiplayer and ironman". We found that check in the code of 253 of these commands. 91 are also refused to observers, and fake_players works for the host only.

4 commands check for debug mode on their own: fake_players wants the game started with -debug_mode, and DebugCurrency, dialect_override, birth_age answer that they work in debug mode only. The engine command debug_mode turns debug mode on and off from the console.

Gold, manpower and the other resources

Each one adds the amount you type to your country.

CommandWhat you type after itHelp text in the gameLine to copy
Manpoweramountadds currency (Manpower)Manpower 10
Sailorsamountadds currency (Sailors)Sailors 10
cashamountadds currency (cash)cash 1000
Stabilityamountadds currency (Stability)Stability 10
WarExhaustionamountadds currency (WarExhaustion)WarExhaustion -5
Inflationamountadds currency (Inflation)Inflation -0.05
Prestigeamountadds currency (Prestige)Prestige 10
ArmyTraditionamountadds currency (ArmyTradition)ArmyTradition 5
NavyTraditionamountadds currency (NavyTradition)NavyTradition 5
GovernmentPoweramountadds currency (GovernmentPower)GovernmentPower 50
Karmaamountadds currency (Karma)Karma 10
ReligiousInfluenceamountadds currency (ReligiousInfluence)ReligiousInfluence 10
Purityamountadds currency (Purity)Purity 10
Honoramountadds currency (Honor)Honor 10
Doomamountadds currency (Doom)Doom 10
RitePoweramountadds currency (RitePower)RitePower 10
Yanantinamountadds currency (Yanantin)Yanantin 10
Righteousnessamountadds currency (Righteousness)Righteousness 10
Harmonyamountadds currency (Harmony)Harmony 10
SelfControlamountadds currency (SelfControl)SelfControl 10
PoliticalInfluenceamountadds currency (PoliticalInfluence)PoliticalInfluence 10

Cheat modes you switch on and off

Type the name once to turn the mode on and again to turn it off. The console answers "Cheat Enabled" or "Cheat Disabled".

CommandWhat you type after itHelp text in the gameLine to copy
YesMannothingtoggles the cheat mode YesManYesMan
NoMannothingtoggles the cheat mode NoManNoMan
WatchWindowsnothingtoggles the cheat mode WatchWindowsWatchWindows
LoadingScreennothingtoggles the cheat mode LoadingScreenLoadingScreen
InstantMovenothingtoggles the cheat mode InstantMoveInstantMove
InstantSiegenothingtoggles the cheat mode InstantSiegeInstantSiege
NoRandomnothingtoggles the cheat mode NoRandomNoRandom
FastDiplonothingtoggles the cheat mode FastDiploFastDiplo
DelayDiploReplynothingtoggles the cheat mode DelayDiploReplyDelayDiploReply
InstantWarnothingtoggles the cheat mode InstantWarInstantWar
InstantConstructionnothingtoggles the cheat mode InstantConstructionInstantConstruction
InstantConquistadorsnothingtoggles the cheat mode InstantConquistadorsInstantConquistadors
InstantCasusBellinothingtoggles the cheat mode InstantCasusBelliInstantCasusBelli
InstantExplorationnothingtoggles the cheat mode InstantExplorationInstantExploration
InstantMissionnothingtoggles the cheat mode InstantMissionInstantMission
InstantImplementationnothingtoggles the cheat mode InstantImplementationInstantImplementation
FastRebelsnothingtoggles the cheat mode FastRebelsFastRebels
ByPassRequirementsnothingtoggles the cheat mode ByPassRequirementsByPassRequirements
RemoveFogOfWarnothingtoggles the cheat mode RemoveFogOfWarRemoveFogOfWar
no_peace_dealsnothingtoggles the cheat mode no_peace_dealsno_peace_deals
fast_expeditionsnothingtoggles the cheat mode fast_expeditionsfast_expeditions

Your country, its government and its subjects

CommandWhat you type after itHelp text in the gameLine to copy
observenothingstart observing the game Also works as ob.observe
t<CountryNamePrefix>
start of a country name
Change player to specific country name (only unique prefix needed)t Fran
tag<CountryTag>
country tag
Change player to specific tagtag BOH
start_annex<country-tag>
country tag
starts an annexation of the given countrystart_annex FRA
lose_to<country-tag>
country tag
makes the player lose to the target countrylose_to CAS
lend<CountryTag> <amount> <interest> <months>
country tag, amount, interest, months
lend money to target countrylend HUN 100 0 12
set_societal_value<societal_value> <position>
societal value key, position, a number
Sets the societal value set_societal_value centralization_vs_decentralization 50
estate_satisfaction<estate_type> <progress>
estate key, progress, a number
Adds satisfaction to an estateestate_satisfaction nobles_estate 10
estate_gold<estate_type> <gold>
estate key, gold
Adds gold to an estateestate_gold nobles_estate 100
bankrupt<CountryTag>
country tag
Bankrupts a nationbankrupt FRA
remove_bankruptcy<CountryTag>
country tag
Removes the bankruptcy modifier from a nationremove_bankruptcy POR
imperial_authority<amount>
amount
adds a imperial_authority to the hreimperial_authority 100
annex<CountryTag>
country tag
Player annexes a tagannex POR
reset_agendasnothingResets agendas in parliamentreset_agendas
set_flag<flag_definition>
flag definition
overrides this country's flagset_flag
make_subject<subject_type> <countrytag>
subject type key, country tag
makes subject out of a countrymake_subject vassal POL
change_country_type<country_type>
country type
changes the country typechange_country_type
change_dynastic_name<countrytag>
country tag
Changes dynastic name of a countrychange_dynastic_name POL
remove_location_from_all_ios<location_id>
location key
removes location from iosremove_location_from_all_ios paris
policy<policy>
policy key
changes a policy Also works as add_policy.policy by_tradition
liberty_desire<amount>
amount
Add liberty desireliberty_desire 100
parliament_support<amount>
amount
player gets parliament supportparliament_support 100
add_core<amount>
amount
Add a core location The argument hint is the one of parliament_support before it.add_core
integrate_allnothingIntegrates all provincesintegrate_all
finalise_resolution<ResolutionID>
ID from the running game
Finalizes a resolution in an IOfinalise_resolution
create_pu<CountryTag>
country tag
Creates a personal union with another countrycreate_pu POL
form_union<junior partner>
tag of the junior partner
Form a union with another countryform_union ENG
change_government<Government Type>
government type key
Change government of your country Also works as changeGov.change_government republic
parliament_issue<parliament_issue>
parliament issue key
Change parliament issue in your countryparliament_issue baronial_burghs_rights
end_parliament_issuenothingEnds a parliament issue in your country with successend_parliament_issue
enact_hre_policy<policy_key>
policy key
Force the HRE to enact the given policy. Finalises an active policy_vote if one is running, otherwise starts and resolves one in a single step.enact_hre_policy
recalc_connectivitytag
country tag
Recalculate subject territory connectivity for a country by tagrecalc_connectivity ENG

War, peace and conquest

CommandWhat you type after itHelp text in the gameLine to copy
cb<country-tag> <casus_belli>
country tag, casus belli key
add a cb on target country Also works as add_casus_belli, casus_belli.cb VEN cb_insulted_us
remove_truce<CountryTag>
country tag
Removes the truce between player and a tagremove_truce POR
add_truce<CountryTag>
country tag
Adds a truce between player and a tagadd_truce HUN
war_on_player<CountryTag>
country tag
A declaring country optionally followed by the victim (defaults to player)war_on_player SCO
declarewar<CountryTag>
country tag
A victim country optionally followed by attacker (defaults to player)declarewar ENG
win_siege<location>
location key
forces a siege to be won in the target locationwin_siege paris
add_siege_progress<location> <progress>
location key, progress, a number
adds siege progress to an ongoing siege Also works as add_siege_accumulation, add_siege_memory.add_siege_progress paris 10
join_war<warid> <countrytag>
ID from the running game, country tag
joins the war with given id on given countries sidejoin_war
occupy_location<location_id>
location key
occupies a location The game gives occupy_floodfill the same help text.occupy_location paris
occupy_floodfill<location_id>
location key
occupies a location The game gives occupy_location the same help text.occupy_floodfill paris
occupy_country<countrytag>
country tag
occupies a countryoccupy_country BOH
occupy_province<province>
province key
occupies a province, only locations belonging to nations at war with the playeroccupy_province pays_france_province
occupy_area<area>
area key
occupies an area, only locations belonging to nations at war with the playeroccupy_area ile_de_france_area
occupy_region<region>
region key
occupies a region, only locations belonging to nations at war with the playeroccupy_region france_region
occupy_war_enemiesnothingoccupies every war enemyoccupy_war_enemies
conquer<location_id>
location key
conquers an locationconquer paris
conquer_country<countrytag>
country tag
conquers a countryconquer_country BOH
conquer_province<province_definition>
province key
conquers a province definitionconquer_province pays_france_province
conquer_area<area>
area key
conquers an areaconquer_area ile_de_france_area
conquer_region<region>
region key
conquers a regionconquer_region france_region
antagonism[<location>] <value>
location (optional), number
Gives antagonism centred on nations capital or location parameter if supplied Also works as ae.antagonism 10

Armies and rebels

CommandWhat you type after itHelp text in the gameLine to copy
give_units<CountryTag>
country tag
Give select unit to target country The game gives mapmode the same help text.give_units VEN
kill_all_units<CountryTag>
country tag
kill all units in target countrykill_all_units ENG
kill_unit<UnitID>
ID from the running game
kill the unit with this ID, kills selected unit when no id is suppliedkill_unit
resupply_all_units<CountryTag>
country tag
max food for all units in target countryresupply_all_units ENG
recalc_supply_all_units<CountryTag>
country tag
recalculate supply paths for all units in target countryrecalc_supply_all_units ENG
damage_all_units<CountryTag>
country tag
damage all units in target countrydamage_all_units VEN
nibble_all_units<CountryTag>
country tag
damage a random amount of strength to all units in target countrynibble_all_units ENG
world_leviesnothingraise all levies in the worldworld_levies
rebel_progress<id> <progress>
ID from the running game, progress, a number
Adds rebel_progress to a rebelrebel_progress
all_rebels<progress>
progress, a number
Adds rebel_progress to all active rebels in player countryall_rebels 10
add_subunit<subunit_def>
subunit def
Adds a subunitadd_subunit
pirate<area>
area key
adds a pirate to the areapirate ile_de_france_area
revolt<rebel_id>
ID from the running game
A revolt starts in target countryrevolt

Diplomacy

CommandWhat you type after itHelp text in the gameLine to copy
subject_stance<CountryTag>, <Stance>
country tag, Stance
Set subject stance for tagsubject_stance
spy<CountryTag> <amount>
country tag, amount
adds spies to your network in a target country Also works as spies.spy POR 100
favor<CountryTag> <amount>
country tag, amount
adds favors in a target country Also works as favors.favor SCO 100
trust<CountryTag> <amount>
country tag, amount
adds trust in a target country Also works as trust_equilibrium, trust_eq.trust POR 100
opinion<CountryTag> <amount>
country tag, amount
Adds Opinion for target country versus playeropinion BOH 100
border_distance<CountryTag>
country tag
gets border distance between current and given countryborder_distance BOH
diplomats<amount>
amount
Gain diplomatic actionsdiplomats 100
calc_threat_level<CountryTag> <CountryTag>
country tag, country tag
Shows the threat level second nation poses to first nation 0-1calc_threat_level BUR SCO

Locations, buildings and the map

CommandWhat you type after itHelp text in the gameLine to copy
mapmode<MapMode>
MapMode
Give select unit to target country The game gives give_units the same help text.mapmode
building<building_type> <location>
building key, location key
Adds a building to a location Also works as add_building.building marketplace paris
update_employment<location>
location key
updated employment for a loctionupdate_employment paris
update_integration<location>
location key
updated integration for a loctionupdate_integration paris
colonize<location>
location key
creates a colony for target locations' provincecolonize paris
colonize_and_finish<location>
location key
creates a colony for target locations' province and then finishes the colonial charter immediatelycolonize_and_finish paris
finish_colony<location>
location key
finishes a colony for target locations' colonial charter The game gives finish_all_colonies the same help text.finish_colony paris
finish_all_coloniesnothingfinishes a colony for target locations' colonial charter The game gives finish_colony the same help text.finish_all_colonies
move_random_pop<source location> <destination location>
location the pop leaves, location it goes to
moves a random pop from source to destinationmove_random_pop paris orleans
population<location>
location key
changes a location's populationpopulation paris
finish_constructions<location>
location key
finish all constructions in a locationfinish_constructions paris
change_garrison<location>
location key
changes a location's garrisonchange_garrison paris
freeze<location>
location key
freezes a sea locationfreeze paris
thaw<location>
location key
thaws a sea locationthaw paris
recalc_loc<location>
location key
recalcs modifiers in a locationrecalc_loc paris
slaverynothingticks the slavery processslavery
raid<location_id>
location key
raids slaves from the target locationraid paris
change_location_rank<location> <location_rank>
location key, location rank key
changes the rank of a locationchange_location_rank paris city
printmap<mapmode> <filename> <yes/no> Should render flat (optional)
mapmode, filename, yes or no: should render flat (optional)
Writes out the current worldmap to fileprintmap
maritime_presence<amount>
amount
Add maritime presence to seazonemaritime_presence 100
build_road{From} {To}
From, To
Build a road between 2 adjacent provincesbuild_road
Camera.Goto<location>
location key
Moves the camera to a location Also works as goto.Camera.Goto paris
discover<location key> / all
location key or all
Discover one or all locations Also works as ti.discover all
discover_area<area key> / all
area key or all
Discover one or all areas Also works as da.discover_area all
change_devastation<location> <amount>
location key, amount
Changes devastation, quantity is expected to be between 0.0 a 1.0f Also works as chg_deva.change_devastation paris 100
tick_population<location>
location key
Montly tick for population in a locationtick_population paris
weather<location> <front/cyclone/tornado>
location key, front, cyclone or tornado
Creates a new weather in target locationweather paris front
change_control<location> <amount>
location key, amount
Changes Control, quantity is expected to be between 0.0 a 1.0f Also works as chg_ctrl.change_control paris 100
change_winter<location> <amount>
location key, amount
Changes winter level, level is expected to be between 0 to 3 Also works as chg_winter.change_winter paris 100
faminenothingCompletely wipes food stockpiles in markets and provincesfamine
build_everything<location> <id> / <country> <tag> / <region> <id> / all
location, country or region with its key, or all
Build everything possible in a location / country or region Also works as be.build_everything all
Map.SavePNGScaled<map mode> <file name> <yes/no> Should render flat (optional)
map mode, file name, yes or no: should render flat (optional)
Save a png of the map with a specific color mode with a selected sizeMap.SavePNGScaled

Markets and the economy

CommandWhat you type after itHelp text in the gameLine to copy
recalc_trade_path_cachenothingRecalculate all trade path cachesrecalc_trade_path_cache
economynothingresets the pop demands and processes the marketseconomy
reset_pop_demandnothingresets the pop demands for the playerreset_pop_demand
stockpile<market location key> <goods key> [<amount>]
location key of a market centre, trade good key, amount (optional)
Stockpile goodsstockpile venice wine
do_burgher_trade<market location key>
location key of a market centre
do the burgher trade calculation for a marketdo_burgher_trade venice
list_bankruptciesnothingShows a list of all bankrupt countrieslist_bankruptcies
list_high_debt_countriesnothingShows a list of all high debt countrieslist_high_debt_countries
show_diplomacy_statsnothingShows the diplomacy statsshow_diplomacy_stats
run_economy_statsnothingRuns the economy stats gatheringrun_economy_stats
show_economy_statsnothingShows the economy statsshow_economy_stats
destroy_market_stockpilesnothingDestroys all goods stockpiles in all markets Also works as dms.destroy_market_stockpiles
assign_marketsnothingAssigns all markets againassign_markets

Rulers and characters

CommandWhat you type after itHelp text in the gameLine to copy
add_random_trait<id>
ID from the running game
Adds a ruler trait to a characteradd_random_trait
add_trait<trait>
trait key
Adds a specific trait to the ruleradd_trait just
set_adm<id> <ability>
ID from the running game, ability, a number
Sets adm ability for a characterset_adm
set_dip<id> <ability>
ID from the running game, ability, a number
Sets dip ability for a characterset_dip
set_mil<id> <ability>
ID from the running game, ability, a number
Sets mil ability for a characterset_mil
convert_character<religion> <id>
religion key, ID from the running game
changes religion of a characterconvert_character
kill_character<id>
ID from the running game
Kills a character The game gives kill the same help text.kill_character
replace_court<CountryTag>
country tag
Replace Courtreplace_court POL
impregnate<id>
ID from the running game
Impregnate a characterimpregnate
give_birth<id>
ID from the running game
force a pregnant to give birthgive_birth
impregnate_and_give_birth<id>
ID from the running game
Impregnate a character and then force them to give birthimpregnate_and_give_birth
kill<id>
ID from the running game
Kills a character The game gives kill_character the same help text.kill
suicide<id>
ID from the running game
Kills a character, defaults to yourselfsuicide
update_charactersnothingupdate character counts for playerupdate_characters
create_character<male/female> lowborn/random/new
male or female, lowborn, random or new
Create a Charactercreate_character male random
artist<artist_type>
artist type key
Create an artistartist painter
workofart<work_of_art_type> [<location> [<quality>]]]
work of art key, location quality (optional)
Create a work of artworkofart painting
copy_dna<id>
ID from the running game
Copy/shows adn of a charactercopy_dna
set_ruler<country_tag> <character_id>
country tag, ID from the running game
Sets a character as the new ruler of a country. Usage: set_ruler <country_tag> <character_id>set_ruler

Religion and culture

CommandWhat you type after itHelp text in the gameLine to copy
religion<religion>
religion key
changes religionreligion catholic
culture<culture>
culture key
changes cultureculture french
cultural_tradition<culture> <value>
culture key, number
changes cultural Traditioncultural_tradition french 10
cultural_influence<culture> <value>
culture key, number
changes cultural Influencecultural_influence french 10
dialect_override<language/dialect>
language/dialect
overrides all dynasties, characters, locations display names with this dialect Needs debug mode.dialect_override
convert<location>
location key
changes religion of all pops in location to state religionconvert paris
convert_province<province_definition>
province key
changes religion of all pops in a province to state religionconvert_province pays_france_province
new_culture<name>
name
Makes a new culture for the player with the given namenew_culture
merge_culture_group<name>
name
Merges a culture group The argument hint is the one of new_culture before it.merge_culture_group
reform_desire<amount>
amount
players religion gets reform desirereform_desire 100
finish_current_religious_focusnothingCompleted progress on current religious focusfinish_current_religious_focus

Research, institutions, ages and events

CommandWhat you type after itHelp text in the gameLine to copy
disease<disease>
disease key
Spawns a Disease Also works as spawn_disease.disease bubonic_plague
movement<movement> <location>
movement key, location key
Spawns a Movement Also works as spawn_movement.movement lutheranism_movement paris
age<age_tag>
age key
changes the age Also works as change_age.age age_2_renaissance
birth_age<age_tag>
age key
changes the birth age of all characters (used for testing late game portaits). No arguments will revert to default behaviour The argument hint is the one of age before it. Needs debug mode.birth_age
situation<situation>
situation key
activate situation Also works as activate_situation.situation black_death
monthly_situation<situation>
situation key
ticks a month for a situationmonthly_situation black_death
disaster<disaster>
disaster key
activate disaster Also works as activate_disaster.disaster fate_of_the_phoenix
add_institution_progress<instituion_tag> <location_tag> <amount>
institution key, location key, amount
adds institution progress Also works as institution.add_institution_progress renaissance paris 100
spawn_institution<institution_tag> <location_tag>
institution key, location key
spawns an institution at a location if not already spawnedspawn_institution renaissance paris
add_research<amount>
amount
Gain Research Progreess Also works as addresearch.add_research 100
research_allnothingResearched all advances in all treesresearch_all
research<advance>
advance key
researches a specific advanceresearch sanitation_advance
embrace_allnothingEmbraces all active institutionsembrace_all
eventeventid target
event ID, target
Trigger an event event flavor_ara.1
test_event_triggereventid target
event ID, target
Test the triggers for an event test_event_trigger flavor_ara.1
achievementachievement
achievement key
Tests an achievementachievement reborn_from_the_ashes

Time, saving and the console itself

CommandWhat you type after itHelp text in the gameLine to copy
helplognothingPrint out all console commands to game.log file.helplog
helpcommand name
command name (optional)
Print out all console commands or a specific command description.help
versionnothingPrints the version to the console and the game log.version
endgamenothingForces the endgame screen to appear. Also works as gameover.endgame
tick_daynumber of days
number of days
Ticks any number of daystick_day 30
run_monthsnumber of months
number of months
Runs a number of months, then pausesrun_months 12
run_until<year> [month] [day]
year, month (optional), day (optional)
Runs until a date, then pausesrun_until 1444
run_cancelnothingCancels a pending run_months or run_untilrun_cancel
loadfile name
file name
Load gamestate from savegame on diskload mysave
test_savenothingCheck save and load persistencetest_save
savefile name
file name
Saves current gamestate to disksave mysave
save_replayfile name
file name
Saves current recorded replay to disksave_replay mysave
start_recordingnothingSnapshot current gamestate and start recording commandsstart_recording
stop_recordingfile name
file name
Stop recording and write the .replay filestop_recording mysave
play_recordingfile name
file name
Load a .replay file and play back its recorded commandsplay_recording mysave
errornothingShow errors in logerror
gamelognothingShow game loggamelog
enable_all_commands<location_id>
location key
Be the QA you always dreamed to beenable_all_commands
change_date<year>
year
changes the datechange_date 1400
effect{effect script}
effect script
execute effecteffect
run{effect file}
effect file
execute effect file in /runrun
trigger{trigger script}
trigger script
test trigger scripttrigger
clearnothingClear console. Also works as clr.clear

Multiplayer

CommandWhat you type after itHelp text in the gameLine to copy
fake_players<count>
number of fake players
Host only. Adds <count> fake players named Player N to random playable countries, with the AI off. 0 removes them. Testing only, do not save, hotjoin or resync while they exist Needs debug mode. Host only.fake_players 2
host<Game Name> <Password>
Game Name, Password
Opens a game for multiplayerhost
playersnothingLists all players on serverplayers
kick<Player name>
Player name
Kicks a player with the given namekick
oos_prompt<local/dummy>
local/dummy
Shows the oos_prompt windowoos_prompt
oos_dumpnothingDumps OOS infooos_dump
oos_clear_foldernothingDeletes the OOS folder and all OOS dumps in itoos_clear_folder
print_randomlognothingPrints the current randomlogprint_randomlog
force_oosnothingForce a desync, modifies the random countforce_oos
force_resyncnothingHost will force a resync in an MP gameforce_resync

The AI

These change or inspect what the computer players do. Most are for testing.

CommandWhat you type after itHelp text in the gameLine to copy
ai<CountryTag>
country tag
Create/disable AI for tagai SCO
braindeadai<CountryTag>
country tag
Enable/disable brain dead AI for tagbraindeadai ENG
only_ai<CountryTag>
country tag
Disable all AI for all countries except one, enable it for that one Also works as ai_only.only_ai HUN
only_ai_continent<Continent>
continent key
Disable all AI for all countries except countries on specified continent, enable it for those Also works as ai_only_continent.only_ai_continent europe
clear_ai_objectives<CountryTag>
country tag
Clears AI military and diplomatic objectives for tagclear_ai_objectives FRA
clear_ai_assignment<CountryTag>
country tag
Clears AI military unit/location assignments for tagclear_ai_assignment POR
ai_recalc_strategynothingRecalculate AI strategy for all countriesai_recalc_strategy
ai_tactical_dryrun'hourly'/'daily', <CountryTag>
hourly or daily, country tag
Run tactical AI without executingai_tactical_dryrun daily VEN
ai_tactical_print'hourly'/'daily', <CountryTag>
hourly or daily, country tag
Run tactical AI and print resultsai_tactical_print daily POR
ai_tactical_execute'hourly'/'daily', <CountryTag>
hourly or daily, country tag
Run tactical AI for single countryai_tactical_execute daily SCO
ai_daily_dryrun<CountryTag>
country tag
Run AI daily tick without executingai_daily_dryrun BUR
ai_daily_print<CountryTag>
country tag
Run AI daily tick and print resultsai_daily_print ENG
ai_daily_execute<CountryTag>
country tag
Run AI daily tickai_daily_execute BOH
ai_monthly_dryrun<CountryTag>
country tag
Run AI monthly tick without executingai_monthly_dryrun HUN
ai_monthly_execute<CountryTag>
country tag
Run AI monthly tickai_monthly_execute SCO
ai_monthly_print<CountryTag>
country tag
Run AI monthly tick and print resultsai_monthly_print ENG
ai_recalc_peace_dealsnothingRecalculate AI peace dealsai_recalc_peace_deals
ai_currency<currency>, <amount>, <location/rebel>
currency, amount, location/rebel
Evaluate additional currency for AIai_currency
ai_monthly_currency<currency>, <amount>, <location/rebel>
currency, amount, location/rebel
Evaluate additional monthly currency for AI The argument hint is the one of ai_currency before it.ai_monthly_currency
debug_estate_logicnothingruns some estate logic for debugdebug_estate_logic
building_queue_stats<countrytag>
country tag
Shows queue of buildings in AI memorybuilding_queue_stats POR
run_select_expand_objectives<countrytag>
country tag
Runs the select expand objectives for the countryrun_select_expand_objectives SCO
check_last_war_date<countrytag>
country tag
Checks last war date for a countrycheck_last_war_date FRA
check_potential_expansion_targets<countrytag>
country tag
Checks next potential expansion targets for a countrycheck_potential_expansion_targets ENG
building_queue_buildings<countrytag>
country tag
Shows which buildings are on the building queuebuilding_queue_buildings SCO
building_queue_top<countrytag>
country tag
Shows the top 5 candidates in a building queue in AI memorybuilding_queue_top ENG
building_queue_clear<countrytag>
country tag
Clears all candidates in a building queue in AI memory The game gives recalc_conquer_desire the same help text.building_queue_clear POR
proximity_candidate<countrytag>
country tag
Shows the proximity candidate location of the countryproximity_candidate CAS
recalc_conquer_desirenothingClears all candidates in a building queue in AI memory The game gives building_queue_clear the same help text.recalc_conquer_desire
number_of_buildings<countrytag>
country tag
Shows building numbersnumber_of_buildings FRA
show_saving_mode<CountryTag>
country tag
Shows the saving mode a country hasshow_saving_mode POL

Editors and viewers

Each opens or closes a window of the game's own tools.

CommandWhat you type after itHelp text in the gameLine to copy
watchnothingEnables watch windows Also works as ww.watch
setup_editornothingToggles the setup editor.setup_editor
pop_editornothingToggles the pop editor.pop_editor
cd_pop_editornothingToggles the CD pop editor.cd_pop_editor
war_viewernothingToggles the War Viewer.war_viewer
ai_currency_viewernothingToggles the Ai Currency Viewer.ai_currency_viewer
ai_diplomatic_objectives_viewernothingToggles the Ai Diplomatic Objectives Viewer.ai_diplomatic_objectives_viewer
ai_targets_viewernothingToggles the Ai Targets Viewer.ai_targets_viewer
battle_simulatornothingToggles the Battle Simulator. Also works as bsim.battle_simulator
port_editornothingToggles the port editor.port_editor
institution_editornothingToggles the institution editor.institution_editor
road_editornothingToggles the road editor.road_editor
inspect_player_countrynothingOpens the inspector with the player countryinspect_player_country

Reports, exports and testing

Most of these write a file or a log. They are for the people who make the game and for modders.

CommandWhat you type after itHelp text in the gameLine to copy
clear_poolsnothingClear UI poolsclear_pools
clear_mapnothingClear map (just for debugging)clear_map
action_timernothingDump times to process each action typeaction_timer
ai_country_timer<on|off>
on or off
Dump AI tick task time per country and country size. 'on'/'off' toggles collectionai_country_timer on
DebugCurrency<CountryTag> <CurrencyType>
country tag, CurrencyType
output the currency income and outgoings to the log Needs debug mode.DebugCurrency
debug_trade_distancesnothingDump route cost vs trade range indicator distance for every tradedebug_trade_distances
location_language_loc<language/dialect> <region/area>
language/dialect, region/area
outputs missing location locs to the error log by language or dialectlocation_language_loc
coa<country>
country tag
dumps the country's COA representation to error logcoa VEN
coa_export<string>
string
dumps COAs that start with this string to your documents. If the argument is 'random' it will generate 100 random COA based on the current player country. If you leave the string empty it will output all CoA in the game!coa_export
no_owner_popsnothingdumps to the error log any locations that have no pops of the location's ownerno_owner_pops
buildings_over_limitnothingdumps to the error log any buildings that have a level set that is above the maximumbuildings_over_limit
dynasties_reportnothingwrites out the dynasty per countrydynasties_report
formable_reportnothingwrites out the formables without advancesformable_report
content_reportnothingwrites out the amount of unique content per tag Also works as cr.content_report
seazone_reportnothingchecks if any seazone has any errorsseazone_report
building_reportnothingreports the base upkeep cost for all buildings Also works as br.building_report
area_reportnothingchecks if any areas has any problemsarea_report
mapmode_reportnothingchecks if any mapmode is missing a tooltipmapmode_report
icon_reportnothingchecks if any icon database is missing a tooltipicon_report
bad_goodsnothingchecks if any locations has bad raw materialsbad_goods
overpopulationnothingwrites out the locations with overpopulation Also works as op.overpopulation
societal_values_reportnothingchecks if all societal values have enough impact it Also works as svr.societal_values_report
river_validation_reportnothingchecks if the river bitmap is valid Also works as rvr.river_validation_report
process_areasnothingprocesses area distancesprocess_areas
country_reportnothingwrites out data about countriescountry_report
write_popdatanothingwrites out pop information Also works as popdata.write_popdata
print_location_listnothingWrites data about locations in a csv format Also works as location_list.print_location_list
expeditions_usednothingShows expeditions usedexpeditions_used
export_goods_supply_demandnothingExports a tab-separated file with goods key, total supply, and total demand Also works as goods_supply_demand.export_goods_supply_demand
export_yearly_timelinenothingExports two TSVs: docs/yearly_timeline_ownership.tsv (one row per ownership change) and docs/yearly_timeline_country.tsv (one row per country per year) Also works as yearly_timeline.export_yearly_timeline
export_bloc_strengthsnothingExports a TSV of all countries sorted by economical base, and all alliance pairs with their economical bases Also works as bloc_strengths.export_bloc_strengths
export_market_capacitynothingExports a tab-separated file with market name, trade capacity, burgher trade capacity, oversupply, undersupply, and total imbalance Also works as market_capacity.export_market_capacity
analyse_market<location_key|id>
location key
Exports a TSV of (a) local deficit goods and where to source them, (b) every producing PM of every building in the market sorted by current profit ascending with output/input local surplus columns, and (c) a per-building-type roll-up (count, levels, open/closed/subsidized counts, totals, avg profit per level). Profit matches the in-game building tooltip (CBuilding::GetProfit). Arg: location key or numeric ID Also works as analyze_market.analyse_market paris
export_goods_by_market<goods_key>
trade good key
Exports a TSV of per-market production, trade imports, supply, demand, and surplus for a given good, sorted by production descending. Arg: goods key Also works as goods_by_market.export_goods_by_market wine
check_gui_pruningnothingExports a TSV of on-screen widget regions the pruned raycast walk cannot reach because an ancestor without allow_outside clips them, with the blocked area in square pixels and as a fraction of the widget Also works as gui_pruning.check_gui_pruning
analyse_ai_objectivesnothingExports a TSV of the tactical military objective group population as 998_AIUnitsDaily sees it: a summary, a per-objective-type breakdown (total, actionable, troopless, brain dead, assigned armies/navies, heuristic sum and max) sorted by troopless descending, and a per-country breakdown sorted by group count descending with each country's most common troopless objective type Also works as analyze_ai_objectives.analyse_ai_objectives
codetestnothingCommand for easy code testingcodetest
event_countsnothingPrint event debug countsevent_counts
trigger_animationsnothingTrigger a named set of animationstrigger_animations
recalc_cached_datanothingRecalculates the cached data in the gamestate which is not persisted in the savegamerecalc_cached_data
refocus_mapnothingRestores the map input context and clears any stray UI keyboard focus, in case WASD/arrow map panning stopped responding.refocus_map
update_pop_cachenothingRecalculates the cached data related to pops in the player countryupdate_pop_cache
update_modifiersnothingRecalculates the modifiersupdate_modifiers
ignore_paused_time<Bool Type>
Bool Type
Make the time smoother to ignore that the game is paused so animation can run even when the game is paused. Also works as ignore_pause.ignore_paused_time
override_scale_time<Bool Type> <Float Type>
Bool Type, Float Type
Override the scale for gfx time based on game speed Also works as overr_scale.override_scale_time
debug_animation_timenothingIgnores pause and overrides scale time setting it to 1.0. Also works as dbg_anim_time.debug_animation_time
reload_terrain2_materialsnothingReload terrain2 texturesreload_terrain2_materials
print_selected_illustration_infoeventidverbose
eventidverbose
Prints debug info about selecting a illustration Also works as prt_ill_info.print_selected_illustration_info
print_selected_images_infoeventid verbose
event ID, verbose
Prints debug info about image selection in the illustration of an event Also works as prt_img_info.print_selected_images_info
MapObjects.CheckLocators[optional] numbers of pixels to search for other location
numbers of pixels to search for other location (optional)
Checks what locators are inside the province that should contain themMapObjects.CheckLocators
PrintLocationBiome[optional] location id to print biome for
location id to print biome for (optional)
Prints the biome of the hovered (or entered as argument) locationPrintLocationBiome
list_dhe_fornothingLists what DHEs were fired for a taglist_dhe_for
Cities.PrintUsedSchematicsnothingPrints a list of all of the schematics used in city mesh listsCities.PrintUsedSchematics
MapObjects.DebugDefaultLocatorTransformsnothingGenerates debug lines for game object locator default placementMapObjects.DebugDefaultLocatorTransforms
reload_pin_collectionsnothingReload Pin Collectionsreload_pin_collections
spawn_in_every_locationnothingSpawn an schematic of the desired type in every location. It can be limmited in fov, fow or playerspawn_in_every_location
copy_mouse_posnothingCopies the mouse position into the clipboardcopy_mouse_pos
fake_whisper[message...]
message... (optional)
Simulates an incoming DM for testing the whisper notification toastfake_whisper
dump_timeline_managernothingPrints the serialized contents of the timeline managerdump_timeline_manager
dump_invalid_rivalsnothingPrints all invalid rivalsdump_invalid_rivals

Engine commands

The engine under the game (Clausewitz) adds its own commands. These are the ones we could read with their help text. The engine has more for its developers, mostly graphics and audio switches.

CommandWhat you type after itHelp text in the gameLine to copy
reloadfile name
file name
Reloads assetsreload
timenothingWhat time is it?time
crashnothingCause the application to crashcrash
vram_endnothingCause the application to experience an out of vramvram_end
debug_modenothingToggles debug modedebug_mode
release_modenothingToggles release moderelease_mode
screenshotnothingTake screenshotscreenshot
lognothinglog list: Print a list of all log categories and sinkslog
dump_tweakablesnothingDumps all available tweakables to the specified file in the user folder.dump_tweakables
pseudoLocnothingEnable/Disable Pseudo Localization on Text WidgetspseudoLoc
GUI.ToggleCursornothingCreate PDX GUI based software cursor if it is not created yet, destroy it otherwiseGUI.ToggleCursor
GUI.AnimationTimeline.LogStatsnothingDump stats of the GUI Animation Timeline system to the debug log.GUI.AnimationTimeline.LogStats
Debug.TextureModeName of debug mode
Name of debug mode
Enables a texture mode for debuggingDebug.TextureMode
vsyncnothingToggle main swapchains vsyncvsync
swapchain.buffersnothingQuery/Set swapchain buffersswapchain.buffers
Ecs.RunRenderingBenchmarkSchematic name Number of instances Duration (s)
Schematic name, Number of instances, Duration (s)
Executes the ecs rendering benchmarkEcs.RunRenderingBenchmark
minidumpnothingCreates a minidumpminidump
switchlanguagenothingReload localization files and switch languageswitchlanguage
settingsnothingSpawns a settings GUI with an optional argument for an initially selected category settings
Application.ChangeResolutionnothingChange the resolution through the consoleApplication.ChangeResolution
Threading.TaskThreadCountnothingSet or get the number of task threadsThreading.TaskThreadCount
map_editornothingToggle map editormap_editor
pdx_dba_map_testnothingTest CPdxDBAMappdx_dba_map_test
Session.GetEnabledDLCsnothingGets the enabled DLCs for this sessionSession.GetEnabledDLCs
toggle_mapobject_layernothingToggles a specific mapobject layertoggle_mapobject_layer
gfx.skinnothingselect active gfx skingfx.skin
rendertypenothingReports what render backend is usedrendertype
gfx.reloadtexturenothingReload texturesgfx.reloadtexture

Where this list comes from

The game ships no list of its console commands. Each command is registered by the game's code with its name, help text and argument hints, and we read those from eu5.exe 1.4.9: 251 from the main table, 50 added while the game starts, and the resources and cheat modes made in a loop from two lists in the code. Gold is the one resource with its own name, cash. The other resources and the cheat modes keep the names as the code writes them, with capitals.

The help text is the game's, typos included. Where the game gives a command the same help text or argument hint as another one, the row says so, and we give no example when the hint does not fit the command.

Spotted a mistake on this page, or have an idea for the site?