October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

CS2 Server Commands Every Server Owner Should Know (2026 Guide)

A practical CS2 server-command reference covering SteamCMD installation, dedicated launch options, GSLT authentication, config variables, game modes, match flow, RCON and Workshop maps.
Length9 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a dedicated Counter-Strike 2 server, the essential command set covers five jobs: installing and launching the server, identifying and protecting it, selecting a game mode, controlling match flow, and changing maps. Start the executable with -dedicated, use a Game Server Login Token (GSLT) for a public server, keep persistent values in a server configuration file, and reserve the console or RCON for live changes.

Command names, defaults and Workshop behavior can change with CS2 updates. The syntax below follows Valve’s dedicated-server and game-mode documentation where available; items identified as needing confirmation should be checked against the current Valve Developer Community pages before you deploy them.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before entering CS2 server commands

CS2’s dedicated server and the game client use Steam app ID 730. Install or update the server with SteamCMD. A first installation, or an integrity check, uses:

app_update 730 validate

For a normal update, use:

app_update 730

On Windows, launch the cs2 executable. On Linux, Valve’s documentation specifies the cs2.sh script. The -dedicated switch is essential: without it, the game client starts instead of a server process.

#1 Best Overall
Sale
Redragon Mechanical Gaming Keyboard Wired, 11 Programmable Backlit Modes, Hot-Swappable Red Switch, Anti-Ghosting, Double-Shot PBT Keycaps, Light Up Keyboard for PC Mac
  • Brilliant Color Illumination- With 11 unique backlights, choose the perfect ambiance for any mood. Adjust light speed and brightness among 5 levels for a comfortable environment, day or night. The double injection ABS keycaps ensure clear backlight and precise typing. From late-night tasks to immersive gaming, our mechanical keyboard enhances every experience
  • Support Macro Editing: The K671 Mechanical Gaming Keyboard can be macro editing, you can remap the keys function, set shortcuts, or combine multiple key functions in one key to get more efficient work and gaming. The LED Backlit Effects also can be adjusted by the software(note: the color can not be changed)
  • Hot-swappable Linear Red Switch- Our K671 gaming keyboard features red switch, which requires less force to press down and the keys feel smoother and easier to use. It's best for rpgs and mmo, imo games. You will get 4 spare switches and two red keycaps to exchange the key switch when it does not work.
  • Full keys Anti-ghosting- All keys can work simultaneously, easily complete any combining functions without conflicting keys. 12 multimedia key shortcuts allow you to quickly access to calculator/media/volume control/email
  • Professional After-Sales Service- We provide every Redragon customer with 24-Month Warranty , Please feel free to contact us when you meet any problem. We will spare no effort to provide the best service to every customer

A public server also needs a Game Server Login Token. Valve’s launch example is:

cs2.exe -dedicated +sv_setsteamaccount <TOKEN> +map de_dust2

Replace <TOKEN> with the token issued for your server account. A private LAN or test instance can be started without advertising it publicly, but public listing and authentication depend on the token and the rest of your network configuration.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Where each setting belongs: launch line, config or console

Putting a command in the right place prevents surprises after a restart. Valve supports setting cvars in a configuration file, on the launch line with a leading +, or directly in the server console.

Use case Best location Typical values
Values needed at process start Launch line -dedicated, sv_setsteamaccount, startup map and other startup options
Values that should survive restarts Server config file hostname, passwords and warmup policy
Changes during a live session Console or RCON Map changes, mode changes and match-flow commands

Use the launch line for identity values that must exist before the server begins loading a map. Put routine policy in a config so it is applied consistently after every restart. Use the console for one-off maintenance and RCON when you are administering a running server from a client.

Identity, access and administration commands

hostname: the browser name

hostname sets the name players see in the server browser. Place it in your persistent configuration, then restart or reload the configuration according to your operating procedure.

hostname "My CS2 Community Server"

sv_password: lock the server

sv_password requires players to enter a password before joining. It is appropriate for scrims, testing and private events. Remove or change the value when you want an open server.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Sale
Razer BlackWidow V4 X Mechanical Gaming Keyboard, Yellow Switches, Black
  • YELLOW MECHANICAL LINEAR SWITCHES: With zero distance between actuation and reset points at 1.2mm and only 45g of force required — enjoy instant, rapid-fire inputs that are just as quiet thanks to built-in sound dampeners
  • 6 DEDICATED MACRO KEYS: Expand the arsenal of commands with a set of easy-access macro keys that can be programmed to peferred playstyle
  • MULTI-FUNCTION ROLLER and SECONDARY MEDIA KEYS: Pause, play, skip, and tweak everything from brightness to volume for ultimate convenience
  • CHROMA RGB PER-KEY LIGHTING: With a switch construction that promotes brighter, even lighting, customize each key from over 16.8 million colors and effects—including dynamic lighting for hundreds of Chroma-integrated games
  • DOUBLESHOT ABS KEYCAPS: Using a doubleshot molding process to ensure the labeling never wears off while having extra-thick walls to withstand intense gaming
