Since the Pompey patch (1.1), the console is disabled by default. To enable it, you need to launch the game in the debug mode:
- On Steam: right-click the game, choose Properties, Set Launch Options, add "-debug_mode"
- On Windows: create a shortcut for the game, right-click it, choose Properties and in the Target field add "-debug_mode" (remove the quotation marks) at the end
- On GOG: right-click the game, choose Settings, check "Add command line arguments" and enter "debug_mode"
- On GOG Galaxy 2.0: In the game page, select the Settings button next to the Play button at the top of the page, open the Manage installation submenu and select Configure.... In the new window, make sure the Launch parameters Custom executables / arguments is ticked at the bottom of the page. You can duplicate the "startgame" executable and type -debug_mode into the Arguments field.
The debug mode disables achievements. Console commands are not available in ironman games or multiplayer.
To hide the purple debug tooltip, use the Hide Debug Tooltip mod.
To open the console press ` (top left, below Esc)
Alternatively, try one of the following: Shift+2, ALT+2+1, Shift+3, §, ~, ^, °, ²
Press ↑ or ↓ to scroll through the last used commmands.
Press ⇆Tab to autocomplete a command.
Below is a short list of common commands. For the full list type "help" in the console or visit https://commands.gg/imperator
[<x>] means you can input a number or an id, e.g. "cash 300" or "annex ROM". You can find the tag in the debug tooltip when hovering over a country or on this page.
List of commands[edit | edit source]
Please help with verifying or updating this section. It was last verified for version 1.3.
|ae [<amount>]||Modifies your aggressive expansion. ae -10 would reduce it by 10.|
|annex [<countrytag>]||Annexes the specific country to yours.|
|army [<cohortcount>][<province>]||Adds specific amount of units in selected province.|
|army_loyalty [<prov> <amount>]||Sets army loyalty to specified amount.|
|cash [<amount>]||Adds specified amount of gold. Base is 5000.|
|centralization [<amount>]||Sets centralization to specified amount.|
|character.age [<id>] [<age>]||Sets character age. You can also do the same for prominence, popularity, corruption, etc. But not for loyalty.|
|character.martial [<id>] [<value change>]||Sets character martial, replace with zeal, charisma, or finesse for those. The change in value can be negative as well. "-10, 4, 9" etc.)|
|civil_war [<countrytag>]||Starts a civil war in the specified country.|
|coat_of_arms [<countrytag>]||Prints the script for the country's coat of arms/flag to logs\games.log. This is the only way to see the script for game-generated flags.|
|conquer [<provid>]||Conquer specified territory.|
|control [<provid> [<countrytag>]||Control specified territory by specified country.|
|debug_mode||Shows tags and Ids, equivalent to charinfo in CK2.|
|debug.achievements.resetall||Resets all achievements (developer command).|
|declare_war [<countrytag>] [<countrytag>]||Starts war between two countries.|
|destroy_mercenaries||Destroys all mercenaries on the world map, but does not prevent them respawning.|
|eagerness [<countrytag>]||Check AI eagerness for war.|
|event [eventid][target]||Triggers event for specified character/province/country.|
|exile||Exiles selected units.|
|explorer||Opens the object explorer debug tool|
|forcepeace [<countrytag>]||Forces AI generated peace offers for specified country.|
|fow||Toggles fog of war on/off.|
|gui_editor||Opens the GUI editor|
|horde [<province>]||Spawns a barbarian horde of 100k units in specified province.|
|instantbuild||Toggles on/off instant build|
|instantmove||Toggles instant move on and off|
|instantpopassimilation||Toggles instant cultural assimilation of all your pops on monthly tick on and off|
|instantpopclass||Toggles instant promotion and demotion of all your pops on monthly tick on and off|
|instantpopreligiousconversion||Toggles instant religious conversion of all your pops monthly tick on and off|
|instantsiege||Toggles instant sieges on and off|
|instantwar||Toggles on/off instant war declaration.|
|kill [<id>]||Kills target character.|
|legitimacy [<amount>]||Modify current ruler legitimacy.|
|corrupt [<amount>]||Modify current corruption to amount. Defaults to 100 corruption|
|make_child [mother] [father]||Spawns a child for the specified parents.|
|manpower [<amount>]||Add specified amount of Manpower, note that the number is taken in thousands so "20" would result in 20,000 manpower.|
|marry [character][character]||Arranges marriage between two characters.|
|military_experience [<amount>]||Modifies your military experience|
|music.next||Changes current music track.|
|navy [<shipcount>][<province>]||Spawns specified amount of Triremes in province.|
|observe(ob)||Switch to spectator mode.|
|portrait_editor||Opens/closes the portrait editor.|
|political_influence [<amount>]||Modifies your political influence|
|prestige [<amount>]||Modifies your prestige.|
|revolt [<countrytag>]||Starts a revolt in specified country.|
|settings||Opens the debug settings|
|setup_editor||Opens the province setup editor where you can edit culture, religion, etc. This creates a setup file in documents that overrides base files.|
|stab [<amount>]||Modifies your stability. Default sets it to 100.|
|tag [<countrytag>]||Switch tag to another country. All countries have a numeric tag and an alpha-numeric tag. Either will work.|
|tech [<amount>]||Gives tech levels. Amount is optional, not specifying the amount gives 1 tech level. Does not unlock inventions and may make it impossible to do so. Not advised. Negative value will decrease tech instead|
|ti||Toggles terra incognita on/off.|
|tyranny [<amount>]||Modifies your tyranny. Tyranny -10 would reduce it by 10.|
|tick_day [number of days]||Advances time by the specified number of days.|
|tweak fow||Opens the tweaker GUI to enable or disable Fog of War|
|warexhaustion [<amount>]||Modifies your war exhaustion. warexhaustion -10 would reduce it by 10.|
|yesmen||Activates yesmen (AI accepts all diplomatic proposals).|