A small typo can stop a Valheim command from working, while an outdated entry may leave you searching for a problem that no longer applies.
Valheim console commands can create items, adjust world settings, uncover the map, activate debug tools, and support basic server management.
This blog separates standard commands, developer cheats, and server controls for faster reference.
It also flags commands that may affect saves or achievement access. Start with the setup steps for your platform, then check each command.
Know Which Valheim Codes Work in Each Mode
Valheim commands fall into four main groups based on how they are activated and what they control.
Console, chat, and display utilities usually need no special activation and cover information, communication, or screen settings.
Developer cheats require the devcommands command and allow changes to characters, worlds, time, and spawned content.
Debug controls become available through debugmode and provide keyboard shortcuts for building or testing.
Identifying the correct group helps you activate and use each command properly.
Enable the Valheim Console on Your Platform
The console must be available before a code can run. The correct setup depends on the store and device used to launch Valheim.
Steam
Open the Steam Library, right-click Valheim, select Properties, and enter -console under Launch Options. Start the game through Steam and press F5 after entering a world.
Microsoft Store and PC Game Pass
Create a shortcut for Valheim.exe , open its properties, and add a space followed by -console at the end of the Target field. Start Valheim from that shortcut, then press F5.
Xbox
The console is enabled by default. Iron Gate currently states that LB + LT + Start opens it when using a controller.
Check the current developer-mode instructions if the input changes after an update.
Mac App Store
Open Terminal and run /Applications/Valheim.app/Contents/MacOS/Valheim -console . Press F5 after the world loads. Function mode may need to be turned off if the key does not respond.
Once the console opens, enter help to see the commands available in the installed version.
Turn On Cheats and Protect Your Save

Image Source: PCmag
Basic chat and information tools usually work without developer mode. Most gameplay-changing codes require one additional command, and several can permanently alter a character or world.
Enter a world and open the console.
Type
devcommandsand press Enter.Confirm that the console reports developer commands are enabled.
Enter
devcommandsagain when the cheats are no longer needed.
The older imacheater code is no longer used. Back up an important save before running resetcharacter , resetkeys , forcedelete , location , genloc , or nextseed .
This short check separates ordinary console functions from actions that change saved data. The remaining sections identify which commands need developer access.
Player, Chat, and Display Commands
These entries cover console information, display settings, key bindings, chat, and gestures. Availability can differ between builds, so use help when an entry does not respond.
| Command | Purpose |
help [page] [count] | Shows available commands |
clear | Clears visible console text |
info | Shows system information |
ping | Checks connection delay |
lodbias [value] | Changes draw distance |
fov [value] | Changes field of view |
bind [key] [command] | Assigns a command to a key |
unbind [key] | Removes one key assignment |
printbinds | Lists assigned command keys |
resetbinds | Removes command key assignments |
resetspawn | Clears the current spawn point |
respawn | Kills and respawns the character |
tutorialreset | Resets viewed tutorial messages |
tutorialtoggle | Turns tutorial messages on or off |
hidebetatext | Hides or shows beta text |
/say [text] | Sends nearby chat |
/shout [text] | Sends server-wide chat |
/whisper [text] | Sends very short-range chat |
/wave , /sit , /dance | Runs the named gesture |
/challenge , /cheer | Runs the named gesture |
/nonono , /thumbsup , /point | Runs the named gesture |
Commands such as nomap , noportals , optterrain , and printseeds may appear as utility or testing entries in certain builds. Confirm their access requirements through the installed command list before use.
Valheim Developer Cheat Commands