sv_password "private-key"

rcon_password: remote administration credential

rcon_password protects remote console administration. Treat it as a server secret: do not publish it in a community post, stream overlay or shared configuration repository.

rcon_password "use-a-unique-long-secret"

The exact RCON command flow should be checked against Valve’s current documentation before production use. A commonly documented client-side setup is to open the client console and enter:

rcon_password <password>

After authentication, a third-party example uses the following form to change a live map without requiring every player to reconnect:

rcon changelevel de_mirage

Because the full RCON syntax is not established in the available Valve material, test this on a non-production instance and confirm the current command prefix and permissions behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Game Server Login Tokens (GSLT)

Use sv_setsteamaccount with a valid GSLT on a public dedicated server. The token is normally supplied at startup:

+sv_setsteamaccount <TOKEN>

Do not expose the token in screenshots or public support logs. Valve’s older CS:GO Workshop documentation states that each GSLT is restricted to one dedicated-server instance and recommends -net_port_try 1 so separate instances do not accidentally reuse a token. That page predates CS2, so confirm that restriction and the option’s current behavior for your CS2 build before operating multiple instances.

Rank #3
Sale
AULA F75 Pro Wireless Mechanical Keyboard,75% Hot Swappable Custom Keyboard with Knob,RGB Backlit,Pre-lubed Reaper Switches,Side Printed PBT Keycaps,2.4GHz/USB-C/BT5.0 Mechanical Gaming Keyboards
  • Tri-mode Connection Keyboard: AULA F75 Pro wireless mechanical keyboards work with Bluetooth 5.0, 2.4GHz wireless and USB wired connection, can connect up to five devices at the same time, and easily switch by shortcut keys or side button. F75 Pro computer keyboard is suitable for PC, laptops, tablets, mobile phones, PS, XBOX etc, to meet all the needs of users. In addition, the rechargeable keyboard is equipped with a 4000mAh large-capacity battery, which has long-lasting battery life
  • Hot-swap Custom Keyboard: This custom mechanical keyboard with hot-swappable base supports 3-pin or 5-pin switches replacement. Even keyboard beginners can easily DIY there own keyboards without soldering issue. F75 Pro gaming keyboards equipped with pre-lubricated stabilizers and LEOBOG reaper switches, bring smooth typing feeling and pleasant creamy mechanical sound, provide fast response for exciting game
  • Advanced Structure and PCB Single Key Slotting: This thocky heavy mechanical keyboard features a advanced structure, extended integrated silicone pad, and PCB single key slotting, better optimizes resilience and stability, making the hand feel softer and more elastic. Five layers of filling silencer fills the gap between the PCB, the positioning plate and the shaft,effectively counteracting the cavity noise sound of the shaft hitting the positioning plate, and providing a solid feel
  • 16.8 Million RGB Backlit: F75 Pro light up led keyboard features 16.8 million RGB lighting color. With 16 pre-set lighting effects to add a great atmosphere to the game. And supports 10 cool music rhythm lighting effects with driver. Lighting brightness and speed can be adjusted by the knob or the FN + key combination. You can select the single color effect as wish. And you can turn off the backlight if you do not need it
  • Professional Gaming Keyboard: No matter the outlook, the construction, or the function, F75 Pro mechanical keyboard is definitely a professional gaming keyboard. This 81-key 75% layout compact keyboard can save more desktop space while retaining the necessary arrow keys for gaming. Additionally, with the multi-function knob, you can easily control the backlight and Media. Keys macro programmable, you can customize the function of single key or key combination function through F75 driver to increase the probability of winning the game and improve the work efficiency. N key rollover, and supports WIN key lock to prevent accidental touches in intense games

When a token appears to fail

  • Check that the token is present on the actual process launch line, not only in a client configuration.
  • Confirm that the server is being started with -dedicated.
  • For multiple instances, verify that each instance has the intended token and network port arrangement.
  • Restart after correcting the launch command; a token added only to a live console may not satisfy startup authentication.

