Valheim console commands: what works on a dedicated server

Valheim console commands and cheats for 1.0 (full list)

The Valheim console does two jobs: it runs cheats such as god mode, flying and item spawning, and it gives you a handful of practical commands for managing your game and server. Version 1.0, released on 9 September 2026, added a batch of new dev commands and, more importantly, achievements that cheating can lock you out of. Below you’ll find how to enable the console on every platform, a verified list of commands and how to keep your achievements safe.

How to enable the console in Valheim

Since the Call to Arms update (patch 0.221.4, 9 September 2025), the console is off by default and you switch it on in the game settings. No launch option needed:

  1. Open the game settings.
  2. On the Gameplay tab, turn on Enable Console.
  3. Once you’re in a world, press F5 to open the console.
  4. Type a command and hit Enter.

The old -console launch option still works and overrides the in-game setting. Where you add it depends on the store you bought the game from:

  • Steam: right-click Valheim in your library, open Properties and type -console into Launch Options. Then start the game from Steam.
  • Microsoft Store and PC Game Pass: in the game folder (default C:\XboxGames\Valheim\Content), create a shortcut to Valheim.exe. In the shortcut’s properties, add a space and -console to the end of the Target field, then launch the game through that shortcut.
  • Mac App Store: open Terminal and start the game with /Applications/Valheim.app/Contents/MacOS/Valheim -console.

On Xbox, PS5 and Switch 2 you open the console with a button combination on the controller. Xbox used to have the console enabled automatically; since Call to Arms you turn it on in the Gameplay settings there too. If the console still won’t open, work through Iron Gate’s official guide.

Cheats: devcommands and achievements

An enabled console doesn’t unlock cheats on its own. Type devcommands and press Enter first. Entering it again turns cheats off. They work reliably in single player; for servers, the guides from different outlets disagree.

Since 1.0, cheating comes at a price. Most commands, spawn included, permanently flag both your character and your world and lock them out of achievements. There are exceptions, freefly being one. To stop you from doing it by accident, the game asks you to confirm before you enter that cheated state. Characters that used cheats before 1.0 are flagged too.

Items created with cheats carry a “cheated item” label in your inventory. If a clean character picks one up, it enters a temporary cheat state and gets achievements back once every cheated item is out of its inventory. The hammer-mode world modifier also counts as a temporary cheat.

Already flagged and want your achievements back? Since hotfix 1.0.12 there’s yesiuseddevcommandsbutiwantmyachievementsanyway. It re-enables achievements even after cheats or mods. Whether you use it honourably is, as the developers put it, up to you.

Valheim cheats list

Every command in these tables needs devcommands first. Replace the values in square brackets with your own and leave out the brackets.

Character and combat

CommandWhat it does
godGod mode, you can’t die.
ghostEnemies ignore you.
flyToggles flying.
healRestores your health to max.
killallKills nearby enemies.
tameTames nearby animals.
raiseskill [skill] [amount]Raises a skill by the given amount.
resetskill [skill]Resets a skill to zero.
resetcharacterResets your character data. Use with care.

Map, movement and camera

CommandWhat it does
exploremapReveals the whole map.
resetmapHides the map again.
posPrints your coordinates.
goto [x,z]Teleports you to the coordinates.
locationSets your spawn point.
freeflyFree camera, handy for screenshots of your builds.
ffsmooth 1 / ffsmooth 0Turns smooth free camera movement on or off.

World, time and weather

CommandWhat it does
event [name]Starts the named event (raid).
randomeventStarts a random event.
stopeventStops the current event.
players [n]Scales difficulty as if n players were online; players 0 resets it.
tod [0-1]Sets the time of day: 0.5 is noon, 0 and 1 are midnight. tod -1 returns to the normal cycle.
wind [angle] [intensity]Sets wind direction and strength.
resetwindReturns the wind to normal.
removedropsDeletes items lying on the ground nearby.
nocostBuilding and crafting without materials.

