Difference between revisions of "Modding:Console commands"

From Stardew Valley Wiki
Jump to navigation Jump to search
Line 24: Line 24:
 
| <tt>shears</tt> || Adds [[Shears]] to your inventory.
 
| <tt>shears</tt> || Adds [[Shears]] to your inventory.
 
|-
 
|-
| <tt>pickaxe</tt> || Adds a basic [[Pickaxe]] to your inventory.<br />''Aliases: <tt>pickax</tt>, <tt>pickaxe</tt>.''
+
| <tt>pickaxe</tt> || Adds a basic [[Pickaxe]] to your inventory.<br />''Aliases: {{t|pickax}}, {{t|pickaxe}}.''
 
|-
 
|-
 
| <tt>pole</tt> || Adds a [[Bamboo Pole]] to your inventory.
 
| <tt>pole</tt> || Adds a [[Bamboo Pole]] to your inventory.
Line 44: Line 44:
 
| <tt>lantern</tt> || '''[broken]''' Adds a Lantern to your inventory. However, the game freezes if you try to use it.
 
| <tt>lantern</tt> || '''[broken]''' Adds a Lantern to your inventory. However, the game freezes if you try to use it.
 
|-
 
|-
| colspan=2 |
+
| colspan=2 |  
 +
|-
 +
| {{t|skullkey}} || Adds the [[Skull Key]] to your wallet.
 
|-
 
