[File Name]
If omitted the server's current hostfile name is printed to the console. Otherwise provide the filename to set as the server's hostfile.
host.txtThis command sets the hosts file with default hosts.txt. If no argument is given it prints the name of the hosts file currently in use to the console.
These are the parameters hostfile uses. Required arguments must be provided for the command to work.
If omitted the server's current hostfile name is printed to the console. Otherwise provide the filename to set as the server's hostfile.
host.txtInteractive command builder that generates a valid hostfile command for in-game use.
hostfile host.txtLearn more about how to use hostfile effectively.
Arguments can be of type String, Number, Bool, or Enum. Provide the correct type for the command to execute correctly.
Arguments marked as Required must be provided for the command to work. Optional arguments can be left blank.
Commands can be Client-sided or Server-sided. Client-sided commands affect only your game client, while server-sided commands affect the entire server.
Some commands require sv_cheats to be enabled. If a command has this requirement, it will not run on servers where cheats are disabled.