Valheim Item IDs and Console Commands
How to open the Valheim console, the spawn command for items, limits on dedicated servers, admin commands, and a list of commonly used item IDs.
valheimWritten by Aneryan5 min read0 viewsUpdated

Item IDs are the internal names the spawn command uses in the Valheim console to create items. This guide also covers opening the console, admin commands for servers, and an important limit on dedicated servers.
In short: open the console with F5 → enable cheats with
devcommands→spawn Wood 50. On a dedicated server, cheat commands such asspawndo not work without an extra mod.
Important limits on dedicated servers
- Cheat commands (
spawn,god,fly, and similar) only work in single player or a world hosted from the game. On a vanilla dedicated server they do not work, even if you are listed as an admin. - To use them on a dedicated server you need a mod such as Server devcommands, which runs on BepInEx. If you want mods on your Valheim server, contact Skyes Hosting support.
- Achievements can be locked. Since Valheim 1.0, using most cheat commands (including
spawn) stops the character and world from earning achievements. Spawned items also flag whoever picks them up.
Opening the console
- Press F5 in game.
- If the console does not open, enable it in Settings → Gameplay, under the developer console option. You can also add
-consoleto Valheim's launch options in Steam. - For cheat commands, type
devcommandsand press Enter. Type it again to turn them off.
Spawning items
Format:
spawn <ItemID> <amount> <level>
| Example | Result |
|---|---|
spawn Wood 50 | 50 wood |
spawn Bronze 20 | 20 bronze bars |
spawn Boar 3 2 | 3 level-2 boars (one star) |
levelonly applies to creatures.- Item IDs are not case-sensitive.
- Type
helpin the console to see the command format for your game version, since the argument order can change between versions.
Admin commands on a dedicated server
These commands work without devcommands, as long as you are listed as an admin:
| Command | What it does |
|---|---|
kick <name/ID> | Kicks a player |
ban <name/ID> | Bans a player |
unban <ID> | Lifts a ban |
banned | Shows the ban list |
save | Saves the world |
Becoming an admin
The admin list is the adminlist.txt file in the .config/unity3d/IronGate/Valheim/ folder on the server (not the server root).
- In game, press F2 and note your ID. The format is
[Platform]_[ID], for exampleSteam_76561197960287930. - Stop the server.
- Open Files →
.config/unity3d/IronGate/Valheim/adminlist.txtand add your ID on a new line. It is case-sensitive. - Start the server.
Other files in the same folder:
| File | What it does |
|---|---|
bannedlist.txt | Banned players |
permittedlist.txt | Whitelist. If it holds at least one ID, only listed IDs can join |
Other cheat commands (need devcommands)
| Command | What it does |
|---|---|
god | Invulnerable: health cannot drop below 1 |
ghost | Enemies ignore you |
fly | Fly |
killenemies | Kills nearby enemies |
tod 0.5 | Sets the time of day (0.5 = noon). tod -1 restores normal |
env ThunderStorm | Forces the weather. resetenv restores normal |
heal | Restores health |
Commonly used item IDs
Wood and basic materials
| Item | ID |
|---|---|
| Wood | Wood |
| Fine Wood | FineWood |
| Core Wood | RoundLog |
| Ancient Bark | ElderBark |
| Stone | Stone |
| Flint | Flint |
| Resin | Resin |
| Leather Scraps | LeatherScraps |
| Deer Hide | DeerHide |
| Coal | Coal |
| Surtling Core | SurtlingCore |
| Linen Thread | LinenThread |
| Obsidian | Obsidian |
Ores and metals
| Metal | Ore ID | Bar ID |
|---|---|---|
| Copper | CopperOre | Copper |
| Tin | TinOre | Tin |
| Bronze | — | Bronze |
| Iron | IronScrap | Iron |
| Silver | SilverOre | Silver |
| Black Metal | BlackMetalScrap | BlackMetal |
| Flametal | — | FlametalNew |
Note: swamp iron ore uses the ID IronScrap, not IronOre. Flametal bars use FlametalNew, not Flametal.
Early tools and weapons
| Item | ID |
|---|---|
| Stone Axe | AxeStone |
| Flint Axe | AxeFlint |
| Antler Pickaxe | PickaxeAntler |
| Bronze Sword | SwordBronze |
| Bronze Atgeir | AtgeirBronze |
| Crude Bow | Bow |
| Wood Arrow | ArrowWood |
| Flint Arrow | ArrowFlint |
Boss summons
| Item | ID | Summons |
|---|---|---|
| Deer Trophy | TrophyDeer | Eikthyr |
| Ancient Seed | AncientSeed | The Elder |
| Withered Bone | WitheredBone | Bonemass |
| Dragon Egg | DragonEgg | Moder |
| Fuling Totem | GoblinTotem | Yagluth |
Other
| Item | ID |
|---|---|
| Coins | Coins |
| Eitr | Eitr |
| Black Core | BlackCore |
Troubleshooting
| Problem | Common cause | Fix |
|---|---|---|
| The console does not open | The developer console is not enabled | Enable it in Settings → Gameplay or use -console |
spawn does nothing on the server | Vanilla dedicated servers do not allow cheats | Use it in single player, or contact support about mods |
| Admin commands are refused | Wrong ID in adminlist.txt, or no restart | Copy the ID exactly from F2, then restart the server |
| The item does not appear | A typo in the ID | Check the table, or type part of the name followed by * |
| Nobody can join | permittedlist.txt contains an ID | Add the players' IDs, or empty the file |
If admin commands still do not work, contact Skyes Hosting support and include the server name and your ID from the F2 screen.
Was this article helpful?