|-
| <tt>skullkey</tt> || Adds the [[Skull Key]] to your wallet.
+
| {{t|darkTalisman}} || Adds the [[Dark Talisman]] to your wallet and makes the [[Witch's Hut]] accessible. Removes the [[Magic Ink]], if you have it.
 
|-
 
|-
| <tt>darkTalisman</tt> || Adds the [[Dark Talisman]] to your wallet and makes the [[Witch's Hut]] accessible. Removes the [[Magic Ink]], if you have it.
+
| clearSpecials || Removes all [[Wallet]] items (Rusty Key, Skull Key, Special Charm, Dark Talisman, Magic Ink, Club Card, Dwarven Translation Guide).
 
|-
 
|-
 
| colspan=2 |
 
| colspan=2 |
 
|-
 
|-
| <tt>itemnamed {{t|string itemName}} {{o|int count}}</tt> || Adds {{o|count}} of the item named {{t|itemName}} to player inventory. The {{t|itemName}} is the full item name, with punctuation but no spaces (like <tt>miner'streat</tt>). If {{o|count}} isn't specified, defaults to 1.<br />''Aliases: <tt>in</tt>.''
+
| {{t|itemnamed {{t|string itemName}} {{o|int count}}}} || Adds {{o|count}} of the item named {{t|itemName}} to player inventory. The {{t|itemName}} is the full item name, with punctuation but no spaces (like {{t|miner'streat}}). If {{o|count}} isn't specified, defaults to 1.<br />''Aliases: {{t|in}}.''
 +
|-
 +
| {{t|fillbackpack}} || Fills your inventory with random items until full.<br />''Aliases: {{t|fbp}}, {{t|fill}}, {{t|fillbp}}.
 +
|-
 +
| {{t|removeObjects}} || Clears all objects from the current location.
 
|-
 
|-
| <tt>fillbackpack</tt> || Fills your inventory with random items until full.<br />''Aliases: <tt>fbp</tt>, <tt>fill</tt>, <tt>fillbp</tt>.
+
| {{t|removeDebris}} || Removes all debris (such as dropped items).<br />''Aliases: {{t|mainmenu}}, {{t|mainMenu}}.''<br /><!--As odd as it seems, these aliases are indeed aliases. There may have been a different MainMenu command but as things are, these are aliases.-->
 
|-
 
|-
| <tt>removeObjects</tt> || Clears all objects from the current location.
+
| {{t|museumloot}} || Marks artifacts as found and adds minerals to your inventory. Stops when your inventory is full.
 
|-
 
|-
| <tt>removeDebris</tt> || Removes all debris (such as dropped items).<br />''Aliases: <tt>mainmenu</tt>, <tt>mainMenu</tt>.''<br /><!--As odd as it seems, these aliases are indeed aliases. There may have been a different MainMenu command but as things are, these are aliases.-->
+
| {{t|TV}} || Adds a TV to your inventory.
 
|-
 
|-
| <tt>museumloot</tt> || Marks artifacts as found and adds minerals to your inventory. Stops when your inventory is full.
+
| {{t|weapon {{t|int weaponID}}}} || Gives the weapon matching {{t|weaponID}} to the player. (For example, {{t|weapon 12}} spawns a [[Wooden Blade]].)
 
|-
 
|-
| <tt>TV</tt> || Adds a TV to your inventory.
+
| {{t|gold}} || Adds a million gold.
 
|-
 
|-
| <tt>weapon {{t|int weaponID}}</tt> || Gives the weapon matching {{t|weaponID}} to the player. (For example, <tt>weapon 12</tt> spawns a [[Wooden Blade]].)
+
| {{t|refuel}} || Sets Lantern fuel to maximum (unimplemented feature).
 
|-
 
|-
| <tt>gold</tt> || Adds a large sum of money to your inventory.
+
| {{t|fillbin}} || Adds five items (24, 82, 136, 16, 388) to the shipping bin.<br />''Aliases: {{t|fb}}.''
 
|-
 
|-
| <tt>refuel</tt> || Sets Lantern fuel to maximum (unimplemented feature).
+
| sl || Switches items in player inventory one row down, looping to top. Useful for browsing inventories larger than 36 spaces.
 
|-
 
|-
| <tt>fillbin</tt> || Adds five items (24, 82, 136, 16, 388) to the shipping bin.<br />''Aliases: <tt>fb</tt>.''
+
| sr || Switches items in player inventory one row up, looping to bottom. Useful for browsing inventories larger than 36 spaces.
 
|}
 
|}
  
Line 78: Line 84:
 
! command !! description
 
! command !! description
 
|-
 
|-
| clone <tt>S:NPC</tt> || Makes a copy of <tt>NPC</tt>'s actor and places it to the current location.
+
| clone {{t|S:NPC}} || Makes a copy of {{t|NPC}}'s actor and places it to the current location.
 
|-
 
|-
| sb <tt>S:NPC</tt> || Puts "Hello! This is a test" in a bubble above <tt>NPC</tt>'s head.
+
| sb {{t|S:NPC}} || Puts "Hello! This is a test" in a bubble above {{t|NPC}}'s head.
 
|-
 
|-
| sf, setFrame <tt>I</tt> || Sets and stops the player actor's current animation at the given frame.
+
| sf, setFrame {{t|I}} || Sets and stops the player actor's current animation at the given frame.
 
|-
 
|-
| fd, face, faceDirection <tt>S:NPC</tt> <tt>I:dir</tt> || Sets <tt>NPC</tt> to face in <tt>direction</tt>
+
| fd, face, faceDirection {{t|S:NPC}} {{t|I:dir}} || Sets {{t|NPC}} to face in {{t|direction}}
 
|-
 
|-
| jump <tt>S:NPC</tt> <tt>I</tt> || makes the given NPC/player actor jump once, at velocity <tt>I</tt>.
+
| jump {{t|S:NPC}} {{t|I}} || makes the given NPC/player actor jump once, at velocity {{t|I}}.
 
|-
 
|-
 
| c, cm, canmove || Force-enables movement for the player actor. Force-closes inventory menu, presumably other menus and dialogue as well.
 
| c, cm, canmove || Force-enables movement for the player actor. Force-closes inventory menu, presumably other menus and dialogue as well.
Line 94: Line 100:
 
| colspan=2 |
 
| colspan=2 |
 
|-
 
|-
| db <tt>S:NPC</tt> || Triggers the relevant dialogue with <tt>NPC</tt>, or by default, Pierre. Counts as having spoken to that NPC. Prints "Stack empty" in console if the NPC has no more dialogue at that time.
+
| db {{t|S:NPC}} || Triggers the relevant dialogue with {{t|NPC}}, or by default, Pierre. Counts as having spoken to that NPC. Prints "Stack empty" in console if the NPC has no more dialogue at that time.
 
|-
 
|-
 
| colspan=2 |
 
| colspan=2 |
Line 100: Line 106:
 
| divorce || Makes the player divorce from their current spouse that night.
 
| divorce || Makes the player divorce from their current spouse that night.
 
|-
 
|-
| minigame makeEx <tt>S:NPC</tt> || sets <tt>NPC</tt>'s relationship to Farmer as "divorced".
+
| minigame makeEx {{t|NPC}} || sets <tt>NPC</tt>'s relationship to Farmer as "divorced".
 +
|-
 +
| marry {{t|NPC}} || Sets {{t|NPC}} [[friendship]] value to 2500, sets them as Farmer's spouse, and performs <tt>Game1.prepareSpouseForWedding</tt>.
 
|-
 
|-
| marry <tt>S:NPC</tt> || Marries the player to <tt>NPC</tt>.
+
| friend, friendship {{t|NPC}} {{t|int}} || Sets the friendship point value with {{t|NPC}} to {{t|int}}. If that NPC has not already been greeted, adds them to the list of greeted NPCs.
 
|-
 
|-
 
| friendAll || Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).
 
| friendAll || Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).
Line 140: Line 148:
 
! command !! description
 
! command !! description
 
|-
 
|-
| quest <tt>I:ID</tt> || Adds quest the ID <tt>ID</tt>.
+
| quest {{t|I:ID}} || Adds quest the ID {{t|ID}}.
 
|-
 
|-
| bundle <tt>I:ID</tt> || Marks bundle <tt>ID</tt> as completed.
+
| bundle {{t|I:ID}} || Marks bundle {{t|ID}} as completed.
 
|-
 
|-
 
| completeCC || Sets the Community Centre as complete.
 
| completeCC || Sets the Community Centre as complete.
 
|-
 
|-
| completeQuest <tt>I:ID</tt> || Marks quest <tt>ID</tt> as complete.
+
| completeQuest {{t|I:ID}} || Marks quest {{t|ID}} as complete.
 
|-
 
|-
| caughtFish, fishCaught <tt>I:AMT</tt> || Sets the number of fish caught to <tt>AMT</tt>.
+
| caughtFish, fishCaught {{t|I:AMT}} || Sets the number of fish caught to {{t|AMT}}.
 +
|-
 +
| beachBridge || Fixes the bridge separating the beach sections.
 
|}
 
|}
  
Line 156: Line 166:
 
! command !! description
 
! command !! description
 
|-
 
|-
| where, whereis <tt>S:NPC</tt> || Prints the location and coordinates of <tt>NPC</tt> in the console.
+
| save || Toggles whether the game saves upon starting a new day or not.
 +
|-
 +
| where, whereis {{t|S:NPC}} || Prints the location and coordinates of {{t|NPC}} in the console.
 
|-
 
|-
 
| dp, dap, daysPlayed || Displays the number of game-days played on the save.
 
| dp, dap, daysPlayed || Displays the number of game-days played on the save.
Line 167: Line 179:
 
|-
 
|-
 
| characterInfo || Displays number of characters on the current map.
 
| characterInfo || Displays number of characters on the current map.
 +
|-
 +
| pixelZoom {{t|LVL}} || sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size). Movement does not scale. Changes in zoom level may put the player actor outside the boundaries of the map.
 +
|-
 +
| viewport {{t|X}} {{t|Y}} || Sets viewport width to <tt>X</tt> game tiles and height to <tt>Y</tt> game tiles.
 
|}
 