Spawning items and debugmode

spawn [item] [amount] [level] drops an item or creature right in front of you. Keep in mind that spawn is exactly the kind of command that flags your character and world and blocks achievements.

debugmode switches on creative mode, where three keys do the work:

  • B: build without a workbench or materials.
  • Z: fly, Space to go up and Ctrl to go down.
  • K: kills enemies and creatures around you.

Deep North item IDs

Item IDs for the new Deep North biome still differ from site to site. One is solid: the new metal Bloodgold uses the ID gold, so spawn gold 20 gives you 20 Bloodgold. Check any other ID in the console before you rely on it.

General and server admin commands

Besides cheats, the console has a few commands that help in everyday play and when running a server:

CommandWhat it does
helpLists the commands available to you, with descriptions.
pingMeasures your latency to the server.
infoPrints system information.
saveSaves the world state immediately.
lodbias [number]Sets how far detail is rendered. Lower numbers mean a shorter draw distance, higher numbers a longer one.

Server admins also get player management commands in the console (F5):

  • kick [name/IP/ID] removes a player from the server.
  • ban [name/IP/ID] blocks a player.
  • unban [IP/ID] lifts a ban.
  • banned lists banned players.

To become an admin, add your ID to adminlist.txt in the server’s save folder. One ID per line in the format [Platform]_[ID], and it’s case-sensitive. You’ll find the ID in the server log or in game in the F2 panel. Since 1.0 there are also new IDs such as V_123456789; hotfix 1.0.12 made the ban list and whitelist work with older IDs like Steam_123456789 again.

Watch out for permittedlist.txt in the same folder: as soon as you add a single player to it, nobody else can join. Setup, ports, world presets and crossplay are covered in our dedicated server guide, and inviting console friends is explained on the cross-platform page.

New console commands in Valheim 1.0

Version 1.0 brought a long list of dev commands. According to the patch notes, you’ll find a description of each one by typing help in the console:

  • confirmcheats, achievements, getstat
  • haslocation, biomeinfo, altbiomes, findbiome, findbiometp
  • snow, height, updatecover
  • cinematic, cinematicsleep
  • inventorysize, inventoryclean, repairall
  • clearpopups, resetbuildui, pevents

Since patch 1.0.14, pevents sits behind the devcommands toggle and won’t run without it. Two older, officially added commands are worth knowing as well: sortcraft sorts the crafting menu and resetskill all wipes every skill at once. For everything else that changed, see our Valheim 1.0 update overview, and more guides live in the Valheim hub.

If you are starting out or coming back after a break, go through the biome order, the boss guides from Eikthyr to Fader and our food guide, so you know what to bring into the next biome.

FAQ

How do I open the console in Valheim?

Turn on Enable Console on the Gameplay tab of the settings, then press F5 in a world. On Steam you can add the -console launch option instead, which overrides the setting. On consoles you open it with a button combination on the controller.

How do I turn on cheats in Valheim?

Open the console, type devcommands and press Enter. That unlocks cheats such as god, fly and spawn. The same command turns them off again.

Do cheats disable achievements in Valheim?

Most cheats permanently flag your character and world and block achievements; freefly is one of the exceptions. The game asks you to confirm first. Since hotfix 1.0.12 you can opt back in with yesiuseddevcommandsbutiwantmyachievementsanyway.

Do cheats work on a dedicated server?

They work reliably in single player. For servers, guides disagree, so don’t count on them there. Server admins can use kick, ban, unban and banned.

How do I make myself admin on a Valheim server?

Add your ID to adminlist.txt in the server’s save folder, one ID per line in the format platform, underscore, number. You’ll find it in the server log or in the F2 panel in game, and it’s case-sensitive.

Information verified on 26 September 2026.

Leave a Comment

Your email address will not be published. Required fields are marked *

Shopping Cart
Scroll to Top