While playing, press [~] (tilde) to bring down the console, then type any of the following codes:
Fog of War on/off.
Units are 10% cheaper.
Code: add_money #
Add money. # = amount.
Code: add_population Y X
Adds population, where Y is the settlement name and X is the amount.
Code: auto_win attacker/defender
Attacker or defender automatically wins the next auto resolved battle.
Code: create_unit settlement/charactername unit_ID amount exp/armour/weapon
Creates a unit in the selected settlement or characters army with the stats you input.
Code: process_cq settlement
Finished the building queue in the settlement.