DOTA game modes & commands

Common Game Modes
ap All Pick. Each player is allowed to pick a hero from any tavern.
ar All Random. Each player is given a random hero from any tavern.
rd Random Draft. 20 random heroes from any tavern are selected and players take turns picking from them.
sd Single Draft. Each player chooses from one of 3 individual random heroes.
cd Captains Draft. 24 random heroes are selected. Then Blue and Pink take turns banning heroes, then picking heroes. Then the players on each team pick from their team's heroes.
cm Captains Mode. Blue and Pink take turns banning heroes, then take turns picking heroes. These heroes are then chosen by members of their team.
em Easy Mode. Towers are weaker, and players get extra gold and experience.
dm Death Match. When you die you are given a new hero. The game can end normally, or when one team reaches a certain amount of deaths. lives # can be used to set life limit, and -nd to remove respawn timer along with this mode.

Other Game Modes
rs Random Side. Places each team on a random side.
du Duplicate. More than one of each hero can be played.
sp Shuffle Players. Randomly switches around players from each team.
xl Extended League. Both Sides will take turns picking heroes. Each team captain can pick 4 heroes to remove from the pool.
om Only Mid. Only the middle lane is used.
sc Super Creeps. Powerful creeps will spawn every 10 minutes.
lm League Mode. Both Sides will take turns picking heroes.
mm Mirror Mode. After one minute, each team will have the same heroes.
tr Team Random. You will be given a random hero from your taverns.
mr Mode Random. Selects a random game mode.
vr Vote Random. You will be given a random hero from the voted groupset.
rv Reverse. You pick a hero for your opponent.
oi Observer Info. Disables extra information display for observers.
sh Same Hero. All players will be given the hero that Blue has.
aa All Agility. Only Agility heroes are used.
ai All Intelligence. Only Intelligence heroes are used.
as All Strength. Only Strength heroes are used.
id Item Drop. When you die, a random inventory slot will drop an item.
np No Powerups. No runes spawn.
nt No Top. The top lane is not used.
nm No Mid. The middle lane is not used.
nb No Bot. The bottom lane is not used.
ns No Swap. Swapping heroes is not allowed.
nr No Repick. Repicking heroes is not allowed.
pm Pooling Mode. All items can be used by other players.
mi Mini Heroes. All heroes are half normal size.
fr Fast Respawn. Reduces death times by 50%.
mo Melee Only. Only melee heroes are used.
ro Ranged Only. Only ranged heroes are used.
er Experimental Runes. Uses an experimental rune spawning system.
so Switch On. Allows use of the -switch command. Leavers items can be unlocked by -unlock command when this mode is activated.
zm Zoom mode. Observers will view the game from a zoomed out state.
cp Capture Point. Specific areas appear at 10 minute mark. Capturing them grants various bonus auras.
wtf Fun mode. Spells have no cooldown or manacost.

tips Gives you various helpful pointers about your hero throughout the game.
random Random. Gives you a random hero in modes like All Pick. You get 250 extra gold.
random int Random. Gives you a random Intelligence hero in modes like All Pick. You get 150 extra gold.
random str Random. Gives you a random Strength hero in modes like All Pick. You get 150 extra gold.
random agi Random. Gives you a random Agility hero in modes like All Pick. You get 150 extra gold.
ma Displays the heroes your opponents control and their levels. Alias: -matchup.
ms Displays your hero's current movement speed. Alias: -movespeed.
apm Displays apm ( actions per minute ) of all players.
cs Displays your creep kills, denies, and neutral kills.
switch # Allows you to switch teams with another player. Other players vote with -ok or -no after this command is entered.
cson Activates the cs display to display your creep kills and denies.
es Enables selection helper. This is enabled by default. Alias: -enableselection
es Disables selection helper. Alias: -disableselection
csoff Deactivates the cs display.
c Center. Locks the camera on your hero.
co Centeroff. Turns center mode off.
disablehelp Prevents certain spells, such as Test of Faith cast by an allied Holy Knight, from affecting you. Also prevents allies from picking up your items in the fountain area.
enablehelp Re-enables effects from certain allied spells and allows allies to pick up your items in the fountain area.
unstuck Pauses your hero for 60 seconds, after which you are teleported to your base.
recreate Sometimes rare glitches occur with certain heroes, recreate can fix those glitches. Recreate takes about 2 minutes to complete, and only works on Lycanthrope, Lifestealer, Dragon Knight, Soul Keeper, and Tormented Soul.
swap # Offers to swap your hero with another player's. -swaphero # can also be used.
showmsg Shows messages.
hidemsg Hides messages.
showdeny Shows a '!' above a creep when it is denied.
hidedeny Hides the '!'.
quote # Plays a hero quote. Writing it without a number will play a random hero quote.
weather rain Switches weather to rain.
weather snow Switches weather to snow.
weather moonlight Switches weather to moonlight.
weather wind Switches weather to wind.
weather random Switches to random weather.
weather off Turns weather off.
di Enables -cson and -showdeny. Alias: -denyinfo. -di is initially enabled.
don Shows the death timer. Alias: -deathon
doff Hides the death timer. -deathoff
roll # Shows a random number between 1 and the number entered, max of 2000. Default of 100.
rollon Enables roll command. This is initially enabled.
rolloff Disables roll command.
hhn Hides the hero name portion of player's names. Alias: -hideheronames.
test Enables single player commands.
mute Toggles sounds on and off.
clear Clears the messages.
ii Item info. Shows items of allied heroes on multiboard.
gameinfo Displays information about the current game modes.
kickafk # Used to kick a player who has been AFK for a long period of time.
mines Shows you how many Land Mines you have placed with Goblin Techies.
mc Shows how many times you have Multicast with Ogre Magi.
fs Shows how much bonus Strength you have gained from Flesh Heap with Pudge. Alias: -fleshstr
int Shows how much bonus Intelligence you have gained from Last Word with Silencer.
ha Shows your average accuracy with Meat Hook or Hookshot.
aa Shows your average accuracy with Elune's Arrow.
invokelist Displays all of Invoker's spells, and what reagents are needed to use them.
water red Makes the water red.
water green Makes the water green.
water blue Makes the water blue.
water default Makes the water the default color.
water r g b Sets the water color to the color specified by r, g, and b. Example: "-water 255 0 0" is the same as "-water red".
water random Sets the water to a random color.
gg Displays bonus gold gained from Alchemist's Goblin Greed ability.
rh Displays a random hero name. Alias: -rollhero.

Single Player Commands
lvlup # Increases level of your hero by entered value.
refresh Resets ability cooldowns, sets health and mana of your hero to 100%.
spawncreeps Spawns creeps from all lanes.
powerup Spawns runes.
neutrals Forces neutral spawn.
kill Kills your last picked hero. This kill will be considered as a suicide.
gold # Increases your gold by entered value.
time # Sets time of day. Values should be between 0 and 24.
killsent Kills sentinel creeps.
killscourge Kills scourge creeps.
killall Kills all creeps.
noherolimitt Allows you to pick multiple heroes.
trees Forces a tree spawn.
killwards Removes wards from the map.
spawnon Enables creep spawn. This is enabled initially.
spawnoff Disables creep spawn.