|}
  
Line 174: Line 190:
 
! command !! description
 
! command !! description
 
|-
 
|-
| fishing <tt>I</tt> || sets player Fishing skill to <tt>I</tt>
+
| fishing {{t|I}} || sets player Fishing skill to {{t|I}}
 
|-
 
|-
 
| heal || Sets player health to maximum.
 
| heal || Sets player health to maximum.
 
|-
 
|-
| speed <tt>I</tt> || Increases player actor speed by the given amount. (1 is equal to the speed increase from coffee.)
+
| speed {{t|I}} || Increases player actor speed by the given amount. (1 is equal to the speed increase from coffee.)
 
|-
 
|-
 
| cooking || Teaches the player all cooking recipes.
 
| cooking || Teaches the player all cooking recipes.
Line 186: Line 202:
 
| die || Sets the player's health to minimum, making them pass out.
 
| die || Sets the player's health to minimum, making them pass out.
 
|-
 
|-
| money <tt>I</tt> || Set player money to given integer.
+
| money {{t|I}} || Set player money to given integer.
 
|-
 
|-
 
| specials || Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the [[Special Charm]].
 
| specials || Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the [[Special Charm]].
 
|-
 
|-
| festivalScore <tt>I:score</tt>- adds <tt>score</tt> to Farmer's grange display score at Stardew Valley Fair
+
| festivalScore {{t|I:score}}- adds {{t|score}} to Farmer's grange display score at Stardew Valley Fair
 
|-
 
|-
 
| toggleCatPerson || Toggles the selected pet species.
 
| toggleCatPerson || Toggles the selected pet species.
 
|-
 
|-
| seenmail <tt>I:ID</tt> || Adds letter <tt>ID</tt> to the list of those the farmer has already received and read.
+
| seenmail {{t|I:ID}} || Adds letter {{t|ID}} to the list of those the farmer has already received and read.
 +
|-
 +
| slimecraft || Teached Farmer the recipes for Slime Incubator and Slime Egg-press.
 
|}
 
