Valheim Console Commands: Cheats and Admin Commands
Every Valheim console command: enabling the console, devcommands cheats, spawn syntax, and the admin commands that work on a dedicated server.
Valheim has two separate command systems, and confusing them is the single most common reason a command "doesn't work". The developer console runs on your game client, and that is where the cheats live β spawn, god, fly, exploremap. Admin commands are a much shorter list that a server owner runs from the same console box, and on a dedicated server they are the only ones the game will honour. This page covers both, spells out which commands work where, and shows how to unlock the rest with devcommands (frequently searched as "dev commands").
From 9 September 2026, cheats cost the whole world its achievements
Valheim 1.0 adds achievements, and Iron Gate has built a cheat detector alongside them. Its 1.0 FAQ says that using most commands β
spawnamong them β "will place a flag on your current character and world save, informing you that it is permanently locked from getting any achievements". The marking is retroactive to characters that used cheats before 1.0, and spawned items carry it to anyone who picks them up.freeflyis named as an exception, and admin commands likekick,banandsaveare not cheats at all. The commands below still work and server owners still have good reasons to use them β read Achievements and cheat commands first, then decide.
Console commands vs admin commands
Every command below falls into one of three buckets. Getting this table straight first will save you a lot of time.
| Player commands | Admin commands | Cheat commands | |
|---|---|---|---|
| Who can run them | Anyone with the console open | Only IDs listed in adminlist.txt |
Anyone with the console open |
| Unlocked by | Nothing | Being on the admin list | Typing devcommands |
| Work in singleplayer | Yes | n/a | Yes |
| Work on a dedicated server | Yes | Yes | No β vanilla blocks them |
| Examples | help, info, ping, fov |
kick, ban, save |
spawn, god, fly, tod |
Cheat commands do not work on a dedicated server
This is the part most command lists leave out.
devcommandsunlocks cheats in singleplayer and in a world you host yourself from the game client. On a dedicated server β including the one in your panel β the cheat commands are refused no matter who you are. Being an admin does not change this. The only supported workaround is a mod, covered in the Server Devcommands section below.
Which of those three you are actually playing on decides what works, so it is worth settling first: How to Play Valheim With Friends sets out what an in-game host, a public community server and a dedicated server each give you, and how people join each one.
How to enable the console
There are two ways, and most guides still only mention the older one.
The settings toggle
Since the Call to Arms update (patch 0.221.4, 9 September 2025) the developer console has its own option in the in-game settings menu. Open Settings, go to the Gameplay tab, and switch the developer console option on. No launch arguments, no shortcuts, and it survives restarts.
Iron Gate's patch notes for that release put it plainly:
Added the option in the settings menu to enable the developer console. The command line argument "-console" overrides the setting.
Iron Gate's own help page predates this change
The official "How to Enable Developer Mode" support article is dated February 2024 β about eighteen months before the setting was added β so it only documents the launch argument. So do most of the top search results. If you are on a current build, try the settings toggle first.
The -console launch option
Still works, and still overrides whatever the setting says, which makes it the reliable choice if you are on an older build or the toggle is not where you expect.
-console - Steam β right-click Valheim in your library, Properties, General, and paste
-consoleinto the Launch Options field. You then have to start the game from Steam for it to apply. - PC Game Pass / Microsoft Store β the launcher gives you nowhere to put arguments, so make a shortcut to
Valheim.exe(default locationC:\XboxGames\Valheim\Content), open its Properties, and add-consoleto the end of the Target field. Launch from that shortcut. - Mac (App Store) β launch the binary directly with the argument:
/Applications/Valheim.app/Contents/MacOS/Valheim -console. - Xbox β enable it in the gameplay settings menu. Iron Gate shipped the console enabled on Xbox originally, but patch 0.221.4 (9 September 2025) reversed that: the notes carry an "Xbox Only" line stating the developer console is now disabled by default and is enabled through the new gameplay setting instead. Guides that still say Xbox needs no setup predate that patch.
Opening the console
Press F5. On a controller the combination is LB + LT + Start.
If nothing happens, work through these in order:
- You launched the game a different way than the one you enabled the console through. Steam launch options only apply to the Steam shortcut.
- Your laptop keyboard is in function mode, so F5 is sending a media key instead. Toggle Fn-lock.
- On some Windows permission setups the game has to be run as administrator before the console will open.
Player commands
These need no cheats and no admin rights. Typing / and pressing Tab in the chat window will list what is available on your build.
| Command | What it does |
|---|---|
help [page] [pages] |
Prints the command list. Optional arguments page through it |
info |
Prints current system information |
ping |
Measures your latency to the server |
clear |
Clears the console window |
fov [number] |
Changes field of view |
maxfps [fps] |
Sets an FPS cap |
lodbias [1-7] |
Adjusts draw distance |
exclusivefullscreen |
Toggles between exclusive fullscreen and borderless |
bind [keycode] [command] |
Binds a command to a Unity keycode, e.g. bind mouse4 cheer |
printbinds |
Lists your current binds |
unbind [keycode] |
Clears the binds on one key |
resetbinds |
Clears every bind |
die / respawn |
Kills your character |
say [text] / s [text] |
Says or shouts a chat message |
w [player] [text] |
Whispers a player |
printseeds |
Prints seeds and positions of nearby dungeons |
filtercraft [text] |
Filters the crafting list |
sortcraft [type] |
Sorts crafting lists by name, type, weight, count or original |
nomap |
Toggles map visibility |
noportals |
Toggles portals |
resetspawn |
Resets your spawn point |
resetsharedmap |
Clears shared map data from the cartography table |
resetknownitems |
Clears your character's known items and recipes |
resetplayerprefs |
Resets saved settings and variables, not the save game |
tutorialtoggle / tutorialreset |
Toggles or resets tutorial messages |
cr |
Forces an unload of unused assets, which otherwise happens every 20 minutes |
optterrain |
Converts pre-0.150.3 terrain edits nearby to the current system |
restartparty |
Restarts the PlayFab party network |
Admin commands
This is the complete vanilla admin set. It is short, and that is the point β admin rights on a Valheim server are about moderation, not cheating.
| Command | What it does |
|---|---|
kick [name/ip/userID] |
Removes a player from the server |
ban [name/ip/userID] |
Bans a player |
unban [name/ip/userID] |
Lifts a ban |
banned |
Prints the full ban list |
save |
Forces a world save immediately |
setworldmodifier [name] [value] |
Sets one world modifier |
setworldpreset [name] |
Applies a named modifier preset |
resetworldkeys |
Resets world modifiers to default. Does not touch boss progression |
setworldmodifier and setworldpreset are the live equivalents of the launch-argument modifiers described in Configuring your Valheim server β handy for changing raid frequency or resource rates without a restart.
Force a save before you do anything risky
saveis the most underrated command on this list. Run it before a mod change, a restart, or any large build, and your worst case is losing a few seconds instead of the interval since the last autosave.
Setting up admins
Admins are granted by a plain text file, not by an in-game command. Valheim reads three files out of its save directory:
| File | Effect |
|---|---|
adminlist.txt |
Grants admin rights |
bannedlist.txt |
Blocks those players from joining |
permittedlist.txt |
Whitelist |
permittedlist.txt bans everyone who is not on it
Iron Gate's dedicated server guide is explicit: "adding a person on the permitted list will ban everyone else from the server." If you add one line to that file as a test, your server is now invite-only. Leave it empty unless a whitelist is what you actually want.
On a stock install those files live alongside your worlds in the save directory β ~/.config/unity3d/IronGate/Valheim on Linux, %USERPROFILE%\AppData\LocalLow\IronGate\Valheim on Windows β unless -savedir moves it. On your rented Valheim server the save directory is the server root, so adminlist.txt sits next to the worlds_local/ folder and you can edit it straight from the File Manager. Add one ID per line and nothing else:
Steam_76561197960287930
Steam_76561197960287931 Two ID formats are in circulation β use the one F2 shows you
Iron Gate's current dedicated server guide specifies "one Platform User ID per line" in the format
[Platform]_[User ID], case sensitive, and says that ID "can be obtained from the Server log or from within the game using the F2 panel". Almost every third-party guide still shows a bare 17-digit SteamID64 with no prefix, which is the format that predates crossplay. If admin rights refuse to apply, this is the first thing to check β press F2 in game, copy the ID string exactly as it appears next to the player's name, and paste that.
Crossplay servers make this matter more, because players arriving from Xbox or the crossplay backend have a PlayFab identity rather than a SteamID64. Whatever the F2 panel prints for that player is what belongs in the file. Is Valheim Crossplay? covers the -crossplay launch argument and which platforms arrive on which backend.
Do not add comments, trailing spaces, or two IDs on one line β the parser is unforgiving. Restart the server after editing if the change does not take effect on its own.
Cheat commands
Type devcommands and press enter to switch cheats on, and again to switch them off. Everything in this section requires it, and none of it works on a dedicated server without the mod covered further down.
Character
| Command | What it does |
|---|---|
god |
Damage cannot drop you below 1 health |
ghost |
Enemies stop noticing you |
heal |
Refills health, stamina and eitr |
puke |
Clears food buffs back to base health and stamina |
addstatus [name] |
Applies a status effect, e.g. Rested, Burning, Wet |
clearstatus |
Removes all status effects, good and bad |
raiseskill [skill] [amount] |
Raises a skill. All affects everything; prefix the value with - to lower it |
resetskill [skill] |
Sets a skill to 0. All resets everything |
setpower [name] |
Sets your forsaken power and clears its cooldown, e.g. GP_Eikthyr |
beard [id] / hair [id] |
Changes beard or hair. No argument removes it |
model [0-1] |
Switches character model |
resetcharacter |
Wipes all of your character data |
Movement and camera
| Command | What it does |
|---|---|
fly |
Toggles flight |
freefly |
Toggles the free camera |
ffsmooth [0-1] |
Smooths free camera movement |
goto [x] [z] |
Teleports to coordinates |
pos |
Prints your coordinates |
findtp [text] |
Teleports you to the nearest matching object |
recall [name] |
Pulls matching players to you. No name pulls everyone |
World and time
| Command | What it does |
|---|---|
tod [0-1] |
Sets time of day. 0.5 is noon, -1 restores normal |
skiptime [seconds] |
Jumps forward. Defaults to 240 |
sleep |
Skips one day |
timescale [target] [fadetime] |
Changes the speed of time, up to 5x. 0 pauses |
env [name] |
Forces a weather environment, e.g. ThunderStorm, Misty |
resetenv |
Returns weather to normal |
wind [angle] [intensity] |
Sets wind direction and strength |
resetwind |
Returns wind to normal |
exploremap / resetmap |
Reveals or hides the whole map |
setkey [name] / removekey [name] |
Adds or removes a global key |
listkeys / resetkeys |
Lists or clears global keys |
event [name] / randomevent / stopevent |
Starts or stops a raid event |
players [number] |
Scales difficulty as though that many players were present. 0 resets |
nocost |
Removes build and craft costs |
genloc |
Redistributes unplaced locations |
location [name] |
Spawns a location. Add SAVE or saving is permanently disabled |
nextseed |
Rerolls the next dungeon. Permanently disables saving |
setfuel [value] |
Tops up nearby fire sources. Negative values drain them |
Spawning and removing
| Command | What it does |
|---|---|
spawn [name] [amount] [level] |
Spawns an item or creature |
itemset [name] [keep] |
Spawns a premade gear set, e.g. Mistlands, AshlandsMage, Fisherman |
tame |
Tames every tameable creature nearby |
killall |
Kills nearby enemies and tamed creatures, but not players |
killenemies / killtame |
Kills only enemies, or only tamed creatures |
aggravate |
Aggravates neutral creatures within 20 metres |
removedrops |
Clears item drops in the area |
removebirds / removefish |
Removes active birds or fish |
forcedelete [radius] [name] |
Deletes objects within up to 50 metres. Will not touch players, tombstones, dungeons or boss stones |
find [text] [pingmax] |
Finds matching objects and pings them on the map |
Debug output
| Command | What it does |
|---|---|
printcreatures |
Counts and levels of active creatures |
printlocations |
Loaded locations with distances |
dpsdebug |
Toggles DPS debug printing |
gc |
Garbage collection stats |
time |
Current time, and whether sleeping is possible |
Spawning items and creatures
spawn takes a prefab name, not a display name β spawn Blackmetal 50 works, "spawn black metal" does not. Amount and level are optional, and level applies to creatures.
spawn Blackmetal 50
spawn Wolf 3 2
spawn SwordBlackmetal 1 Two behaviours are worth knowing before you spam it:
- A trailing
*is a wildcard.spawn Sword*spawns every prefab whose name contains "Sword", which is rarely what you meant. - Items are spawned one at a time before they stack. Very large amounts, or high-level creatures that drop thousands of items on death, can freeze the game outright.
If you cannot remember a prefab name, find [text] locates matching objects already in the world, and the game's own help output is the most current list your build has.
Achievements and cheat commands
Valheim 1.0 arrives on 9 September 2026 and brings achievements with it. Iron Gate has also built a system that detects cheating and locks achievements out, and its wording matters to server owners because the lock is not confined to the person who typed the command.
Iron Gate's Valheim 1.0 FAQ, dated 1 July 2026, in full:
"There is a system in place to prevent achievements from being unlocked if you have cheats enabled. Some devcommands, such as βfreeflyβ will be exceptions, but using most commands (such as βspawnβ) will place a flag on your current character and world save, informing you that it is permanently locked from getting any achievements. Characters that have used cheats before 1.0 will also be marked in this way. There will also be a confirmation required to enter a cheated state after 1.0, to prevent you from accidentally marking out your character and world as cheated. Items that have been spawned in will also be marked in this way. If a non-cheated player character picks up a cheated item, they will enter a temporary cheat state. Temporarily cheated characters are locked out from unlocking achievements while in this state, and can become eligible for achievements again if they throw out all cheated items from their inventory. Cheated items will be visibly marked as such. Some world modifiers such as hammer-mode will also lock achievements. Hammer-mode counts as a temporary cheat."
Unpacked:
| What | Iron Gate's position |
|---|---|
| What gets flagged | Your current character and world save β both, not only the character that ran the command |
| For how long | "Permanently locked" for that character and that world save. No way to clear it is documented |
| Which commands | "Most commands (such as spawn)". freefly is named as an exception |
| Characters that already cheated | "Characters that have used cheats before 1.0 will also be marked in this way" β the marking is retroactive |
| Spawned items | Flagged too, and visibly marked. A clean character who picks one up enters a temporary cheat state and becomes eligible again once every cheated item is thrown out |
| World modifiers | "Some world modifiers such as hammer-mode will also lock achievements", counted as a temporary cheat rather than a permanent flag |
| Accidents | 1.0 asks for a confirmation before you enter a cheated state |
The line to read twice is "and world save". Achievements are usually a single-player concern; this one is not. One admin running spawn once marks the world for everybody who plays on it, permanently, and cheated items spread the temporary version of the state to players who never opened a console.
On a dedicated server this reaches you through mods and through players
Vanilla dedicated servers already refuse cheat commands, as the table at the top of this page sets out, so the risk is not an admin typing
spawninto a stock server β it cannot be done. It arrives two other ways: the Server devcommands mod below, which exists precisely to lift that restriction, and players who bring an already-marked character or a spawned item onto your world from somewhere else.
It is retroactive, so on an old world the decision may already be made
Iron Gate is explicit that characters which used cheats before 1.0 are marked as well. If your world has ever had items spawned into it β the ordinary case on a server that has been running for a year β treat its achievements as gone on day one. There is no documented way to lift the flag. If achievements matter to your players, plan a fresh world rather than a fix, and see Managing your Valheim server for the 1.0 checklist.
What Iron Gate has not said
The FAQ names "hammer-mode" as an achievement-locking world modifier. Iron Gate's dedicated server guide separately lists
Hammeras a valid-presetvalue, but that guide is dated April 2024, predates achievements entirely, and nowhere connects the two names. We are not going to tell you they are the same setting on the strength of a matching word. If you run a preset on a build server and you want achievements, check in game after 1.0 rather than assuming it either way.
None of this is a reason to stop documenting or using these commands. Restoring something a bug ate, testing a build, setting up an event β all still valid, and the moderation commands in the admin table are untouched by any of it. It is simply a choice with a price attached, and now you can see the price before you pay it.
Getting cheat commands onto a dedicated server
There is no launch flag, config key or admin permission that unlocks cheats on a dedicated server. The community answer is Server devcommands by JereKuusela, on Thunderstore, which is by some distance the most widely used mod in this space.
Two details people get wrong:
- It goes on the admin's game client first. Most of it works from the client alone. The author's own install line is "on the admin client and optionally on the server", with a server-side copy needed for full features β
findis the one the current documentation calls out explicitly as needing it. Older guides circulate a fixed seven-command list; that came from mod version 1.53.0 and the current release no longer publishes one, so check the version you are installing rather than trusting a copied list. - You still have to be in
adminlist.txt. The mod checks admin status; it does not grant it.
Because it is a BepInEx plugin, the server side needs BepInEx running. Our mods guide covers the panel's server type options and how to get plugins into BepInEx/plugins/.
Back up the world before you add any mod
A misbehaving plugin can corrupt a world file, and cheat commands like
locationandnextseedpermanently disable saving for that session by design. Take a snapshot first β the maintenance guide covers the routine.
Does Valheim have RCON?
No. Vanilla Valheim has no remote console protocol, which is why there is no web console command box for it the way there is for Rust or ARK. Administration happens either in game through the console, or through the panel's own power and file controls.
Community plugins such as ValheimRcon add a Source-style RCON listener on top of BepInEx if you genuinely need scripted remote administration. Treat it the way you would any port you expose deliberately: it is a remote command channel, so give it a strong password.
What changes at Valheim 1.0
Iron Gate has confirmed that Valheim 1.0, with the Deep North biome, releases on 9 September 2026, ending five and a half years of early access. Alongside the existing PC, Linux, Mac and Xbox versions it adds PlayStation 5 and Nintendo Switch 2, with full crossplay across every platform β see Is Valheim Crossplay? PC, Xbox, PS5 & Switch 2 Explained for what that means for a dedicated server, and Valheim 1.0: What Changes for Server Owners for the decisions worth making before the day rather than during it.
1.0 also adds achievements, and with them a cheat flag that attaches to the world save rather than to one player β Achievements and cheat commands above covers what triggers it and what it costs.
The other practical consequence for server owners is identity. More platforms means more players whose IDs are not SteamID64s, which makes the [Platform]_[User ID] format in adminlist.txt the safe habit to be in now rather than after launch. Expect a burst of incompatible version reports on the day as well, since clients update themselves and a server only picks the new build up when it restarts β Valheim version mismatch and update problems covers that and the four faults that impersonate it.
Version this page was checked against
Commands here were verified against Valheim 0.221.12, the current stable build at the time of writing, with 0.221.13 on the public test branch. A biome update of Deep North's size usually adds prefabs and occasionally adds commands, so re-run
helpin your own console after 1.0 lands.
FAQ
Why don't console commands work on my Valheim server?
Almost certainly because you are trying to run cheat commands. spawn, god, fly and the rest are blocked on dedicated servers in vanilla Valheim, and admin rights do not override that. Admin commands like kick, ban and save do work. For cheats you need the Server devcommands mod.
Do I still need the -console launch option?
Not on current builds. Patch 0.221.4 added a developer console toggle to the Gameplay settings menu. -console still works and takes priority over the setting, so it remains the dependable option if you are on an older build.
How do I open the console on Xbox?
Enable it first in the gameplay settings menu, then open it with the LB + LT + Start controller combination β the same combination controller users press on PC. Xbox used to ship with the console enabled, but patch 0.221.4 (September 2025) disabled it by default and moved it behind the settings toggle.
What ID goes in adminlist.txt?
Iron Gate documents one Platform User ID per line in [Platform]_[User ID] form, case sensitive, for example Steam_76561197960287930. Older guides show the bare SteamID64 without the prefix. Press F2 in game and copy the ID exactly as it appears next to the player's name.
Do admin commands need devcommands first?
No. kick, ban, unban, banned, save and the world modifier commands work as soon as your ID is on the admin list. devcommands is only for cheats, and it does nothing for you on a dedicated server.
Do console commands disable achievements in Valheim 1.0?
Most of them do, from 9 September 2026. Iron Gate's 1.0 FAQ says using most commands β spawn is its own example β flags "your current character and world save" as permanently locked out of achievements, that characters which cheated before 1.0 are marked too, and that spawned items put anyone who picks them up into a temporary cheat state until they throw them away. freefly is named as an exception, and admin commands such as kick, ban and save are not cheats. Achievements and cheat commands has the full quote.
Can I spawn items on my dedicated server?
Only with a mod. Install Server devcommands on your admin client, make sure BepInEx is running server side, and add your ID to adminlist.txt. There is no vanilla route.
Where are the world files on a Valheim server?
In worlds_local/, as a matching .db and .fwl pair per world. Configuring your Valheim server covers switching worlds and wiping, and uploading your own .db/.fwl pair has a guide of its own.
Made with π by GameServerKings

Playing with friends?
Your own Valheim server is a world that stays up when you log off β nobody has to host it from their own PC, and it's there whenever your group wants to play.
From $9.00 /month