In Starcraft 2: Wings of Liberty for the PC, there are several cheat codes you can activate for various effects.
During the game, hit Enter to bring up the message prompt and type in the following codes for the desired effect. Please note that turning on cheat codes disables achievements for your current game.
5,000 Custom Resources – dzmhairspring
5,000 Minerals – stroaksmolts
5,000 Minerals and Gas – smoldersmolds
5,000 Vespene Gas – realmendrilldeep
5,000,000 Credits – whysoserious
Cutscene Menu – eyeofsauron
Disable Ability Cooldown – hanshotfirst
Disable Defeat Condition – ypoonsvoicemail
Disable Food Requirements – mintmansoperator
Disable Fog of War – sawnoutofmemory
Disable Tech Requirements – sosayweall
Disable Time of Day – quotero
Disable Victory Condition – tyuhasleftthegame
Faster Building – reversingnazaire
Faster Heath Gained – fsbcomunicacion
Free Research Points – wapboinkers
Free Resources – jaynestown
Increased Damage and Invincibility – terribleterribledamage
Lose Current Game – cadeasygoin
Mission Select – lyingpect
Play the song “Terran up the Night” – overengineeredcodpiece
Repeat Last Cheat – =
Units and Structures Cost Zero Resources – moredotsmoredots
Upgrades Weapons, Armor, and Shields by 1 – iamironman
Win Current Game – cmethodfeedback