|}
  
Line 206: Line 224:
 
| upgradebarn, barn || upgrades player barn(s) one level
 
| upgradebarn, barn || upgrades player barn(s) one level
 
|-
 
|-
| growCrops <tt>I:AMT</tt> || Advances all crops in the current location <tt>AMT</tt> days.
+
| growCrops {{t|I:AMT}} || Advances all crops in the current location {{t|AMT}} days.
 
|-
 
|-
| house, houseUpgrade, hu <tt>I:LVL</tt> || Up/downgrades your house to the given level.
+
| house, houseUpgrade, hu {{t|I:LVL}} || Up/downgrades your house to the given level.
 
|-
 
|-
 
| fenceDecay || presumably sets the rate of fence decay
 
| fenceDecay || presumably sets the rate of fence decay
Line 223: Line 241:
 
|-
 
|-
 
| fixAnimals || Presumably, moves all livestock to their home buildings.
 
| fixAnimals || Presumably, moves all livestock to their home buildings.
 +
|-
 +
| horse {{t|I:X}} {{t|I:}}y || Spawns a new horse on the current map at ({{t|X}}, {{t|}}y).
 +
|-
 +
| owl || Spawns an [[Owl]].
 +
 
|}
 
|}
  
Line 230: Line 253:
 
! command !! description
 
! command !! description
 
|-
 
|-
| minelevel <tt>LVL</tt> || Warps Farmer to given [[Mines]] level.
+
| minelevel {{t|LVL}} || Warps Farmer to given [[Mines]] level.
 
|-
 
|-
| warp <tt>S:MAP</tt> <tt>I:X</tt> <tt>I:</tt>y || warps Farmer to <tt>MAP</tt> at (<tt>X</tt>, <tt></tt>y).
+
| warp {{t|S:MAP}} {{t|I:X}} {{t|I:}}y || warps Farmer to {{t|MAP}} at ({{t|X}}, {{t|}}y).
 
|-
 
|-
 
| removeLights || Disables light effects on the current map.
 
| removeLights || Disables light effects on the current map.
Line 242: Line 265:
 
| al, ambientLight ||  
 
| al, ambientLight ||  
 
|-
 
|-
| time <tt>TIME</tt> || set game time of day, <tt>TIME</tt> format is military time (24 hours, no colon).
+
| time {{t|TIME}} || set game time of day, {{t|TIME}} format is military time (24 hours, no colon).
 
|-
 
|-
 
| rain || Toggles whether current [[weather]] is rain.
 
| rain || Toggles whether current [[weather]] is rain.
Line 255: Line 278:
 
| bloomDay || The game's bloom. Doesn't work.
 
| bloomDay || The game's bloom. Doesn't work.
 
|-
 
|-
| cat <tt>I:X</tt> <tt>I:</tt>y || Adds a cat at (<tt>X</tt>, <tt></tt>y) in the current location.
+
| cat {{t|I:X}} {{t|I:}}y || Adds a cat at ({{t|X}}, {{t|}}y) in the current location.
 
|-
 
|-
 
| question || Marks a particular dialogue question as answered.
 
| question || Marks a particular dialogue question as answered.
 
|-
 
|-
| growgrass <tt>number</tt> || Adds <tt>number</tt> grass to your current location. May freeze the game if used outside of the farm.
+
| growgrass {{t|number}} || Adds {{t|number}} grass to your current location. May freeze the game if used outside of the farm.
 
|-
 
|-
 
| petToFarm || Moves the player's pet to the farm at (54, 8) if it isn't raining.
 
| petToFarm || Moves the player's pet to the farm at (54, 8) if it isn't raining.
Line 273: Line 296:
 
| removeFurniture || Removes all furniture from the current location.
 
| removeFurniture || Removes all furniture from the current location.
 
|-
 
|-
| rfh, readyForHarvest <tt>I:X</tt> <tt>I:</tt>y || Sets the object at (<tt>X</tt>, <tt></tt>y) to be ready in one minute. Also sets stones to 1 health.
+
| rfh, readyForHarvest {{t|I:X}} {{t|I:}}y || Sets the object at ({{t|X}}, {{t|}}y) to be ready in one minute. Also sets stones to 1 health.
 
|-
 
|-
| resource <tt>I:ID</tt> <tt>I:AMT</tt> || Marks some debris as collected, useful for quests. 0=copper, 2=iron, 4=coal, 6=gold, 8=money (somewhat random amount), |-
+
| resource {{t|I:ID}} {{t|I:AMT}} || Marks some debris as collected, useful for quests. 0=copper, 2=iron, 4=coal, 6=gold, 8=money (somewhat random amount), |-
 