Choosing a game mode

Valve’s game-mode documentation identifies four controls that work together: game_type, game_mode, sv_game_mode_flags and sv_skirmish_id. Set the required values before loading the map so the map starts under the intended rules.

game_type <value>
game_mode <value>
sv_game_mode_flags <value>
sv_skirmish_id <value>

The numeric values and skirmish identifiers are mode-specific; use Valve’s current game-mode table rather than copying an old value from a CS:GO guide. CS2 also exposes game_alias shortcuts. For example:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
game_alias competitive

Valve describes this alias as setting the corresponding game type and mode together. It is useful when you want a readable launch or console command, while the individual cvars remain available when you need granular control.

Apply the mode before the map

  1. Set the alias or the individual mode variables.
  2. Load the target map.
  3. Watch the server console for the mode and map that actually loaded.
  4. Join with a test client and confirm buy rules, round structure and warmup behavior before opening the server to players.

Match-flow commands (mp_ variables)

Restarting a match

mp_restartgame <seconds> schedules a match restart after the number of seconds supplied. A short delay gives players time to read the restart notice; zero or near-zero delays are useful for controlled testing but can feel abrupt in a public match.

mp_restartgame 5

Starting and ending warmup

Use the following commands to control warmup manually:

mp_warmup_start
mp_warmup_end
mp_warmuptime <seconds>

One current third-party description notes that changing mp_warmuptime restarts warmup. Plan that change between matches, not while players are trying to ready up. If a server appears stuck in warmup, explicitly end warmup, verify the configured warmup time, and then restart the match if the round state did not advance.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Sale
Redragon K580 Wired RGB Mechanical Gaming Keyboard, Macro Key & Media Wheel
  • Record Combos On the Fly, No Software Required - 5 dedicated macro keys (G1-G5) let you save complex combos or shortcuts directly on the keyboard, plus dedicated media controls for play/pause/skip.
  • Swap Switches Without Soldering, Hype Clicky Feedback - The upgraded socket accepts almost any switch, and stock Blue switches deliver a distinct tactile bump and audible click on every keystroke.
  • Built to Outlast Daily Gaming - Rated for 50 million keystrokes with double-shot keycaps that resist fading, so the board holds up to years of heavy use.
  • Full Anti-Ghosting for Fast-Paced Games - 104 keys register accurately even during rapid multi-key combos, so your inputs land exactly when you press them.
  • Optional Software for Power Users - Everyday use needs zero software, but for advanced RGB effects and deeper macro profiles, companion software is available whenever you want to go further.

Freeze time and buy-anywhere settings

Do not copy a supposed default for mp_freezetime without checking the current Valve page. Published guides give conflicting values of 5, 6 and 15 seconds, so no single default is established here. Set the value explicitly if your event requires a known freeze period:

mp_freezetime <seconds>

mp_buy_anywhere is also version-sensitive. One guide says it requires sv_cheats 1, but that requirement needs confirmation for the current CS2 build. Treat it as a test-only setting until verified, and never enable cheats on a competitive public server by accident.

Map changes and live administration

Changing a stock map

Use the server console to load a map directly, or send the command through RCON after authenticating. The commonly used live-administration form is:

changelevel de_mirage

When using RCON, the same map command is commonly written with the RCON prefix:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
rcon changelevel de_mirage

Confirm the prefix and permission behavior on Valve’s current documentation before relying on it for an unattended server.

Keep a changeover checklist

  • Announce the map change and give players time to finish a round or disconnect cleanly.
  • Confirm the destination map name exactly; a typo can leave the server at the previous map or produce a load error.
  • After loading, check that the intended game mode and warmup policy still apply.
  • Record the console output if the map fails, then return to a known stock map before troubleshooting custom content.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Hosting Workshop maps on a dedicated server

The server-side command for downloading and hosting one Workshop map is:

Best Value
Sale
Logitech G213 Prodigy Wired RGB Gaming Keyboard - Black
  • Personalize 5 customizable lighting zones with over 16.8M colors to match your setup or game and synchronize backlit lighting effects with other Logitech G devices using Logitech G Hub
  • G213 Prodigy is a full-sized keyboard designed for gaming and productivity, with a slim body built for gamers of all levels and durable construction to repel liquids, crumbs, and dirt for easy cleanup
  • Each key is tuned to enhance the tactile experience, delivering ultra-quick, responsive feedback while the anti-ghosting gaming matrix is tuned for optimal gaming performance, keeping you in control
  • G213 gaming keyboard features dedicated media controls that can play, pause, and mute music and videos instantly; easily adjust the volume or skip to the next song with the touch of a button
  • Customize lighting, game mode, and macro programming with Logitech G HUB software and stay comfortable during long gaming sessions thanks to an integrated palm rest and adjustable keyboard feet
