# Victoria 3 console commands

All 146 commands the console of Victoria 3 knows, from the game's own code. Pick one in the builder, choose the country, state or law from lists, and copy the line.

Source page: https://victoria3db.com/console-commands/

## How do you use the console?

The Steam launcher offers "Open game in Debug Mode" next to the normal start, which runs the game with `-debug_mode`. Type `help` in the console to list the commands, or `help` and a command name for one command. The key that opens the console is not in the game files, so we do not name one here.

Commands take their arguments after the name, separated by spaces. A country is its tag, such as `GBR` for [Great Britain](https://victoria3db.com/countries/gbr/). A state is its key, such as `STATE_LOMBARDY`, which you find on the [state pages](https://victoria3db.com/states/). A law is its key, such as `law_monarchy` ([Monarchy](https://victoria3db.com/laws/monarchy/)), and a technology is its key too ([Railways](https://victoria3db.com/technologies/railways/) is `railways`). Each key is on the page of the thing itself.

## Which commands do people look for?

`money`, `research`, `change_law`, `annex`, `tag`, `add_journal_entry` are all in the list below. The game has no command named `play` or `infamy` among the 146 we could read. To switch country you use `tag`. Changes to infamy and similar numbers are done through the game's script effects (`change_infamy`, for one), which the console commands here do not cover.

[Money and research](#g-money)[Countries, land and diplomacy](#g-country)[Laws, interest groups and power blocs](#g-politics)[Journal entries and events](#g-journal)[Time, the console and AI switches](#g-game)[Reports, logs and testing](#g-debug)[Cheat modes](#g-cheats)[Macros](#g-macros)

## Money and research

The commands people ask for first.

| Command | What you type after it | Help text in the game | Line to copy |
| --- | --- | --- | --- |
| money | `amount` | Adds specified amount of money Invalid arguments count / Added / money. | `money 1000` |
| investment_pool | `amount` | Adds specified amount of money to the investment pool Invalid arguments count / Added / money to investment pool. | `investment_pool 1000` |
| research | `Specify a tech key OR an era number` | Acquire technologies Please specify either technology type key or technology era number / All techs up to and including era %d granted to player country / Expected era number between %d and %d / Invalid technology type key %s / Cannot acquire research if Observer / Technology %s acquired by player country | `research railways` |
| add_supply_ships | `count` | Adds specified amount of supply ships to the player country | `add_supply_ships` |

## Countries, land and diplomacy

| Command | What you type after it | Help text in the game | Line to copy |
| --- | --- | --- | --- |
| observe | nothing | start observing the game Also works as `ob`. Cannot leave observe mode without a country selected / Going to observe mode / Ending observe mode | `observe` |
| add_war_support | `country_TAG` `amount` | Alters wars support of country in ALL of their wars by amount Wrong number of args / Added War Support / That country does not exist | `add_war_support` |
| add_radicals | `culture` `amount` | Adds radicals to culture in country by fraction of population Wrong number of args / Invalid culture instance / Culture not present in country / Added Radicals / Invalid culture | `add_radicals` |
| add_loyalists | `culture` `amount` | Adds loyalists to culture in country by fraction of population Wrong number of args / Invalid culture instance / Culture not present in country / Added Loyalists / Invalid culture | `add_loyalists` |
| tag | `country_TAG` | Switch control to another country Please specify the country tag / Now Playing - / Such country does not exist. / empty tag. check your spaces | `tag GBR` |
| own | `province id/state region tag` `country tag` | Change the owner of specified province or state region Please specify province hex or state region key / _ProvinceColors.IsEmpty() && "Provinces have not been loaded yet!" / State now belongs to / province now belongs to | `own STATE_LOMBARDY GBR` |
| check_pollution_level | `state region tag` | Print out pollution for specified state region Please specify state region key / Unknown state region key / Current Pollution level is: / Target Pollution level is: | `check_pollution_level` |
| set_pollution_level | `state region tag` `amount` | Set pollution level in specified state region Please specify state region key and pollution level / Unknown state region key / State region pollution level set | `set_pollution_level` |
| set_devastation_level | `state region tag` `amount` | Set devastation level in specified state region Please specify state region key and devastation level / Unknown state region key / State region devastation level set | `set_devastation_level` |
| conquerall | `country tag` | Set all enemy provinces under our control. Please specify enemy country tag. / invalid player / invalid enemy id / 0 more provinces are under our control | `conquerall FRA` |
| create_political_movement | `<movement type key>` | Creates a political movement Not enough arguments. / Invalid player country. / Invalid movement type! / Created political movement for | `create_political_movement` |
| treatyport | `<state region tag>` | Takes treaty port in state region Not enough arguments. / Invalid state region key / Invalid player country. / Seized treaty port in | `treatyport STATE_LOMBARDY` |
| annex | `<country tag/id>` | Annexes a country Not enough arguments. / Invalid player country. / Can't annex yourself! / Invalid country tag/id. | `annex FRA` |
| annex_all | nothing | Annexes all other countries Invalid player country. | `annex_all` |
| create_country | `country definition` `country type` `culture` `state ID` | Creates a country Invalid amount of arguments provided. / Bad country definition. / Invalid State. / Bad culture. / Bad country type. | `create_country` |
| annex_province | `<province ID>` | Annex province with specified ID or the hovered province IsWithinBounds( ProvinceIndex ) / Invalid province to annex / Province is already owned by player / Cannot annex the province - it's not in a state / Country / Province {} is now owned by '{}' | `annex_province` |
| decolonize | nothing | Passes an already colonized province belonging to a centralized country's colony over to a neighboring decentralized country's state | `decolonize` |
| add_relations | nothing | Changes relations with country by a given value Invalid player country / Wrong number of args, expected: 'country tag', 'relations delta' - optional (default=1) / Invalid value for 'relations value', should be an integer. / Could not find country ' / Success! Relations with / are changed from | `add_relations` |
| add_liberty_desire | `Country tag` `Liberty Desire Value optional (default=10)` | Changes liberty desire of subject country by a given value Invalid player country / Wrong number of args, expected 2: 'country tag' 'Liberty Desire Value(optional default=10)' / Invalid value for 'liberty desire', should be an integer. / Could not find country ' / Subject Pact not found for country. / Success! Liberty desire of subject / increased by | `add_liberty_desire` |
| kill_character | `character name` | kills the named character Must specify character name or ID / killed / Multiple matches for character name / No match for character name/ID | `kill_character` |
| native_uprising | `Colonizer country tag` | Native country tag | `native_uprising` |
| add_involvement | `region_id` `value (can be negative)` | add_involvement <region_id> <value>: Adjust current involvement in a strategic region for the player country (does NOT change target involvement). Usage: add_involvement <region_id> <value> / Invalid player country / Strategic region with that id not found / No existing interest; delta is zero, nothing to do / Cannot reduce involvement; no existing interest in region / Failed to create interest / Adjusted involvement in region id %d from %s to %s (delta %s) / Created interest and set involvement in region id %d to %s (delta %s) | `add_involvement` |
| set_hostility | `<country tag/id>` `<hostility type: naval/war/limited_war>` `<1=add (default), 0=remove>` | Adds or removes hostility between player and target country | `set_hostility` |

## Laws, interest groups and power blocs

| Command | What you type after it | Help text in the game | Line to copy |
| --- | --- | --- | --- |
| add_approval | nothing | Adds an approval timed modifier to a given IG Invalid player country / Wrong number of args, expected: 'interest group name', 'approval' - optional (default=1), 'duration in months' - optional (default=1) / Invalid value for 'approval', should be an integer. / Invalid value for 'duration in months', should be numeric. / Interest group not found: / Success! / will add / approval for | `add_approval` |
| add_clout | nothing | Adds or removes clout of the IG by changing their political strength with timed modifier Invalid player country / Wrong number of args, expected: 'interest group name', 'political strength' - optional (default=1), 'duration in months' - optional (default=1) / Invalid value for 'political strength', should be numeric. / Invalid value for 'duration in months', should be numeric. / Interest group not found: / Success! / gets / political strength for | `add_clout` |
| add_ideology | `Target interest group.` `Ideology to add.` | Add an ideology to a given IG | `add_ideology` |
| queue_company_owned_building | `<country ID> <company type key> <state ID> <building type key>` | Queue a company-owned building to the private construction queue Missing argument: country ID / Invalid country ID: {} / Missing argument: company type key / Invalid company type key: {} / Company {} doesn't exist in country {} / Missing argument: state ID / Invalid state ID: {} / Missing argument: building type key | `queue_company_owned_building` |
| change_law | `law key, country tag (optional)` | Changes a Law to the specified key Must specify at least the new law to activate! / Max 2 arguments / Invalid law key %s specified / Invalid country tag %s specified / Activated %s for %s | `change_law law_monarchy` |
| add_mandates | `Number of mandate points` | Add mandate points to the current player's power bloc. | `add_mandates` |
| add_cohesion | `Amount of cohesion` | Add cohesion to the current player's power bloc. | `add_cohesion` |
| set_cohesion | `Cohesion value` | Set the cohesion value for the current player's power bloc. | `set_cohesion` |

## Journal entries and events

| Command | What you type after it | Help text in the game | Line to copy |
| --- | --- | --- | --- |
| add_journal_entry | `<journal entry type>` | Add a specific journal entry to the player country Missing journal entry type as argument / Invalid journal entry type / Invalid CJournalEntryCommand - JE already exists? / Added journal entry | `add_journal_entry je_abolish_monarchy` |
| activate_journal_entry | `<journal entry type>` | Activate a specific journal entry for the player country Missing journal entry type as argument / Invalid journal entry type / Invalid CJournalEntryCommand - JE doesn't exist or is already active? / Activated journal entry | `activate_journal_entry je_abolish_monarchy` |
| conclude_journal_entry | `<journal entry type>` `<outcome index>` | Concludes a specific journal entry for the player country with the given outcome index, invalid and timeout outcomes not allowed Missing journal entry type or outcome index as arguments / Invalid journal entry type / Invalid CJournalEntryCommand - JE doesn't exist or is not active? / Concluded journal entry / with conclusion description / Invalid outcome index | `conclude_journal_entry` |
| timeout_journal_entry | `<journal entry type>` | Timeouts a specific journal entry for the player country Missing journal entry type as argument / Invalid journal entry type / Invalid CJournalEntryCommand - JE doesn't exist or is not active? / Timeouted journal entry | `timeout_journal_entry je_abolish_monarchy` |
| invalidate_journal_entry | `<journal entry type>` | Invalidates specific journal entry for the player country Missing journal entry type as argument / Invalid journal entry type / Invalid CJournalEntryCommand -JE doesn't exist or is not active? / Invalidated journal entry | `invalidate_journal_entry je_abolish_monarchy` |
| event | `event name` `<country_TAG/province_ID>` | Executes an event | `event` |
| testevent | `event name` `<country_TAG/province_ID>` | Tests an event | `testevent` |
| testobjective | `<subgoal key (optional)>` | Tests objective triggered effects No objective to test / Testing subgoal / Blocking/unlocking subgoal check: PASS / Blocking/unlocking subgoal check: FAIL / Did not find specified objective subgoal | `testobjective` |
| select_event_option | `option index, or list` `<event id, default oldest pending>` | Selects an option of one of your pending events as if clicked, or lists pending events | `select_event_option` |

## Time, the console and AI switches

| Command | What you type after it | Help text in the game | Line to copy |
| --- | --- | --- | --- |
| disable_ai | `all/tag` | Disables AI Bad number of arguments / Disabled player AI / Disabled ALL AI / Could not find country / Disabled AI | `disable_ai all` |
| enable_ai | `all/tag` | Enables AI Bad number of arguments / Enabled player AI / Enabled ALL AI / Could not find country / Enabled AI | `enable_ai all` |
| yesmen | nothing | AI will agree to all diplomatic proposals & sway offers from players Also works as `yesmen`. AI will no longer agree to all player diplomatic proposals and sway offers / AI will now agree to all player diplomatic proposals and sway offers | `yesmen` |
| date | `date in format yyyy.mm.dd.hh` | Changes current date Date changed. / Please specify the date in format yyyy.mm.dd.hh | `date 1850.1.1.12` |
| debug | `Arguments: lines/alwaysupgradecolony/ai/influence/market/alwaysreform/allmoney/alwaysdiplo/artisanchange/focusai/info/profile/pops/tooltips/assert/promotiondesc/demotiondesc/cb_use/eco/textures/fow/yesmen/wireframe/minzoom/render/color` | Various debugging actions assert / Asserts are now turned OFF. / Asserts are now turned ON. / Please specify some arguments. | `debug` |
| version | `<0/1>` | Shows current build information, put 1 as second parameter for long version Also works as `cv`. No game setup? | `version` |
| mapmode | `mapmode` | Switches to a given mapmode Not enough arguments. / Failed to find mapmode / Mapmode unset. / Mapmode set. / No interface state! | `mapmode` |
| help | `command name` | Print out all console commands or a specific command description. Invalid arguments count. | `help` |
| assert | `Asserts are now turned ON.` `Please specify some arguments.` | Asserts are now turned OFF. | `assert` |
| sleep | nothing | Sleep for specified amount of milliseconds | `sleep` |
| deiron | nothing | Disables Ironman mode | `deiron` |
| callstack | nothing | Print the callstack | `callstack` |

## Reports, logs 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 |
| --- | --- | --- | --- |
| recalc_cached_data | nothing | Recalculate cached gamestate data. No gamestate / Recalculated cached gamestate data | `recalc_cached_data` |
| spawnnotification | `notificationtype` `<scopeindex>` | Spawns notification of specified type. Please specify notification type. / Unknown notification type. / Unhandled scope / Invalid index for the scope. / Spawned new notification of scope ' | `spawnnotification` |
| popstat | nothing | Prints out amount of active pops. We have / pops active. | `popstat` |
| Logging.PopStats | nothing | Creates a semi-colon delimited logfile of the current status of all pops. Also works as `debugpopstats`. pop_stats / country / state / workplace / poptype / culture / religion / workforce | `Logging.PopStats` |
| ai_print_strategy_values | nothing | Prints AI debug data for certain AI strategy values such as desired military sizes. Printing strategy data for / Wanted construction output: / Wanted ship construction output: / Wanted army size: / Wanted navy size: / Wanted / Wanted supply ships: / Wanted marines: | `ai_print_strategy_values` |
| ai_evaluate_production_method | `<building key> <pm key> <state region key>` | Prints AI debug data for selected production method in state for building type. Please specify building type and production method keys (state region optional) / Invalid building type / Invalid production method / Invalid state region / Invalid state / No such building in state / Building does not use the selected production method / AI score for | `ai_evaluate_production_method` |
| validate_pops | nothing | Ensures all pops have valid params and prints them to the error log otherwise. Also works as `validate_pops`. This command takes no arguments / %i pops validated %i errors found | `validate_pops` |
| create_building_history | nothing | Creates a game-history compliant .txt file of all buildings in the world / state ID as well as their PM / subsidy configurations. Also works as `create_building_history`. false / Expected "true" or "false" / Please specify only true/false to include only buildable buildings (default: true) / history_scripts/buildings/ / region_state: / create_building / add_ownership / country | `create_building_history` |
| create_state_region_data | nothing | Creates a game-database compliant .txt file of all state regions in the world and their provinces/resources Also works as `create_state_region_data`. State Regions NOT written, do you have a valid gamestate yet? / history_scripts/state_regions/verified_hubs.txt / history_scripts/state_regions/ / _ProvinceColors.IsEmpty() && "Provinces have not been loaded yet!" / Map has not been created yet! / IsWithinBounds( ProvinceIndex ) / Province index out of bounds! / Locator for hub %s in state region %s is in province %s which is not land! | `create_state_region_data` |
| debugmassmigrations | `culture` | Prints all possible mass migration targets for a culture along with their score Wrong number of args / Invalid culture instance / No potential migration sources or targets / Potential migration sources: / Potential migration targets: / Invalid culture | `debugmassmigrations` |
| Logging.Characters | nothing | Creates a semi-colon delimited logfile with debug info regarding all characters. Also works as `debugcharacters`. characters / Log created at: | `Logging.Characters` |
| Logging.Markets | nothing | Creates a semi-colon delimited logfile with debug info regarding all goods and markets. Also works as `debugmarkets`. markets / market_owner / colonizable / false / market_name / market_gdp / goods / category | `Logging.Markets` |
| Logging.PopConsumption | nothing | Creates a semi-colon delimited logfile with debug info regarding all pops' consumption Also works as `debugpopconsumption`. popconsumption / country / state / unemployed / workplace / profession / culture / religion | `Logging.PopConsumption` |
| debugterrainweights | nothing | Prints out the number of debug/terrain_weights.txt / %s: %i / Log created at: | `debugterrainweights` |
| testaipacts | nothing | Test whether AI would dissolve current pacts Testing pact / with | `testaipacts` |
| invalidate_character | `character ID` | Invalidate the modifier on the character with the specified ID Please specify object ID / Modifier of object ID / invalidated | `invalidate_character` |
| invalidate_state | `state ID` | Invalidate the modifier on the state with the specified ID Please specify object ID / Modifier of object ID / invalidated | `invalidate_state` |
| invalidate_country | `country ID` | Invalidate the modifier on the country with the specified ID Please specify object ID / Modifier of object ID / invalidated | `invalidate_country` |
| invalidate_ig | `interest group ID` | Invalidate the modifier on the interest group with the specified ID Please specify object ID / Modifier of object ID / invalidated | `invalidate_ig` |
| create_pop_history | nothing | Creates a dump in debug.log with a complete pop history s:{} = {{ / region_state:{} = {{ / create_pop = {{ / culture = {} / religion = {} / size = {} / Printed complete pop history to debug.log | `create_pop_history` |
| check_save | nothing | Checks that saving and loading is consistent | `check_save` |
| Terrain.Regenerate | `default terrain name` | Regenerates terrain bitmap Also works as `regenerateterrain`, `regenerate_terrain`. specified default terrain not found / detail_index.tga / detail_intensity.tga / generated/province_terrains.txt / Could not load index texture / Could not load intensity texture / #This is a generated file, do not modify unless you know what you are doing! / x%06X | `Terrain.Regenerate` |
| list_containers | `type filter` | List all script containers, optionally filtered by type tag | `list_containers` |
| print_container | `container name or id` | Print the variables of a script container, by name or id | `print_container` |
| remove_container | `container name or id` | Remove a script container, by name or id | `remove_container` |
| print_gamestate_modifiers | nothing | Prints Gamestate Modifiers IsWithinBounds( ProvinceIndex ) / Invalid province to annex / Province is already owned by player / Cannot annex the province - it's not in a state / Country / Province {} is now owned by '{}' | `print_gamestate_modifiers` |
| Logging.MilitaryFormations | nothing | Prints all military formations and their relevant properties | `Logging.MilitaryFormations` |
| Logging.LandProvinces | nothing | Prints the terrain of all land provinces | `Logging.LandProvinces` |
| Logging.LowSolRadicals | `Country tag, defaults to the played country` | Logs every pop below its expected standard of living and the radicals it generates | `Logging.LowSolRadicals` |
| ai.debug | `tag` | dumps debug info for country Command works only in game state / Could not find ai goal ' / execute / Could not find country ' / No AI has been created for country ' / Debug info for goal ' / ' for country ' / Wanted Commands: | `ai.debug` |
| ai.goal | `tag` `goal type` `execute (optional)` | Checks ai goal and executes it if 'execute' is set Command works only in game state / Could not find ai goal ' / execute / Could not find country ' / No AI has been created for country ' / Debug info for goal ' / ' for country ' / Wanted Commands: | `ai.goal` |
| wagerate | `<building ID> <new wage rate> (optional)` | Get or Set a building's wage rate Please specify either technology type key or technology era number / All techs up to and including era %d granted to player country / Expected era number between %d and %d / Invalid technology type key %s / Cannot acquire research if Observer / Technology %s acquired by player country | `wagerate` |
| Logging.ColonyGrowth | nothing | Prints a comma-delimited list of all colonies in the world, how much they're growing, and why | `Logging.ColonyGrowth` |
| force_oos | nothing | Make this client go out of sync in multiplayer forced OOS | `force_oos` |
| find_unemployed | `unemployment ratio cutoff` | Find and report all unemployed pops with an optional cutoff Missing argument: country ID / Invalid country ID: {} / Missing argument: company type key / Invalid company type key: {} / Company {} doesn't exist in country {} / Missing argument: state ID / Invalid state ID: {} / Missing argument: building type key | `find_unemployed` |
| generate_province_center_objects | nothing | generates a file with meshes in the center of each province | `generate_province_center_objects` |
| debugstates | nothing | Write a semi-colon delimited logfile with debug info regarding all states. | `debugstates` |
| Logging.debugcountries | nothing | Write a semi-colon delimited logfile with debug info regarding all countries. Also works as `debugcountries`. | `Logging.debugcountries` |
| debugtheaters | nothing | Write a semi-colon delimited logfile with debug info regarding all theaters. Must specify character name or ID / killed / Multiple matches for character name / No match for character name/ID | `debugtheaters` |
| Logging.CulturalAcceptance | nothing | Write a semi-colon delimited logfile with a list of all cultures present in each country, the country's laws, and the resulting acceptance | `Logging.CulturalAcceptance` |
| SplineNetwork.SetAssetGenerationMode | nothing | Sets mode for spline strips and anchors generation <naval/default> | `SplineNetwork.SetAssetGenerationMode` |
| Print.EventDebug | nothing | Print event debug statistics, needs to set Debug.Events to collect statistics | `Print.EventDebug` |
| SplineNetwork.ValidateSplines | nothing | Validate the integrity of in-game spline system | `SplineNetwork.ValidateSplines` |
| Logging.PopGrowth | nothing | Logs the base pop growth birthrate/mortality table. If provided with a certain standard of living value it prints only that. Also works as `standard_of_living`. | `Logging.PopGrowth` |
| Logging.MarketGoodsShortages | nothing | Logs the goods shortages in all markets Also works as `market_goods_shortages`. | `Logging.MarketGoodsShortages` |
| Logging.UnprofitableBuildings | nothing | Logs all the buildings with 0 productivity. If provided with a value, it logs all buildings at or below that. Also works as `unprofitable_buildings`. | `Logging.UnprofitableBuildings` |
| ai_evaluate_company | `company type key` | | `ai_evaluate_company` |
| ai_print_company_target | `country tag (optional, defaults to player)` | Prints the company the AI wants to form next and where its construction scores are boosted | `ai_print_company_target` |
| ai_evaluate_trade | `goods key` `state region key` | Prints AI score for trading a good in a particular state | `ai_evaluate_trade` |
| ai_evaluate_treaty_trade | `goods key` | Prints AI score for trading a good via treaties | `ai_evaluate_treaty_trade` |
| ai_evaluate_state | `state region key` `country tag` | Prints AI score of how much they want to own a particular state | `ai_evaluate_state` |
| ai_evaluate_colonization | `strategic region key` `country tag` | Prints AI score of how much they want to colonize a region | `ai_evaluate_colonization` |
| ai_evaluate_interest | `strategic region key` `country tag` | Prints AI score & strategic focus for interest in a strategic region | `ai_evaluate_interest` |
| ai_evaluate_fleet_mission | `fleet id` `strategic region key or sea province index (optional)` `mission key (optional, e.g. intercept, project_power)` | Prints AI fleet mission scores. With only fleet ID: all relevant nodes. With sea node: all missions at that node. With sea node + mission: detailed breakdown. | `ai_evaluate_fleet_mission` |
| ai_evaluate_treaty_port | `state region key` `country tag` | Prints AI score of how much they want to have a treaty_port in a particular state | `ai_evaluate_treaty_port` |
| ai_evaluate_subject | `country tag` | Prints AI score of how much they want a particular country to be their subject | `ai_evaluate_subject` |
| ai_evaluate_wargoal | `war goal type, country tag, state region key` | Prints AI score of how much they want a particular war goal, ignoring infamy | `ai_evaluate_wargoal` |
| merge_formations | `Source Formation ID` `Target Formation ID` | | `merge_formations` |
| track_formation | `Source Formation ID` `Target Formation ID` `Rendezvous Behavior` | | `track_formation` |
| customs_unions | nothing | Print the list of all customs unions | `customs_unions` |
| goods_pool_performance_test | nothing | Runs a number of tests involving CGoodsPool to evaluate performance in a profiler | `goods_pool_performance_test` |
| ai_evaluate_mobilization | nothing | Print AI debug information for mobilization targets | `ai_evaluate_mobilization` |
| Logging.GameStateGenerators | nothing | Prints a list of the gamestate generators in dependency sequence to the console | `Logging.GameStateGenerators` |
| print_piracy_values | nothing | Prints piracy heat, hunt pirates scores, fleet assignments, and active piracy missions for the player country. | `print_piracy_values` |
| ai_print_region_stances | `country tag (optional, defaults to player)` | Lists AI strategic region stances for all regions with >0 score, in descending score order | `ai_print_region_stances` |
| ai_print_region_objectives | `country tag (optional, defaults to player)` | Lists the AI regional objectives a country currently holds, with the region and stance each was rolled under | `ai_print_region_objectives` |
| scripted_tests | `<(Optional) Failed Test Save: before/none/after>` | Run scripted tests | `scripted_tests` |
| pop_size_stats | nothing | Dump some stats about size of pops | `pop_size_stats` |
| count_countries_with_hierarchy | `social hierarchy key` | | `count_countries_with_hierarchy` |
| Logging.NormalDist | nothing | Generates and logs normally distributed random numbers in the interest of diagnosing the generator. If not specified, the command logs 1000 variables with mean 0 and standard deviation 1. Usage: Logging.NormalDist [Number of Samples] [Mean] [Standard Deviation] / [Number of Samples] value provided must be greater than 0. [Standard Deviation] value provided must be greater than or equal to 0. / normal_distribution_sample_table / Log created at: %s | `Logging.NormalDist` |
| Debug.ReseedEvents | nothing | Rerolls the global random seed and the stored random seeds of every journal entry and pending event. Optional argument: seed. Not available in multiplayer / Usage: Debug.ReseedEvents [seed] / ReseedEventScopes / Reseeded with {}: {} journal entries, {} events | `Debug.ReseedEvents` |
| Debug.GlobalRandom | nothing | Prints the the global random count and seed as well as a series or randomly generated values. If not specified, the command generates 10 values. Usage: Debug.GlobalRandom [Number of Samples] / [Number of Samples] value provided must be greater than 0. / debug_global_random_table / RandomCount / Sample / Random Log with Seed (%d) created at: %s | `Debug.GlobalRandom` |
| savegames.delete_all | nothing | Deletes all save games (local and cloud). | `savegames.delete_all` |
| savegames.delete_cloud | nothing | Deletes all cloud save games. | `savegames.delete_cloud` |
| print_states_with_most_small_pops | nothing | Prints states with the most pops of size below 1000, in descending order. Also works as `states_with_most_small_pops`. | `print_states_with_most_small_pops` |
| savegames.delete_local | nothing | Deletes all local save games. Usage: add_involvement <region_id> <value> / Invalid player country / Strategic region with that id not found / No existing interest; delta is zero, nothing to do / Cannot reduce involvement; no existing interest in region / Failed to create interest / Adjusted involvement in region id %d from %s to %s (delta %s) / Created interest and set involvement in region id %d to %s (delta %s) | `savegames.delete_local` |
| inspect_country | `country_tag (optional)` | inspect_country <country_tag>: Opens the inspector with the defined country or player country if empty | `inspect_country` |
| create_naval_mission | `fleet_id (optional): the ID of the fleet to create the order for` | create_naval_mission <fleet_id>: Creates an intercept naval mission for the given fleet or all fleets in the player country if no fleet is given | `create_naval_mission` |
| debug_supply_for_formation | `formation ID` | Debug supply path from logistics center to a military formation | `debug_supply_for_formation` |
| debug_supply_runs | nothing | List the drawn runs of the supply route arrows, with their lengths and sharing | `debug_supply_runs` |
| debug_ai_fleet_transfers | `<country>` | Prints the current transfers between fleets the AI is performing | `debug_ai_fleet_transfers` |
| debug_ai_fleet_assignments | `<country>` | Prints the current fleet composition assignments and pending/active fleet creation requests for the AI | `debug_ai_fleet_assignments` |
| optick_capture | `<start/stop>` `<samples per second when starting, file name when stopping>` | Starts an Optick capture, or stops it and saves the result | `optick_capture` |
| dump_ticktask_timings | `<file name>` | Writes the tick task timings the game already records to a file | `dump_ticktask_timings` |
| clear_ticktask_timings | nothing | Discards the tick task timings recorded so far, so the next dump covers only what follows | `clear_ticktask_timings` |
| Logging.BuildingEmployment | `Country tag, defaults to the played country` | Logs every built building with its employment, hiring status and wage decision | `Logging.BuildingEmployment` |
| print_world_gdp | nothing | Prints the combined yearly GDP of every country in the world | `print_world_gdp` |
| ai_evaluate_strait | `strait key` | Print how much the player's country depends on a strait and the grievances it holds there, as the AI measures them, plus the fallout of restricting it further when the player controls it | `ai_evaluate_strait` |
| loadingscreen_sample | `Sample count` | Samples the loading screen picker N times with a fixed seed and logs the count per screen, optionally for a Y.M.D date | `loadingscreen_sample` |
| TravelNetworkTools.CheckHubAnchorProvinces | nothing | Log every city, farm, mine, port and wood hub whose spline anchor lies outside the province its state region names for that hub. | `TravelNetworkTools.CheckHubAnchorProvinces` |

## Cheat modes

These are the cheat modes in the game's list. Type the name to switch one on, and type it again to switch it off. A mode with a number, such as the speed ones, takes it after the name.

| Mode | Line to copy |
| --- | --- |
| fastresearch | `fastresearch` |
| fastbuild | `fastbuild` |
| fastenact | `fastenact` |
| fastinvolvement | `fastinvolvement` |
| fastrevolution | `fastrevolution` |
| fastsecession | `fastsecession` |
| fasthire | `fasthire` |
| fastinstitutions | `fastinstitutions` |
| fasttravels | `fasttravels` |
| fastmobilize | `fastmobilize` |
| norevolution | `norevolution` |
| nosecession | `nosecession` |
| disable_retooling | `disable_retooling` |
| skip_history | `skip_history` |
| permitmarginalizedingovernment | `permitmarginalizedingovernment` |
| ignore_government_support | `ignore_government_support` |
| skip_migration | `skip_migration` |
| disable_pop_growth | `disable_pop_growth` |

## Macros

The game ships a file of console macros, a name that runs several commands. The ones it has are below, and you can add your own to that file.

| Macro | Arguments | What it says it does | Commands it runs |
| --- | --- | --- | --- |
| debug_macro | 0 | turn on fastresearch and fastbuild and tag switch to France | `fastresearch` `fastbuild` `tag FRA` |
| debug_money | 1 | give us X money | `money $1` |
| debug_args | 2 | run debug_macro and give us $1 and $2 debug_money | `debug_macro` `debug_money $1` `debug_money $2` |

## Where this list comes from

The game ships no list of its console commands. The code registers each one with its name, help text and argument hints, and we read those from `victoria3.exe` 1.15.2: 55 from the main table and 91 that the game registers one by one, mostly for debugging and the AI. The cheat modes are the game's own name list. The help text is the game's, typos included.

We found no hint of an argument for some commands, so their rows show the name only. Commands for developers write logs or files and do nothing you would see.
