Don't Starve Cheats: All Console Commands for PC

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

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Don't Starve

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.

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

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).