While in game open console by pressing the "~" key. Enter the following codes then press enter to enable them.
Cheat Mode: @Password("Panzerklein")
God Mode: @God(0,1)
Win Battle: @Win(0)
The Cheat mode must be on for the other two codes to work. God mode makes all your units invincible and the Win battle code ends the current map in a victory for you.