Enable the Valheim console on PC
For Steam, right-click Valheim, open Properties, and enter -console in Launch Options. Start the game, load a world, and press F5. Type help 1 through help 5 to read the commands available in the current build.
For the Microsoft Store PC version, create a shortcut to Valheim.exe, open the shortcut's properties, and append -console to the Target field. Launch through that shortcut. Platform controls can differ, so use the on-screen console support on console versions rather than assuming a PC key works.
Achievement warning for 1.0
Typing devcommands enables single-player cheats, but most cheat actions can permanently mark the current character and world after a confirmation warning. Spawned items are marked; a clean character that carries one is temporarily blocked from achievements until every cheated item is discarded.
Before using any world-changing command:
- Back up the world and character.
- Use a separate test world when possible.
- Read the confirmation prompt.
- Do not give spawned items to a completion-run character.
Server administration commands are a different category from single-player cheats. An authorized admin can kick or ban players without turning a multiplayer server into a creative test world.
Safe inspection and utility commands
| Command | Purpose |
|---|---|
help 1 to help 5 | Shows current command pages |
info | Prints system and game information |
pos | Prints player coordinates |
ping | Shows network latency |
save | Forces a world save |
time | Shows current in-game time |
freefly | Toggles the free camera |
ffsmooth 1 | Smooths free-camera movement |
Even a command that looks harmless should be checked against the in-game 1.0 confirmation and achievement panel. Iron Gate explicitly says only some commands, such as freefly, are exceptions to the cheat lock.
Common single-player devcommands
After entering devcommands, these current command families are commonly used in a disposable test world:
| Command | Example | Effect |
|---|---|---|
god | god | Toggles invulnerability |
heal | heal | Restores current health and stamina |
ghost | ghost | Makes nearby enemies ignore the player |
debugmode | debugmode | Enables debug controls such as free building and flight |
exploremap | exploremap | Reveals the full map |
resetmap | resetmap | Hides explored map data |
goto | goto 1000,2000 | Teleports to coordinates |
tod | tod 0.5 | Sets time of day; tod -1 restores normal time |
event | event EVENT_NAME | Starts the named event |
stopevent | stopevent | Stops the active event |
players | players 2 | Forces group difficulty scaling; 0 resets |
The exact event and object identifiers are data names, not natural-language labels. Run help in the live build rather than pasting an outdated identifier from a video.
Spawn syntax and irreversible risks
The current spawn pattern is spawn ITEM AMOUNT LEVEL. For example, spawn Wood 50 creates 50 Wood. Optional suffixes can attempt to pick up or equip a spawned object, but every spawned item can affect achievement eligibility.
Do not experiment with merchants, locations, bosses, or broad deletion commands in a valued world. Some spawned objects cannot be removed cleanly, and forcedelete can remove nearby world objects. A backup is the only reliable undo for an unknown command.
Server admin commands
| Command | Purpose |
|---|---|
kick NAME | Disconnects a player |
ban NAME | Adds a player to the ban list |
unban NAME | Removes a ban |
banned | Lists banned players |
save | Forces a world save |
lodbias VALUE | Adjusts visible detail distance |
Dedicated-server permissions come from adminlist.txt, bannedlist.txt, and permittedlist.txt. See the server settings guide before editing those files; adding one player to the permitted list blocks everyone else who is not listed.
Sources and review date
Last checked: September 17, 2026.
