Press the tilde key to bring down the console, and enter the following cheats to enable them.
bestbuy: Units are 10 cheaper.
jericho: Walls will crumble.
addmoney X: Adds money. X = amount.
addpopulation Y X: Adds population, where Y is the settlement name and X the amount.
autowin attacker/defender: Attacker or defender automatically wins the next auto resolved battle.
createunit settlement/charactername unitID amount exp/armour/weapon: Creates a unit in the selected settlement or characters army with the stats you input
togglefow: Toggles Fog of War
givetrait characternname traitname level: Gives the character the trait at the chosen level.
processcq settlement: Finished the building queue in the settlement
listtraits: Lists all traits
movecharacter Z X,Y: Moves character to location, where Z is character name and X Y are coordinates.
givetraitpoints charactername traitname points: Gives points for the characters trait.
forcediplomacy accept/decline/off: Forces opponent to accept diplomatic proposal
invulnerablegeneral charactername: General is invulnerable in combat
date year: Changes date
killcharacter charactername: Kills selected character
season summer/winter: changes season
capturesettlement settlementname: Captures settlement