OGTOOLS

7 Days to Die: Server and admin commands

On a 7 Days to Die dedicated server, most commands are open only to full admins by default. The lower the permission level, the more power it has, and 0 means full access. Player commands accept a name, an entity ID or a platform ID, and lpi lists all of them. There are also separate commands to give items or XP to another player, both covered on this page.

Most codes here need cheats turned on first. See the section on how to open the console.

dm

Server and admin commands

7 codes
7 codes listed

Makes a player an admin

admin add <player name> 0

The number at the end is the permission level, and 0 is full access. To take it back, type admin remove and the player's name.

PC

Kicks a player from the server

kick <player name>

The player is removed from the server. You can add a reason in quotes at the end.

PC

Bans a player for a set time

ban add <player name> 2 days

The time unit can be minutes, hours, days, weeks, months or years. To lift the ban, use ban remove.

PC

Lists players with their IDs

lpi

Shows each connected player's name, entity ID and platform ID. For the full list with position and health, type lp.

PC

Saves the world right away

saveworld

Writes the world to disk as it is; the short form is sa. It does not create a backup you can roll back to.

PC

Gives an item to another player

give <player name> <item name> <amount>

The item drops in front of the player you name. Add one more number after the amount to set the item's quality.

PC

Gives XP to another player

givexp <player name> 5000

The player you name gets as much XP as the number at the end.

PC

Server and admin commands: Common questions

How do I make myself an admin on a server?
If someone with admin rights types admin add, your player name and 0 in the console, you get full access. If the server has no admin yet, you grant it in the server's serveradmin.xml file or through your host's web console.
Why does a command not work even though I am an admin?
Most commands require level 0 by default. If you gave yourself a level higher than 0, or your ID is wrong in serveradmin.xml, the command is refused. To open a command to a lower level, use cp add.
Can PS5 and Xbox players use server commands?
Consoles have no F1 command console. On a PC dedicated server with crossplay, jobs like kicking, banning and teleporting are done from the server's web console or by a PC player with admin rights.
Does the save world command make a backup?
No. Typing saveworld, or sa for short, writes the world to disk as it is, but it does not create a copy you can roll back to. For a backup, copy the save folder separately.

Other 7 Days to Die cheat categories