host_workshop_map <file_id>

The file ID is the numeric identifier in the Workshop page URL. The client-side map_workshop command does not host a map on a dedicated server; subscribing on a player account is not a substitute for instructing the server to download the file.

A launch-line example documented by a third-party guide is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
./cs2 -dedicated +map de_dust2 +host_workshop_map 12345678

Because this example is carried forward from CS:GO-era guidance, verify that the argument order and Workshop handling match your CS2 build before using it in production.

Workshop collections

Use host_workshop_collection to host a Workshop collection rather than one map:

host_workshop_collection <collection_id>

Additional server-side commands reported by a current third-party guide include:

ds_workshop_listmaps
ds_workshop_changelevel <map_name>

The first lists Workshop maps available on the server; the second changes to an available Workshop map by name. That guide also states that collections are limited to 100 maps. Treat the limit and both ds_workshop_ commands as build-sensitive until confirmed on Valve’s current CS2 documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Workshop troubleshooting

  • Use the numeric file or collection ID, not the map’s display title.
  • Allow time for the dedicated server to download the item before declaring the command failed.
  • List maps with ds_workshop_listmaps when available, then use the exact reported name for a changelevel command.
  • If a Workshop map will not load, return to a stock map and test the server’s network access, item availability and command syntax separately.

A practical CS2 server configuration workflow

  1. Install or update. Run app_update 730 validate for a first install or integrity check, and app_update 730 for routine updates.
  2. Create a startup command. Include -dedicated, the GSLT for a public server and a known stock map such as de_dust2.
  3. Set persistent identity. Put hostname, sv_password when needed, and rcon_password in the server configuration.
  4. Select the mode. Use game_alias competitive or the individual game-mode cvars, then load the map.
  5. Control warmup and rounds. Apply explicitly chosen mp_ settings; avoid relying on disputed defaults.
  6. Test administration. Connect locally, authenticate RCON from a separate client if required, restart a match, end warmup and change to a second stock map.
  7. Add Workshop content last. Test host_workshop_map or host_workshop_collection after the stock-map path is reliable.

This sequence isolates failures. If the process will not start, investigate SteamCMD, the executable and launch switches. If it starts but is not publicly usable, investigate the GSLT and network exposure. If players connect but rules are wrong, inspect mode and mp_ settings. If only custom maps fail, troubleshoot Workshop IDs and download behavior instead of changing unrelated match variables.

Commands worth keeping in an operator’s quick reference

Command Purpose Confidence or caution
app_update 730 validate Install or validate the dedicated-server files through SteamCMD Valve-documented
cs2 -dedicated Start the dedicated server process Valve-documented; Linux uses cs2.sh
+sv_setsteamaccount <TOKEN> Supply a public-server login token at launch Valve-documented
hostname Set the browser name Confirm cvar spelling on the current Valve page
sv_password Require a join password Confirm current cvar spelling
rcon_password Set the remote-console password Confirm current cvar spelling and RCON permissions
game_alias competitive Select the competitive game-mode combination Valve-documented shortcut; aliases can change
mp_restartgame <seconds> Restart after a delay Verify current behavior
mp_warmup_start, mp_warmup_end Begin or end warmup Verify current behavior
host_workshop_map <file_id> Download and host one Workshop map Valve’s CS:GO-era Workshop documentation; verify CS2 syntax
host_workshop_collection <collection_id> Host a Workshop collection Verify collection behavior and limits

Common mistakes that waste server-owner time

  • Omitting -dedicated: the client starts instead of the server.
  • Expecting a client subscription to host Workshop content: a dedicated server needs host_workshop_map or host_workshop_collection.
  • Relying on an old default: mp_freezetime values conflict across guides, and CS2 updates can change cvars.
  • Changing only the live console: a restart discards settings that were not saved in the configuration or launch command.
  • Sharing credentials: sv_password, rcon_password and GSLTs should be handled as secrets.
  • Mixing mode and map changes: set the mode first, then load the map, and verify the resulting state in the console.

The reliable operating principle is simple: launch-time identity and authentication belong on the launch line, repeatable policy belongs in a config file, and temporary match or map operations belong in the console or RCON. Re-check every version-sensitive command against Valve’s live CS2 documentation after major game updates.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.