host_writeconfig Command

Saves all server settings configured with host_ commands into config.cfg so they persist across server restarts.

Category
Server
Game
CS2 + CSGO
Scope
Global
Cheats
Not Required

Command Arguments

These are the parameters host_writeconfig uses. Required arguments must be provided for the command to work.

[Config File]

StringOptional

Will be saved to config.cfg if not specified. The name of the config file to save these settings to e.g. "examplefile.cfg".

Command Builder

Interactive command builder that generates a valid host_writeconfig command for in-game use.

All required arguments filled!

Generated Command

host_writeconfig

Command Information

Learn more about how to use host_writeconfig effectively.

Argument Data Types

Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.

Required Arguments

Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.

Command Scope

Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.

Cheats Required

Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.