Image Source: Theorycraft
Enter devcommands before using the codes in this section. Brackets identify values that must be replaced and should not be typed as part of the command.
Character, Health, and Skill Changes
These entries alter the active character, equipment, skills, status effects, or selected Forsaken power.
| Command | Effect |
god | Toggles damage protection |
ghost | Stops enemies from targeting the character |
fly | Toggles character flight |
heal | Restores health, stamina, and eitr |
puke | Empties the stomach and returns health and stamina to unfed base values |
raiseskill [skill] [amount] | Adds skill levels, such as raiseskill Run 20 |
resetskill [skill] | Resets one skill, such as resetskill Swords |
resetcharacter | Clears character data and inventory |
addstatus [effect] | Applies a named status effect |
clearstatus | Removes active status effects |
setpower [name] | Sets a Forsaken power and resets its activation cooldown |
model [0/1] | Changes the character model |
hair [value] | Changes the hairstyle |
beard [value] | Changes the beard |
itemset [name] [keep] | Gives a preset equipment set |
Use exact internal names for skills, powers, effects, and item sets. Test permanent character changes on a separate save first.
Map, Position, and Camera Controls
These commands change location, map visibility, search results, or the active camera.
| Command | Effect |
pos | Prints current coordinates |
goto [x] [z] | Teleports to coordinates, such as goto 1000 500 |
recall [name] | Moves a player to your position |
find [text] [max] | Finds matching objects and displays their locations |
findtp [text] | Moves to a matching object |
location [name] [SAVE] | Creates a named location |
exploremap | Reveals the full map |
resetmap | Hides previously revealed areas |
freefly | Toggles the free camera |
ffsmooth [0-1] | Changes free-camera smoothing |
Use the SAVE argument only when the installed build supports it. Location testing can stop normal world saving when the command is entered incorrectly.
Time, Weather, Events, and World State
These entries affect the world clock, weather, raids, difficulty scaling, and global progression keys.
| Command | Effect |
tod [0-1] | Sets the time of day; use tod -1 to restore the normal cycle |
timescale [value] [fade] | Changes game-time speed with an optional transition period |
skiptime [seconds] | Moves time forward |
sleep | Skips one day; timed world processes may take time to catch up |
wind [angle] [intensity] | Sets wind direction and intensity |
resetwind | Restores normal wind |
env [name] | Sets a named weather environment |
resetenv | Restores normal weather |
event [name] | Starts a named event |
randomevent | Starts a random event |
stopevent | Stops the active event |
players [number] | Simulates a player count for difficulty scaling; use players 0 to reset |
setkey [name] | Adds a global progression key |
removekey [name] | Removes one global key |
listkeys | Lists active global keys |
resetkeys | Removes every global key |
save | Forces a world save |
World keys control progression and raid conditions. Record the existing keys before removing or resetting them.
Building, Spawning, and Creature Controls
These commands handle construction, object creation, creatures, dropped items, and nearby fuel-burning objects.
| Command | Effect |
nocost | Toggles no-cost building and crafting |
debugmode | Enables debug hotkeys |
spawn [id] [amount] [level] | Creates an item or creature |
forcedelete [radius] [name] | Deletes matching nearby objects |
setfuel [value] | Adds fuel to nearby fuel-burning objects |
tame | Tames nearby eligible creatures |
aggravate | Angers nearby neutral creatures |
killall | Kills nearby enemies and tamed creatures but not players |
killenemies | Kills nearby enemies |
killtame | Kills nearby tamed creatures |
removedrops | Deletes nearby dropped items |
removebirds | Removes active birds |
removefish | Removes active fish |
forcedelete , killall , and the removal commands can cause immediate losses. Check the radius and target before pressing Enter.
Build-Specific Testing Commands
These advanced entries are not consistently available or identical in every release. Confirm each one through help before using it.
| Command | Common Function |
time | Displays world-time information |
dpsdebug | Toggles the damage readout |
printcreatures | Prints active creature data |
printlocations | Prints loaded location data |
gc | Displays memory-cleanup information |
genloc | Regenerates unplaced location data |
nextseed | Changes the next dungeon seed |
Keep these entries away from an established world unless their behavior has been checked in a temporary copy of the same game build.
Item and Creature Spawn Codes

