Valheim Console Commands and Cheats: Full List (2026)
How to open the Valheim console and turn on cheats with devcommands. God mode, flying, item spawning and every console command explained, with one-click copy.
Opening the console and turning on cheats
Opening the console on Steam
- Right-click Valheim in your Steam library and choose Properties.
- In the General tab, type
-consoleinto Launch Options and close the window. - Start the game and press F5 in-game to open the console.
Turning on cheats: Type devcommands in the console and press Enter. Type it again to turn cheats off. Cheat commands only work in single-player or in a game you host yourself; they don't work on a dedicated server.
Debug mode: With devcommands on, type debugmode to unlock hotkeys such as flying and building without materials (see the table below).
PC Game Pass: Create a shortcut to Valheim.exe in the game's folder, add -console to the end of the shortcut's Target field and start the game from it. Xbox: In-game, hold LB + RB + MENU, then press A to bring up the keyboard.
No matching commands. Try another word.
Character and survival
These need devcommands turned on first.
| Command | What it does | |
|---|---|---|
god |
Toggles god mode. Your health never drops below 1. | |
ghost |
Ghost mode: enemies ignore you. | |
fly |
Toggles flying. Space goes up, Ctrl goes down. | |
nocost |
Build and craft without materials or a workbench. | |
heal |
Fully restores health, stamina and eitr. | |
puke |
Clears your food effects (vomit). | |
addstatus [name] |
Adds a status effect, e.g. Rested, Burning, Wet. | |
clearstatus |
Removes all status effects, good and bad. | |
setpower [name] |
Sets your Forsaken power and resets its cooldown, e.g. GP_Eikthyr. | |
raiseskill [skill] [amount] |
Raises a skill by the amount. Use All for every skill, a negative amount to lower it. | |
resetskill [skill] |
Sets a skill to 0. All resets every skill. | |
model [0-1] |
Switches the character model between masculine and feminine. | |
hair [hair#] |
Permanently changes your hair. Without a number it removes it. | |
beard [beard#] |
Permanently changes your beard. Without a number it removes it. | |
resetcharacter |
Careful Resets all of your character's data. | |
freefly |
Toggles the free camera. | |
ffsmooth 1 |
Smooths free camera movement. ffsmooth 0 turns it back to normal. |
Items and creatures
See the spawn list at the bottom of the page for item and creature names.
| Command | What it does | |
|---|---|---|
spawn [entity name] [amount] [level] |
Spawns an item or creature. Example: spawn Wood 50. Huge amounts or level 10+ creatures can freeze the game. | |
itemset [name] [keep] |
Gives a premade gear set (Meadows, Swamps, Mountains, Plains, Mistlands, Ashlands...). Without keep, your current items are dropped. | |
tame |
Tames all nearby tameable creatures. | |
killall |
Kills nearby enemies and tamed creatures (not players). | |
killenemies |
Kills nearby enemies only. | |
killtame |
Kills nearby tamed creatures. | |
aggravate |
Makes neutral creatures within 20 m hostile. | |
removedrops |
Removes item drops in the area. | |
forcedelete [radius=5] [*name] |
Careful Deletes objects within the radius (up to 50 m). With a name, only objects whose ID contains it. | |
removebirds |
Removes all active birds. | |
removefish |
Removes all active fish. | |
setfuel [value] |
Adds fuel to nearby fires (default 10). A negative value removes fuel. |
World, time and weather
| Command | What it does | |
|---|---|---|
tod [0-1] |
Sets the time of day: 0 and 1 are midnight, 0.5 is noon. -1 returns to normal. | |
time |
Shows the current time and whether you can sleep. | |
sleep |
Skips ahead one day. | |
skiptime [seconds = 240] |
Careful Skips time forward. Going back in time afterwards can break growth, smelters and spawns. | |
timescale [target = 1] [fadetime = 0] |
Sets the speed of time (up to 5x). 0 pauses the game. | |
env [env] |
Changes the weather: Clear, Rain, ThunderStorm, Snow, SnowStorm, Misty, Ashrain... | |
resetenv |
Returns the weather to normal. | |
wind [angle] [intensity] |
Sets wind direction (0-360) and strength (0-1). Example: wind 90 0.5 | |
resetwind |
Returns the wind to normal. | |
exploremap |
Reveals the whole map. | |
resetmap |
Hides the whole map again. | |
players [number] |
Scales difficulty as if this many players were present. 0 resets it. | |
event [name] |
Starts the named raid event. | |
randomevent |
Starts a random raid event. | |
stopevent |
Stops the current event. |
Position and teleporting
| Command | What it does | |
|---|---|---|
pos |
Shows your coordinates. | |
goto [x] [z] |
Teleports you to the coordinates. | |
find [text] [pingmax] |
Finds matching objects and pings them on the map. | |
findtp [text] |
Teleports you to the nearest matching object. | |
recall [name] |
Teleports matching players to you. Without a name, everyone. | |
location [name] |
Careful Spawns a location. Permanently disables saving! | |
location [name] SAVE |
Spawns a location without disabling saving. |
Advanced and debugging
| Command | What it does | |
|---|---|---|
debugmode |
Toggles debug mode (hotkeys below). | |
listkeys |
Lists all global keys (progress flags). | |
setkey [name] |
Adds a global key, e.g. to mark a boss as defeated. | |
removekey [name] |
Removes a global key. | |
resetkeys |
Careful Removes all global keys. | |
nextseed |
Careful Regenerates the next dungeon. Permanently disables saving! | |
genloc |
Redistributes all unplaced locations. | |
printcreatures |
Prints counts and levels of active creatures. | |
printlocations |
Prints loaded locations and their distance to you. | |
dpsdebug |
Toggles damage-per-second debug output. | |
gc |
Shows garbage collection info. | |
test [value] |
Toggles a test value, e.g. oldcomfort. |
Commands that don't need cheats
No devcommands needed. Type / in chat and press Tab to list them.
| Command | What it does | |
|---|---|---|
help [page] [pages = 5] |
Lists the available commands. | |
clear |
Clears the console window. | |
bind [keycode] [command] |
Binds a command to a key. Example: bind mouse4 cheer | |
unbind [keycode] |
Clears the binds on a key. | |
printbinds |
Lists your key binds. | |
resetbinds |
Removes all key binds. | |
fov [number] |
Changes the field of view. | |
lodbias [number] |
Sets draw distance (1-7). | |
maxfps [FPS] |
Sets an FPS limit. | |
exclusivefullscreen |
Switches between exclusive fullscreen and borderless. | |
info |
Prints system information. | |
ping |
Measures latency to the server. | |
die |
Kills your character. | |
resetspawn |
Resets your spawn point. | |
say |
Says a chat message. | |
s |
Shouts a chat message. | |
W [player name] |
Whispers to a player. | |
filtercraft [name] |
Filters the crafting list by text. | |
sortcraft [type] |
Sorts the crafting list by name, type, weight or count. | |
nomap |
Toggles map visibility. | |
noportals |
Toggles portals. | |
printseeds |
Prints seeds and positions of nearby dungeons. | |
resetknownitems |
Careful Resets your character's known items and recipes. | |
resetsharedmap |
Careful Clears the shared map on the cartography table. | |
resetplayerprefs |
Resets saved settings (not your save game). | |
tutorialreset |
Resets viewed tutorial messages. | |
tutorialtoggle |
Toggles tutorials. | |
hidebetatext |
Toggles the beta text. | |
cr |
Unloads unused assets. | |
optterrain |
Converts nearby old terrain edits (before 0.150.3) to the new system. | |
restartparty |
Restarts the PlayFab party network. |
Server admin commands
Only for players whose SteamID64 or Crossplay ID is in the admin list.
| Command | What it does | |
|---|---|---|
kick [name/ip/userID] |
Kicks a player. | |
ban [name/ip/userID] |
Bans a player. | |
unban [name/ip/userID] |
Unbans a player. | |
banned |
Lists banned players. | |
save |
Saves the world now. | |
setworldmodifier [name] [value] |
Sets a world modifier value. | |
setworldpreset [name] |
Resets world modifiers to a named preset. | |
resetworldkeys |
Resets world modifiers to default (doesn't touch progression). |
Emotes
Typed in chat, no cheats needed.
| Command | What it does | |
|---|---|---|
/wave |
Wave. | |
/sit |
Sit. | |
/challenge |
Challenge. | |
/cheer |
Cheer. | |
/nonono |
No no no. | |
/thumbsup |
Thumbs up. | |
/point |
Point. | |
/blowkiss |
Blow a kiss. | |
/bow |
Bow. | |
/cower |
Cower. | |
/cry |
Cry. | |
/despair |
Despair. | |
/flex |
Flex. | |
/comehere |
Come here. | |
/headbang |
Headbang. | |
/kneel |
Kneel. | |
/laugh |
Laugh. | |
/roar |
Roar. | |
/shrug |
Shrug. | |
/dance |
Dance. | |
/relax |
Relax. | |
/toast |
Toast. | |
/rest |
Rest. | |
/vibe |
Vibe. |
Debug mode hotkeys
| Key | What it does |
|---|---|
| B | Toggles creative building: no workbench or materials. |
| Z | Toggles flying. Space goes up, Ctrl goes down. |
| K | Kills nearby enemies (not tamed creatures). |
| L | Removes nearby item drops. |
| Ctrl + MMB | On the map, hold Ctrl and middle-click: teleports to the cursor location. |
| Shift + C | Sets the time to day. |
Spawn list: item and creature names
| Item / creature | Name (ID) | |
|---|---|---|
| Wood | Wood |
|
| Finewood | FineWood |
|
| Corewood | RoundLog |
|
| Ancient bark | ElderBark |
|
| Yggdrasil wood | YggdrasilWood |
|
| Stone | Stone |
|
| Flint | Flint |
|
| Resin | Resin |
|
| Coal | Coal |
|
| Leather scraps | LeatherScraps |
|
| Deer hide | DeerHide |
|
| Troll hide | TrollHide |
|
| Feathers | Feathers |
|
| Copper ore | CopperOre |
|
| Copper | Copper |
|
| Tin ore | TinOre |
|
| Tin | Tin |
|
| Bronze | Bronze |
|
| Scrap iron | IronScrap |
|
| Iron | Iron |
|
| Silver ore | SilverOre |
|
| Silver | Silver |
|
| Black metal scrap | BlackMetalScrap |
|
| Black metal | BlackMetal |
|
| Flametal ore | FlametalOreNew |
|
| Flametal | Flametalnew |
|
| Obsidian | Obsidian |
|
| Crystal | Crystal |
|
| Chitin | Chitin |
|
| Refined eitr | Eitr |
|
| Coins | Coins |
|
| Amber | Amber |
|
| Amber pearl | AmberPearl |
|
| Ruby | Ruby |
|
| Silver necklace | SilverNecklace |
|
| Iron sword | SwordIron |
|
| Silver sword | SwordSilver |
|
| Black metal sword | SwordBlackmetal |
|
| Black metal atgeir | AtgeirBlackmetal |
|
| Finewood bow | BowFineWood |
|
| Huntsman bow | BowHuntsman |
|
| Draugr fang | BowDraugrFang |
|
| Ironhead arrow | ArrowIron |
|
| Obsidian arrow | ArrowObsidian |
|
| Black metal shield | ShieldBlackmetal |
|
| Wolf armor chest | ArmorWolfChest |
|
| Padded cuirass | ArmorPaddedCuirass |
|
| Drake helmet | HelmetDrake |
|
| Lox cape | CapeLox |
|
| Linen cape | CapeLinen |
|
| Cooked boar meat | CookedMeat |
|
| Serpent stew | SerpentStew |
|
| Lox meat pie | LoxPie |
|
| Minor healing mead | MeadHealthMinor |
|
| Minor stamina mead | MeadStaminaMinor |
|
| Cart | Cart |
|
| Raft | Raft |
|
| Karve | Karve |
|
| Longship | VikingShip |
|
| Boar | Boar |
|
| Deer | Deer |
|
| Wolf | Wolf |
|
| Lox | Lox |
|
| Hen | Hen |
|
| Asksvin | Asksvin |
|
| Troll | Troll |
|
| Eikthyr (boss) | Eikthyr |
|
| The Elder (boss) | gd_king |
|
| Bonemass (boss) | Bonemass |
|
| Moder (boss) | Dragon |
|
| Yagluth (boss) | GoblinKing |
|
| The Queen (boss) | SeekerQueen |
|
| Fader (boss) | Fader |
FAQ
How do I open the console in Valheim?
Add -console to the game's Steam launch options, then press F5 in-game. See the steps above for Game Pass and Xbox.
I typed devcommands but cheats don't work. Why?
Cheat commands don't work on a dedicated server, only in single-player or a game you host. Also, typing devcommands a second time turns cheats off again.
Can cheats break my world?
Most commands are safe, but location and nextseed permanently disable saving, and skiptime, resetcharacter and forcedelete make changes that are hard to undo. Back up your world and character before using the commands marked with a warning on this page.
How do I write the item name when spawning?
Write it exactly as in the spawn list, e.g. spawn Wood 50 or spawn SwordIron 1. You can copy names from the list with one click.
Command names and syntax were compiled from Valheim Wiki (CC BY-SA); the explanations are ours. Commands can change when the game updates.