# Admin Commands

<figure><img src="https://rampart.games/templates/lagom2/assets/img/page-manager/7Days3.jpg" alt=""><figcaption></figcaption></figure>

|                                                                                                                                                                                 |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| Command                                                                                                                                                                         | Shortcut | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Example                                                                                |
| help \<command>                                                                                                                                                                 |          | Prints help text for supported commands.                                                                                                                                                                                                                                                                                                                                                                                                                                     | help ban                                                                               |
| admin add \<name / entity id / steam id> \<permission level>                                                                                                                    |          | Used to add a player to the admin list with the desired permission level. Note that you can use the players entityid, playername, or steam ID. Type "lpi" to find an ID. Permission levels can range between 0 (maximum) and 1000 (none).                                                                                                                                                                                                                                    | admin add 171 0                                                                        |
| admin remove \<name / entity id / steam id>                                                                                                                                     |          | Used to remove a player from the admin list. Type "lpi" to find an ID.                                                                                                                                                                                                                                                                                                                                                                                                       | admin remove 171                                                                       |
| ai pathgrid                                                                                                                                                                     |          | TBD - added in A19.2 b3                                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                        |
| ai pathlines (was: ai path)                                                                                                                                                     |          | TBD - renamed in A19.2 b3                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| aiddebug                                                                                                                                                                        |          | Toggles AIDirector debug output.                                                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                        |
| ban add \<name / entity id / steam id> \<duration> \<duration unit> \[reason]                                                                                                   |          | Bans a player from the game for \<duration> in \<duration units> with a reason of \[reason] (optional). Duration units are minutes, hours, days, weeks, months, and years. Type "lpi" to find an ID.                                                                                                                                                                                                                                                                         | <p>ban 171 10 hours griefing<br>ban 282 1 year hacking</p>                             |
| ban list                                                                                                                                                                        |          | Print a list of banned players with their duration, ID, and reason to the console.                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                        |
| ban remove \<name / entity id / steam id>                                                                                                                                       |          | Remove a ban. Find a list of banned player IDs using "ban list".                                                                                                                                                                                                                                                                                                                                                                                                             | ban remove 171                                                                         |
| buff \<buff name>                                                                                                                                                               |          | Applies a buff to the local player (you). Buff names can be found in `7 Days To Die\Data\Config\buffs.xml`                                                                                                                                                                                                                                                                                                                                                                   | buff CoffeeStaminaBoost                                                                |
| buffplayer \<name / entity id / steam id> \<buff name>                                                                                                                          |          | Applies a buff to the selected player. Type "lpi" to find an ID. Buff names can be found in `7 Days To Die\Data\Config\buffs.xml`.                                                                                                                                                                                                                                                                                                                                           | buffplayer 171 CoffeeStaminaBoost                                                      |
| chunkcache                                                                                                                                                                      | cc       | Shows all loaded chunks in the cache.                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| clear                                                                                                                                                                           |          | Clears all output text in the command console                                                                                                                                                                                                                                                                                                                                                                                                                                |                                                                                        |
| cp add \<command> \<level>                                                                                                                                                      |          | Used to add a command to the command permission list with the desired permission level. Use "cp list" to view commands.                                                                                                                                                                                                                                                                                                                                                      | cp add gettime 0                                                                       |
| cp remove \<command>                                                                                                                                                            |          | Used to remove a command from the command permission list.                                                                                                                                                                                                                                                                                                                                                                                                                   | cp remove gettime                                                                      |
| cp list                                                                                                                                                                         |          | Display a list of current command permissions. "1000" is the lowest (Guest or normal player) while "0" is the highest (Host or Admin).                                                                                                                                                                                                                                                                                                                                       |                                                                                        |
| creativemenu                                                                                                                                                                    | cm       | Enables or disables the [Creative Menu](https://7daystodie.fandom.com/wiki/Creative_Menu)                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| deathscreen \<on/off>                                                                                                                                                           |          | Display the blood-filled death screen during normal gameplay. This does not hurt or kill the player but it diminishes visibility.                                                                                                                                                                                                                                                                                                                                            |                                                                                        |
| debuff \<buff name>                                                                                                                                                             |          | Remove a buff from the local player (you).                                                                                                                                                                                                                                                                                                                                                                                                                                   | debuff buffLegBroken                                                                   |
| debuffplayer \<name / entity id / steam id> \<buff name>                                                                                                                        |          | Remove a buff from the targeted player.                                                                                                                                                                                                                                                                                                                                                                                                                                      | debuff 171 buffLegBroken                                                               |
| debugmenu \[on/off]                                                                                                                                                             | dm       | Toggles [Debug Mode](https://7daystodie.fandom.com/wiki/Debug_Mode) on or off. This allows God mode (G key), the debug menu (ESC), and other unique functionality.                                                                                                                                                                                                                                                                                                           |                                                                                        |
| enablescope \<on/off>                                                                                                                                                           | es       | Toggle debug scope.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                        |
| exhausted                                                                                                                                                                       |          | Makes the player exhausted.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                        |
| exportcurrentconfigs                                                                                                                                                            |          | <p>Exports the currently used configs to %appdata%/7DaystoDie/Saves/\<worldname>/\<savegamename>/Configs on Windows and .local/share/7DaystoDie/Saves/\<worldname>/\<savegamename>/Configs on Linux.</p><p>Useful for mod development. <a href="https://7daystodie.fandom.com/wiki/Command_Console#cite_note-1"><sup>\[1]</sup></a></p>                                                                                                                                      |                                                                                        |
| exportitemicons                                                                                                                                                                 |          | Exports all item icons to the `7 Days To Die\ItemIcons` folder. Extremely useful for wiki editing!                                                                                                                                                                                                                                                                                                                                                                           |                                                                                        |
| getgamepref                                                                                                                                                                     | gg       | Prints a list of current game preferences to the console (airdrop frequency, daylight length, etc).                                                                                                                                                                                                                                                                                                                                                                          |                                                                                        |
| getgamestat                                                                                                                                                                     | ggs      | Prints a list of current game stats to the console (land claim size, difficulty, etc)                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| gettime                                                                                                                                                                         | gt       | Prints current number of days and time.                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                        |
| gfx af <0 or 1>                                                                                                                                                                 |          | Sets the anisotropic filtering to off(0) or on(1, default).                                                                                                                                                                                                                                                                                                                                                                                                                  | gfx af 0                                                                               |
| gfx dti                                                                                                                                                                         |          | Set distant terrain instancing (A19.2 b3)                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| gfx dtpix                                                                                                                                                                       |          | Set distant terrain pixel error (A19.2 b3)                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                        |
| givequest                                                                                                                                                                       |          | Give yourself a quest. Quest names can be found in `7 Days To Die\Data\Config\quests.xml`. The example command can be used to skip to the end of the tutorial quests. This is also immensely helpful for modded quests.                                                                                                                                                                                                                                                      | givequest quest\_BasicSurvival8                                                        |
| giveself \<item name> \[quality level]                                                                                                                                          |          | Drops an item at your feet with maximum (600) quality. Use the optional \[quality level] to specify. Item names can be found in `7 Days To Die\Data\Config\items.xml`                                                                                                                                                                                                                                                                                                        | giveself machete                                                                       |
| ~~giveselfskillxp \<skill name> \<amount>~~ \*                                                                                                                                  |          | ~~Increase the specified skill by \<amount> of experience. The \<skill name> MUST be capitalized and spaced correctly.~~                                                                                                                                                                                                                                                                                                                                                     | giveselfskillxp Mining Tools 1000                                                      |
| giveselfxp \<amount>                                                                                                                                                            |          | Increase your experience by \<amount>.                                                                                                                                                                                                                                                                                                                                                                                                                                       | giveselfxp 1000                                                                        |
| kick \<name / entity id / steam id> \[reason]                                                                                                                                   |          | Kicks a player from the game. Type "lpi" to find an ID. \[reason] is optional.                                                                                                                                                                                                                                                                                                                                                                                               | kick 171 bye                                                                           |
| kickall \[reason]                                                                                                                                                               |          | Kicks all players from the game. \[reason] is optional.                                                                                                                                                                                                                                                                                                                                                                                                                      | kickall bye                                                                            |
| killall                                                                                                                                                                         |          | Kills all players and entities.                                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                        |
| lights                                                                                                                                                                          |          | Toggles display of an outline around all light-emitting objects (candles, campfires, etc) (screenshot)                                                                                                                                                                                                                                                                                                                                                                       |                                                                                        |
| listents                                                                                                                                                                        | le       | Lists all entities currently in game (zombies, players, animals).                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                        |
| listlandclaim                                                                                                                                                                   | llp      | Lists all active Land Claim Blocks with player name, world ID, SteamID, LCB's current health state, and coordinates.                                                                                                                                                                                                                                                                                                                                                         |                                                                                        |
| listplayerids                                                                                                                                                                   | lpi      | Lists all players and their IDs.                                                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                        |
| listplayers                                                                                                                                                                     | lp       | Lists all players with IDs, positions, health, stats, IP address, etc.                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                        |
| listthreads                                                                                                                                                                     | lt       | Lists all threads.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                        |
| loggamestate \<message> \[true/false]                                                                                                                                           | lgs      | Writes information on the current state of the game (memory usage, entities, threads, etc) to the log file at `7 Days To Die\7DaysToDie_Data\output_log.txt`. \<message> is any string that will be included in the header of the generated log. True = the command should be run on the client. False = the command should be run on the server. "False" is default.                                                                                                        | loggamestate START                                                                     |
| loglevel \<loglevel name> \<true/false>                                                                                                                                         |          | Telnet/web only. Select which types of log messages are shown on the connection. By default, all log messages are printed on every connection. Log levels: INF, WRN, ERR, EXC, or ALL.                                                                                                                                                                                                                                                                                       | loglevel INF false                                                                     |
| mem                                                                                                                                                                             |          | Prints memory information and calls garbage collector.                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                        |
| memcl                                                                                                                                                                           |          | Prints memory information on client and calls garbage collector.                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                        |
| pplist                                                                                                                                                                          |          | Prints Persistent Player data.                                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                        |
| removequest                                                                                                                                                                     |          | Removes a quest. Quest names can be found in `7 Days To Die\Data\Config\quests.xml`.                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                        |
| repairchunkdensity \<x> \<z> \[fix]                                                                                                                                             | rcd      | Used to check if the densities of blocks in a chunk match the actual block type. If there is a mismatch it can lead to the chunk rendering incorrectly or not at all, indicated by the error message "Failed setting triangles. Some indices are references out of bounds vertices." It can also fix mismatches within a chunk. \<x> and \<z> are the coordinates of any block within the chunk to check. Adding "fix" to the end of the command will repair any mismatches. | rcd 0 100 fix                                                                          |
| saveworld                                                                                                                                                                       | sa       | Manually saves the world.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| say \<message>                                                                                                                                                                  |          | Sends a server message to all connected clients.                                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                        |
| setgamepref \<preference name> \<value>                                                                                                                                         | sg       | Sets a gamepref. Preference names can be viewed with the "gg" command (getgamepref).                                                                                                                                                                                                                                                                                                                                                                                         | sg ZombiesRun 0                                                                        |
| setgamestat \<stat name> \<value>                                                                                                                                               | sgs      | Sets a gamestat. Stat names can be viewed with the "ggs" command (getgamestat).                                                                                                                                                                                                                                                                                                                                                                                              | sgs LandClaimExpiryTime 10                                                             |
| settempunit \<c or f>                                                                                                                                                           | stu      | Sets the temperature unit to Celsius (c) or Fahrenheit (f, default).                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                        |
| <p>settime day<br>settime night<br>settime \<time><br>settime \<day> \<hour> \<minute></p>                                                                                      | st       | <p>Sets the current game time. \<time> is in the 24h/military format (1pm is 1300). \[hour] and \[minute] are not. You can also set the \<day>, which is the number of total days that have passed. Type "help settime" for more info.</p><p>WARNING!!! Using this command runs a high risk of breaking everything timer related on your save game.</p>                                                                                                                      | <p>settime 1300<br>settime 6 15 0</p>                                                  |
| showalbedo                                                                                                                                                                      | albedo   | Toggles display of albedo in gBuffer.                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| showchunkdata                                                                                                                                                                   | sc       | Shows some data of the current chunk.                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| showclouds                                                                                                                                                                      |          | Artist command to show one layer of clouds.                                                                                                                                                                                                                                                                                                                                                                                                                                  |                                                                                        |
| shownexthordetime                                                                                                                                                               |          | Displays the wandering horde time.                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                        |
| shownormals                                                                                                                                                                     | norms    | Toggles display of normal maps in gBuffer.                                                                                                                                                                                                                                                                                                                                                                                                                                   |                                                                                        |
| showspecular                                                                                                                                                                    | spec     | Toggles display of specular values in gBuffer.                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                        |
| shutdown                                                                                                                                                                        |          | Shuts the game down.                                                                                                                                                                                                                                                                                                                                                                                                                                                         |                                                                                        |
| sounddebug                                                                                                                                                                      |          | Toggles SoundManager debug output.                                                                                                                                                                                                                                                                                                                                                                                                                                           |                                                                                        |
| spawnairdrop                                                                                                                                                                    |          | Spawns an air drop.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |                                                                                        |
| spawnentity \<playerID> \<entityID>                                                                                                                                             | se       | "se" by itself prints a list of entity IDs. Type "lpi" to find an ID. You may also use the Entity Spawner (F6) in [Debug Mode](https://7daystodie.fandom.com/wiki/Debug_Mode) to spawn an entity.                                                                                                                                                                                                                                                                            |                                                                                        |
| spawnscouts                                                                                                                                                                     |          | Spawns 1 [Screamer](https://7daystodie.fandom.com/wiki/Screamer) in the distance and makes it navigate towards the location where the command was used.                                                                                                                                                                                                                                                                                                                      |                                                                                        |
| spawnscreen                                                                                                                                                                     |          | Displays spawn screen.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |                                                                                        |
| spawnsupplycrate                                                                                                                                                                |          | Spawns a supply crate above the player.                                                                                                                                                                                                                                                                                                                                                                                                                                      |                                                                                        |
| spawnwh                                                                                                                                                                         |          | Spawns a wandering horde in the distance; these hordes will move generally towards the player's location when they were spawned (but not GPS at the player). (verified for A19.2 by faatal @TFP)                                                                                                                                                                                                                                                                             |                                                                                        |
| spectrum \<choice>                                                                                                                                                              |          | Force a lighting spectrum. Choices are Biome, BloodMoon, Foggy, Rainy, Stormy, Snowy. For the moment, the "biome" choice is bugged and might crash the game.                                                                                                                                                                                                                                                                                                                 |                                                                                        |
| starve                                                                                                                                                                          |          | Makes the player hungry.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                        |
| staticmap                                                                                                                                                                       |          | Switches the Navazgane map between static and dynamic                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| switchview                                                                                                                                                                      | sv       | Switches the player view between 1st person and 3rd person views. This can also be done in [Debug Mode](https://7daystodie.fandom.com/wiki/Debug_Mode) by hitting F5.                                                                                                                                                                                                                                                                                                        |                                                                                        |
| systeminfo                                                                                                                                                                      |          | Print info about the current system (CPU, operating system, etc).                                                                                                                                                                                                                                                                                                                                                                                                            |                                                                                        |
| <p>teleport \<E / W> \[y] \<N / S><br>teleport \<E / W> \<N / S><br>teleport \<target player name/steam id/entity id><br>teleport offset \<inc E / W> \<inc y> \<inc N / S></p> | tp       | Teleport the local player (you) to specified location. If using \[y] (optional) use -1 to spawn on the ground. Use only \<E / W> and \<N / S> to always spawn on the ground. Use "offset" to teleport based on current position (e.g. 3 meters north inside a locked building). Type "help tp" for more info. South and West are negative, (-) before number.                                                                                                                | <p>tp -200 77 300<br>tp -200 300<br>tp 171<br>tp offset 3 1 0</p>                      |
| <p>teleportplayer \<name / player id / steam id> \<E / W> \<y> \<N / S><br>teleportplayer \<player id> \<player id></p>                                                         | tele     | <p>Teleport the target player to specified location. Use y = -1 to spawn on the ground. Use another player's name or ID to teleport one player to another (such as to yourself). Type "lpi" to print a list of player IDs. Type "help tele" for more info.</p><p>South and West are negative, (-) before number.</p>                                                                                                                                                         | <p>tele 171 -200 77 300<br>tele 171 365<br>tele \<friend> \<self> = friend to you.</p> |
| thirsty                                                                                                                                                                         |          | Makes the player thirsty.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| traderarea                                                                                                                                                                      |          | If a player is within a trader area they will be forced out but can reenter unless trader is closed.                                                                                                                                                                                                                                                                                                                                                                         |                                                                                        |
| updatelighton \<name / player id / steam id>                                                                                                                                    |          | Commands for UpdateLightOnAllMaterials and UpdateLightOnPlayers.                                                                                                                                                                                                                                                                                                                                                                                                             |                                                                                        |
| version                                                                                                                                                                         |          | Print the version of the game and loaded mods.                                                                                                                                                                                                                                                                                                                                                                                                                               |                                                                                        |
| water                                                                                                                                                                           |          | Control water settings. Type "help water" for more info.                                                                                                                                                                                                                                                                                                                                                                                                                     |                                                                                        |
| weather                                                                                                                                                                         |          | Control weather settings. Type "help weather" for more info.                                                                                                                                                                                                                                                                                                                                                                                                                 |                                                                                        |
| weathersurvival \<on / off>                                                                                                                                                     |          | Toggles weather survival.                                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |
| whitelist add \<name / player id / steam id>                                                                                                                                    |          | Adds a player to the whitelist.                                                                                                                                                                                                                                                                                                                                                                                                                                              |                                                                                        |
| whitelist remove \<name / player id / steam id>                                                                                                                                 |          | Removes a player from the white list.                                                                                                                                                                                                                                                                                                                                                                                                                                        |                                                                                        |
| whitelist list                                                                                                                                                                  |          | Prints a list of all whitelisted players.                                                                                                                                                                                                                                                                                                                                                                                                                                    |                                                                                        |

<br>


---

# 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://rampart-games-ltd.gitbook.io/docs/game-knowledge-base/7-days-to-die/admin-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.
