
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.
Play as another country. The game's help: Change player to specific tag
tag FRA
Your lines
Paste one, press Enter, then the next. The list stays in this browser.
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.
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| Manpower | amount | adds currency (Manpower) | Manpower 10 |
| Sailors | amount | adds currency (Sailors) | Sailors 10 |
| cash | amount | adds currency (cash) | cash 1000 |
| Stability | amount | adds currency (Stability) | Stability 10 |
| WarExhaustion | amount | adds currency (WarExhaustion) | WarExhaustion -5 |
| Inflation | amount | adds currency (Inflation) | Inflation -0.05 |
| Prestige | amount | adds currency (Prestige) | Prestige 10 |
| ArmyTradition | amount | adds currency (ArmyTradition) | ArmyTradition 5 |
| NavyTradition | amount | adds currency (NavyTradition) | NavyTradition 5 |
| GovernmentPower | amount | adds currency (GovernmentPower) | GovernmentPower 50 |
| Karma | amount | adds currency (Karma) | Karma 10 |
| ReligiousInfluence | amount | adds currency (ReligiousInfluence) | ReligiousInfluence 10 |
| Purity | amount | adds currency (Purity) | Purity 10 |
| Honor | amount | adds currency (Honor) | Honor 10 |
| Doom | amount | adds currency (Doom) | Doom 10 |
| RitePower | amount | adds currency (RitePower) | RitePower 10 |
| Yanantin | amount | adds currency (Yanantin) | Yanantin 10 |
| Righteousness | amount | adds currency (Righteousness) | Righteousness 10 |
| Harmony | amount | adds currency (Harmony) | Harmony 10 |
| SelfControl | amount | adds currency (SelfControl) | SelfControl 10 |
| PoliticalInfluence | amount | adds 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".
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| YesMan | nothing | toggles the cheat mode YesMan | YesMan |
| NoMan | nothing | toggles the cheat mode NoMan | NoMan |
| WatchWindows | nothing | toggles the cheat mode WatchWindows | WatchWindows |
| LoadingScreen | nothing | toggles the cheat mode LoadingScreen | LoadingScreen |
| InstantMove | nothing | toggles the cheat mode InstantMove | InstantMove |
| InstantSiege | nothing | toggles the cheat mode InstantSiege | InstantSiege |
| NoRandom | nothing | toggles the cheat mode NoRandom | NoRandom |
| FastDiplo | nothing | toggles the cheat mode FastDiplo | FastDiplo |
| DelayDiploReply | nothing | toggles the cheat mode DelayDiploReply | DelayDiploReply |
| InstantWar | nothing | toggles the cheat mode InstantWar | InstantWar |
| InstantConstruction | nothing | toggles the cheat mode InstantConstruction | InstantConstruction |
| InstantConquistadors | nothing | toggles the cheat mode InstantConquistadors | InstantConquistadors |
| InstantCasusBelli | nothing | toggles the cheat mode InstantCasusBelli | InstantCasusBelli |
| InstantExploration | nothing | toggles the cheat mode InstantExploration | InstantExploration |
| InstantMission | nothing | toggles the cheat mode InstantMission | InstantMission |
| InstantImplementation | nothing | toggles the cheat mode InstantImplementation | InstantImplementation |
| FastRebels | nothing | toggles the cheat mode FastRebels | FastRebels |
| ByPassRequirements | nothing | toggles the cheat mode ByPassRequirements | ByPassRequirements |
| RemoveFogOfWar | nothing | toggles the cheat mode RemoveFogOfWar | RemoveFogOfWar |
| no_peace_deals | nothing | toggles the cheat mode no_peace_deals | no_peace_deals |
| fast_expeditions | nothing | toggles the cheat mode fast_expeditions | fast_expeditions |
Your country, its government and its subjects
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| observe | nothing | start 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 tag | tag BOH |
| start_annex | <country-tag>country tag | starts an annexation of the given country | start_annex FRA |
| lose_to | <country-tag>country tag | makes the player lose to the target country | lose_to CAS |
| lend | <CountryTag> <amount> <interest> <months>country tag, amount, interest, months | lend money to target country | lend 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 estate | estate_satisfaction nobles_estate 10 |
| estate_gold | <estate_type> <gold>estate key, gold | Adds gold to an estate | estate_gold nobles_estate 100 |
| bankrupt | <CountryTag>country tag | Bankrupts a nation | bankrupt FRA |
| remove_bankruptcy | <CountryTag>country tag | Removes the bankruptcy modifier from a nation | remove_bankruptcy POR |
| imperial_authority | <amount>amount | adds a imperial_authority to the hre | imperial_authority 100 |
| annex | <CountryTag>country tag | Player annexes a tag | annex POR |
| reset_agendas | nothing | Resets agendas in parliament | reset_agendas |
| set_flag | <flag_definition>flag definition | overrides this country's flag | set_flag |
| make_subject | <subject_type> <countrytag>subject type key, country tag | makes subject out of a country | make_subject vassal POL |
| change_country_type | <country_type>country type | changes the country type | change_country_type |
| change_dynastic_name | <countrytag>country tag | Changes dynastic name of a country | change_dynastic_name POL |
| remove_location_from_all_ios | <location_id>location key | removes location from ios | remove_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 desire | liberty_desire 100 |
| parliament_support | <amount>amount | player gets parliament support | parliament_support 100 |
| add_core | <amount>amount | Add a core location The argument hint is the one of parliament_support before it. | add_core |
| integrate_all | nothing | Integrates all provinces | integrate_all |
| finalise_resolution | <ResolutionID>ID from the running game | Finalizes a resolution in an IO | finalise_resolution |
| create_pu | <CountryTag>country tag | Creates a personal union with another country | create_pu POL |
| form_union | <junior partner>tag of the junior partner | Form a union with another country | form_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 country | parliament_issue baronial_burghs_rights |
| end_parliament_issue | nothing | Ends a parliament issue in your country with success | end_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_connectivity | tagcountry tag | Recalculate subject territory connectivity for a country by tag | recalc_connectivity ENG |
War, peace and conquest
| Command | What you type after it | Help text in the game | Line 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 tag | remove_truce POR |
| add_truce | <CountryTag>country tag | Adds a truce between player and a tag | add_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 location | win_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 side | join_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 country | occupy_country BOH |
| occupy_province | <province>province key | occupies a province, only locations belonging to nations at war with the player | occupy_province pays_france_province |
| occupy_area | <area>area key | occupies an area, only locations belonging to nations at war with the player | occupy_area ile_de_france_area |
| occupy_region | <region>region key | occupies a region, only locations belonging to nations at war with the player | occupy_region france_region |
| occupy_war_enemies | nothing | occupies every war enemy | occupy_war_enemies |
| conquer | <location_id>location key | conquers an location | conquer paris |
| conquer_country | <countrytag>country tag | conquers a country | conquer_country BOH |
| conquer_province | <province_definition>province key | conquers a province definition | conquer_province pays_france_province |
| conquer_area | <area>area key | conquers an area | conquer_area ile_de_france_area |
| conquer_region | <region>region key | conquers a region | conquer_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
| Command | What you type after it | Help text in the game | Line 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 country | kill_all_units ENG |
| kill_unit | <UnitID>ID from the running game | kill the unit with this ID, kills selected unit when no id is supplied | kill_unit |
| resupply_all_units | <CountryTag>country tag | max food for all units in target country | resupply_all_units ENG |
| recalc_supply_all_units | <CountryTag>country tag | recalculate supply paths for all units in target country | recalc_supply_all_units ENG |
| damage_all_units | <CountryTag>country tag | damage all units in target country | damage_all_units VEN |
| nibble_all_units | <CountryTag>country tag | damage a random amount of strength to all units in target country | nibble_all_units ENG |
| world_levies | nothing | raise all levies in the world | world_levies |
| rebel_progress | <id> <progress>ID from the running game, progress, a number | Adds rebel_progress to a rebel | rebel_progress |
| all_rebels | <progress>progress, a number | Adds rebel_progress to all active rebels in player country | all_rebels 10 |
| add_subunit | <subunit_def>subunit def | Adds a subunit | add_subunit |
| pirate | <area>area key | adds a pirate to the area | pirate ile_de_france_area |
| revolt | <rebel_id>ID from the running game | A revolt starts in target country | revolt |
Diplomacy
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| subject_stance | <CountryTag>, <Stance>country tag, Stance | Set subject stance for tag | subject_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 player | opinion BOH 100 |
| border_distance | <CountryTag>country tag | gets border distance between current and given country | border_distance BOH |
| diplomats | <amount>amount | Gain diplomatic actions | diplomats 100 |
| calc_threat_level | <CountryTag> <CountryTag>country tag, country tag | Shows the threat level second nation poses to first nation 0-1 | calc_threat_level BUR SCO |
Locations, buildings and the map
| Command | What you type after it | Help text in the game | Line 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 loction | update_employment paris |
| update_integration | <location>location key | updated integration for a loction | update_integration paris |
| colonize | <location>location key | creates a colony for target locations' province | colonize paris |
| colonize_and_finish | <location>location key | creates a colony for target locations' province and then finishes the colonial charter immediately | colonize_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_colonies | nothing | finishes 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 destination | move_random_pop paris orleans |
| population | <location>location key | changes a location's population | population paris |
| finish_constructions | <location>location key | finish all constructions in a location | finish_constructions paris |
| change_garrison | <location>location key | changes a location's garrison | change_garrison paris |
| freeze | <location>location key | freezes a sea location | freeze paris |
| thaw | <location>location key | thaws a sea location | thaw paris |
| recalc_loc | <location>location key | recalcs modifiers in a location | recalc_loc paris |
| slavery | nothing | ticks the slavery process | slavery |
| raid | <location_id>location key | raids slaves from the target location | raid paris |
| change_location_rank | <location> <location_rank>location key, location rank key | changes the rank of a location | change_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 file | printmap |
| maritime_presence | <amount>amount | Add maritime presence to seazone | maritime_presence 100 |
| build_road | {From} {To}From, To | Build a road between 2 adjacent provinces | build_road |
| Camera.Goto | <location>location key | Moves the camera to a location Also works as goto. | Camera.Goto paris |
| discover | <location key> / alllocation key or all | Discover one or all locations Also works as ti. | discover all |
| discover_area | <area key> / allarea 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 location | tick_population paris |
| weather | <location> <front/cyclone/tornado>location key, front, cyclone or tornado | Creates a new weather in target location | weather 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 |
| famine | nothing | Completely wipes food stockpiles in markets and provinces | famine |
| build_everything | <location> <id> / <country> <tag> / <region> <id> / alllocation, 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 size | Map.SavePNGScaled |
Markets and the economy
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| recalc_trade_path_cache | nothing | Recalculate all trade path caches | recalc_trade_path_cache |
| economy | nothing | resets the pop demands and processes the markets | economy |
| reset_pop_demand | nothing | resets the pop demands for the player | reset_pop_demand |
| stockpile | <market location key> <goods key> [<amount>]location key of a market centre, trade good key, amount (optional) | Stockpile goods | stockpile venice wine |
| do_burgher_trade | <market location key>location key of a market centre | do the burgher trade calculation for a market | do_burgher_trade venice |
| list_bankruptcies | nothing | Shows a list of all bankrupt countries | list_bankruptcies |
| list_high_debt_countries | nothing | Shows a list of all high debt countries | list_high_debt_countries |
| show_diplomacy_stats | nothing | Shows the diplomacy stats | show_diplomacy_stats |
| run_economy_stats | nothing | Runs the economy stats gathering | run_economy_stats |
| show_economy_stats | nothing | Shows the economy stats | show_economy_stats |
| destroy_market_stockpiles | nothing | Destroys all goods stockpiles in all markets Also works as dms. | destroy_market_stockpiles |
| assign_markets | nothing | Assigns all markets again | assign_markets |
Rulers and characters
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| add_random_trait | <id>ID from the running game | Adds a ruler trait to a character | add_random_trait |
| add_trait | <trait>trait key | Adds a specific trait to the ruler | add_trait just |
| set_adm | <id> <ability>ID from the running game, ability, a number | Sets adm ability for a character | set_adm |
| set_dip | <id> <ability>ID from the running game, ability, a number | Sets dip ability for a character | set_dip |
| set_mil | <id> <ability>ID from the running game, ability, a number | Sets mil ability for a character | set_mil |
| convert_character | <religion> <id>religion key, ID from the running game | changes religion of a character | convert_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 Court | replace_court POL |
| impregnate | <id>ID from the running game | Impregnate a character | impregnate |
| give_birth | <id>ID from the running game | force a pregnant to give birth | give_birth |
| impregnate_and_give_birth | <id>ID from the running game | Impregnate a character and then force them to give birth | impregnate_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 yourself | suicide |
| update_characters | nothing | update character counts for player | update_characters |
| create_character | <male/female> lowborn/random/newmale or female, lowborn, random or new | Create a Character | create_character male random |
| artist | <artist_type>artist type key | Create an artist | artist painter |
| workofart | <work_of_art_type> [<location> [<quality>]]]work of art key, location quality (optional) | Create a work of art | workofart painting |
| copy_dna | <id>ID from the running game | Copy/shows adn of a character | copy_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
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| religion | <religion>religion key | changes religion | religion catholic |
| culture | <culture>culture key | changes culture | culture french |
| cultural_tradition | <culture> <value>culture key, number | changes cultural Tradition | cultural_tradition french 10 |
| cultural_influence | <culture> <value>culture key, number | changes cultural Influence | cultural_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 religion | convert paris |
| convert_province | <province_definition>province key | changes religion of all pops in a province to state religion | convert_province pays_france_province |
| new_culture | <name>name | Makes a new culture for the player with the given name | new_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 desire | reform_desire 100 |
| finish_current_religious_focus | nothing | Completed progress on current religious focus | finish_current_religious_focus |
Research, institutions, ages and events
| Command | What you type after it | Help text in the game | Line 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 situation | monthly_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 spawned | spawn_institution renaissance paris |
| add_research | <amount>amount | Gain Research Progreess Also works as addresearch. | add_research 100 |
| research_all | nothing | Researched all advances in all trees | research_all |
| research | <advance>advance key | researches a specific advance | research sanitation_advance |
| embrace_all | nothing | Embraces all active institutions | embrace_all |
| event | eventid targetevent ID, target | Trigger an event | event flavor_ara.1 |
| test_event_trigger | eventid targetevent ID, target | Test the triggers for an event | test_event_trigger flavor_ara.1 |
| achievement | achievementachievement key | Tests an achievement | achievement reborn_from_the_ashes |
Time, saving and the console itself
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| helplog | nothing | Print out all console commands to game.log file. | helplog |
| help | command namecommand name (optional) | Print out all console commands or a specific command description. | help |
| version | nothing | Prints the version to the console and the game log. | version |
| endgame | nothing | Forces the endgame screen to appear. Also works as gameover. | endgame |
| tick_day | number of daysnumber of days | Ticks any number of days | tick_day 30 |
| run_months | number of monthsnumber of months | Runs a number of months, then pauses | run_months 12 |
| run_until | <year> [month] [day]year, month (optional), day (optional) | Runs until a date, then pauses | run_until 1444 |
| run_cancel | nothing | Cancels a pending run_months or run_until | run_cancel |
| load | file namefile name | Load gamestate from savegame on disk | load mysave |
| test_save | nothing | Check save and load persistence | test_save |
| save | file namefile name | Saves current gamestate to disk | save mysave |
| save_replay | file namefile name | Saves current recorded replay to disk | save_replay mysave |
| start_recording | nothing | Snapshot current gamestate and start recording commands | start_recording |
| stop_recording | file namefile name | Stop recording and write the .replay file | stop_recording mysave |
| play_recording | file namefile name | Load a .replay file and play back its recorded commands | play_recording mysave |
| error | nothing | Show errors in log | error |
| gamelog | nothing | Show game log | gamelog |
| enable_all_commands | <location_id>location key | Be the QA you always dreamed to be | enable_all_commands |
| change_date | <year>year | changes the date | change_date 1400 |
| effect | {effect script}effect script | execute effect | effect |
| run | {effect file}effect file | execute effect file in /run | run |
| trigger | {trigger script}trigger script | test trigger script | trigger |
| clear | nothing | Clear console. Also works as clr. | clear |
Multiplayer
| Command | What you type after it | Help text in the game | Line 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 multiplayer | host |
| players | nothing | Lists all players on server | players |
| kick | <Player name>Player name | Kicks a player with the given name | kick |
| oos_prompt | <local/dummy>local/dummy | Shows the oos_prompt window | oos_prompt |
| oos_dump | nothing | Dumps OOS info | oos_dump |
| oos_clear_folder | nothing | Deletes the OOS folder and all OOS dumps in it | oos_clear_folder |
| print_randomlog | nothing | Prints the current randomlog | print_randomlog |
| force_oos | nothing | Force a desync, modifies the random count | force_oos |
| force_resync | nothing | Host will force a resync in an MP game | force_resync |
The AI
These change or inspect what the computer players do. Most are for testing.
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| ai | <CountryTag>country tag | Create/disable AI for tag | ai SCO |
| braindeadai | <CountryTag>country tag | Enable/disable brain dead AI for tag | braindeadai 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 tag | clear_ai_objectives FRA |
| clear_ai_assignment | <CountryTag>country tag | Clears AI military unit/location assignments for tag | clear_ai_assignment POR |
| ai_recalc_strategy | nothing | Recalculate AI strategy for all countries | ai_recalc_strategy |
| ai_tactical_dryrun | 'hourly'/'daily', <CountryTag>hourly or daily, country tag | Run tactical AI without executing | ai_tactical_dryrun daily VEN |
| ai_tactical_print | 'hourly'/'daily', <CountryTag>hourly or daily, country tag | Run tactical AI and print results | ai_tactical_print daily POR |
| ai_tactical_execute | 'hourly'/'daily', <CountryTag>hourly or daily, country tag | Run tactical AI for single country | ai_tactical_execute daily SCO |
| ai_daily_dryrun | <CountryTag>country tag | Run AI daily tick without executing | ai_daily_dryrun BUR |
| ai_daily_print | <CountryTag>country tag | Run AI daily tick and print results | ai_daily_print ENG |
| ai_daily_execute | <CountryTag>country tag | Run AI daily tick | ai_daily_execute BOH |
| ai_monthly_dryrun | <CountryTag>country tag | Run AI monthly tick without executing | ai_monthly_dryrun HUN |
| ai_monthly_execute | <CountryTag>country tag | Run AI monthly tick | ai_monthly_execute SCO |
| ai_monthly_print | <CountryTag>country tag | Run AI monthly tick and print results | ai_monthly_print ENG |
| ai_recalc_peace_deals | nothing | Recalculate AI peace deals | ai_recalc_peace_deals |
| ai_currency | <currency>, <amount>, <location/rebel>currency, amount, location/rebel | Evaluate additional currency for AI | ai_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_logic | nothing | runs some estate logic for debug | debug_estate_logic |
| building_queue_stats | <countrytag>country tag | Shows queue of buildings in AI memory | building_queue_stats POR |
| run_select_expand_objectives | <countrytag>country tag | Runs the select expand objectives for the country | run_select_expand_objectives SCO |
| check_last_war_date | <countrytag>country tag | Checks last war date for a country | check_last_war_date FRA |
| check_potential_expansion_targets | <countrytag>country tag | Checks next potential expansion targets for a country | check_potential_expansion_targets ENG |
| building_queue_buildings | <countrytag>country tag | Shows which buildings are on the building queue | building_queue_buildings SCO |
| building_queue_top | <countrytag>country tag | Shows the top 5 candidates in a building queue in AI memory | building_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 country | proximity_candidate CAS |
| recalc_conquer_desire | nothing | Clears 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 numbers | number_of_buildings FRA |
| show_saving_mode | <CountryTag>country tag | Shows the saving mode a country has | show_saving_mode POL |
Editors and viewers
Each opens or closes a window of the game's own tools.
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| watch | nothing | Enables watch windows Also works as ww. | watch |
| setup_editor | nothing | Toggles the setup editor. | setup_editor |
| pop_editor | nothing | Toggles the pop editor. | pop_editor |
| cd_pop_editor | nothing | Toggles the CD pop editor. | cd_pop_editor |
| war_viewer | nothing | Toggles the War Viewer. | war_viewer |
| ai_currency_viewer | nothing | Toggles the Ai Currency Viewer. | ai_currency_viewer |
| ai_diplomatic_objectives_viewer | nothing | Toggles the Ai Diplomatic Objectives Viewer. | ai_diplomatic_objectives_viewer |
| ai_targets_viewer | nothing | Toggles the Ai Targets Viewer. | ai_targets_viewer |
| battle_simulator | nothing | Toggles the Battle Simulator. Also works as bsim. | battle_simulator |
| port_editor | nothing | Toggles the port editor. | port_editor |
| institution_editor | nothing | Toggles the institution editor. | institution_editor |
| road_editor | nothing | Toggles the road editor. | road_editor |
| inspect_player_country | nothing | Opens the inspector with the player country | inspect_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.
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| clear_pools | nothing | Clear UI pools | clear_pools |
| clear_map | nothing | Clear map (just for debugging) | clear_map |
| action_timer | nothing | Dump times to process each action type | action_timer |
| ai_country_timer | <on|off>on or off | Dump AI tick task time per country and country size. 'on'/'off' toggles collection | ai_country_timer on |
| DebugCurrency | <CountryTag> <CurrencyType>country tag, CurrencyType | output the currency income and outgoings to the log Needs debug mode. | DebugCurrency |
| debug_trade_distances | nothing | Dump route cost vs trade range indicator distance for every trade | debug_trade_distances |
| location_language_loc | <language/dialect> <region/area>language/dialect, region/area | outputs missing location locs to the error log by language or dialect | location_language_loc |
| coa | <country>country tag | dumps the country's COA representation to error log | coa 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_pops | nothing | dumps to the error log any locations that have no pops of the location's owner | no_owner_pops |
| buildings_over_limit | nothing | dumps to the error log any buildings that have a level set that is above the maximum | buildings_over_limit |
| dynasties_report | nothing | writes out the dynasty per country | dynasties_report |
| formable_report | nothing | writes out the formables without advances | formable_report |
| content_report | nothing | writes out the amount of unique content per tag Also works as cr. | content_report |
| seazone_report | nothing | checks if any seazone has any errors | seazone_report |
| building_report | nothing | reports the base upkeep cost for all buildings Also works as br. | building_report |
| area_report | nothing | checks if any areas has any problems | area_report |
| mapmode_report | nothing | checks if any mapmode is missing a tooltip | mapmode_report |
| icon_report | nothing | checks if any icon database is missing a tooltip | icon_report |
| bad_goods | nothing | checks if any locations has bad raw materials | bad_goods |
| overpopulation | nothing | writes out the locations with overpopulation Also works as op. | overpopulation |
| societal_values_report | nothing | checks if all societal values have enough impact it Also works as svr. | societal_values_report |
| river_validation_report | nothing | checks if the river bitmap is valid Also works as rvr. | river_validation_report |
| process_areas | nothing | processes area distances | process_areas |
| country_report | nothing | writes out data about countries | country_report |
| write_popdata | nothing | writes out pop information Also works as popdata. | write_popdata |
| print_location_list | nothing | Writes data about locations in a csv format Also works as location_list. | print_location_list |
| expeditions_used | nothing | Shows expeditions used | expeditions_used |
| export_goods_supply_demand | nothing | Exports a tab-separated file with goods key, total supply, and total demand Also works as goods_supply_demand. | export_goods_supply_demand |
| export_yearly_timeline | nothing | Exports 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_strengths | nothing | Exports 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_capacity | nothing | Exports 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_pruning | nothing | Exports 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_objectives | nothing | Exports 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 |
| codetest | nothing | Command for easy code testing | codetest |
| event_counts | nothing | Print event debug counts | event_counts |
| trigger_animations | nothing | Trigger a named set of animations | trigger_animations |
| recalc_cached_data | nothing | Recalculates the cached data in the gamestate which is not persisted in the savegame | recalc_cached_data |
| refocus_map | nothing | Restores the map input context and clears any stray UI keyboard focus, in case WASD/arrow map panning stopped responding. | refocus_map |
| update_pop_cache | nothing | Recalculates the cached data related to pops in the player country | update_pop_cache |
| update_modifiers | nothing | Recalculates the modifiers | update_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_time | nothing | Ignores pause and overrides scale time setting it to 1.0. Also works as dbg_anim_time. | debug_animation_time |
| reload_terrain2_materials | nothing | Reload terrain2 textures | reload_terrain2_materials |
| print_selected_illustration_info | eventidverboseeventidverbose | Prints debug info about selecting a illustration Also works as prt_ill_info. | print_selected_illustration_info |
| print_selected_images_info | eventid verboseevent 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 locationnumbers of pixels to search for other location (optional) | Checks what locators are inside the province that should contain them | MapObjects.CheckLocators |
| PrintLocationBiome | [optional] location id to print biome forlocation id to print biome for (optional) | Prints the biome of the hovered (or entered as argument) location | PrintLocationBiome |
| list_dhe_for | nothing | Lists what DHEs were fired for a tag | list_dhe_for |
| Cities.PrintUsedSchematics | nothing | Prints a list of all of the schematics used in city mesh lists | Cities.PrintUsedSchematics |
| MapObjects.DebugDefaultLocatorTransforms | nothing | Generates debug lines for game object locator default placement | MapObjects.DebugDefaultLocatorTransforms |
| reload_pin_collections | nothing | Reload Pin Collections | reload_pin_collections |
| spawn_in_every_location | nothing | Spawn an schematic of the desired type in every location. It can be limmited in fov, fow or player | spawn_in_every_location |
| copy_mouse_pos | nothing | Copies the mouse position into the clipboard | copy_mouse_pos |
| fake_whisper | [message...]message... (optional) | Simulates an incoming DM for testing the whisper notification toast | fake_whisper |
| dump_timeline_manager | nothing | Prints the serialized contents of the timeline manager | dump_timeline_manager |
| dump_invalid_rivals | nothing | Prints all invalid rivals | dump_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.
| Command | What you type after it | Help text in the game | Line to copy |
|---|---|---|---|
| reload | file namefile name | Reloads assets | reload |
| time | nothing | What time is it? | time |
| crash | nothing | Cause the application to crash | crash |
| vram_end | nothing | Cause the application to experience an out of vram | vram_end |
| debug_mode | nothing | Toggles debug mode | debug_mode |
| release_mode | nothing | Toggles release mode | release_mode |
| screenshot | nothing | Take screenshot | screenshot |
| log | nothing | log list: Print a list of all log categories and sinks | log |
| dump_tweakables | nothing | Dumps all available tweakables to the specified file in the user folder. | dump_tweakables |
| pseudoLoc | nothing | Enable/Disable Pseudo Localization on Text Widgets | pseudoLoc |
| GUI.ToggleCursor | nothing | Create PDX GUI based software cursor if it is not created yet, destroy it otherwise | GUI.ToggleCursor |
| GUI.AnimationTimeline.LogStats | nothing | Dump stats of the GUI Animation Timeline system to the debug log. | GUI.AnimationTimeline.LogStats |
| Debug.TextureMode | Name of debug modeName of debug mode | Enables a texture mode for debugging | Debug.TextureMode |
| vsync | nothing | Toggle main swapchains vsync | vsync |
| swapchain.buffers | nothing | Query/Set swapchain buffers | swapchain.buffers |
| Ecs.RunRenderingBenchmark | Schematic name Number of instances Duration (s)Schematic name, Number of instances, Duration (s) | Executes the ecs rendering benchmark | Ecs.RunRenderingBenchmark |
| minidump | nothing | Creates a minidump | minidump |
| switchlanguage | nothing | Reload localization files and switch language | switchlanguage |
| settings | nothing | Spawns a settings GUI with an optional argument for an initially selected category | settings |
| Application.ChangeResolution | nothing | Change the resolution through the console | Application.ChangeResolution |
| Threading.TaskThreadCount | nothing | Set or get the number of task threads | Threading.TaskThreadCount |
| map_editor | nothing | Toggle map editor | map_editor |
| pdx_dba_map_test | nothing | Test CPdxDBAMap | pdx_dba_map_test |
| Session.GetEnabledDLCs | nothing | Gets the enabled DLCs for this session | Session.GetEnabledDLCs |
| toggle_mapobject_layer | nothing | Toggles a specific mapobject layer | toggle_mapobject_layer |
| gfx.skin | nothing | select active gfx skin | gfx.skin |
| rendertype | nothing | Reports what render backend is used | rendertype |
| gfx.reloadtexture | nothing | Reload textures | gfx.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.