Enable Console (PC)

dont-starve — Cheat Codes

Activates the developer console in Don't Starve, allowing you to input cheat commands.

Syntax

Press ` (tilde) or Ctrl+L (varies by keyboard layout) in-game.

Example

Press ` then type c_give("goldnugget", 10) and press Enter.

💡 Notes

PC only. Console is disabled by default on consoles and mobile. [verify] for Mac (use Option+`).

🎯 Tips & Tricks

Enable via launch options

Add -console to your Steam launch options to ensure the console opens reliably.

Use autocomplete

Press Tab while typing a command to autocomplete function names and item IDs.

Check log for errors

If a command fails, check the log.txt file in your game directory for error details.

🔧 Troubleshooting

Console doesn't open

Verify your keyboard layout; use Ctrl+L as an alternative shortcut.

Command not executing

Ensure you're in a world and not on the main menu; some commands require a loaded game.

⚠️ Common Mistakes

  • Forgetting to enable -console in launch options
  • Using console in multiplayer (causes desync)

👍 Pros

  • Unlocks all debug commands
  • Essential for testing mods
  • Works in single-player modes

👎 Cons

  • Not available on console versions
  • May disable Steam achievements
  • Requires precise typing
🔍 Search Wiki
Type a command, item, or cheat to search across 60+ games.