DST Admin Console Command Reference

Don't Starve Together has no RCON — the in-game Lua console is the only admin interface. Search, filter by category, and copy any command in one click.

⚠️

Remote Mode Required for Server-Side Commands

Press Ctrl while the console is open to toggle Remote mode. Commands like TheNet:Kick(), TheWorld:PushEvent(), and c_listplayers() must run in Remote mode to execute on the server. Without it, they only run on your local client.

Showing 32 of 32 commands

Category Command Description
Player Management c_listplayers() List all connected players with slot number and KU_ ID
Player Management c_kick(N) Kick player in slot N (use c_listplayers() to find slot)
Player Management TheNet:Kick("KU_xxxxxxxx") Kick player by KU_ ID
Player Management TheNet:Ban("KU_xxxxxxxx") Ban player by KU_ ID (adds to blocklist.txt)
Player Management c_announce("message") Broadcast a server-wide announcement to all players
World / Season TheWorld:PushEvent("ms_setseason","winter") Set season to winter (also: spring, summer, autumn)
World / Season TheWorld:PushEvent("ms_setseasonlength",{season="summer",length=15}) Set season length for a specific season
World / Season TheWorld:PushEvent("ms_setphase","day") Set time of day: day, dusk, or night
World / Season TheWorld:PushEvent("ms_forceprecipitation",true) Start rain/snow immediately
World / Season TheWorld:PushEvent("ms_forceprecipitation",false) Stop rain/snow immediately
World / Season TheWorld:PushEvent("ms_nextcycle") Skip to the next in-game day
Spawn / Give c_spawn("prefab") Spawn one instance of a prefab at your cursor
Spawn / Give c_spawn("prefab",N) Spawn N copies of a prefab
Spawn / Give c_give("prefab") Give one item to yourself
Spawn / Give c_give("prefab",N) Give N items to yourself
Spawn / Give c_select() Select the entity under your cursor (stores in TheInput.selected)
Spawn / Give c_spawn("deerclops") Example: spawn Deerclops boss near cursor
Spawn / Give c_spawn("bearger") Example: spawn Bearger boss near cursor
Save / Rollback c_save() Force save the world immediately
Save / Rollback c_rollback() Roll back to the most recent automatic snapshot
Save / Rollback c_rollback(N) Roll back N snapshots (0=latest, max is max_snapshots in cluster.ini)
Save / Rollback c_reset() Reset the world without saving (regenerates with same settings)
Server Lifecycle c_shutdown() Save and shut down the server
Server Lifecycle c_shutdown(false) Shut down the server WITHOUT saving
Server Lifecycle c_regenerateworld() Save, regenerate the world with new seeds, and restart
Server Lifecycle c_regenerateshard() Regenerate only the current shard (Master or Caves)
Debug / Remote c_remote("lua string") Execute arbitrary Lua on the server from local console
Debug / Remote TheNet:GetClientTable() Return table of all connected clients with metadata
Debug / Remote print(TheNet:GetServerName()) Print the server name to console
Debug / Remote TheSim:GetGameID() Get the current game session ID
Debug / Remote c_remote("c_listplayers()") Run c_listplayers() via Remote wrapper
Debug / Remote dumptable(TheNet:GetClientTable()) Pretty-print all client data to console log
Private Don't Starve Together hosting

Run your own Don't Starve Together server.

Rent a private Don't Starve Together server on real hardware — full control-panel access, your mods, your configs, your rules. It's your server; run it your way.

Rent a Don't Starve Together server Real hardware · Full control panel · 98% SLA

Don't want to run it yourself? Our managed services & consulting team will set it up and keep it running for you — game servers, Windows, Linux, and cloud, from 10+ years of MSP work.