Image Source: DualShockers
The spawn command uses an internal ID, followed by optional amount and level values. Because IDs are case-sensitive, enter each one exactly as listed.
spawn [ID] [amount] [level]
For example, spawn Wood 50 creates 50 wood, while spawn SwordIron 1 creates one iron sword.
Entering spawn Wolf 1 3 produces one two-star wolf because a creature’s level is one higher than its star count. Level settings mainly apply to creatures.
Spawned items and creatures generally appear near your character, so begin with small amounts to prevent clutter or performance problems.
Common Spawn IDs
The following IDs cover frequently requested resources, equipment, food, tools, and creatures.
| Type | IDs |
| Resources | Wood , Stone , CopperOre , IronScrap , SilverOre , BlackMetalScrap |
| Food | CookedMeat , Bread , SerpentStew , LoxPie |
| Weapons | SwordIron , AxeBlackMetal , BowHuntsman , MaceSilver |
| Armor | ArmorIronChest , ArmorWolfChest , HelmetDrake , ArmorCarapaceChest |
| Tools | Hammer , Hoe , Cultivator |
| Creatures | Boar , Wolf , Troll , Goblin , Seeker |
Major updates can add or rename internal entries. Confirm unfamiliar IDs before creating large quantities or high-level creatures.
Debug Mode Hotkeys
Debug mode replaces several typed actions with keyboard controls during repeated testing. Enter debugmode , then use the available input while playing on PC.
- Press
Zto turn flight on or off, allowing your character to move freely through the air during testing sessions. - Press
Kto instantly eliminate nearby enemies, which can help clear an area when testing structures, terrain, or other features. - Press
Bto toggle no-cost building, letting you place construction pieces without using the required materials while testing creative designs. - Press
Lto remove nearby dropped items in builds that support this cleanup shortcut, helping reduce clutter around your character. - Hold
Ctrland middle-click a map location to teleport there instantly in game builds that support this debug travel shortcut.
Enter debugmode again after testing. The L key and map teleport can vary between releases, so confirm them in a copied world before relying on either input.
Admin Commands for Valheim Servers
Dedicated-server administration uses a smaller command set. The player’s platform ID must appear in adminlist.txt before administrator controls work.
kick [name]: Removes the selected player from the active server session.ban [name]: Prevents the selected player from joining the server.unban [name]: Removes the selected player from the server’s ban list.banned: Displays a list of all players currently banned from the server.
Iron Gate’s dedicated-server instructions explain adminlist.txt , bannedlist.txt , and permittedlist.txt . Standard developer cheats do not run on dedicated servers without unofficial third-party tools.
Fix Valheim Commands That Do Not Work
Most failures come from launcher setup, permissions, spelling, or game-mode restrictions. Match the symptom below before changing several settings at once.
| Problem | Check |
| F5 does nothing | Confirm -console and launch from the configured shortcut or store |
| Laptop key fails | Turn off Function mode or press Fn + F5 |
| Cheat returns nothing | Enter devcommands and confirm it is enabled |
| Spawn fails | Check the ID, capitalization, amount, and spaces |
| Admin command fails | Confirm the platform ID appears in adminlist.txt |
| Dedicated-server cheat fails | Use only the supported administrator commands |
| Old instructions fail | Replace imacheater with devcommands |
| Game slows after spawning | Remove excess objects or restore a backup |
Test one correction at a time so the cause remains clear. Run help after an update when a previously working command disappears.
Achievement and Save Warnings
Cheats can affect more than the current session. Some commands alter characters, world flags, placed objects, or future achievement eligibility.
Iron Gate states in the Valheim 1.0 FAQ that most cheats, including spawn , will permanently mark the character and world after version 1.0 releases on September 9, 2026.
Characters that used cheats before version 1.0 will also be marked. Picking up a marked item creates a temporary cheated state until all marked items are discarded.
Hammer mode creates a temporary block, while some tools such as freefly are exceptions.
Use a separate character and copied world when achievements or an established base matter. This keeps permanent experiments away from the main save.
Wrapping Up
Valheim console commands work best when you choose entries suited to your platform, game mode, and installed version.
Begin with the help command, activate developer access only when needed, and enter internal IDs using the exact capitalization listed in the tables.
Dedicated server moderation should remain separate because official servers support only approved admin commands unless third-party tools are installed.
Save this page for later building, recovery, or testing, and share your command, platform, and results in the comments.
Frequently Asked Questions
Can Other Players See What You Type?
Successful developer console commands usually stay out of chat, though players may notice their effects on weather, creatures, buildings, time, or progression.
Can Console Entries Be Copied and Pasted?
PC players can usually paste commands normally. Xbox often uses an on-screen keyboard. Remove quotes, formatting, or hidden spaces if commands fail.
Are Character Changes Shared Between Different Saves?
Character skills, inventory, and appearance generally transfer between worlds, while structures, terrain, events, objects, and progression remain tied to each world.