10=iridium, 12=wood, 28=lantern fuel
 
10=iridium, 12=wood, 28=lantern fuel
 
|-
 
|-
| craftingrecipe <tt>S:str</tt> || Adds the recipe for <tt>str</tt> to your known items.
+
| craftingrecipe {{t|S:str}} || Adds the recipe for {{t|str}} to your known items.
 
|-
 
|-
| setstat <tt>S:stat</tt> <tt>I:num</tt>- Sets the stat <tt>stat</tt> to <tt>num</tt>. (<tt>stat</tt> is property in StardewValley.Stats)
+
| setstat {{t|S:stat}} {{t|I:num}}- Sets the stat {{t|stat}} to {{t|num}}. ({{t|stat}} is property in StardewValley.Stats)
 
|-
 
|-
 
| conventionMode || Toggles Game1.conventionMode
 
| conventionMode || Toggles Game1.conventionMode
 
|-
 
|-
| jn, junimoNote <tt>I:ID</tt> || Adds junimo note <tt>ID</tt>.
+
| jn, junimoNote {{t|I:ID}} || Adds junimo note {{t|ID}}.
 
|-
 
|-
 
| resetJunimoNotes || presumably resets all JunimoNotes to not-seen status.
 
| resetJunimoNotes || presumably resets all JunimoNotes to not-seen status.
Line 298: Line 321:
 
| zl, zoomlevel ||  
 
| zl, zoomlevel ||  
 
|-
 
|-
| eventseen, seenevent <tt>I:ID</tt> || adds given event's ID to the list of Seen Events. Useful for enabling access to event-dependent areas or events.
+
| eventseen, seenevent {{t|I:ID}} || adds given event's ID to the list of Seen Events. Useful for enabling access to event-dependent areas or events.
|-
 
| sl || Switches items in player inventory one row down, looping to top. Useful for browsing inventories larger than 36 spaces.
 
|-
 
| sr || Switches items in player inventory one row up, looping to bottom. Useful for browsing inventories larger than 36 spaces.
 
 
|-
 
|-
 
| shirt ||  
 
| shirt ||  
Line 332: Line 351:
 
| remoteLargeTF ||  
 
| remoteLargeTF ||  
 
|-
 
|-
| spawnweeds <tt>number</tt> || Spawns <tt>number</tt> weeds in your current location. May freeze or crash the game if used outside of the farm.
+
| spawnweeds {{t|number}} || Spawns {{t|number}} weeds in your current location. May freeze or crash the game if used outside of the farm.
 
|-
 
|-
 
| lu, lookup ||  
 
| lu, lookup ||  
Line 347: Line 366:
 
|-
 
|-
 
| ff, furniture ||  
 
| ff, furniture ||  
|-
 
| pixelZoom <tt>LVL</tt> || sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size). Movement does not scale. Changes in zoom level may put the player actor outside the boundaries of the map.
 
 
|-
 
|-
 
| achieve ||  
 
| achieve ||  
Line 381: Line 398:
 
|-
 
|-
 
| plaque ||  
 
| plaque ||  
|-
 
| horse <tt>I:X</tt> <tt>I:</tt>y || Spawns a new horse on the current map at (<tt>X</tt>, <tt></tt>y).
 
 
|-
 
|-
 
| sprinkle ||  
 
| sprinkle ||  
 
|-
 
|-
 
| i, item ||  
 
| i, item ||  
|-
+
 
| owl ||
 
 
|-
 
|-
 
| removeQuest ||  
 
| removeQuest ||  
Line 408: Line 422:
 
| dialogue || possibly initiate dialogue by ID
 
| dialogue || possibly initiate dialogue by ID
 
|-
 
|-
| test || changes game display to a swatch list of floorings, which can be clicked once to return to normal game display
+
| test || TODO. Changes game display to a swatch list of floorings, which can be clicked once to return to normal game display.
 
|-
 
|-
 
| fish ||  
 
| fish ||  
Line 419: Line 433:
 
|-
 
|-
 
| killAll || possibly abort all operations on machines. Does not affect monsters on farm or in mines.
 
| killAll || possibly abort all operations on machines. Does not affect monsters on farm or in mines.
|-
 
| beachBridge || presumably fixes the bridge separating the beach parts
 
 
|-
 
|-
 
| achievement ||  
 
| achievement ||  
|-
 
| slimecraft ||
 
 
|-
 
|-
 
| LSD ||  
 
| LSD ||  
Line 437: Line 447:
 
|-
 
|-
 
