To use admin commands on Don't Starve Together, your account must be added as an admin on the server first.
Once you are in-game, open the console with the ~ key. Some keyboards may use a different key depending on layout.
Useful commands:
Announce a message to the server:
c_announce("message")
Sends a message to everyone on the server.
Save the world:
c_save()
Saves the world.
Shut the server down:
c_shutdown()
Shuts the server down cleanly.
Spawn an item or creature near you:
c_spawn("prefab", amount)
Replace prefab with the item or creature prefab you want.
Give an item to your character:
c_give("prefab", amount)
Gives an item to your character.
Toggle god mode:
c_godmode()
Toggles god mode for your character.
If a command does nothing, check that your account is an admin and that the command has been typed exactly.
