CK2 Cheats


Find below a searchable list of all 144 Crusader Kings 2 console commands, these are commonly referred to as cheat codes. The below table contains all commands from all DLCs, and is up-to-date for the latest version of the game on Steam (PC / Mac).


To open the console in Crusader Kings 2, press the ` (grave) key on your keyboard. Send commands by typing them into the console and hitting ENTER on your keyboard. If you can't open the console, or need help using it, see our CK2 console help page.

To find character IDs, type the charinfo command into the console. After using this command, character IDs will be shown in the tooltips of characters when you hover over their portraits. Use the links below to find lists of other ID codes for CK2.


CK2 Province IDs CK2 Event IDs CK2 Blog

To change how commands are displayed, click the "Table View" and "Card View" buttons. To swiftly search our database of 144 Crusader Kings II commands, type the name of a command into the search box below.

Name Syntax Description
score score [amount] This command adds the specified amount of score to your character. If you don't specify a number after the command, 5,000 score will be added by default. Specify a negative amount to reduce your score.
prestige prestige [amount] This command adds the specified amount of prestige to your character. If no amount is specified, 5,000 prestige will be added. Specify a negative amount to remove prestige.
piety piety [amount] This command adds the specified amount of piety to your character. If you do not specify an amount, 5,000 piety will be added. Specify a negative amount to remove piety.
infamy infamy [amount] This command adds the specifiy amount of infamy to your character's infamy level (max. 100%). Infamy is also known and displayed as 'Threat' in the game. Specify a negative number to reduce infamy.
max_tech max_tech [province id] This command advances all technology to its maximum level in the province with the specified ID. If you do not specify a province ID, technology will be maxed out in all provinces.
kill kill [character id] This command kills the character with the specified ID.
religion religion [character id] [religion id] This command changes the religion of the specified character. If you don't specify a character ID, the religion of your own character will be changed. Note that if you change your religion to one from a DLC that you do not own, your game will end.
add_artifact add_artifact [artifact id] [character id] This command adds the artifact with the specified artifact ID to the specified character. If you do not specify a character ID (just the artifact), the artifact will be added to your character.
get_all_artifacts get_all_artifacts [character id] This command adds every artifact in the game to the character with the specified ID. If you do not specify a character ID, the artifacts will be added to your own character.
destroy_artifact destroy_artifact [artifact id] [character id] This command removes the artifact with the specified artifact ID from the specified character. If you do not specify a character ID, the artifact will be removed from your own character.
add_diplomacy add_diplomacy [character id] [amount] This command adds the specified amount of diplomacy to the character with the specified ID. Specify a negative amount to remove diplomacy. Specify your own character's ID to add or remove diplomacy from the character you are playing as.
add_intrigue add_intrigue [character id] [amount] This command adds the specified amount of intrigue to the character with the specified ID. Specify a negative amount to remove intrigue. Specify your own character's ID to add or remove intrigue from the character you are playing as.
add_learning add_learning [character id] [amount] This command adds the specified amount of learning to the character with the specified ID. Specify a negative amount to remove learning. Specify your own character's ID to add or remove learning from the character you are playing as.
add_martial add_martial [character id] [amount] This command adds the specified amount of martial to the character with the specified ID. Specify a negative amount to remove martial. Specify your own character's ID to add or remove martial from the character you are playing as.
add_stewardship add_stewardship [character id] [amount] This command adds the specified amount of stewardship to the character with the specified ID. Specify a negative amount to remove stewardship. Specify your own character's ID to add or remove stewardship from the character you are playing as.
add_trait add_trait [trait id] [character id] This command adds the trait with the specified ID to the character with the specified ID. If you do not specify a character ID, the trait will be added to the character you are playing as.
remove_trait remove_trait [trait id] [character id] This command removes the specified trait from the character with the specified ID. The trait will be removed from the character you are playing as if you do not specify a character ID.
add_modifier add_modifier [modifier id] [character id] [duration] This command adds the specified modifier to a character for a specified amount of time (in days).
remove_modifier remove_modifier [modifier id] [character id] This command removes the specified modifier from a character.
age age [character id] [years] This command changes a character's age by the specified amount - i.e. you can make a character older or younger with this command. If you want to change the age of your own character, you need to specify your character's ID. Specify a negative number to reduce a character's age.
banish banish [character id] This command banishes the character with the specified ID.
capital capital [province id] This command changes the capital of your kingdom to the province with the specified ID.
clr_moved_capital clr_moved_capital [character id] This command clears the 'moved capital flag' that your character receives after moving your capital. Clearing the flag allows you to move your capital again (as you can't move your capital twice). The character ID argument may not work.
cash cash [amount] This command adds the specified amount of cash (gold/wealth) to your chracter.
claim claim [title id] [character id] This command adds a claim to the title with the specified ID for a character, or for your own character (if you do not specify a character ID).
coalition coalition [character id] [character id] This command will make the first specified character start a coalition against the second specified character. If there is already a coalition between the two characters, the coalition will be ended.
council_positions council_positions [character id / title id] This command shows the AI score of each council position for the specified character or title.
clr_focus clr_focus [character id] This command clears the focus of the character with the specified ID. If you do not specify a character ID, the focus of the character you are playing as will be cleared.
culture culture [character id] [culture id] This command sets a character's culture to the culture specified.
decadence decadence [level] This command sets your kingdom's decadence to the specified number (0-100%).
decision decision [decision id] [character id] This command makes the specified character execute the decision with the specified ID. If you do not specify a character ID, the character you are playing as will execute the decision.
die die This command will make your current character die of a natural death, making you play as a new character.
enforce_peace enforce_peace This command enables the enforce peace mechanic in your realm, note that you may need to restart your game to disable the effect of this command.
liege_enforce_peace liege_enforce_peace This command enables the enforce peace mechanic in your liege's realm, note that you may need to restart your game to disable the effect of this command.
enable_ambition enable_ambition [character id] This command allows the character with the specified ID to cancel their existing ambition and set a new one.
event event [event id] [character id / province id] This command runs the event with the specified event ID. You can optionally specify a character ID, or a province ID, that you wish to run the event in or on.
testevent testevent [event id] [character id / province id] This is a test command, use the event command to run events. This command will test an event without actually triggering it.
favor_get favor_get [character id] This command grants a favor to your character from the character with the specified ID (i.e. they owe you a favor).
favor_grant favor_grant [character id] This command granits a favor from your character to the character with the specified ID (i.e. you own them a favor).
gfx_culture gfx_culture [character id] [culture id] This command sets the ethnicity (i.e. GFX culture) of the specified character, this changes how they look in their portrait.
give_birth give_birth [character id] This command forces the character with the specified ID to give birth. Note that the character must already be pregnant (it doesn't matter what stage they are at, however).
give_title give_title [title id] [character id] This command gives the title with the specified ID to the character with the specified character ID. You need to specify your own character's ID if you wish to change the title of your own character.
imprison imprison [character id] [character id] This command jails the first specified character, and makes the second specified character the one who puts them in jail (i.e. character 1 is jailed, character 2 is the jailor). If you do not specify a second character ID, your character will be the jailor.
join_society join_society [society id] This command makes your character join the society with the specified ID.
leave_society leave_society [society id] This command makes your character leave the society with the specified ID.
move move [character id] [character id] NOTE: This command has been reported as broken or incorrectly functioning - it may not work as intended. This command moves the first specified character to the court of the second specified character.
neg_opinion neg_opinion [character id] [character id] This command adds a negative opinion from the first specified character towards the second specified character (i.e. character 1 hates character 2). Note that there is no command to add opinion so the effects of this command are not easily undoable.
nickname nickname [nickname id] [character id] This command gives the nickname with the specified ID to the specified character. If you do not specify a character, the nickname will be given to your character.
play play [character id] This command will make you play as the character with the specified ID. NOTE: This command resets the chronicle of your character when you use it.
run run [file name] This command runs the script/commands in the specified text file. The file should be placed in your game's main directory (where CK2game.exe is located), which is usually found in your Steam Library.
techpoints techpoints This command adds 1,000 technology points for each type to your character (Military, Economy and Culture).
recalc_succ recalc_succ [character id] This command recalcuates succession for the character with the specified character ID. If you don't specify a character ID, succession will be recalculated for your own character.
secret_religion secret_religion [character id] [religion id] This command sets the secret religion of the specified character to the specified religion.
set_government set_government [government type id] [character id] This command changes the government type of the character with the specified ID. Note that if you change your government type to one from a DLC that isn't installed, the game will end.
titleowner titleowner [title id] [character id] This command has two uses. If you specify just a title ID, the command will print to console the current holder of that title. If you specify a title ID and a character ID, the specified character will become the holder of the title.
validate_government validate_government [character id] This command validates the government of the character with the specified character ID. If you do not specify a character ID, your own government will be validated.
validate_laws validate_laws [character id] This command validates the laws of the specified character's primary holding. You need to specify your own character's ID if you wish to validate your own laws.
validate_lieges validate_lieges [title id] This command validates the lieges of the title with the specified ID.
set_society_grandmaster set_society_grandmaster [character id] This command sets the grandmaster of your current society to the character with the specified ID. If you do not specify a character ID, you will become the grandmaster of your society. You need to be in a society for this command to work.
show_all_societies show_all_societies This command enables and disables (toggles) the showing of all societies in the society view.
society_rank_up society_rank_up [amount] This command ranks your character up in his/her society by the specified amount of ranks.
society_rank_down society_rank_down [amount] This command ranks your character down in his/her society by the specified amount of ranks.
society_currency society_currency [amount] This command gives your character the specified amount of currency for the society they're currently in. If you do not specify an amount, the default amount of 5,000 currency will be added to your character.
quickbuild quickbuild This command is also known as the 'instant construction' cheat, it enables and disables (toggles) quick build. When quick build is enabled, all of your constructions will be completed within one day (regardless of how long they usually take).
usurp usurp [title id] [character id] This command makes the specified character usurp (take by force) the specified title for themselves.
yesman yesman This command toggles (enables and disables) yesman mode. In yesman mode, the AI will accept all diplomatic offers you make.
allow_laws allow_laws This command enables and disables (toggles) the ability for you to change laws freely.
real_fathers real_fathers This command enables and disables (toggles) true fathers being shown in the family tree.
charinfo charinfo This command enables and disables (toggles) the display of debug information being shown in the tooltips of characters, titles and events. Debug information includes character IDs, ethnicities, AI stages, and more.
debug_mode debug_mode This command enables and disables (toggles) the display of debug information being shown in the tooltips of characters, titles and events. Debug information includes character IDs, ethnicities, AI stages, and more.
de_jure_counties de_jure_counties This command switches the map mode to the de jure counties map mode.
discover_plots discover_plots This command enable and disables (toggles) automatic plot discovery.
fow fow [province id] This command enables and disables (toggles) fog of war (FOW) in the province with the specified ID. If you do not specify a province ID, fog of war will be toggled across the entire map.
game_speed game_speed [speed] This command sets the speed that time goes by at in the game (a number between 0 and 4, 0 being the slowest).
game_paused game_paused [true / false] This command sets the game's pause state - true being paused and false being unpaused. If you don't specify true or false as an argument, the pause state will be toggled.
get_offmap_holder get_offmap_holder [offmap power id] This command prints to console the name and character ID of the character in control of the specified offmap holder.
set_offmap_status set_offmap_status [offmap power id] [status id] This command sets the status of the specified offmap power to the specified status. See argument information for status IDs.
set_offmap_policy set_offmap_policy [offmap power id] [policy id] This command sets the policy of the specified offmap power to the specified policy. See argument information for policy IDs.
kill_offmap_ruler kill_offmap_ruler [offmap power id] This command kills the ruler of the specified offmap power.
kill_offmap_dynasty kill_offmap_dynasty [offmap power id] This command kills the ruler and dynasty of the specified offmap power, and then generates a dynasty and ruler.
add_offmap_currency add_offmap_currency [offmap power id] [amount] This command gives you the specified amount of currency for the specified offmap power. Specify a negative amount to remove currency.
manpower manpower [amount] This command adds the specified amount of nomadic manpower to your kingdom (provided you are a nomad character). If you do not specify an amount, 5,000 manpower will be added. Specify a negative amount to remove manpower.
population population [amount] This command adds the specified amount of nomadic population to your kingdom (provided you are a nomad character). If you do not specify an amount, 5,000 population will be added. Specify a negative number to remove population.
marry_anyone marry_anyone This command enables and disables (toggles) the ability for you to marry anyone in the game (restrictions no longer apply).
morehumans morehumans [amount] This command adds the specified amount of humans to your kingdom.
neg_diplo neg_diplo This command enables and disables (toggles) your ability to send diplomatic messages to other kingdoms, even if they will be refused.
nextsong nextsong This command skips to the next song in the game's soundtrack.
outbreak outbreak [disease id] This command starts an outbreak of the disease with the specified ID in a random province. See argument information for disease IDs.
plots_known plots_known This command enables and disables (toggles) the knowledge of all plots in the game (i.e. with this enabled, all plots are known).
recalc_council recalc_council This command will make the game recalculate the positions of each member of the council. Usually council positions are calculated periodically, so this command is useful for making things update sooner.
set_flag set_flag [flag name] This command sets the specified flag (to true).
clr_flag clr_flag [flag name] This command clears the specified flag.
set_prov_flag set_prov_flag [flag name] [province id] This command sets the specified province flag (to true).
clr_prov_flag clr_prov_flag [flag name] [province id] This command clears the specified province flag.
set_char_flag set_char_flag [flag name] [character id] This command sets the specified character flag (to true).
clr_char_flag clr_char_flag [flag name] [character id] This command clears the specified character flag.
validate_cultural_names validate_cultural_names This command makes the game validate cultural title names.
spawn_disease spawn_disease [disease id] [province id] This command starts an outbreak of the disease with the specified ID in a specified provice (specified by its province ID). See argument information for disease IDs.
character_stats character_stats This command prints to console a collection of statistics about characters in the game.
dynasty_stats dynasty_stats This command prints to console a collection of statistics about dynasties in the game.
destroy_settlement destroy_settlement [settlement id] This command destroys the settlement with the specified ID.
murder murder [character id] [character id] This command will murder a specified character. The first character ID you specify is the character you wish to be the murderer, the second character ID is the ID of the character you wish to be murdered.
pollinate pollinate [character id] [character id] This command will make a character impregnate another character. The first character ID you specify is the character you wish to be the mother, the second character ID you specify is the character you wish to be the father.
cuckoo cuckoo [character id] [character id] This command will make a character impregnate another character, but the father will be unknown. The first character ID you specify is the character ID of the mother, the second character ID is the ID of the father.
revolt revolt [province id] This command initiates a revolt in the province with the specified ID.
succ succ [succession type id] This command changes the succession type of your kingdom - i.e. who is heir to the throne when your character dies. See argument information for succession type IDs.
add_lover add_lover [character id] [character id] This command makes the two specified characters lovers of each other.
add_friend add_friend [character id] [character id] This command makes the two specified characters friends of each other. If you do not specify a second character ID, your own character will become friends with the specified character ID.
remove_friend remove_friend [character id] [character id] This command makes the two specified characters stop being friends with each other. If you do not specify a second character ID, your own character will stop being friends with the specified character.
add_rival add_rival [character id] [character id] This command will make the two specified characters become rivals. If you do not specify a second character ID, the character you are playing as will become a rival of the specified character.
remove_rival remove_rival [character id] [character id] This command ends the rivalry between the two specified characters. If you do not specify a second character ID, your own character's rivalry with the specified character will be terminated.
flip_mapmodes flip_mapmodes This command enables and disables (toggles) the flipping of map modes. With this setting on, at the start of each new day, the map mode will be cycled to the next.
province_religion province_religion [province id] [religion id] This command changes the religion of the province with the specified ID.
clear clear This command clears all of the messages in the console (so the console is empty, as if it were just opened).
debug_crash debug_crash This command will crash your client (quite literally). It is not recommended you run this command.
debug_dumpevents debug_dumpevents This command prints a list of all events to a file named dump_events.csv (located in your main game directory).
debug_events debug_events This command enables event debuging (the counting of events). It is not known if there is a way to turn this off without restarting your game.
debug_nomen debug_nomen This command enables and disables (toggles) nomen mode. When nomen mode is enabled, the AI will automatically decline any diplomatic offers you send them (regardless of circumstance).
debug_triggerassert debug_triggerassert This command makes the game throw an assert.
debug_yesmen debug_yesmen This command enables and disables (toggles) yesmen mode. When yesmen mode is enabled, the AI will automatically accept any diplomatic offers you send them (regardless of circumstance).
eventinfo eventinfo This command may crash your game - it should print to console the number of event currently running.
guibounds guibounds This command enables and disables (toggles) the GUI bounds debug menu.
fullscreen fullscreen This command enables and disables (toggles) full screen mode for your game (i.e. it will switch from windowed to fullscreen or fullscreen to windowed).
hello hello [character id / title screen id] This command opens the character screen for the character with the specified ID. You can open a title screen with this command by specifying a title screen ID instead.
help help [command name] This command prints a list of all console commands in the game to the console, or if you specify a command as an argument (e.g. 'help max_tech'), help for that specific command will be printed to the console.
helplog helplog This command prints a list of all console commands to the game.log file.
noai noai This command enables and disables (toggles) all AI. With AI disabled, all characters, mechanics, etc that are usually controlled by AI will stop running.
numcoas numcoas This command prints to console the amount of coats of arms that have been used.
observe observe This command enables observer mode, in which you do not play a character at all, and the AI will control the game. You can take partial control of a character by holding CTRL and clicking them. Use the play command to resume play again.
print_player_events print_player_events This command saves a list of all player events to a file named player_events.csv, which is located in the main game folder.
print_ai_events print_ai_events This command saves a list of all AI events to a file named ai_events.csv, which is located in the main game folder.
refresh_portraits refresh_portraits This command makes all character portraits refresh (i.e. they are reloaded from the file, meaning any changes you have made will be applied).
reload reload [file name] This command reloads the specified file.
reloadevents reloadevents This command reloads all events in the event database - useful for applying changes that you have made to events without having to restart the game.
reloadfx reloadfx [map / postfx / fx file name] This command reloads the specified graphics shader.
reloadgovernmentflavor reloadgovernmentflavor This command reloads the government flavor database.
reloadinterface reloadinterface This command reloads the game's interface (i.e. all GUI elements).
reloadloc reloadloc This command reloads the game's language (localisation) files that are located in the localisation directory, applying any changes you've made to them without having to restart the game.
reloadpositions reloadpositions This command reloads the council position database.
reloadtexture reloadtexture [texture file name] This command reloads the specified texture.
spawnactor spawnactor [actor name] [province id] [animation] [title id] This command spawns an actor in a specified province. You can optionally specify an animation and title for the actor to spawn with.
version version This command prints to the console the version of your game.
window window [open / close] [gui] This command opens or closes the specified GUI.
wipe_achievements wipe_achievements This command clears and resets all of your current CK2 Steam achievements. You cannot undo the effect of this command. It is only recommended if you wish to collect Steam achievements again from scratch.