host_writeconfig Command

Explore usage, syntax, and examples for the host_writeconfig CS2 developer console command.

host_writeconfig

CS2 and CSGO

Command

host_writeconfig

<Config File>

Save your current server settings set with host_ commands to a config file. These settings will persist after the server restarts.

<Config File> (Optional)

Optional: Specify the config file name to save your settings. Defaults to config.cfg if not set.

sv_cheats Required

No

Client or Server Command

Client

Server

host_writeconfig Generator

Command

host_writeconfig

Ready to Copy

Set the options below to auto-generate your command. When everything looks good, click the Copy button and paste it into your in-game console.