| season || presumably timeskips to the 1st day of the given season.
 
| season || presumably timeskips to the 1st day of the given season.
|-
 
| friend, friendship,  || presumably sets the friendship point value with the given character to the given value.
 
|-
 
| save || Saves the game. Doesn't work.
 
 
|-
 
|-
 
| gamePad ||  
 
| gamePad ||  
Line 457: Line 463:
 
|-
 
|-
 
| doesItemExist ||  
 
| doesItemExist ||  
|-
 
| clearSpecials ||
 
 
|-
 
|-
 
| pants ||  
 
| pants ||  
Line 467: Line 471:
 
|-
 
|-
 
| bloom ||  
 
| bloom ||  
|-
 
| viewport ||
 
 
|-
 
|-
 
| day ||  
 
| day ||  
Line 474: Line 476:
 
| upgradeCoop ||  
 
| upgradeCoop ||  
 
|-
 
|-
| dog ||  Presumably adds a dog at (<tt>X</tt>, <tt></tt>y) on the current map.
+
| dog ||  Presumably adds a dog at ({{t|X}}, {{t|}}y) on the current map.
 
|-
 
|-
 
| busDriveOff ||  
 
| busDriveOff ||  
Line 480: Line 482:
 
| child2 ||  
 
| child2 ||  
 
|-
 
|-
| playMusic ||  
+
| playMusic {{t|ID}} || Changes music track to <tt>ID</tt>.
 
|-
 
|-
 
| resetMines ||  
 
| resetMines ||  

Revision as of 13:39, 8 October 2017

Index

Stardew Valley's developers added several hidden debug commands to test the game. This page documents them.

Accessing debug commands

These are for advanced users only. These commands may crash or break your save if used incorrectly.

You can run debug commands in the SMAPI console (the terminal window that opens alongside the game) through the debug command, assuming you have the bundled TrainerMod installed:

debug where Robin
> Robin is at Farm, 21,4

Commands

Axe.png
Article Stub

This article is a stub and is missing information. You can help Stardew Valley Wiki by expanding it!

Many commands that ask for an NPC (such as faceDirection) can take 'farmer' as well.

Items, tools, loot, debris, inventory
command description
shears Adds Shears to your inventory.
pickaxe Adds a basic Pickaxe to your inventory.
Aliases: <pickax>, <pickaxe>.
pole Adds a Bamboo Pole to your inventory.
slingshot Adds a Slingshot to your inventory.
wand Adds a Return Scepter to your inventory.
can Adds a basic Watering Can to your inventory.
Aliases: wateringcan.
pan Adds Copper Pan to your inventory.
hoe Adds a basic Hoe to your inventory.
ax Adds a basic Axe to your inventory.
mp Adds a Milk Pail to your inventory.
lantern [broken] Adds a Lantern to your inventory. However, the game freezes if you try to use it.
<skullkey> Adds the Skull Key to your wallet.
<darkTalisman> Adds the Dark Talisman to your wallet and makes the Witch's Hut accessible. Removes the Magic Ink, if you have it.
clearSpecials Removes all Wallet items (Rusty Key, Skull Key, Special Charm, Dark Talisman, Magic Ink, Club Card, Dwarven Translation Guide).
<code title="required field 'itemnamed <string itemName> [int count]'"><itemnamed <string itemName> [int count]> Adds [count] of the item named <itemName> to player inventory. The <itemName> is the full item name, with punctuation but no spaces (like <miner'streat>). If [count] isn't specified, defaults to 1.
Aliases: <in>.
<fillbackpack> Fills your inventory with random items until full.
Aliases: <fbp>, <fill>, <fillbp>.
<removeObjects> Clears all objects from the current location.
<removeDebris> Removes all debris (such as dropped items).
Aliases: <mainmenu>, <mainMenu>.
<museumloot> Marks artifacts as found and adds minerals to your inventory. Stops when your inventory is full.
<TV> Adds a TV to your inventory.
<code title="required field 'weapon <int weaponID>'"><weapon <int weaponID>> Gives the weapon matching <weaponID> to the player. (For example, <weapon 12> spawns a Wooden Blade.)
<gold> Adds a million gold.
<refuel> Sets Lantern fuel to maximum (unimplemented feature).
<fillbin> Adds five items (24, 82, 136, 16, 388) to the shipping bin.
Aliases: <fb>.
sl Switches items in player inventory one row down, looping to top. Useful for browsing inventories larger than 36 spaces.
sr Switches items in player inventory one row up, looping to bottom. Useful for browsing inventories larger than 36 spaces.
NPCs, character actors, interactions, relationships
command description
clone <S:NPC> Makes a copy of <NPC>'s actor and places it to the current location.
sb <S:NPC> Puts "Hello! This is a test" in a bubble above <NPC>'s head.
sf, setFrame <I> Sets and stops the player actor's current animation at the given frame.
fd, face, faceDirection <S:NPC> <I:dir> Sets <NPC> to face in <direction>
jump <S:NPC> <I> makes the given NPC/player actor jump once, at velocity <I>.
c, cm, canmove Force-enables movement for the player actor. Force-closes inventory menu, presumably other menus and dialogue as well.
stoprafting Ends the "is.Rafting" action. (Presumably an unimplemented feature.)
db <S:NPC> Triggers the relevant dialogue with <NPC>, or by default, Pierre. Counts as having spoken to that NPC. Prints "Stack empty" in console if the NPC has no more dialogue at that time.
divorce Makes the player divorce from their current spouse that night.
minigame makeEx <NPC> sets NPC's relationship to Farmer as "divorced".
marry <NPC> Sets <NPC> friendship value to 2500, sets them as Farmer's spouse, and performs Game1.prepareSpouseForWedding.
friend, friendship <NPC> <int> Sets the friendship point value with <NPC> to <int>. If that NPC has not already been greeted, adds them to the list of greeted NPCs.
friendAll Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).


