Command line options (Source 2)


Command line options (frequently command line arguments or command line parameters; launch options on Steam) are additional arguments specified before the program starts, these functionally change the behavior of the program in some way, such as launching the game and start the game with the specified map directly, or play a demo for example.
Command line arguments are traditionally prefixed with a hyphen (-), but some Windows applications (especially system ones) will use a forward slash (/) instead.
Quake uses plus (+) as a prefix for console commands or cvars that will get executed by the game as soon as it starts, and all Valve engines inherit this syntax.
Engine
Most of these command-line parameters will work with any Source 2 engine games ( Half-Life: Alyx,
Counter-Strike 2, etc.).
Syntax: cs2.exe <parameter1> <parameter2> <cvar1> <cvar2>
Usage
These options can be used with:
- Windows shortcuts pointing to
cs2.exe
directly. - Windows shortcuts pointing to
steam.exe
with the proper-applaunch <AppID>
specified (more on Command line options - Steam page). - Command-line batch script files launching these applications.
- Game launch options from Steam's Library.
- Linux shell scripts pointing to the application with launch options.
executable -command
Examples
steam.exe -applaunch 730 -dev -console +map MyMap
cs2.exe -dev -console +map de_dust2 +buildcubemaps
Command-Line Parameters
Argument | Description |
---|---|
-addon <addon_name> | Starts the game mounting <addon_name> |
-allow_third_party_software | Launches the game in "Untrusted Mode", which allow third-party programs to injecting its code into game executable. (only in ![]() |
-allowmultiple | Allows multiple Source 2 instances to run at the same time. Only works if a VPROJECT environment variable is set. (only in ![]() |
-autoconfig | This command lets you restore config file settings to default. (only in ![]() |
-console | Starts the game with the developer console enabled. |
-dev | Starts the game with the DEV MENU enabled (only in ![]() |
-forcenovsync | Switches off Vsync technology. (only in ![]() |
-freq <refresh_rate> | Change the monitor refresh rate. (only in ![]() |
-full | The game will start in full-screen mode. (only in ![]() |
-fullscreen | The game will start in full-screen mode. (only in ![]() ![]() |
-gpuraytracing | (Confirmed with csgocfg.exe) Enable ray-tracing feature support for Hammer Editor. Without it, Hammer ray-tracing related option such as GPU Path Tracing preview and GPU Ray Tracing Visualization will be disabled and hidden. Usually enabled when launching CS2 Workshop Tools from Steam (only in ![]() |
-h <height> or -height <height> | Forces the engine to start with resolution set to <height> . Ex: -h 1920
|
-high | Sets the game's priority to High. (only in ![]() ![]() |
-hlvr_workshop | Launches the Workshop Tools. (only in ![]() |
-insecure | Starts the server without Valve Anti-Cheat. |
-language <language> | Interface language customization. |
-limitvsconst | Limits number of vertex shaders up to 256. (only in ![]() |
-noborder | The game window won’t have edges. (only in ![]() |
-nohltv | Switches off all GOTV and Source TV opportunities. (only in ![]() |
-nojoy | Switching off joysticks, joystick support. (only in ![]() |
-nopreload | Cancels models, files and textures pre-loading. (only in ![]() |
-nostyle | Disables some custom Windows UI styling. Can be used to force the tools into light mode, when Windows is set to light mode. |
-novid | Intro video is disabled. (only in ![]() |
-novr or -vr_enable_fake_vr_test | Launches the game in flat-screen mode. (only in ![]() |
-nowindow | Disables the spectator window. (only in ![]() |
-perfectworld | Switch to Steam China (Perfect World) servers. (only in ![]() |
-retail | Makes it so you cannot see certain items in the sdk, such as /characters/ and /econ/ (only in ![]() ![]() |
-softparticledefaultoff | Rendering particles settings. (only in ![]() |
-steam | Applied by default when launched through Steam, connects game to its 'network'. (only in ![]() ![]() |
-tools | Launches the Workshop Tools (only in ![]() ![]() |
-vconsole | Allows for using the VConsole program that comes with certain games like Aperture Desk Job which does not provide a way of accessing the console in-game [confirm]. |
-vrdebug | Allows the game to run without a VR headset, by rendering the game as a side-by-side stereoscopic pair. (only in ![]() |
-vulkan | Forces the engine to use the Vulkan renderer. |
-width <width>, -w | Forces the engine to start with resolution set to <width> . Ex: -w 1080 (only in ![]() |
-window, -windowed, -startwindowed or -sw | The game will start in the regular window. |
-x <x position> | Window position along the axis X (only in ![]() |
-y <y position> | Window position along the axis Y (only in ![]() |
Deprecated Command-Line Parameters
Argument | Description |
---|---|
-tickrate <tickrate> | Sets the game tick interval. In ![]() ![]() |