host_writeconfig
Saves your current settings to your config file.
host_writeconfig
How to use it
- Turn on the console under Settings, Game, Enable Developer Console.
- Press the key under Esc to open it.
- Type host_writeconfig and press Enter.
FAQ
Does host_writeconfig need sv_cheats?
No. host_writeconfig is not cheat-protected in CS2's command list, so you can use it in any game.
More console and binds commands
Revision history
- First published. Every command checked against CS2's own cvar and command list (SteamDatabase dump b73cfdeb35, 28 Oct 2026).