Don't Starve Cheats: All Console Commands for PC

Codes last checked on against the sources listed at the bottom of this page. Covers PC, Mac and Linux (base game and DLCs, single-player).

Published by

God mode and health

CheatCommandEffect
God modePCc_godmode()Stops sanity, hunger and health from draining, and revives you if you die
Super god modePCc_supergodmode()Same as god mode, but also maxes out your health, hunger and sanity
Set healthPCc_sethealth(Percent)Set your health to a fraction of maximum, from 0.01 up to 1 (full)
Set hungerPCc_sethunger(Percent)Set your hunger to a fraction of maximum, from 0.01 up to 1 (full)
Set sanityPCc_setsanity(Percent)Set your sanity to a fraction of maximum, from 0.01 up to 1 (full)

Items and crafting

CheatCommandEffect
Give itemPCc_give("Prefab",Amount)Spawn the named item straight into your inventory
Free craftingPCc_freecrafting()Craft anything for free from anywhere, including recipes you haven't unlocked yet

World and map

CheatCommandEffect
Spawn objectPCc_spawn("Prefab",Amount)Spawn the named creature or object under your mouse cursor
Reveal mapPCc_revealmap()Reveals the whole map; it resets to normal after you exit or change maps
Skip daysPCc_skipdays(Days)Skips forward the given number of days

Debug and testing

CheatCommandEffect
Set run speedPCc_speed(Value)Change your movement speed; 1 is normal, and 40 lets you walk through walls and over water
RollbackPCc_reset()Rolls back to your last save
Save gamePCc_save()Force-saves your current game

How to enter cheats

PC

  1. Press ~ to open the console (this pauses the game).
  2. Type RunScript("consolecommands") and press Enter once per world.
  3. Type any command exactly as shown and press Enter.

FAQ

How do you open the console in Don't Starve?

Press ~ to open it. If nothing happens, set ENABLECONSOLE = true in your settings.ini file, then try again.

Is there a god mode command in Don't Starve?

Yes. c_godmode() stops sanity, hunger and health from draining and revives you if you die.

Is there a way to get free items in Don't Starve?

Yes. c_give("prefab",amount) gives you an item directly, and c_freecrafting() lets you craft anything for free.

Do these commands work in Don't Starve Together?

No. Don't Starve Together has its own separate list of console commands.

How do I skip ahead to the next day in Don't Starve?

Use c_skipdays(1) to jump forward one day, or a higher number to skip further.

Part of

References: Don't Starve Wiki (Fandom): Console/Commands; Steam Community Guide: Guide for Cheats/Console Commands (Singleplayer).