Events
command description
leaveEvent, endEvent Ends the current event, but also clears all previous events seen, dialogue questions answered, and mail received. Clarify: For that day or entirely?
busDriveBack BusStop.busDriveBack()
wedding
eventOver
train Makes a train pass through Stardew Valley.
ccloadcutscene
ee Restarts current event (heart events only?). Outside of events, warps player actor to (0,0) on current map.
minigame blastoff presumably starts a specific heart event of Maru.
minigame cowboy presumably starts a specific heart event of Abigail.
end Starts the Stardew Hero Celebration event.
Quests, world objectives, in-game achievements
command description
quest <I:ID> Adds quest the ID <ID>.
bundle <I:ID> Marks bundle <ID> as completed.
completeCC Sets the Community Centre as complete.
completeQuest <I:ID> Marks quest <ID> as complete.
caughtFish, fishCaught <I:AMT> Sets the number of fish caught to <AMT>.
beachBridge Fixes the bridge separating the beach sections.
Meta & information
command description
save Toggles whether the game saves upon starting a new day or not.
where, whereis <S:NPC> Prints the location and coordinates of <NPC> in the console.
dp, dap, daysPlayed Displays the number of game-days played on the save.
pm, panmode, panMode, On/off toggle for map-panning view; pan map with WASD when toggled on.
version Prints the SDV version number in console.
localInfo Prints a bunch of debug information about the current location in the console.
characterInfo Displays number of characters on the current map.
pixelZoom <LVL> sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size). Movement does not scale. Changes in zoom level may put the player actor outside the boundaries of the map.
viewport <X> <Y> Sets viewport width to X game tiles and height to Y game tiles.
Player character stats, skills, recipes, and player actor properties
command description
fishing <I> sets player Fishing skill to <I>
heal Sets player health to maximum.
speed <I> Increases player actor speed by the given amount. (1 is equal to the speed increase from coffee.)
cooking Teaches the player all cooking recipes.
energize Sets player energy to maximum.
die Sets the player's health to minimum, making them pass out.
money <I> Set player money to given integer.
specials Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the Special Charm.
festivalScore <I:score>- adds <score> to Farmer's grange display score at Stardew Valley Fair
toggleCatPerson Toggles the selected pet species.
seenmail <I:ID> Adds letter <ID> to the list of those the farmer has already received and read.
slimecraft Teached Farmer the recipes for Slime Incubator and Slime Egg-press.
Farm, crops, fruit trees, livestock, pets, farm buildings
command description
minigame setUpFarm tills certain patches of land; adds 20K money; adds a silo, a coop, and a barn; adds shears, milk pail, and full stacks of items 472, 473, 322, 388, and 390; upgrades all four tools to iridium level.
upgradebarn, barn upgrades player barn(s) one level
growCrops <I:AMT> Advances all crops in the current location <AMT> days.
house, houseUpgrade, hu <I:LVL> Up/downgrades your house to the given level.
fenceDecay presumably sets the rate of fence decay
bc, buildcoop
coop, upgradecoop upgrades player coop(s) one level.
spreadDirt On the farm, till all tillable dirt that is currently untilled and unoccupied by actors.
removeDirt On the farm, until all tillable dirt. Will destroy all crops!
minigame befriendAnimals Sets your friendship with all of your (present) animals to 1000. Must be used inside a coop or a barn.
fixAnimals Presumably, moves all livestock to their home buildings.
horse <I:X> <I:>y Spawns a new horse on the current map at (<X>, <>y).
owl Spawns an Owl.
Map, locations, terrain features, time and weather
command description
minelevel <LVL> Warps Farmer to given Mines level.
warp <S:MAP> <I:X> <I:>y warps Farmer to <MAP> at (<X>, <>y).
removeLights Disables light effects on the current map.
clearLightGlows Removes light glow textures on current map.
dayUpdate [I:AMT] Progresses the game either 1 or [AMT] days.
al, ambientLight
time <TIME> set game time of day, <TIME> format is military time (24 hours, no colon).
rain Toggles whether current weather is rain.
command description
cmenu, customize, customizeMenu Opens the character menu (new game, not wizard).
bloomDay The game's bloom. Doesn't work.
cat <I:X> <I:>y Adds a cat at (<X>, <>y) in the current location.
question Marks a particular dialogue question as answered.
growgrass <number> Adds <number> grass to your current location. May freeze the game if used outside of the farm.
petToFarm Moves the player's pet to the farm at (54, 8) if it isn't raining.
junimoStar (CC.characters[0] as junimo).returnToFetchStar
growAnimals Makes all animals in the current location (must be an animal house) grow up.
bluebook Adds a blueprint to your inventory.
removeTF, removeTerrainFeatures Removes all terrain features from the current location.
removeFurniture Removes all furniture from the current location.
rfh, readyForHarvest <I:X> <I:>y Sets the object at (<X>, <>y) to be ready in one minute. Also sets stones to 1 health.
resource <I:ID> <I:AMT> -

