Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
VGSources
Blog

Half-Life 2 Console Commands: How to Enable and Use Them

Enable the Half-Life 2 developer console, open it with your configured key, and use commands for movement, weapons, maps, binds, and help.
Length3 min Posted Quest giverVGSources Team

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.

To use console commands in Half-Life 2, enable the developer console in the game’s keyboard settings, open it with the configured key, enter a command, and press Enter. For commands that require cheats, enter sv_cheats 1 first; save before experimenting, since a community command guide warns that achievement progress is not counted while cheats are enabled.

How to enable and open the developer console

Steam Support describes the console as “a text-based input/output interface to execute commands or change global settings in a game.” For most Valve titles, Steam documents this setup path:

  1. Launch Half-Life 2 and open Options.
  2. Select Keyboard, then click Advanced.
  3. Check Enable developer console and select Apply.
  4. Open the console with the tilde (~) key on an English/US keyboard configuration. If that key does not work on your layout, check or change the console binding in the keyboard settings.

Steam Support’s console instructions cover most Valve titles; labels and key behavior may vary with the game build or keyboard layout.

Start the game with the console enabled

On Steam, add -console to the game’s launch options to start with the developer console enabled. Steam also supports passing many commands at launch by prefixing them with +, but explicitly cautions that some commands cannot be used this way. Use the in-game console when a command does not take effect as a launch option.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Half Life 2 - Xbox
  • Amazing new graphics with pre-rendered cutscenes that look like they came from the movies
  • More realistic physics - Objects have varied and appropriate mass, density and physical properties
  • Incredibly advanced AI as enemies adapt, plan, improvise, and respond
  • Hordes of new aliens and other enemies, plus a plethora of new guns and weapons

See Steam’s launch-options instructions for the general behavior.

Useful Half-Life 2 console commands

The commands below are representative examples from a community-maintained guide updated April 13, 2025, not an exhaustive or official Valve command list. Availability, arguments, and whether cheats are required can depend on the build and context.

Rank #2
Half-Life 2 (PC)
  • Used Book in Good Condition
Purpose Command What it does
Enable cheats sv_cheats 1 Enables cheat commands where required, according to the community guide. Use sv_cheats 0 to turn cheats off.
Invulnerability god Makes the player invulnerable.
Fly or pass through walls noclip Lets the player move through walls and fly.
Spawn a weapon give weapon_name Gives a named weapon; replace weapon_name with the desired name.
Load a map map map_name Loads a named map; replace map_name with the map name.
Bind a command to a key bind key "command" Assigns a command to a key; replace the examples with the key and command you want.
Search commands find word Searches command names and descriptions for a matching word.
Get a command hint help command Requests a hint for a command, when one is available.

To try one, open the console, type the command exactly, and press Enter. For a cheat-gated command, first enter sv_cheats 1. Save your game before changing settings or experimenting with cheats. The guide cautions that achievement progress is not counted while cheats are enabled; that warning is from the community guide and is not established here as a universal Valve policy across every build.

If a command fails, check its spelling and required arguments, then use the console’s own search or help. Note the game build when asking for help: the November 2024 anniversary update changed the game, and command behavior can vary by build or context.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Which Half-Life 2 build are you using?

Valve’s November 2024 anniversary update added Workshop support and developer commentary, fixed bugs, and made both episodes and Lost Coast accessible from the menu. The Valve Developer Community overview also notes that older mods may need compatibility work or a legacy build. If a command or mod behaves differently from instructions you find, identify whether you are using the anniversary-updated game or a legacy build before applying older guidance.

The Valve Developer Community’s Half-Life 2 overview summarizes the update and compatibility context.

Quick Recap

Bestseller No. 1
Half Life 2 - Xbox
Half Life 2 - Xbox
Amazing new graphics with pre-rendered cutscenes that look like they came from the movies; Incredibly advanced AI as enemies adapt, plan, improvise, and respond
$105.24
Bestseller No. 2
Half-Life 2 (PC)
Half-Life 2 (PC)
Used Book in Good Condition
$24.99
Bestseller No. 3
Bestseller No. 4
Half-Life 2 - PC
Half-Life 2 - PC
Sequel to the hit first-person shooter; Realistic physics: objects have varied and appropriate mass, density, physical properties
$18.99
Bestseller No. 5
Half-Life 2: Episode Pack - PC
Half-Life 2: Episode Pack - PC
Battle new alien foes.; Drive new vehicles through new locations beyond City 17.; Discover more about the award-winning story of Half-Life.
$14.99
Best Value
Half-Life 2: Episode Pack - PC
  • Battle new alien foes.
  • Drive new vehicles through new locations beyond City 17.
  • Discover more about the award-winning story of Half-Life.
  • Over 15 hours of award-winning single player gaming.
  • Battle online with Half-Life 2: Deathmatch – included for no additional charge.
Rank #4
Half-Life 2 - PC
  • Sequel to the hit first-person shooter
  • Scientist-with-a-crowbar Gordon Freeman joins a ragtag human resistance fighting extradimensional invaders for the survival of a conquered Earth
  • Unnervingly realistic graphics the likes of which have not been witnessed outside of a motion picture or pre-rendered cut scene
  • Realistic physics: objects have varied and appropriate mass, density, physical properties
  • For 1 player

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 *

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

More quests from Patch Notes

  1. How to Turn On Vibrant Visuals in MinecraftMinecraftBlog3min
  2. Best Multiplayer Games for Low-End PCsBlog4min
  3. Minecraft: How To Use And Install OptiFineBlog5min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair scan

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.