“Dota 2” is a multiplayer online battle arena video game and the stand-alone sequel to the Defense of the Ancients mod. Developed by Valve Corporation, the game was released on July 9, 2013 for Microsoft Windows, utilizing a free-to-play business model. OS X and Linux versions of Dota 2 were released on July 18, 2013.[4] Dota 2 is exclusively available through Valve’s content delivery platform, Steam. Dota 2 consists of session-based online multiplayer matches, in which two teams of five players attempt to destroy their opponents’ fortified strongholds. Each player controls a “Hero” character and, over the course of an individual game, focuses on improving their hero’s abilities, acquiring items, and fighting against the other team. Wikipedia®.

Start a Pratice Game, then go to Game Setup and choose “Enable Cheats.” Once in the game, simply enter the following commands in the Chat window along with a parameter if required (do not include the square brackets).
Password | Effect |
-lvlup [X] | Gain X levels up to 25; negative values not allowed. |
-levelbots [X] | All bots gain X levels; negative values not allowed. |
-gold [X] | Gain X amount of gold up to 16383; note that negative values are in fact allowed. |
-item [item code] | Gain item (see list of Item Codes). |
-givebots [item code] | All bots gain this item (see list of Item Codes). |
-refresh | Fully restore player health and mana, renews cooldowns. |
-respawn | Moves player back to fountain, respawning if dead |
-startgame | Sets timer to 0:00 and jumps to first creepspawn. |
-spawncreeps | Spawn a wave of creeps. |
-spawnneutrals | Spawns/respawns neutral creeps. |
-disablecreepspawn | Prevents creeps from spawning in lanes. |
-enablecreepspawn | Enables creeps to spawn in lanes |
-spawnrune | Spawns random rune at one of the two rune spots. |
-killcreeps | upposedly kills all creeps. |
-clearwards | Destroys all Observer wards. |
-createhero [name] | Creates hero/unit/building at current mouse cursor position; heroes will be controlled by a bot (see list of names in [game dir]/scripts/npc/npc_heros.txt and [game dir]/scripts/npc/npc_units.txt). |
-dumpbots | Displays status of all players and bots in current game. |
-wtf | All skills and items have no mana costs and cooldown. |
-unwtf | Restore mana costs and cooldown to all skill and items. |
-allvision | Enables map vision of both Radiant and Dire factions. |
-normalvision | Reverts map vision to defaul |
Source: Dota 2 Cheats PC Cheats