Console commands

This article may require copy editing for duplicate commands in tables. in order to fit the style guidelines. You can assist by editing it.

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 while in debug mode by pressing Shift+2, ALT+2+1, Shift+3,§~^°², or ` (key varies based on keyboard layout). For a QWERTY keyboard, the key is `. Else, try pressing Shift + Alt + C if none of the above worked. 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.

To start the game in debug mode, within Steam, right-click to set the game’s Properties, then under the General tab, click the Set Launch Options… button. Add -debug_mode to the launch options. You will have to restart the game.

Alternatively, without using Steam, you can start the game in debug mode by going to your main CK3 installation folder and creating a shortcut by right-clicking on the main CK3 application and selecting Create shortcut. Right-click the new shortcut and select properties. In the Shortcut tab where it says Target add -debug_mode to the very end of the field and hit apply. This will enable debug mode when launching the game using that shortcut.

For the Xbox gamepass edition/windows 10 store edtion, it is a little more complicated you cannot create a normal shortcut for it instead you are going to need to run in command prompt this command everytime:

start shell:AppsFolder\ParadoxInteractive.ProjectTitus_zfnrdv2de78ny!App -debug_mode

Alternatively, you can create a batch file on your desktop and paste in that code to run it. To create a simple batch file on Windows 10, use these steps:

  • Open Start.
  • Search for Notepad, and click the top result to start the app.
  • Paste in the above code provided.
  • Click the File menu.
  • Select the Save As option or CTRL + SHIFT + S.
  • Type a name for the script for example, “ck3debug.bat”. Whatever you call it it must end in .bat
  • Select Desktop for location.
  • Click save and your done!

Character IDs can be seen by hovering the cursor over a character.

Cheats


Cheats are console commands that can be used to give unfair advantages as opposed to sole testing purposes. They are different from scripted commands.

