Skip to content

Commands ​

Type commands in the server console without /. Run help for your version's authoritative list, and help <command> for its syntax.

Checked on BDS 1.26.66.1. For the exact syntax of every command, see Command syntax.

Server lifecycle ​

CommandPurpose
stopSave and shut down cleanly
save holdPrepare a live backup
save queryCheck readiness and list files
save resumeResume normal writes
reloadReload functions and scripts
reload allReload world, resource packs, and behavior packs
reloadconfigReload script variables, secrets, permissions, and the CDN config. Follow with reload all if a script failed to load
reloadpacketlimitconfigReload packet limits

Identity ​

CommandPurpose
serveridentity saveKeep the identity key
serveridentity statusCheck for a saved key
serveridentity deleteDelete the saved key

Access ​

CommandPurpose
allowlist add <name> / remove <name>Change the allowlist
allowlist on / off / list / reloadManage it
op <player> / deop <player>Change operator status. The player must be online
permission list / reloadShow or reload roles. Alias: ops. There is no permissions command
kick <player> <reason>Disconnect a player by name or XUID
listShow online players
setmaxplayers <number>Change the limit for this session

Runtime settings ​

CommandPurpose
changesetting allow-cheats <true|false>Change cheats
changesetting difficulty <value>Change difficulty
gamerule [rule] [value]Read or set game rules

allowlist on/off, setmaxplayers, and changesetting do not update server.properties.

Diagnostics and packs ​

CommandPurpose
packstack <client|server> [verbose] [exclude-vanilla]Show loaded packs
script debugger connect [host] [port]Connect to VS Code
script debugger listen <port>Await VS Code
script debugger closeDisconnect
script profiler start / stopProfile scripts
script diagnostics startcapture / stopcaptureRecord diagnostics
editor-allowlist reloadReload the Editor allowlist

Players and store ​

CommandPurpose
transfer <player> <address> [port]Send a player to another server
sendshowstoreoffer …Show a store offer; see syntax

See Gameplay commands for give, tp, and the rest. Change who may use commands with commands.json.

Unofficial community wiki. Not approved by or associated with Mojang or Microsoft.