Skip to content
Skyes Hosting

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 5 min read0 viewsUpdated

Valheim Item IDs and Console Commands

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 as spawn do 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

  1. Press F5 in game.
  2. If the console does not open, enable it in Settings → Gameplay, under the developer console option. You can also add -console to Valheim's launch options in Steam.
  3. For cheat commands, type devcommands and press Enter. Type it again to turn them off.

Spawning items

Format:

spawn <ItemID> <amount> <level>
ExampleResult
spawn Wood 5050 wood
spawn Bronze 2020 bronze bars
spawn Boar 3 23 level-2 boars (one star)
  • level only applies to creatures.
  • Item IDs are not case-sensitive.
  • Type help in 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:

CommandWhat it does
kick <name/ID>Kicks a player
ban <name/ID>Bans a player
unban <ID>Lifts a ban
bannedShows the ban list
saveSaves 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).

  1. In game, press F2 and note your ID. The format is [Platform]_[ID], for example Steam_76561197960287930.
  2. Stop the server.
  3. Open Files → .config/unity3d/IronGate/Valheim/adminlist.txt and add your ID on a new line. It is case-sensitive.
  4. Start the server.

Other files in the same folder:

FileWhat it does
bannedlist.txtBanned players
permittedlist.txtWhitelist. If it holds at least one ID, only listed IDs can join

Other cheat commands (need devcommands)

CommandWhat it does
godInvulnerable: health cannot drop below 1
ghostEnemies ignore you
flyFly
killenemiesKills nearby enemies
tod 0.5Sets the time of day (0.5 = noon). tod -1 restores normal
env ThunderStormForces the weather. resetenv restores normal
healRestores health

Commonly used item IDs

Wood and basic materials

ItemID
WoodWood
Fine WoodFineWood
Core WoodRoundLog
Ancient BarkElderBark
StoneStone
FlintFlint
ResinResin
Leather ScrapsLeatherScraps
Deer HideDeerHide
CoalCoal
Surtling CoreSurtlingCore
Linen ThreadLinenThread
ObsidianObsidian

Ores and metals

MetalOre IDBar ID
CopperCopperOreCopper
TinTinOreTin
Bronze—Bronze
IronIronScrapIron
SilverSilverOreSilver
Black MetalBlackMetalScrapBlackMetal
Flametal—FlametalNew

Note: swamp iron ore uses the ID IronScrap, not IronOre. Flametal bars use FlametalNew, not Flametal.

Early tools and weapons

ItemID
Stone AxeAxeStone
Flint AxeAxeFlint
Antler PickaxePickaxeAntler
Bronze SwordSwordBronze
Bronze AtgeirAtgeirBronze
Crude BowBow
Wood ArrowArrowWood
Flint ArrowArrowFlint

Boss summons

ItemIDSummons
Deer TrophyTrophyDeerEikthyr
Ancient SeedAncientSeedThe Elder
Withered BoneWitheredBoneBonemass
Dragon EggDragonEggModer
Fuling TotemGoblinTotemYagluth

Other

ItemID
CoinsCoins
EitrEitr
Black CoreBlackCore

Troubleshooting

ProblemCommon causeFix
The console does not openThe developer console is not enabledEnable it in Settings → Gameplay or use -console
spawn does nothing on the serverVanilla dedicated servers do not allow cheatsUse it in single player, or contact support about mods
Admin commands are refusedWrong ID in adminlist.txt, or no restartCopy the ID exactly from F2, then restart the server
The item does not appearA typo in the IDCheck the table, or type part of the name followed by *
Nobody can joinpermittedlist.txt contains an IDAdd 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?

Open support center