10=iridium, 12=wood, 28=lantern fuel

craftingrecipe <S:str> Adds the recipe for <str> to your known items.
setstat <S:stat> <I:num>- Sets the stat <stat> to <num>. (<stat> is property in StardewValley.Stats)
conventionMode Toggles Game1.conventionMode
jn, junimoNote <I:ID> Adds junimo note <ID>.
resetJunimoNotes presumably resets all JunimoNotes to not-seen status.
hurry
makeInedible Makes the item the player is holding inedible.
toss Vial drop animation plays at the player actor's location-
completeJoja presumably set completeJoja value to true (or input value)
zl, zoomlevel
eventseen, seenevent <I:ID> adds given event's ID to the list of Seen Events. Useful for enabling access to event-dependent areas or events.
shirt
b, bi, big, bigitem
facePlayer presumably makes given NPC actor face player actor
j, aj, addJunimo
deleteArch
ns, nosave, noSave
water Irrigate all tilled land on the current map.
growAnimalsFarm
wp, wallpaper Inside the current farm building, switches all wallpapers to the next available wallpaper counting from (assumedly) the left/topmost room.
tool
fo, frameOffset
m, mv, musicvolume
emote
remoteLargeTF
spawnweeds <number> Spawns <number> weeds in your current location. May freeze or crash the game if used outside of the farm.
lu, lookup
speech
ps, playSound
wc, warpCharacter
fruitTrees
animalInfo
ff, furniture
achieve
sdkinfo, steaminfo
morepollen
specialItem
levelup
kms, killMonsterStat
backpack
child, kid
allbundles
movebuilding
mft, mailForTomorrow
ccload
minigame
addOtherFarmer
addAllCrafting possibly adds the achievement for having crafted every item
plaque
sprinkle
i, item
removeQuest
w, wall
KillAllHorses
skinColor
debrisWeather presumably changes the current weather to windy.
clearMail
cookingrecipe
clearCharacters
dialogue possibly initiate dialogue by ID
test TODO. Changes game display to a swatch list of floorings, which can be clicked once to return to normal game display.
fish
year
crafting Teaches the player all crafting recipes.
f, floor
killAll possibly abort all operations on machines. Does not affect monsters on farm or in mines.
achievement
LSD
build
farmMap
blueprint
upgradeBarn
season presumably timeskips to the 1st day of the given season.
gamePad
coopDweller
hairStyle
spreadSeeds
removeBuildings
addKent Adds Kent to the game.
getstat
doesItemExist
pants
gamemode
barnDweller
bloom
day
upgradeCoop
dog Presumably adds a dog at (<X>, <>y) on the current map.
busDriveOff
child2
playMusic <ID> Changes music track to ID.
resetMines
hat
r
hairColor
waterColor
ring
clearFurniture
boots
event
resetAchievements Resets the Steam achievements.