When you constantly type long console commands in Counter-Strike 2, it starts to annoy. But there's a simple solution — alias commands in CS2. These shortcuts let you group multiple actions into one button press. Whether you want to create a jumpthrow bind, quick weapon switch or toggle settings on the fly, alias is your best friend.
.jpg)
What is alias command in CS?
The alias command in CS2 creates shortcuts for console commands. Instead of typing cl_hud_telemetry_frametime_show 2 every time, you make an alias that does it with one word. Think of it as a macro or a custom hotkey that executes one or more commands.
Basic syntax looks like this:
alias "name" "command"
You can also chain multiple commands:
alias "name" "command1; command2; command3"
The semicolon separates each command. When you type your alias name in console or bind it to a key, all commands execute in sequence.
CS2 alias commands vs CSGO alias commands
In CS:GO, aliases were critical for movement optimization. Pro players used them to create consistent strafe jumps and precise grenade throws. But CS2 changed the game with the subtick system.
The subtick system processes player input between server ticks. This means every action — whether jump, shot or movement — registers the exact moment you press the key, not just at the next tick. In theory, this gives smoother gameplay. In practice, it broke many CSGO alias commands.
Valve restricted how movement aliases work. Before the change, players used aliases to bypass subtick variations and get consistent movement. After the update, these no longer function the same way. ESL even banned certain movement-based aliases in tournaments.
However, most utility-focused aliases still work perfectly. Jumpthrow binds, weapon switches and HUD toggles remain reliable in CS2.
And if you want the ultimate advantage, take a look at VRedux — the private cheat that helps you dominate every match without getting banned.
.jpg)
How to create alias in CS2 through console
Enable developer console first:
- Open Settings → Game.
- Find "Enable developer console" and set to Yes.
- Save settings.
Press ~ (tilde key, usually under Esc) to open console.
Type your alias command. For example:
alias "gl" "say gl hf"
Now when you type gl in console, the game sends "gl hf" in chat.
To bind your alias to a key:
bind "v" "gl"
Press V and the message appears in chat instantly.
Practical CSGO alias command examples for CS2
Jumpthrow bind
The most popular alias in Counter-Strike. It makes grenade lineups consistent by removing human timing error.
alias "+jumpaction" "+jump;"alias "+throwaction" "-attack; -attack2"alias "-jumpaction" "-jump"bind "h" "+jumpaction;+throwaction;"
How it works: Hold left click to charge your grenade. Press H. The game jumps and releases the grenade at the same moment.
Running jumpthrow
For grenades that need forward momentum:
alias "+runthrow" "+forward;+jump;"alias "-runthrow" "-jump;-forward;"bind "v" "+runthrow;+throwaction"
This makes you run forward, jump and throw simultaneously. Perfect for long-distance smokes.
Quick weapon switch
Toggle between knife and your last weapon instantly:
alias +knife "slot3"alias -knife "slot2; slot1"bind q +knife
Press and hold Q to pull out knife. Release Q to switch back to your weapon.
Bomb drop macro
Instantly drop the bomb without fumbling through your inventory:
alias "+bomb" "slot3; slot5"alias "-bomb" "drop; lastinv"bind "t" +bomb
Press T and the bomb drops while you return to your previous weapon.
HUD telemetry toggle
Show FPS, ping and network stats when holding Tab:
alias "+drow" "cl_hud_telemetry_frametime_show 2; cl_hud_telemetry_ping_show 2; +showscores"alias "-drow" "cl_hud_telemetry_frametime_show 1; cl_hud_telemetry_ping_show 1; -showscores"bind "TAB" +drow
This displays detailed performance info while checking the scoreboard, then hides it when you release Tab.
Understanding + and - in alias commands
The + and - prefixes control press-and-release behavior. When you use +command, you're telling the game "do this when pressed." The -command tells it "stop when released."
For example:
alias "+walk" "+forward; say moving"alias "-walk" "-forward; say stopped"bind "w" +walk
- Press W: character moves forward and says "moving" in chat.
- Release W: character stops and says "stopped" in chat.
Most movement commands (+jump, +forward, +attack) require both versions. If you only define the + action without the - action, the game keeps executing that command indefinitely.
.jpg)
How to save alias in autoexec.cfg
Typing aliases every time you launch Counter-Strike is tedious. The autoexec.cfg file solves this by automatically running commands at startup.
Create autoexec.cfg:
- Navigate to: Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/
- Right-click → New → Text Document.
- Rename it to autoexec.cfg (not autoexec.cfg.txt).
Add your aliases:
- Open autoexec.cfg in Notepad or any text editor.
- Paste your alias commands, one per line:
// Jumpthrow bindalias "+jumpaction" "+jump;"alias "+throwaction" "-attack; -attack2"alias "-jumpaction" "-jump"bind "h" "+jumpaction;+throwaction;"
// Quick weapon switchalias +knife "slot3"alias -knife "slot2; slot1"bind q +knife - Save the file.
Make sure it loads:
- Add +exec autoexec to CS2 launch options:
- Right-click Counter-Strike 2 in Steam.
- Select Properties.
- In Launch Options, type:
+exec autoexec - Alternatively, type exec autoexec in console after launching the game.
Alias toggle commands in CS2
Toggle aliases switch between two states with one key press. Useful for settings you want to change mid-game without opening console.
Basic toggle structure:
alias "toggle_on" "command_on; alias trigger toggle_off"alias "toggle_off" "command_off; alias trigger toggle_on"alias "trigger" "toggle_on"bind "KEY" "trigger"
Example: Toggle net_graph:
alias "netgraph_on" "cl_showfps 1; alias toggle_net netgraph_off"alias "netgraph_off" "cl_showfps 0; alias toggle_net netgraph_on"alias "toggle_net" "netgraph_on"bind "f1" "toggle_net"
Press F1 once: FPS counter appears.
Press F1 again: FPS counter disappears.
Each press changes the "toggle_net" alias to point to the opposite state. Simple but powerful.
Common mistakes when using aliases
Forgetting quotation marks
- Wrong:
alias test echo hello - Right:
alias "test" "echo hello"
Always use quotes, especially when commands have spaces or multiple parameters.
Missing the - command
If you use +command but forget -command, the action continues forever. Your character might keep jumping or shooting until you manually stop it.
Using reserved names
You can't name an alias "bind", "alias", "exec" or any existing console command. CS2 won't let you overwrite built-in functions.
Chaining incompatible commands
Some commands don't work well together. For example, +attack and +jump in the same instant might not register properly due to engine timing.
CS2 alias practical use cases
Grenade selection bind
Cycle through grenades with one key:
alias "switch_HE-Moly" "switch_to_HE"alias "switch_to_HE" "slot6; alias switch_HE-Moly switch_to_Moly"alias "switch_to_Moly" "slot10; alias switch_HE-Moly switch_to_HE"bind "x" "switch_HE-Moly"
Press X once: HE grenade.
Press X again: Molotov/Incendiary.
Radar zoom bind
Hold a key to zoom the radar:
alias +radarzoom "cl_radar_scale 1"alias -radarzoom "cl_radar_scale 0.35"bind "z" +radarzoom
Hold Z: full map view.
Release Z: zoomed back in.
Volume control
Quickly adjust volume during clutch situations:
alias +incvol "incrementvar volume 0 2 0.5"alias -incvol "incrementvar volume 0 2 -0.5"bind "=" +incvol
Press =: increase volume.
Release =: decrease volume.
Alias and bind: what's the difference?
People often confuse these two commands.
Bind connects a key to an action:
bind "w" "+forward"
Press W → move forward.
Alias creates a shortcut for one or more commands:
alias "move" "+forward"
Type "move" in console → move forward.
You use them together:
alias "fastmove" "+forward; +sprint"bind "w" "fastmove"
Now pressing W executes both +forward and +sprint.
.jpg)
Why pro players use aliases
Professional CS2 players rely on aliases for consistency. A jumpthrow bind guarantees the same grenade trajectory every time. Manual timing introduces human error — even a 10ms difference changes where the smoke lands.
In official matches, players need repeatable setups. Aliases remove variables. They also free up mental bandwidth. Instead of thinking "jump at this exact moment while releasing left click," you think "press H."
However, tournament organizers sometimes restrict certain aliases. ESL banned movement-optimization aliases after Valve changed the subtick system. But utility-based aliases like jumpthrow remain legal in most competitions.
How to remove alias in CS2
If an alias isn't working or you want to delete it:
Method 1: Overwrite with empty command
alias "name" ""
This clears the alias but keeps the name registered.
Method 2: Restart the game
Aliases created in console disappear when you close CS2. Only those in autoexec.cfg persist.
Method 3: Remove from autoexec
- Open your autoexec.cfg file.
- Delete the alias line.
- Save and restart CS2, or type exec autoexec in console.
CS2 config file and aliases
Your config.cfg file stores game settings. CS2 generates it automatically. You can add aliases here, but it's not recommended. The game sometimes overwrites config.cfg during updates or when changing settings through the UI.
The autoexec.cfg file is safer because CS2 never touches it. Anything you put in autoexec stays exactly as you wrote it.
To load someone else's config with their aliases:
- Download their config file.
- Place it in Steam/steamapps/common/Counter-Strike Global Offensive/game/csgo/cfg/
- Open console and type:
exec filename(replace "filename" with the actual name).
Pro player configs are popular. Want to try s1mple's settings? Download his config, exec it, and you'll have the same aliases and binds he uses.
Troubleshooting alias issues
Alias not working after restart
You probably typed it in console instead of adding it to autoexec.cfg. Console aliases don't save.
Commands execute in wrong order
Check your semicolons. Make sure each command is separated properly.
Bind conflicts
If you bind the same key twice, the second bind overwrites the first. Check your autoexec for duplicate binds.
Game ignores alias
Verify the name isn't a reserved command. Try a different name.
Advanced alias scripting
Conditional aliases
You can create aliases that change behavior based on previous actions:
alias "state_a" "echo State A active; alias toggle state_b"alias "state_b" "echo State B active; alias toggle state_a"alias "toggle" "state_a"bind "f2" "toggle"
Each press switches between state A and state B.
Multi-function binds
One key performs different actions depending on context:
alias "+multibind" "slot6"alias "-multibind" "slot10"bind "4" "+multibind"
Press and hold 4: equip HE grenade.
Release 4: equip molotov.
Layered binds
Change what other keys do when holding a modifier:
alias "+layer" "bind mouse5 slot7; bind mouse4 slot8"alias "-layer" "bind mouse5 +jump; bind mouse4 +duck"bind "f" "+layer"
Hold F: Mouse5 and Mouse4 switch grenades.
Release F: Mouse5 and Mouse4 return to jump/duck.
Should you use aliases in CS2?
For utility and convenience, absolutely. Jumpthrow binds are standard at every skill level. Quick weapon switches save time. HUD toggles give you information without cluttering the screen.
For movement optimization, it's complicated. Valve changed how aliases interact with the subtick system. Some movement scripts no longer work as intended. ESL restricts them in tournaments. If you're playing casually or in matchmaking, experiment. If you're competing, check the rulebook first.
Personally, I use aliases for jumpthrows and weapon management. They make gameplay smoother without giving unfair advantages. The goal isn't to automate skill — it's to remove tedious tasks so you can focus on strategy and aim.
FAQ
Can I get banned for using aliases in CS2?
No. Aliases are built into the game engine. Valve allows them. However, some third-party leagues restrict specific aliases in competitive play.
Do aliases work on official Valve servers?
Yes. All aliases function on Valve matchmaking, Premier mode, and community servers.
How many aliases can I create?
Technically unlimited. But each alias uses memory. Hundreds of aliases might slow down the game, though you'd need an absurd amount before noticing.
Can I use aliases with macros?
Aliases are in-game commands. Macros are external software. Combining them can violate anti-cheat rules, especially on FACEIT or ESEA.
What's the difference between alias and bind?
Bind connects a key to a command. Alias creates a shortcut for commands. You often use them together: create an alias, then bind it to a key.
Why doesn't my alias save after restarting CS2?
Console commands don't persist. Add your aliases to autoexec.cfg for automatic loading at startup.
Can I share my aliases with friends?
Yes. Send them your autoexec.cfg file or the specific alias commands. They can copy-paste into their own config.
Conclusion
The alias command in CS2 is one of the most useful tools for customizing gameplay. From jumpthrow binds to weapon switches and HUD toggles, aliases simplify complex actions into single keypresses. While Valve changed how some aliases work with the subtick system, most practical applications remain fully functional.
Start with simple aliases like jumpthrow or quick weapon switch. Once you're comfortable, experiment with toggles and layered binds. Add them to your autoexec.cfg so they load automatically. Before long, you'll wonder how you ever played without them.
Want more CS2 guides? Check out our articles section for tips on console commands, performance optimization, and game mechanics.