Open main menu

Console commands

This page deals with commands used in the console. For the modding term, see effects.

This page lists the codes which may be input into the Console Window, a special debugging window which may be accessed on non-ironman games by pressing Shift+2, ALT+2+1, Shift+3,§, ~, ^, °, ², or ` (key varies based on keyboard layout). For the full list of available commands typing "help" in the console. Press the up or down arrow keys to traverse through previously executed commands. Many codes can be turned off by repeating the command, but sometimes reloading the save or exiting the game is necessary.

Since the Pompey Patch (1.1), the in game Console has been disabled by default. To enable it, launch the game using -debug_mode launch command.[1]

To enter a launch command: open Steam > open properties for that game > then there is a button for "SET LAUNCH OPTIONS..." and then enter your command there.[2]

This list is not yet complete. You can find a list of all Imperator console commands in the meantime at commands.gg/imperator.

List of commandsEdit

Command Effect
explorer Opens the object explorer debug tool
gui_editor Opens the GUI editor
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.
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.
civil_war [<countrytag>] Starts a civil war in the specified country.
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.
declare_war [<countrytag>] [<countrytag>] Starts war between two countries.
eagerness [<countrytag>] Check AI eagerness for war.
event [eventid][target] Triggers event for specified character/province/country.
exile Exiles selected units.
forcepeace [<countrytag>] Forces AI generated peace offers for specified country.
fow Toggles fog of war on/off.
horde [<province>] Spawns a barbarian horde of 100k units in specified province.
instant_war Toggles on/off instant war declaration.
instant_build Toggles on/off instant build
kill [<id>] Kills target character.
legitimacy [<amount>] Modify current ruler legitimacy.
make_child [mother] [father] Spawns a child for the specified parents.
manpower [<amount>] Add specified amount of Manpower.
marry [character][character] Arranges marriage between two characters.
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
military_experience [<amount>] Modifies your military experience
prestige [<amount>] Modifies your prestige.
revolt [<countrytag>] Starts a revolt in specified country.
character.age [<id>] [<age>] Sets character age. You can also do the same for loyalty, prominence, popularity, corruption, etc.
character.martial [<id>] [<age>] Sets character martial, replace with zeal, charisma, or finesse for those. Note that this does not actually set the true value, so setting it to 10 may not actual make it 10, but setting it to 5 will be 5 less whatever 10 set it to.
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.
tyranny [<amount>] Modifies your tyranny. Tyranny -10 would reduce it by 10.
ti Toggles terra incognita on/off.
tick_day [number of days] Advances time by the specified number of days.
warexhaustion [<amount>] Modifies your war exhaustion. warexhaustion -10 would reduce it by 10.
yesmen Activates yesmen (AI accepts all diplomatic proposals).
tweak fow Opens the tweaker GUI to enable or disable Fog of War
debug.achievements.resetall Resets all achievements (developer command).

ReferencesEdit