# Start Parameters

{% hint style="info" %}
Also known as Command-Line Parameters, Command line arguments, or Launch Parameters.
{% endhint %}

Many game servers require *start parameters*, these are command-line options that are set with the server executable when the server starts.&#x20;

Using [game server configs](https://docs.linuxgsm.com/configuration/game-server-config) over parameters is preferred, however, sometimes this is not an option. When this is the case only parameters or a mixture of game server config and parameters will be used.

Parameters being used by the game server can be found in `./gameserver details`. To alter them, you will need to edit [LinuxGSM config files](https://docs.linuxgsm.com/configuration/linuxgsm-config).

## Predefined Parameters

LinuxGSM often uses predefined parameters that can be edited. This makes adjusting common settings easier and allows them to be displayed in `./gameserver details`.

```
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
defaultmap="map_name"
gamemode="game_mode"
maxplayers="42"
port="27015"
sourcetvport="27020"
clientport="27005"
```

## Additional Parameters

Additional command-line parameters can be added to the `startparameters` setting.&#x20;

Anything added will be appended to the server executable binary.

### Basic Example

| Parms variable                  | Executable                |
| ------------------------------- | ------------------------- |
| `startparameters="-game nmrih"` | `./srcds_run -game nmrih` |

### Full Example

```
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
startparameters="-game nmrih -strictportbind -ip 91.121.72.41 -port 27015 +clientport 27017 +tv_port 27016 +map nmo_broadway +servercfgfile nmrih-server-1.cfg -maxplayers 8"
```

## Parameters reference

* 7 Days to Die
* Gold Source Servers
* [Source Dedicated Servers](https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server)
* [Memories Of Mars](https://memoriesofmars.gamepedia.com/Dedicated_Servers#Overriding_with_Commandline_Arguments)
* [Natural Selection 2](http://wiki.unknownworlds.com/ns2/Dedicated_Server)
* [Rust](https://developer.valvesoftware.com/wiki/Rust_Dedicated_Server)
* [Squad](http://squad.gamepedia.com/Server_Configuration#Command_Line)
* [Killing Floor 2](https://wiki.tripwireinteractive.com/index.php?title=Dedicated_Server_\(Killing_Floor_2\)#Advanced_Configuration)
