Getting Started with DST Console Commands
If you're tired of starving (or freezing, burning, losing your mind—you know, the usual), Don't Starve Together console commands are your new best friend. These commands are especially powerful on dedicated servers or when you’re the admin of your group’s chaos-filled world.
How to Open the Console
Before anything, you’ve gotta open the developer console:
Press the ~
key (just under Esc
) on your keyboard.
If it doesn’t open, go into your settings.ini
file in the DoNotStarveTogether folder and make sure console_enabled = true
.
In-game, hit Ctrl
to switch between local and remote console modes (you want remote for server commands!).

Must-Know Don’t Starve Together Commands
These are the most popular and useful DST commands you’ll want to memorize or bookmark for quick access.
Survival Essentials
- c_godmode() = Makes you invincible (but you can’t edit stats while it's active)
- c_supergodmode() = Same as god mode, but fills and locks stats at max
- c_maintainall(ThePlayer) = Constantly regenerates all stats
Stat Management
- c_sethealth(0.9) = Set health to 90% (replace with decimal %)
- c_sethunger(1.0) = Set hunger to full
- c_setsanity(0.75) = Set sanity to 75%

Spawning Items and Mobs
Want 10 spears? A herd of Beefalo? Or 50 spider queens (you monster)? There’s a command for that.
Spawn Like a Pro
c_spawn("prefab_name", amount)
Examples:
•c_spawn("spear", 10)
•c_spawn("beefalo", 3)
•c_spawn("spiderqueen", 1)
Add Items to Your Inventory
c_give("item_name", amount)
Use this instead of spawning if you want stuff to go directly into your backpack.

Player & Admin Commands
Running a DST server? Here are the top commands to manage your world and players.
Player Control Commands
c_listallplayers()
AllPlayers[1]:PushEvent('death') -- Kills the player
AllPlayers[1]:PushEvent('respawnfromghost') -- Resurrects player
c_despawn(AllPlayers[1]) -- Sends player back to character select
Want to teleport players or yourself?
c_move(AllPlayers[1]) -- Teleport them to you
c_goto(AllPlayers[1]) -- Teleport to them

Weather, Time & Season Control
Nothing screams power like controlling time itself.
Time Skipping Commands
- TheWorld:PushEvent("ms_nextcycle") = Skip to the next day
- c_skip(1) = Skip 1 full day
- LongUpdate(480) = Simulates an entire day
Weather & Seasons
•TheWorld:PushEvent("ms_setseason", "winter")
– Switch to winter
•TheWorld:PushEvent("ms_forceprecipitation")
– Start rain
•TheWorld:PushEvent("ms_forceprecipitation", false)
– Stop rain
•TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())
– Summon lightning (great party trick)
World & Server Management
World Control
•c_reset()
– Reloads the world
•c_regenerateworld()
– Completely regenerates the map
•c_save()
– Force-save the world
•c_shutdown(true)
– Save & shut down server
•c_rollback(1)
– Roll back 1 save
Clean-Up & Deletion
•ConsoleWorldEntityUnderMouse():Remove()
– Delete object under cursor
•for k,v in pairs(Ents) do if v.prefab == "name" then v:Remove() end end
– Delete ALL of that prefab globally

Extra Fun Commands
Want to get a little wacky? Check these out:
Creative Shenanigans
• GetPlayer().components.builder:GiveAllRecipes() -- Free crafting mode
• c_speedmult(5) -- Run 5x faster
• ThePlayer.Transform:SetScale(2,2,2) -- Become a GIANT
Map Reveal
for x=-1600,1600,35 do for y=-1600,1600,35 do ThePlayer.player_classified.MapExplorer:RevealArea(x,0,y) end end
That’s right, reveal the entire map. Instantly. You’re welcome.
Final Tips
Always test new commands in a backup world first. Some can crash your game or wipe inventories.
Use CTRL
to swap between local and remote console modes.
Remote = Server, Local = Just you.
And don’t forget: cheating is okay when it’s fun (or when Deerclops shows up uninvited).
Ready to Try These Commands Yourself?
Jump into Don’t Starve Together with your own custom server! Shockbyte has all of your Don't Starve Together Server Hosting needs covered! Set rules, tweak settings, and test every command in peace. Need help? Our support team’s got your back 24/7. For extra information, why not visit our knowledgebase article!