CommandEffectParametersExample
ageAdds [amount] of age to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]age 20
add_claimAdds a pressed claim on [title id] to [character id], if no character is specified then the player character.[title id] [character id]add_claim e_hre
add_doctrineAdds [doctrine id] to [faith id], if no faith is specified then the player character’s faith. Pressing tab reveals all doctrine IDs.[doctrine id] [faith id]add_doctrine doctrine_pluralism_fundamentalist catholic
add_dreadAdds [amount] of dread to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]add_dread 100
add_maaAdds [regiment id] of of men-at-arms to [character id], if no character is specified then the player character. Pressing tab reveals all regiment IDs.[regiment id] [character id]add_maa bowmen
add_perkAdds [perk id] to [character id], if no character is specified then the player character. Pressing tab reveals all perk IDs.[perk id] [character id]add_perk thoughtful_perk
add_pietyAdds [amount] of piety to the player character. Negative values lower it. Default 1000.[amount]add_piety 9000
add_prestigeAdds [amount] of prestige to the player character. Negative values lower it. Default 1000.[amount]add_prestige 16000
add_realm_lawPasses [law id] to the realm of [character id], if no character is specified then the player character’s realm. Pressing tab reveals all law IDs.[law id] [character id]add_realm_law crown_authority_3
add_realm_law_skip_effectsAdds [law id] to the realm of [character id], if no character is specified then the player character’s realm. Pressing tab reveals all law IDs.[law id] [character id]add_realm_law_skip_effects crown_authority_3
add_relationAdds [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.[relation id] [character id]add_relation friend 1234
add_secretAdds [secret id] to the player character. Pressing tab reveals all secret IDs.[secret id]add_secret secret_witch
add_stressAdds [amount] of stress to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]add_stress 50
add_title_lawAdds [succession law id] to [title id].[title id] [law id]add_title_law e_hre feudal_elective_succession_law
add_traitAdds [trait id] to [character id], if no character is specified then the player character.[trait id] [character id]add_trait witch
add_lifestyle_xp_allAdds [amount] of experience to all lifestyles of [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_lifestyle_xp_all 2000
add_diplomacy_lifestyle_xpAdds [amount] of diplomacy lifestyle experience to [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_diplomacy_lifestyle_xp 2000
add_martial_lifestyle_xpAdds [amount] of martial lifestyle experience to [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_martial_lifestyle_xp 2000
add_stewardship_lifestyle_xpAdds [amount] of stewardship lifestyle experience to [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_stewardship_lifestyle_xp 2000
add_intrigue_lifestyle_xpAdds [amount] of intrigue lifestyle experience to [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_intrigue_lifestyle_xp 2000
add_learning_lifestyle_xpAdds [amount] of learning lifestyle experience to [character id], if no character is specified then the player character. Default 1000.[amount] [character id]add_learning_lifestyle_xp 2000
change_cultureChanges the culture of [county id] to [culture id].[county id] [culture id]change_culture 496 swedish
change_development_levelAdds [amount] of development to [county id], if no county is specified then the player character’s capital. Negative values lower it.[amount] [county id]change_development_level 100 496
change_fervorAdds [amount] of fervor to [faith id], if no faith is specified then the player character’s faith. Negative values lower it. Default 10.[amount] [faith id]change_fervor 100 catholic
change_diplomacyAdds [amount] of diplomacy skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_diplomacy 16
change_martialAdds [amount] of martial skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_martial 16
change_stewardshipAdds [amount] of stewardship skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_stewardship 16
change_intrigueAdds [amount] of intrigue skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_intrigue 16
change_learningAdds [amount] of learning skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_learning 16
change_prowessAdds [amount] of prowess skill to [character id], if no character is specified then the player character. Negative values lower it.[amount] [character id]change_prowess 16
clear_character_modifiersRemoves all character modifiers from [character id], if no character is specified then the player character.[character id]clear_character_modifiers
clear_title_lawsRemoves all title succession laws from [title id].[title id]clear_title_laws e_hre
clear_traitsRemoves all traits from [character id], if no character is specified then the player character.[character id]clear_traits
discover_all_erasDiscovers all innovations for the culture of [character id], if no character is specified then the player character’s.[character id]discover_all_eras
discover_eraDiscovers [era id] and all its innovations for the player character’s culture. Pressing tab reveals all era IDs. Default current era.[era id]discover_era culture_era_early_medieval
discover_fascinationDiscovers the current fascination for the culture of [character id], if no character is specified then the player character’s.[character id]discover_fascination
discover_innovationDiscovers [innovation id] for the culture of [character id], if no character is specified then the player character’s. Pressing tab reveals all innovation IDs.[innovation id] [character id]discover_innovation innovation_motte
dynasty_prestigeAdds [amount] of renown to [dynasty id], if no dynasty is specified then the player character’s dynasty. Negative values lower it. Default 1000.[amount] [dynasty id]dynasty_prestige 100000
end_schemesAll schemes targeting the player character are abandoned.Noneend_schemes
eventTriggers [event id].[event id]event lifestyle_nicknames.0001
gain_all_dynasty_perksBuys all dynasty legacies for the dynasty of [character id], if no character is specified then the player character’s.[character id]gain_all_dynasty_perks
gain_all_perksGives all lifestyle perks to [character id], if no character is specified then the player character.[character id]gain_all_perks
give_titleGives [title id] to [character id], if no character is specified then the player character.[title id] [character id]give_title e_hre
goldAdds [amount] of gold to the player character. Negative values lower it. Default 1000.[amount]add_gold 500
instabuildHoldings and buildings in the player character’s domain are finished in a day. Entering it again disables it.Noneinstabuild
instant_birthPregnancies last a day. Entering it again disables it.Noneinstant_birth
join_eraEnters [era id] for the culture of [character id], if no character is specified then the player character’s. Pressing tab reveals all era IDs.[era id]join_era culture_era_high_medieval
killKills [character id], if no character is specified then the player character.[character id]kill
know_schemesDiscovers all schemes targeting the player character.Noneknow_schemes
merge_cultureChanges the culture of all counties of [culture id] to [culture id].[culture id] [culture id]merge_culture greek swedish
pregnancyImpregnates female [character id] with father [character id], if no character is specified then an unknown father.[character id] [character id]pregnancy 1234
remove_doctrineRemoves [doctrine id] from [faith id], if no faith is specified then the player character’s faith. Pressing tab reveals all doctrine IDs.[doctrine id] [faith id]remove_doctrine doctrine_pluralism_righteous catholic
remove_nickRemoves the current nickname from [character id], if no character is specified then the player character.[character id]remove_nick
remove_relationRemoves [relation id] between [character id] and [character id], if only one character is specified then between the player character and them.[relation id] [character id]remove_relation friend 1234
remove_traitRemoves [trait id] from [character id], if no character is specified then the player character. Pressing tab reveals all trait IDs.[trait id] [character id]remove_trait witch
set_cultureChanges the culture to [culture id] for [character id], if no character is specified then the player character. Pressing tab reveals all culture IDs.[culture id] [character id]set_culture swedish
set_dreadSets the dread to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_dread 100
set_faithChanges the faith to [faith id] for [character id], if no character is specified then the player character. Pressing tab reveals all faith IDs.[faith id] [character id]set_faith catholic
set_focusSets the focus to [focus id] for [character id], if no character is specified then the player character.[focus id] [character id]set_focus diplomacy_majesty_focus
set_nickGives [nickname id] to [character id], if no character is specified then the player character.[nickname id] [character id]set_nick nick_the_lazy
set_sexualityChanges the sexual orientation to [sexuality id] for [character id], if no character is specified then the player character.[sexuality id] [character id]set_sexuality bisexual
set_stressSets the stress to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_stress 0
set_diplomacySets the diplomacy skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_diplomacy 16
set_martialSets the martial skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_martial 16
set_stewardshipSets the stewardship skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_stewardship 16
set_intrigueSets the intrigue skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_intrigue 16
set_learningSets the learning skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_learning 16
set_prowessSets the prowess skill to [amount] for [character id], if no character is specified then the player character.[amount] [character id]set_prowess 16
yesmenAI characters accept all proposals. Entering it again disables it.Noneyesmen

Testing commands


Testing commands are used for developer, beta tester or modder testing.

CommandEffectParametersExample
clearClears console history.Noneclear
effectExecutes a scripted effect.[effect script]effect test
faction_spawnSpawns [faction type] if there are valid counties or courtiers to create it.[faction type]faction_spawn peasant_faction
generate_cadet_coaGenerates a new coat of arms for the player character’s house.Nonegenerate_cadet_coa
helpPrints the description of [command], if empty lists all console commands.[command]help help
instamoveArmies move one barony per day. (Affects AI as well as the player)Noneinstamove
map_editorOpens the map editor.Nonemap_editor
nomenAI characters refuse all proposals. Entering it again disables it.Nonenomen
observeEnters observer mode.Noneobserve
playSwitches character to [character id].[character id]play 1234
portrait_editorOpens the portrait editor.Noneportrait_editor
runExecutes the commands in [file name]. The txt file must be placed in Documents/Paradox Interactive/Crusader Kings III/run.Nonerun test.txt
set_is_aiAllows the AI to control [character id].[character id]set_is_ai 1234
set_is_playerDisallows the AI to control [character id].[character id]set_is_player 1234
yesmenAI characters accept all proposals. Entering it again disables it.Noneyesmen