# 7 Days to Die Server Command Reference (/docs/7-days-to-die/command-reference)



Access the console by pressing **F1** in-game or via the **Console** tab in the [XGamingServer Panel](https://panel.xgamingserver.com). Commands require appropriate [admin permissions](/docs/7-days-to-die/admin-setup).

Player Management [#player-management]

| Command                                       | Description                                                      |
| --------------------------------------------- | ---------------------------------------------------------------- |
| `listplayers` (lp)                            | List all connected players with positions and IDs                |
| `listplayerids` (lpi)                         | List player entity IDs and SteamIDs                              |
| `kick <player> [reason]`                      | Kick a player                                                    |
| `kickall [reason]`                            | Kick all players                                                 |
| `ban add <player> <duration> <unit> [reason]` | Ban a player (units: minutes, hours, days, weeks, months, years) |
| `ban remove <player>`                         | Unban a player                                                   |
| `ban list`                                    | Show all bans                                                    |

Admin Management [#admin-management]

| Command                              | Description                     |
| ------------------------------------ | ------------------------------- |
| `admin add <steamID> <level> [name]` | Add admin with permission level |
| `admin remove <steamID>`             | Remove admin                    |
| `admin list`                         | List all admins                 |
| `whitelist add <steamID>`            | Add to whitelist                |
| `whitelist remove <steamID>`         | Remove from whitelist           |
| `whitelist list`                     | Show whitelisted players        |
| `cp add <command> <level>`           | Set command permission level    |
| `cp remove <command>`                | Remove permission override      |
| `cp list`                            | List command permissions        |

Teleportation [#teleportation]

| Command                                        | Description                       |
| ---------------------------------------------- | --------------------------------- |
| `teleport <x> <y> <z>` (tp)                    | Teleport yourself to coordinates  |
| `teleport <playerName>`                        | Teleport to another player        |
| `teleportplayer <playerID> <x> <y> <z>` (tele) | Teleport a player to coordinates  |
| `teleportplayer <playerID> <targetPlayerID>`   | Teleport player to another player |

Spawning & Items [#spawning--items]

| Command                                    | Description                      |
| ------------------------------------------ | -------------------------------- |
| `spawnentity <playerID> <entityName>` (se) | Spawn entity at player location  |
| `giveself <itemName> [count] [quality]`    | Give yourself an item            |
| `giveselfxp <amount>`                      | Grant XP                         |
| `giveselfskillxp <skill> <amount>`         | Grant skill-specific XP          |
| `spawnairdrop`                             | Trigger an airdrop               |
| `spawnsupplycrate`                         | Spawn supply crate above you     |
| `spawnwh`                                  | Spawn wandering horde toward you |
| `spawnscouts`                              | Spawn a screamer zombie          |

Buffs & Status [#buffs--status]

| Command                          | Description               |
| -------------------------------- | ------------------------- |
| `buff <buffName>`                | Apply a buff to yourself  |
| `debuff <buffName>`              | Remove a buff             |
| `buffplayer <playerID> <buff>`   | Apply buff to a player    |
| `debuffplayer <playerID> <buff>` | Remove buff from a player |

Cheats & Debug [#cheats--debug]

| Command             | Description                                     |
| ------------------- | ----------------------------------------------- |
| `creativemenu` (cm) | Toggle Creative Menu (press U to open)          |
| `debugmenu` (dm)    | Toggle Debug Mode (G=God, H=Fly, F6=spawn menu) |
| `god`               | Toggle invincibility                            |
| `ghost`             | Toggle invisibility + noclip                    |

World & Weather [#world--weather]

| Command                         | Description                                           |
| ------------------------------- | ----------------------------------------------------- |
| `settime <day/night/hour>` (st) | Set game time                                         |
| `gettime` (gt)                  | Show current game day and time                        |
| `weather <type>`                | Change weather                                        |
| `spectrum <type>`               | Set lighting (BloodMoon, Foggy, Rainy, Stormy, Snowy) |
| `saveworld` (sa)                | Force save the world                                  |
| `say <message>`                 | Broadcast message to all players                      |
| `shutdown`                      | Shut down the server                                  |
| `killall`                       | Kill all entities                                     |

Information [#information]

| Command                           | Description                       |
| --------------------------------- | --------------------------------- |
| `version`                         | Show game version and loaded mods |
| `systeminfo`                      | Show server system info           |
| `mem`                             | Show memory usage                 |
| `getgamepref` (gg)                | Show game preferences             |
| `setgamepref <pref> <value>` (sg) | Change a game preference          |
| `listents` (le)                   | List all entities                 |
| `listlandclaim` (llp)             | List all land claim blocks        |
| `shownexthordetime`               | Show next wandering horde time    |
| `pplist`                          | Show persistent player data       |
| `help [command]`                  | Show help for a command           |

Related Guides [#related-guides]

* [Admin Setup & Permissions](/docs/7-days-to-die/admin-setup)
* [Spawning Items & Entities](/docs/7-days-to-die/spawn-commands)
* [Creative & Debug Mode](/docs/7-days-to-die/creative-debug)
