Press F12 in the game to open the console window, type the code and press enter
Crusader Kings: Cheat Codes (English) Free Download
gold – +1000 gold.
piety – +1000 piety.
prestige – +1000 prestige
difrules – god mode (?)
fullcontrol – let you control all troops on map (need difrules code first)