How to Install and Use SteamCMD

How to Install and Use SteamCMD

This is a brief tutorial on the basics of installation and usage of SteamCMD.


1. Create a folder for SteamCMD.


2. Download the SteamCMD (Windows) Update Tool.

3. Extract the contents of the zip to the folder.


1. Create a user for SteamCMD and login.
Note: For security best practice do not run SteamCMD a root.

adduser steam
su - steam

2. Create a directory for SteamCMD.

mkdir /home/steam/steamcmd
cd /home/steam/steamcmd

3. Download the SteamCMD (Linux) Update Tool.


4. Extract the contents to the directory.

tar -xvzf steamcmd_linux.tar.gz

Mac OS x

1. Open and create a directory for SteamCMD.

mkdir ~/steamcmd

2. Download the SteamCMD (OS X) Update Tool.

curl -O

3. Extract the contents to the directory.

tar -xvzf steamcmd_osx.tar.gz

Running SteamCMD


Browse to the SteamCMD folder and click on steamcmd.exe.


Alternatively Open a Command Prompt to start SteamCMD.

cd C:\steamcmd



Open a terminal and start SteamCMD.

cd /home/steam/steamcmd



Mac OS x

Open and start SteamCMD.

cd ~/steamcmd

SteamCMD Max OS X

Available Commands

Type help for more information on the available commands.


A full list of commands can also be found here.

Login to SteamCMD

To download most game servers, you can login anonymously.

login anonymous

Some servers require you to login with a Steam Account. To find out if your server requires a login see Dedicated Servers List.

 Note: For security reasons it is recommended that you create a new Steam username just for SteamCMD.

 Note: A user can only be logged in once at any time.

login username

Next enter your password.

If Steam Guard is activated on the user account check your e-mail for a Steam Guard access code and enter it. This is required first time only.

You should see a message stating that you have successfully logged in with your account.

Installing a Server

1. Start SteamCMD and set your app install directory.

  • Windows
force_install_dir c:\steamcmd\csgoserver
  • Linux
force_install_dir /home/steam/csgoserver

2. Install the app by using a Steam Application ID or <app_id>. To also validate the app add validate to the command. To participate in HLDS beta testing add -beta beta to the command. To participate in SRCDS beta testing add -beta prerelease to the command.

app_update  validate

Example for Counter Strike:Global Offensive

app_update 740 validate

Example for Team Fortress Classic

app_set_config 90 mod tfc
app_update 90 validate

Automating SteamCMD

SteamCMD can be automated to run tasks directly from the command line/terminal. This is very useful for running your own scripts.
Example for Counter Strike:Global Offensive


steamcmd +login anonymous +force_install_dir c:\steamcmd\csgoserver +app_update 740 validate +quit


./ +login anonymous +force_install_dir /home/steam/csgoserver +app_update 740 validate +quit

Example for Counter Strike:Condition Zero


steamcmd +login anonymous +force_install_dir c:\steamcmd\csczserver +app_set_config 90 mod czero +app_update 90 validate +quit


./ +login anonymous +force_install_dir /home/steam/csczserver +app_set_config 90 mod czero +app_update 90 validate +quit

Example for Killing Floor


steamcmd +login +force_install_dir c:\steamcmd\kfserver +app_update 215350 validate +quit


./ +login +force_install_dir /home/steam/kfserver +app_update 215360 validate +quit

For more info about SteamCMD you see the SteamCMD article on the Valve Wiki.

Leave a Reply

22 Comments on "How to Install and Use SteamCMD"

Leave a Reply

newest oldest most voted
Notify of

Not cool dude. You copied this from the Steam Developer Community’s Wiki page.
Link here:
This is clearly a direct copy. Not cool.
You should remove this page ASAP.


Ok. In that case I stand corrected. 🙂
I may have come across as a bit harsh, which I am sorry about.
You should give proper credit to any other cotributers though. 🙂

David Hale

your linux scripts all reference C: as though it were a place in the linux OS.


way easier then the steamcmd wiki

Samantha Schrier

question im good to the point i have to login, im not getting an notification that i succesfully logged in. and i dont get an e-mail either. And after i have entered my password i can’t type anything in the console. anyone know the reason for it. ?


on mac… trying to run it. enter ‘./’ iand get ‘no such file or directory’


I have the same problem now, even a year later

Erik Lind-gousaid

if anyone has trouble i made a automatic installer for LINUX go check it if you want, and its my first script so im open to suggestion

Деян Добромиров

Made a pull request on your repo 😉 Added some conventions and custom directory stuff 😉

Erik Lind-gousaid

thx dude

Bill Griffin

For crying out loud can someone just for once put one of these things together that aren’t convoluted? This is good for tech savvy but not to the average joe.