Menu
 

Project Zomboid Console Commands (2026): Every Admin Command in Build 42

Project Zomboid Console Commands (2026)

Last updated: September 2026 · Read from Build 42 server files, build 24909836

Quick start: Press T in-game to open chat. Promote yourself with setaccesslevel "YourName" admin from the server console (no slash there). Then /players lists who is connected, /additem "YourName" Base.Axe spawns an item, and /save writes the world to disk before any restart.

This list is generated from the server's own command registry in Build 42, not copied from other guides. Every command below exists in the shipped build, every alias is one the server actually accepts, and the permission column is the capability the server checks before it runs. There are 78 commands under 92 names once aliases are counted. That includes the seven chat channels (/say, /yell, /whisper, /faction, /safehouse, /admin, /all), which most command lists leave out.

If you are following an older guide, check commands that no longer exist first. Several widely repeated ones were never part of Build 42.

Where You Type Them

WhereLeading slashNotes
In-game chatYes, /playersPress T. You need an access level that carries the capability.
Dedicated server consoleNo, playersThe server window itself is not access-limited, so this is how you bootstrap the first admin.
RCONNo, playersSee RCON access below.

Access Levels and Capabilities

Build 42 gates every command on a named capability, not directly on your role. The server ships these roles: admin, moderator, overseer, gm, observer, user, priority and banned. Each role carries a default set of capabilities, and an admin can change which capabilities a role holds, so the mapping is per-server rather than fixed.

That is why the tables below list the capability rather than a role: the capability is the thing the server checks, and it is the same on every server. Set a player's role with /setaccesslevel "Name" "level".

Every Command in Build 42

Access, Roles and Accounts

CommandWhat it doesCapability
/grantadminPromote a player straight to admin. Equivalent to setaccesslevel with the admin level.ChangeAccessLevel
/removeadminDemote an admin. Counterpart to grantadmin.ChangeAccessLevel
/setaccesslevelSet access level of a player. Current levels: Admin, Moderator, Overseer, GM, Observer
/setaccesslevel "username" "accesslevel"
e.g. /setaccesslevel "rj" "moderator"
ChangeAccessLevel
/addsteamidUse this command to add a SteamID to a list of allowed SteamIDs on server
/addSteamID "steamid"
ModifyNetworkUsers
/adduserUse this command to add a new user to a whitelisted server
/adduser "username" "password"
ModifyNetworkUsers
/removesteamidUse this command to remove a SteamID from a list of allowed SteamIDs on server
/removeSteamID "steamid"
ModifyNetworkUsers
/setpasswordUse this command to change password for a user
/setpassword "username" "newpassword"
ModifyNetworkUsers
/addalltowhitelistAdd every currently connected password user to the whitelist.
Not listed by /help in this build.
ManipulateWhitelist
/addusertowhitelistAdd a user connected with a password to the whitelist, so their account is protected
/addusertowhitelist "username"
Not listed by /help in this build.
ManipulateWhitelist
/removeuserfromwhitelistRemove a user from the whitelist
/removeuserfromwhitelist "username"
ManipulateWhitelist

Moderation and Bans

CommandWhat it doesCapability
/kickuser
also /kick
Kick a user. Add a -r "reason" to specify a reason for the kick
/kickuser "username" -r "reason"
KickUser
/banidBan a SteamID
/banid SteamID
BanUnbanUser
/banipBan IP
/banip IP
BanUnbanUser
/banuserBan a user. Add a -ip to also ban the IP. Add a -r "reason" to specify a reason for the ban
/banuser "username" -ip -r "reason"
e.g. /banuser "rj" -ip -r "spawn kill"
BanUnbanUser
/unbanidUnban a SteamID
/unbanid SteamID
BanUnbanUser
/unbanipUnban IP
/unbanip IP
BanUnbanUser
/unbanuserUnban a player
/unbanuser "username"
BanUnbanUser
/voicebanBlock voice from user "username"
/voiceban "username" -value
e.g. /voiceban "rj" -true
BanUnbanUser

Players, Options and Diagnostics

CommandWhat it doesCapability
/connectionsDisplays information on all connections
Not listed by /help in this build.
SeePlayersConnected
/playersList all connected playersSeePlayersConnected
/showoptionsPrint the active server options and their current values.SeePublicServerOptions
/statsSet and clear server statistics
/stats none|file|console|all period
e.g. /stats file 10
GetStatistic
/logSet log level
/log %1 %2
DebugConsole
/clearClear the server console output. Replies “Console cleared”.LoginOnServer
/helpList every command the server exposes to your access level.LoginOnServer
/listLists loaded animals. Note that the connections command also declares the name /list, so which one answers can depend on the build.LoginOnServer
/debugplayerToggle debug mode for a player. Use: /debugplayer "username".ConnectWithDebug
/settimespeed
also /sts
Set the time multiplier on the server
/setTimeSpeed period
e.g. /setTimeSpeed 10
ConnectWithDebug

