CS2 & CS:GO host_writeconfig Command

CS:GO & CS2 Compatible
host_writeconfig <Config File>

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.

Argument Information

The syntax for this command is as follows:
Name Description
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".

Extra Information

Find additional information relating to this command below.
sv_cheats Required
No
Client or Server Command
Both
Total CS is the home of CS2 commands We boast the only complete, up-to-date database of all CS2 console commands. View All CS2 Commands
CS2 player
IPS

Command Generator

Adjust the settings below to automatically generate a command. Once you've got everything right, hit the Copy button and paste it into the console in CS:GO.

host_writeconfig
Config File
Click to Enable