In single-player battle, press Enter on your keyboard, then insert these following code to use the cheat with its effect. After you entered the code, press Enter, and it will say "Cheat Enabled".
Instant Winallyourbasearebelongtous
Instant Losssomebodysetusupthebomb
View the entire mapiseedeadpeople
Units don't need farmspointbreak
Play after dying in campaign modestrengthandhonor
Instant spell performancethedudeabides
Disable Tech-Treesynergy
Invulnerability and 1 shot killswhosyourdaddy
Turn off Victoryitvexesme
Get instant Lumberleafittome (value)
Get instant Goldkeysersoze (value)
Get instant Lumber and Goldgreedisgood (value)
Level selectmotherland (race) (level number)
Instant doomiocainepowder
Quick researchwhoisjohngalt
Research all upgradessharpandshiny
Infinite manathereisnospoon
Morning Dayriseandshine
Night Daylightsout
Speeds up the construction of buildings and unitsWarpTen