Items, XP and Vehicles

CommandWhat it doesCapability
/additemGive an item to a player. If no username is given then you will receive the item yourself. Count is optional
e.g. /additem "rj" Base.Axe 5
AddItem
/addkeyGive a key to a player. If no username is given then you will receive the item yourself. Key name is optional
/addkey "username" "keyId" "name"
AddItem
/addxpGive XP to a player
/addxp "playername" perkname=xp -true
e.g. /addxp "rj" Woodwork=2 -true
AddXP
/removeitemRemove items from yourself. Removes all items of type if count set to 0
e.g. /removeitem Base.Axe 5
EditItem
/addvehicleSpawn a vehicle
e.g. /addvehicle "Base.VanAmbulance" "rj"
ManipulateVehicle

Teleport and Game Master Tools

CommandWhat it doesCapability
/teleport
also /tp
Teleport to a player. Once teleported, wait for the map to appear
/teleport "playername" or /teleport "player1" "player2"
e.g. /teleport "rj" or /teleport "rj" "toUser"
TeleportToPlayer
/teleportplayer
also /tpp
Teleport a player to another player
/teleportplayer "player1" "player2"
e.g. /teleportplayer "rj" "toUser"
TeleportPlayerToAnotherPlayer
/teleportto
also /tpto
Teleport to coordinates
/teleportto x,y,z
e.g. /teleportto 10000,11000,0
TeleportToCoordinates
/godmode
also /godmod
Make yourself invincible
/godmode -value
e.g. /godmode -true
ToggleGodModHimself
/godmodeplayer
also /godmodplayer
Make a player invincible
/godmodeplayer "username" -value
e.g. /godmodeplayer "rj" -true
ToggleGodModEveryone
/invisibleMake yourself invisible to zombies
/invisible -value
e.g. /invisible -true
ToggleInvisibleHimself
/invisibleplayerMake a player invisible to zombies
/invisibleplayer "username" -value
e.g. /invisibleplayer "rj" -true
ToggleInvisibleEveryone
/noclipMakes a player pass through walls and structures. Toggles with no value
/noclip "username" -value
e.g. /noclip "rj" -true
ToggleNoclipHimself

World, Weather and Zombies

CommandWhat it doesCapability
/startrainStarts raining on the server
/startrain "intensity"
StartStopRain
/startstormStarts a storm on the server
/startstorm "duration"
StartStopRain
/stoprainStop raining on the serverStartStopRain
/stopweatherStop weather on the serverStartStopRain
/thunder
/thunder "username"
StartStopRain
/alarmSound a building alarm at the Admin's position. (Must be in a room)MakeEventsAlarmGunshot
/chopperPlace a helicopter event on a random playerMakeEventsAlarmGunshot
/gunshotPlace a gunshot sound on a random playerMakeEventsAlarmGunshot
/lightning
/lightning "username"
MakeEventsAlarmGunshot
/createhordeSpawn a horde near a player
/createhorde count "username"
e.g. /createhorde 150 "rj"
CreateHorde
/createhorde2Spawn a horde at world coordinates rather than at a named player.CreateHorde
/removezombiesRemove zombies, with optional -radius, -x, -y, -z and -reanimated filters.ManipulateZombie
/removeRemove every entity of one type from the loaded world. The argument is required and is one of animals, zombies, corpses or vehicles.AnimalCheats

Safehouses

CommandWhat it doesCapability
/addtosafehouseAdds player to a safehouse
/addtosafehouse "title" "username"
CanSetupSafehouses
/kickfromsafehouseRemoves player from a safehouse
/kickfromsafehouse "title" "username"
CanSetupSafehouses
/releasesafehouseRelease a safehouse
/releasesafehouse "title"
CanSetupSafehouses

Server Config, Save and Lifecycle

