Command Profile
HOST_WRITECONFIG
CS2 CS:GO
This command will save all of your server settings that you have set with host_ commands to your config.cfg, so that they apply even when the server restarts.
Syntax
host_writeconfig [Config File]
Description
This command will save all of your server settings that you have set with host_ commands to your config.cfg, so that they apply even when the server restarts.
How To Use host_writeconfig
- Enable the developer console in Counter-Strike settings.
- Open the console with the tilde key (
~). - Enter
host_writeconfig [Config File], replacing bracketed arguments with the value you want, then press Enter.
This command is listed as compatible with Counter-Strike 2.
Syntax And Arguments
host_writeconfig [Config File]
| Config File | Optional - will be saved to config.cfg if not specified. The name of the config file to save these settings to: e.g. "examplefile.cfg". |