{"id":16982,"date":"2025-07-14T23:08:59","date_gmt":"2025-07-14T23:08:59","guid":{"rendered":"https:\/\/ggservers.com\/knowledgebase\/?post_type=ht_kb&#038;p=16982"},"modified":"2025-07-14T23:09:53","modified_gmt":"2025-07-14T23:09:53","slug":"dont-starve-together-console-commands-guide","status":"publish","type":"ht_kb","link":"https:\/\/ggservers.com\/knowledgebase\/article\/dont-starve-together-console-commands-guide\/","title":{"rendered":"Don&#8217;t Starve Together Console Commands Guide"},"content":{"rendered":"\n<p><a href=\"https:\/\/ggservers.com\/gameservers\">\ud83c\udfae Buy Now \u2013 Get 30% Off with KB30<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Use Console Commands in Don&#8217;t Starve Together<\/h2>\n\n\n\n<p>Console commands in <em>Don&#8217;t Starve Together<\/em> are an excellent way to speed up gameplay, solve bugs, or experiment with mechanics. If you&#8217;re the server admin or playing solo, you can activate nearly any cheat or server-side function using the console.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>To enable the console, press <code>~<\/code> (tilde) or <code>'<\/code> on your keyboard. If it&#8217;s not opening, go to your <code>settings.ini<\/code> file and change <code>console_enabled = false<\/code> to <code>console_enabled = true<\/code>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u26a1 General Commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>c_spawn(\"prefab\", amount)<\/code><\/td><td>Spawns any entity or item under the cursor.<\/td><\/tr><tr><td><code>c_give(\"prefab\", amount)<\/code><\/td><td>Gives an item directly into inventory.<\/td><\/tr><tr><td><code>c_sethealth(0.9)<\/code><\/td><td>Sets health to 90%. Replace with your desired value.<\/td><\/tr><tr><td><code>c_setsanity(1)<\/code><\/td><td>Sets sanity to 100%. Use decimals.<\/td><\/tr><tr><td><code>c_sethunger(0.5)<\/code><\/td><td>Sets hunger to 50%.<\/td><\/tr><tr><td><code>c_godmode()<\/code><\/td><td>Invincible and immune to stats loss.<\/td><\/tr><tr><td><code>c_supergodmode()<\/code><\/td><td>Same as above, but also fills stats permanently.<\/td><\/tr><tr><td><code>c_speedmult(2)<\/code><\/td><td>Run twice as fast.<\/td><\/tr><tr><td><code>c_save()<\/code><\/td><td>Saves your current game.<\/td><\/tr><tr><td><code>c_reset()<\/code><\/td><td>Rollbacks or reloads the world.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddcd Player Commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Effect<\/th><\/tr><\/thead><tbody><tr><td><code>c_freecrafting()<\/code><\/td><td>Enables free crafting (creative mode).<\/td><\/tr><tr><td><code>ThePlayer.components.health:SetMaxHealth(value)<\/code><\/td><td>Sets new max HP.<\/td><\/tr><tr><td><code>ThePlayer.components.hunger:Pause(true)<\/code><\/td><td>Stops hunger decay.<\/td><\/tr><tr><td><code>c_listallplayers()<\/code><\/td><td>Lists all connected players.<\/td><\/tr><tr><td><code>AllPlayers[1]:PushEvent('death')<\/code><\/td><td>Kills a specific player.<\/td><\/tr><tr><td><code>c_move(AllPlayers[2])<\/code><\/td><td>Teleports another player to your cursor.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udf0d World &amp; Map Commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>c_gonext(\"prefab\")<\/code><\/td><td>Teleports you to the nearest prefab type.<\/td><\/tr><tr><td><code>ConsoleWorldEntityUnderMouse():Remove()<\/code><\/td><td>Deletes object under cursor.<\/td><\/tr><tr><td><code>c_revealmap()<\/code><\/td><td>Reveals your entire map.<\/td><\/tr><tr><td><code>c_skip(1)<\/code><\/td><td>Skips a full day. Replace <code>1<\/code> with more.<\/td><\/tr><tr><td><code>TheWorld:PushEvent(\"ms_setseason\", \"winter\")<\/code><\/td><td>Forces a season to start.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0 Server Management<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Use<\/th><\/tr><\/thead><tbody><tr><td><code>TheNet:Kick(userid)<\/code><\/td><td>Kicks a player by ID.<\/td><\/tr><tr><td><code>c_connect(\"IP\", port, \"password\")<\/code><\/td><td>Connects to another server.<\/td><\/tr><tr><td><code>c_shutdown(true)<\/code><\/td><td>Safely shuts down your server.<\/td><\/tr><tr><td><code>c_regenerateworld()<\/code><\/td><td>Completely regenerates the world.<\/td><\/tr><tr><td><code>c_rollback(1)<\/code><\/td><td>Rolls the server back 1 save.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Skill Tree and Misc Commands<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Description<\/th><\/tr><\/thead><tbody><tr><td><code>TheSkillTree:AddSkillXP(10000, \"character\")<\/code><\/td><td>Adds skill points.<\/td><\/tr><tr><td><code>TheScrapbookPartitions:DebugUnlockEverything()<\/code><\/td><td>Unlocks all scrapbook entries.<\/td><\/tr><tr><td><code>c_select().Transform:SetScale(2,2,2)<\/code><\/td><td>Enlarges selected object.<\/td><\/tr><tr><td><code>c_spawn(\"wormhole\")<\/code><\/td><td>Spawns wormholes.<\/td><\/tr><tr><td><code>c_announce(\"Server restarting in 1 minute!\")<\/code><\/td><td>Sends message to all players.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 Tips<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use arrow keys \u2191 \u2193 to cycle through past commands.<\/li>\n\n\n\n<li>Always test commands in a backup world first if you&#8217;re unsure.<\/li>\n\n\n\n<li>Combine multiple commands using Lua scripts for automation.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><a href=\"https:\/\/ggservers.com\/gameservers\">\ud83c\udf1f Get Your DST Server Now \u2013 Use Code KB30 for 30% Off<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQ<\/h2>\n\n\n\n<p><strong>How do I enable the console in Don&#8217;t Starve Together?<\/strong><br>Edit the <code>settings.ini<\/code> file and set <code>console_enabled = true<\/code>.<\/p>\n\n\n\n<p><strong>Can I use these commands in multiplayer?<\/strong><br>Yes, if you&#8217;re the host or server admin. Some commands are local only.<\/p>\n\n\n\n<p><strong>What\u2019s the difference between <code>c_godmode()<\/code> and <code>c_supergodmode()<\/code>?<\/strong><br><code>c_godmode()<\/code> prevents damage, but <code>c_supergodmode()<\/code> also locks your stats at maximum.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>You can contact our 24\/7 GGServers support anytime at: <a href=\"https:\/\/ggservers.com\/billing\/submitticket.php\">https:\/\/ggservers.com\/billing\/submitticket.php<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83c\udfae Buy Now \u2013 Get 30% Off with KB30 How to Use Console Commands in Don&#8217;t Starve Together Console commands in Don&#8217;t Starve Together are an excellent way to speed up gameplay, solve bugs, or experiment with mechanics. If you&#8217;re the server admin or playing solo, you can activate nearly&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_acf_changed":false,"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"ht-kb-category":[4561,36],"ht-kb-tag":[4583,4589,4584,4601,4587,4596,4600,4591,4592,4588,4599,4593,4594,4590,4595,4597,4582,4598,4585,4586],"class_list":["post-16982","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-dont-starve-together","ht_kb_category-gameservers","ht_kb_tag-dont-starve-together-console-commands","ht_kb_tag-dont-starve-together-debug-mode","ht_kb_tag-dst-admin-commands","ht_kb_tag-dst-change-weather","ht_kb_tag-dst-cheat-codes","ht_kb_tag-dst-creative-mode","ht_kb_tag-dst-dedicated-server-commands","ht_kb_tag-dst-free-crafting","ht_kb_tag-dst-give-item-command","ht_kb_tag-dst-godmode-command","ht_kb_tag-dst-max-health-command","ht_kb_tag-dst-player-commands","ht_kb_tag-dst-reveal-map","ht_kb_tag-dst-revive-player","ht_kb_tag-dst-rollback-server","ht_kb_tag-dst-set-season-command","ht_kb_tag-dst-spawn-prefab","ht_kb_tag-dst-speedmult-command","ht_kb_tag-dst-teleport-command","ht_kb_tag-how-to-open-console-in-dst"],"acf":[],"_links":{"self":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/16982","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=16982"}],"version-history":[{"count":2,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/16982\/revisions"}],"predecessor-version":[{"id":16985,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb\/16982\/revisions\/16985"}],"wp:attachment":[{"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=16982"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-category?post=16982"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/ggservers.com\/knowledgebase\/wp-json\/wp\/v2\/ht-kb-tag?post=16982"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}