CommandWhat it doesCapability
/changeoptionChange a server option
/changeoption optionName "newValue"
ChangeAndReloadServerOptions
/reloadoptionsReload server options (ServerOptions.ini) and send to clientsChangeAndReloadServerOptions
/saveForce a world save. Run this before any manual restart.SaveWorld
/worldgenControl full world generator. Use commands '/worldgen start', '/worldgen recheck', '/worldgen stop', and '/worldgen status'. UseSaveWorld
/quitSave and quit the serverQuitWorld
/reloadalllua
also /reloadluaall
Reload every server-side Lua file rather than one named file.ReloadLuaFiles
/reloadluaReload a Lua script on the server
/reloadlua "filename"
ReloadLuaFiles
/checkmodsneedupdateIndicates whether a mod has been updated. Writes answer to log fileManipulateMods
/servermsgBroadcast a message to all connected players
/servermsg "My Message"
DisplayServerMessage
/removemapsymbolsforuserRemoves all shared in-game map symbols for a specific user
/removemapsymbolsforuser "username"
EditMapSymbols

Chat and Player Commands

CommandWhat it doesCapability
/admin
also /a
Switch chat to the admin channel. This is a chat channel, not a login command.not capability gated
/allSwitch chat to the global channel.not capability gated
/cardIf you have a card deck, you can draw a random card
/card
not capability gated
/changepwdChanges your password
/changepwd "previouspassword" "newpassword"
not capability gated
/disconnectKicks a client according to their connection number. Connection numbers can be seen through /connections
/disconnect index
e.g. /disconnect 2
not capability gated
/faction
also /f
Switch chat to your faction channel.not capability gated
/rollIf you have dice, you can roll a random number - up to 100
/roll 6
not capability gated
/safehouse
also /sh
Switch chat to your safehouse channel.not capability gated
/say
also /s
Switch chat to the local Say channel, heard by nearby players.not capability gated
/whisper
also /w
Switch chat to a private message to one player.not capability gated
/yell
also /y
Switch chat to Yell, which carries further than Say and attracts zombies.not capability gated

Commands Older Guides List That Do Not Exist

These appear in widely copied Project Zomboid command lists, including on this page until September 2026. None of them is present in the Build 42 server. If a guide lists them, it has not been checked against the game.

Not a commandWhat to use instead
removeuser/removeuserfromwhitelist "username"
changepassword/setpassword "username" "newpassword" as an admin, or /changepwd for your own
stopstorm/stopweather
coordinatesNo console equivalent. Read coordinates from the in-game map or debug overlay.
lootitem/additem. There is no drop-on-ground variant.
additemall, addxpall, addalltraitsNo bulk variants exist. Use /additem and /addxp per item and per perk.
setluaNo arbitrary Lua execution command. /reloadlua "filename" reloads a script.
setdefaultportEdit DefaultPort in the server INI and restart.

Two more are the game's own stale documentation rather than a guide error: Build 42 still ships help text for /replay and /sendpulse, but neither command is implemented in the server any more.

RCON Access

The dedicated server speaks Source RCON. RCONPort and RCONPassword are both real server options in Build 42. Set them in your server INI:

RCONPort=27015
RCONPassword=YourRconPassword

Connect with any Source RCON client and drop the leading slash:

mcrcon -H your.server.ip -P 27015 -p YourRconPassword "players"
mcrcon -H your.server.ip -P 27015 -p YourRconPassword "save"
mcrcon -H your.server.ip -P 27015 -p YourRconPassword "servermsg \"Restart in 60s\""
mcrcon -H your.server.ip -P 27015 -p YourRconPassword "quit"

Good Admin Habits

  • Always save before a restart. A hard kill loses whatever has happened since the last autosave.
  • Log the destructive ones. removeadmin, banip and removezombies are worth recording with a timestamp and a reason.
  • Test on a copy. A wrong changeoption or reloadoptions can undo population tuning you cannot easily rebuild.
  • Reach for the smaller tool first. kickuser before banuser, changeoption before hand-editing the INI on a running server.

Need somewhere to try these before touching a live world? Launch your Project Zomboid server with Supercraft: the panel has an integrated console, scheduled saves, and one-click rollback to the last good snapshot.

Launch a Project Zomboid server with this setup

Pick a preset and your new server boots preconfigured - rates, rules and mods already dialed in. Change anything later in the panel.

Browse all Project Zomboid recipes →

Project Zomboid Vanilla Co-op

Pure vanilla Project Zomboid co-op with default Muldraugh, KY map and no mods. The friendliest starting point…

Project Zomboid Private Group: Invite-Only

Closed server for a dedicated friend group: public directory off, coop allowed, safety system on. Set a passw…

Tired of fighting this issue every patch?

Run a managed Project Zomboid server with us. We handle the patches, mod-version pinning, save backups, and DDoS protection. Set up in minutes, multiple datacenter regions, no contract.

See Project Zomboid hosting plans →
Top