# Developer Commands

LinuxGSM provides commands to help developers gather information about the game server they are developing.

| Command Name            | Command                       | Short              |
| ----------------------- | ----------------------------- | ------------------ |
| [Developer](#developer) | `./gameserver developer`      | `./gameserver dev` |
| Detect Details          | `./gameserver detect-details` | `./gameserver ddt` |
| Detect Dependencies     | `./gameserver detect-deps`    | `./gameserver dd`  |
| Detect Glibc            | `./gameserver detect-glibc`   | `./gameserver dg`  |
| Detect ldd              | `./gameserver detect-ldd`     | `./gameserver dl`  |
| Query Raw               | `./gameserver query-raw`      | `./gameserver qr`  |
| Clear Functions         | `./gameserver clear-modules`  | `./gameserver cm`  |

### Developer

The `developer` command enables development mode allowing access to all hidden developer commands.&#x20;

This command also enables dev debug that outputs everything LinuxGSM is doing to `dev-debug.log`when a command is run.

```bash
./gameserver developer
./gameserver dev
```

### Detect Details

Detects variables that are set up to be displayed in details.

```
./gameserver detect-details
./gameserver ddt
```

### Detect Dependencies

Detects dependencies the server requires by checking the contents of `serverfiles`. The output suggests the install command required.

```bash
./gameserver detect-deps
./gameserver dd
```

### Detect Glibc

Automatically detects which version of GLIBC a game server requires

```bash
./gameserver detect-glibc
./gameserver dg
```

### Detect ldd

Automatically detects required dependencies using the ldd command.

```bash
./gameserver detect-ldd
./gameserver dl
```

### Query Raw

Queries the game server using,`gamedig` , `query_gsquery.py`, `tcp` and `udp`, giving a raw output. This can diagnose if the game server query is working and configured correctly.

```bash
./gameserver query-raw
./gameserver qr
```

### Clear Modules

Use this command when pushing commits to a specific branch. It deletes all functions from `lgsm/functions` and removes default LinxuGSM configs. Allowing a commit to be applied to the testing environment without `gameserver.sh` being overwritten and resetting the GitHub branch settings.

```bash
./gameserver clear-modules
./gameserver cm
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-docs.linuxgsm.com/getting-started/developer-commands.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
