Unfortunately there is currently no proper command to spawn items in the vanilla version of Stardew Valley. The developers have limited the command to test versions of the game, meaning it is not available to average players. However it is possible in the base game through the use of a cheat! Scroll below to jump to the guides.
Spawn Items Using Your Character’s Name
This is the recommended method of spawning items within Stardew Valley. It’s completely free, and while tedious, it can be used to repeatedly spawn items without any cost to you. Ideally, you will want to follow this from the beginning of the game as it involves your character’s name. However, if you want to do this on a current save, it’s still possible to change your character’s name at a later point. More on this later.
When you create a character, you’ll be able to fit three different Item IDs within your name. First off, use the above table to find the IDs of the three items you wish to spawn. Keep in mind, these can be repeatedly spawned over and over again.
Once you’ve found the items you want, enter them in the Name field surrounded by brackets. For sake of example, I’ll use an Emerald, Ruby and Topaz. If I want to spawn these items, I’ll need to enter my name as: 
Now that you have your name sorted out with the items you want to spawn, make your way to a villager that uses your name in their dialogue. Many characters do this, but the best to abuse this method with is Gus in the Stardrop Saloon. Anytime you talk to him before 12:30 AM he will mention your name. Each time he says your name, you will receive each of the three items you listed in your name!
Prefer a video? Check out DangerouslyFunny’s great guide!
Spawn Items Using Animal Names
This method is only recommended if you don’t plan on spawning many items, and have enough gold to spend in your current game. It relies on you buying and selling animals multiple times, so it can get pricey!
Once you’re able to, head over to Marnie at her Ranch. Those of you that are familiar with the game already will know that this is where you go to purchase animals for your farm. We recommend that you use chickens for this method for the sake of saving some money.
When you reach the option to name your new animal, use the same method as above. The only stipulation here, is that the name is required to be a minimum of five characters. So you cannot, for example, only spawn a Daffodil with  as it will not be long enough. You’re able to enter up to three items just like your character name, so choose another item to spawn alongside anything that is too short.
After you finish naming the animal, you will receive the item(s) that you named it. Unfortunately renaming your animals will not result in more items, you have to buy a completely new animal for the method to work. For this reason, it’s highly recommended that you spawn three items at a time to get more bang for your buck.
Changing Your Character’s Name
Note: Only available to PC players – you are not able to edit files directly on console.
You’ve followed the method of using your character’s name to spawn items, but you’re only spawning the same three items. Lame, right? Read on to find out how to change your character’s name at any point in the game, allowing you to change the set of items spawned.
Stardew Valley currently has no ingame feature to change your character’s name, so we’ll be editing the game files directly. Before we begin, make sure your game is not running. This is key.
- Open the app ‘Run’ – simply search the name in your Start Menu
- Enter %AppData% and click ‘OK’
- Open your Finder
- Enable hidden files by pressing Command + Shift + .
- Navigate to /Users/(yourname)/.config/
The next steps apply to both Windows and Mac. From your current location, find your “StardewValley” folder, and then navigate to the “Saves” subfolder. In here, you’ll see a folder for every character you have saved, open the folder of the character you wish to rename.
Open the file “SaveGameInfo” with your Notepad and press Ctrl + F. Type in the name of your character and press enter, this will jump you directly to the name surrounded by the
<name> </name> tags.
Delete the name inside these tags, and replace it with your new name, or in our case, the new IDs of the items you wish to spawn. Save and close the file, and now all that’s left to do is update the name of the entire save folder (the folder inside of “Saves”) to the new name you chose. Boot up your game, and you’ll be rocking your new name!