Valheim Console Commands
Valheim has two separate command systems, and mixing them up is the usual reason a command "does nothing":
- Admin commands (kick, ban, save, world modifiers) are the only commands a dedicated server honors. You need to be on the server's admin list to run them.
- Cheat commands (spawn, god, fly, exploremap and the rest) are unlocked with
devcommandsand work in single player and in a world you host from your own game. A vanilla dedicated server refuses them, admin or not. The workaround is a mod (see Cheats on a dedicated server).
Valheim 1.0: cheats lock achievements
Valheim 1.0 adds achievements, and Iron Gate's 1.0 FAQ spells out the cost of cheating. Using most console commands, spawn included, puts a permanent flag on the character and the world that says they can never earn achievements (hotfix 1.0.12 added a way around it). Characters that used cheats before 1.0 are flagged too. Spawned items are marked, and a clean character who picks one up enters a temporary cheat state until every cheated item is out of their inventory. The "Hammer" world modifier (no build cost) counts as a temporary cheat as well.
A few commands are exceptions, freefly among them, and the game asks for confirmation before it puts you into a cheated state so it can't happen by accident. Admin commands such as kick, ban and save aren't cheats and never flag anything.
So on a shared server: run admin commands freely, and treat devcommands as a decision for the whole group.
Which commands work where
| Player commands | Admin commands | Cheat commands | |
|---|---|---|---|
| Who can run them | Anyone with the console open | Only IDs in adminlist.txt |
Only the player hosting the world |
| Unlocked by | Nothing | Being on the admin list | Typing devcommands
|
| Single player / self hosted from the game | Yes | Not needed | Yes |
| Dedicated server (rented or your own) | Yes | Yes | No, unless a mod allows it |
| Examples | help, ping, fov, printseeds | kick, ban, save, setworldmodifier | spawn, god, fly, tod |
How to enable the console
There are two ways.
The settings toggle
Since the Call to Arms update (patch 0.221.4, Sep 9, 2025) the developer console has its own switch in the settings menu. Open Settings, go to the gameplay tab and turn on Enable Console. Nothing else is needed, and it stays on after restarts.
The same patch turned the console off by default on Xbox. Xbox players turn it on with that gameplay setting. Older guides that say Xbox needs no setup are out of date.
The -console launch option
-console still works and overrides the setting, which makes it the reliable choice on an older version.
- Steam: right-click Valheim in your library, Properties, General, and put
-consolein the Launch Options box. Start the game from Steam. - PC Game Pass / Microsoft Store: there's no launch options box. Make a shortcut to
Valheim.exe, open its properties and add-consoleto the end of the Target field. Launch from that shortcut. - Mac (App Store): start the game with this launch option:
/Applications/Valheim.app/Contents/MacOS/Valheim -console
Opening the console
Press F5. If nothing happens: you launched the game a different way than the one you enabled the console through (Steam launch options only apply when Steam starts the game). Or your keyboard has function lock on and F5 is sending a media key.
Type help for the list of commands available on your version.
Player commands
No cheats and no admin rights needed. Nothing here flags achievements.
| Command | What it does |
|---|---|
help |
Prints the command list |
info |
Prints system information |
ping |
Shows your ping to the server |
clear |
Clears the console window |
fov [number] |
Sets the field of view |
maxfps [number] |
Caps the frame rate |
lodbias [1-7] |
Draw distance. Default is 1.5 |
exclusivefullscreen |
Switches between exclusive fullscreen and borderless |
bind [key] [command] |
Binds a command to a key, for example bind mouse4 cheer
|
printbinds / unbind [key] / resetbinds |
Lists, clears one, or clears all key binds |
die |
Kills your character |
say [text] / s [text] / w [player] [text] |
Chat, shout, whisper |
printseeds |
Prints the seeds and positions of nearby dungeons |
filtercraft [text] / sortcraft [type] |
Filters or sorts the crafting list |
resetspawn |
Clears your bed spawn point |
resetsharedmap |
Clears the shared map data you pulled from a cartography table |
resetknownitems |
Forgets every item and recipe your character has learned |
resetplayerprefs |
Resets settings and saved preferences, not the save game |
tutorialreset |
Resets Hugin's tutorial messages |
cr |
Unloads unused assets now instead of on the 20 minute timer |
optterrain |
Converts old terrain edits nearby to the current terrain system |
restartparty |
Restarts the crossplay (PlayFab) party network |
Admin commands
This is the vanilla admin set. It's short on purpose: admin rights on a Valheim server are about moderation, not cheating. Everything here works on a dedicated server, from the in-game console (F5) once you're on the admin list.
| Command | What it does |
|---|---|
kick [name/ip/userID] |
Removes a player from the server |
ban [name/ip/userID] |
Bans a player |
unban [ip/userID] |
Lifts a ban. Use the ID or IP, not the name |
banned |
Lists every banned player |
save |
Saves the world right now |
setworldmodifier [name] [value] |
Changes one world modifier on the running world, for example setworldmodifier raids none
|
setworldpreset [name] |
Applies a whole preset (casual, easy, normal, hard, hardcore, immersive, hammer) |
resetworldkeys |
Puts every world modifier back to default. Boss progress is untouched |
Run save before anything risky: a mod change, a restart, a big demolition. The worst case is then a few seconds of lost progress instead of everything since the last autosave. The modifier commands are the live version of the -preset, -modifier and -setkey launch options listed in Valheim Server Settings. They're how you change raid frequency or resource rates on an existing world without a restart.
How to become an admin
You make someone admin with a text file, not a command. The server reads three files from its save folder, one platform user ID per line:
| File | Effect |
|---|---|
adminlist.txt |
Grants admin rights |
bannedlist.txt |
Those players can't join |
permittedlist.txt |
Whitelist. If it has any entries, only those players can join |
Iron Gate's dedicated server guide asks for the ID in the format [Platform]_[User ID], case sensitive, for example Steam_76561197960287930. Press F2 in the game and copy the ID exactly as it appears next to the player's name, or read it from the server log. A bare 17-digit Steam ID is the older format and still the one most guides show. If admin rights don't apply, try the F2 format first. Players on Xbox, PlayStation or Switch 2 have their own platform's ID rather than a Steam one, which is why the F2 panel is the safe place to copy it from.
On a Survival Servers server the file is written for you. Open the Game Server page in the Command Center, put each Steam ID in the Admin UID field (the plus icon adds more) and press Save Settings & Restart. The Command Center writes the IDs into adminlist.txt in the server's main folder exactly as typed, and you can also edit the file directly in the File Manager or over FTP.
Cheat commands (devcommands)
Type devcommands and press Enter to turn cheats on. Type it again to turn them off. Everything in this section needs it and flags achievements from 1.0 onwards. None of it works on a vanilla dedicated server (see Cheats on a dedicated server). The rows marked not a cheat are the exception: they run without devcommands and never flag anything.
Character
| Command | What it does |
|---|---|
god |
God mode. Damage can't drop you below 1 health |
ghost |
Enemies ignore you |
heal |
Refills health, stamina and eitr |
puke |
Clears your food buffs back to base stats |
addstatus [name] / clearstatus |
Applies a status effect (Rested, Wet, Burning) or removes them all |
raiseskill [skill] [amount] |
Raises a skill. raiseskill all 50 raises everything; a negative amount lowers it
|
resetskill [skill] |
Sets a skill to zero. resetskill all resets everything
|
setpower [name] |
Sets your forsaken power and clears its cooldown, for example setpower GP_Eikthyr
|
beard [id] / hair [id] |
Changes beard or hair. No argument removes it. Not a cheat |
model [0-1] |
Switches the character model. Not a cheat |
resetcharacter |
Wipes your character's data |
Movement and camera
| Command | What it does |
|---|---|
fly |
Toggles flight |
freefly |
Free camera. Not a cheat, so it doesn't flag achievements |
ffsmooth [0-1] |
Smooths free camera movement. Not a cheat |
goto [x] [z] |
Teleports to map coordinates |
pos |
Prints your coordinates. Not a cheat |
findtp [text] |
Teleports you to the nearest matching object |
recall [name] |
Pulls a player to you. No name pulls everyone |
World, time and weather
| Command | What it does |
|---|---|
tod [0-1] |
Sets time of day. 0.5 is noon, -1 returns to the normal clock |
skiptime [seconds] |
Jumps time forward. Default is 240 |
sleep |
Skips one night |
timescale [speed] |
Speeds time up, up to 5x. 0 pauses it |
env [name] / resetenv |
Forces a weather type (ThunderStorm, Misty, Rain) or returns to normal |
wind [angle] [intensity] / resetwind |
Sets or resets the wind |
exploremap / resetmap |
Reveals or hides the whole map |
setkey [name] / removekey [name] |
Adds or removes a global key, the flags that track boss kills and world modifiers |
listkeys / resetkeys |
Lists or clears every global key |
event [name] / randomevent / stopevent |
Starts a named raid, a random raid, or stops the current one |
players [number] |
Scales difficulty as if that many players were nearby. 0 resets |
nocost |
Building and crafting cost nothing |
location [name] |
Spawns a location. Permanently disables saving unless you add SAVE |
genloc |
Redistributes unplaced locations |
nextseed |
Rerolls the next dungeon. Permanently disables saving |
setfuel [amount] |
Tops up nearby fires and torches. Negative values drain them |
Spawning and removing
| Command | What it does |
|---|---|
spawn [name] [amount] [level] |
Spawns an item or creature. See Spawn command syntax and common IDs |
itemset [name] [keep] |
Spawns a full gear set, for example itemset Mistlands or itemset AshlandsMage
|
tame |
Tames every tameable creature nearby |
killall |
Kills nearby enemies and tamed creatures, not players |
killenemies / killtame |
Kills only enemies, or only tamed creatures |
aggravate |
Makes neutral creatures nearby hostile |
removedrops |
Deletes item drops in the area. Not a cheat |
removebirds / removefish |
Removes active birds or fish. Not a cheat |
forcedelete [radius] [name] |
Deletes objects within up to 150 metres (5 if you leave the radius out). Leaves players, tombstones, dungeons and boss stones alone |
find [text] |
Finds matching objects and pings them on the map |
Debug and creative mode
| Command | What it does |
|---|---|
debugmode |
Creative mode. With it on, close the console and press B for free building, Z to fly and K to kill nearby enemies |
printcreatures / printlocations |
Lists active creatures with levels, or loaded locations with distances |
dpsdebug |
Toggles damage per second output |
Spawn command syntax and common IDs
spawn [PrefabName] [amount] [level]
Names are the game's internal prefab names (the console fixes capitals). The level for creatures is 1 (no star), 2 (one star) or 3 (two stars). spawn Wood 50 drops fifty wood at your feet, and spawn Troll 1 3 spawns one two-star troll, so be ready.
| Type | Prefab names |
|---|---|
| Basic materials | Wood, FineWood, RoundLog, Stone, Flint, Resin, Coal, LeatherScraps, DeerHide, Coins
|
| Metals | Copper, Tin, Bronze, Iron, Silver, BlackMetal, Flametal
|
| Tools and weapons | Hammer, Hoe, Cultivator, PickaxeIron, AxeBronze, SwordBronze, SwordIron, SwordSilver, SwordBlackmetal, BowFineWood, BowHuntsman
|
| Animals | Boar, Deer, Neck, Wolf, Lox, Hen
|
| Enemies | Greyling, Greydwarf, Greydwarf_Elite, Greydwarf_Shaman, Troll, Skeleton, Draugr, Blob, Leech, Fenring, Hatchling, Goblin, GoblinBrute, Seeker, Tick, Gjall, Serpent
|
| Bosses | Eikthyr, gd_king (The Elder), Bonemass, Dragon (Moder), GoblinKing (Yagluth), SeekerQueen, Fader
|
The game's own help output and the tab completion in the console are the full list for your version. Every 1.0 and Deep North prefab appears there.
Cheats on a dedicated server
The supported answer is a server mod: Server devcommands (a BepInEx plugin) lets listed admins use the cheat set on a dedicated server, with a permission list of its own.
On a Survival Servers server BepInEx comes with the ValheimOne and BepInEx mod options in the Command Center, and plugins are uploaded to BepInEx/plugins over FTP or the File Manager. Remember the 1.0 rule before you do: anything spawned that way is flagged for whoever picks it up.
Running admin commands from a browser
ValheimOne is a free, open source server mod that adds a web admin console to a Valheim dedicated server. Players on PC or console need nothing installed for the browser console. Optional Synced gameplay modules need the mod on each player's PC.
The console tab shows the live server log and a command box with history and autocomplete. Commands run through the game's own console on the server. You can kick or ban a player, save the world, or schedule a clean shutdown that warns players before the server goes down, all from a browser and without being logged into the game. Only commands on the console's whitelist can run.
On a self-hosted server, set both Enabled = true and ConsoleEnabled = true in the existing [LiveMap] section of BepInEx/config/valheimone.cfg, and set a long, unique AccessToken. The map and console are off by default. For the port, the access URL and HTTPS access, follow the live map setup steps.
Note: The console only exists in the Admin view. The Shared and Public links to the mod's live map never expose it, so you can hand the map to your players without handing out admin.
The same mod draws a live map of the world with players, ships and portals on it. What it shows, how the three share views work, and the install steps for a self-hosted server are in Valheim Live Map. On a Survival Servers server, it's a mod option in the Command Center.
Frequently asked questions
Why do console commands not work on my Valheim server?
Nine times out of ten, you're trying a cheat command on a dedicated server. Vanilla dedicated servers only accept the admin commands. The other common causes: you're not on adminlist.txt, the ID in the file is in the wrong format (use what F2 shows), or the console isn't turned on in your game.
Do I still need -console in my launch options?
Not on a current version. The gameplay setting added in patch 0.221.4 does the same job. -console still works and overrides the setting.
How do I open the console on Xbox?
Turn on the developer console in the gameplay settings first. Since patch 0.221.4, it's off by default on Xbox. Cheats flag achievements there the same way they do on PC.
Which ID goes in adminlist.txt?
The platform user ID exactly as the F2 panel prints it, one per line, for example V_76561197960287930 for a Steam player. Bare 17-digit Steam IDs are the pre-crossplay format and still work for Steam players, as does the Steam_ form from Iron Gate's guide.
Can I remove the cheat flag from my character or world?
Since hotfix 1.0.12 you can work around it. Type yesiuseddevcommandsbutiwantmyachievementsanyway 1 and the console answers Set cheat bypass to true. That character can then earn achievements even though the flag stays. The 1.0 FAQ calls a flagged character and world "permanently locked from getting any achievements". A temporary cheat state, the kind you get from picking up a spawned item, clears once every cheated item is out of your inventory.
What does devcommands replace?
The old imacheater command. It stopped working with Hearth and Home in 2021. Guides that still mention it are out of date.
See also
- Valheim Server Settings: every launch parameter and world modifier
- How to Create a Valheim Server
- Valheim Live Map
- Valheim Incompatible Version Error
- How to Set Up a Valheim Crossplay Server
- How to Find Your Valheim Seed
Valheim server hosting from Survival Servers comes with instant setup, one-click mods, a browser admin console and DDoS protection.