← Blog

Valheim Console Commands: How to Enable Cheats and the Commands Worth Knowing (2026)

Valheim screenshot of a Viking player facing a giant creature on a snowy mountain
Image source: Valheim official Steam store screenshot (Iron Gate Studio)
Key takeaways
  • Valheim cheats turn on once you open the console and type devcommands. After that, commands like god, fly, heal and spawn work.
  • Using any cheat locks achievements for that character, so keep cheats for a practice world or building tests.
  • Record the whole session with DOR, then trim the scene you built with cheats and share it.

The short answer: Valheim console commands take three steps. Turn on the console in Settings under Gameplay, or add -console to the Steam launch options. Open it in game with F5.

Then type devcommands to activate cheats. That unlocks god mode (god), enemies ignoring you (ghost), flying (fly), a full heal (heal) and item creation (spawn). Treat commands as a single player tool.

On someone else's server or a dedicated server they will not work, so do not plan around them. Also, once you use a cheat, achievements are locked for that character. Below is which commands are worth using and when, plus how to turn a cheat built scene into a video. Everything here is as of November 24, 2026, and updates can change commands.

Bottom line: open the console, then type devcommands

Every Valheim cheat starts with devcommands. If commands do nothing, you most likely skipped that step. Commands typed in the chat box (opened with Enter) do not run, so use the console window.

To turn cheats off, type devcommands again. If you do not know which commands to learn first, seven cover most situations: god, heal, fly, spawn, tod, goto and exploremap. If you want to show a cheat assisted build or boss practice to friends, read how to share Valheim gameplay videos. Game info and DOR recording notes for the game are collected on the Valheim page.

How to turn cheats on and use them safely

  1. 1Enable and open the consoleTurn on Enable Console in Settings under Gameplay, or add -console to the launch options in the Steam library properties for Valheim. In game, press F5 to open the console. The chat box opened with Enter will not run commands.
  2. 2Type devcommandsEnter devcommands in the console to activate cheats. Type it again to switch them off. Commands entered before this step will not run.
  3. 3Use a practice world or a spare characterCheats lock achievements for that character, and items you spawn are marked as cheated. A practice world or a separate character keeps your main save clean.
  4. 4Set up the scene, then record the whole sessionUse god and tod to get the mood you want, then record the play. DOR detects a supported game when you launch it and records from launch to exit, so you do not need to press start. If you only need the last moments, see how to record the last 30 seconds on PC.
  5. 5Trim the part you want and share itRecordings collect in My Clips in the app. Trimming is covered in how to trim game clips, and you can save vertical 9:16 versions too.

Valheim console commands you will actually use

CommandWhat it doesUse it when
godPrevents death (you still take damage and stagger)Practicing boss patterns or filming a scene
ghostEnemies ignore youYou want to build or explore without interruptions
healRefills health and staminaRepeating a fight for practice
flyToggles flightBuilding tall or scouting terrain
spawn itemname amountCreates an itemTesting a build or gear without gathering
tod 0 to 1Sets time of day (0.5 is noon, -1 restores the cycle)You want a day or night look for filming
exploremapReveals the whole mapPlanning a route or finding biomes
goto x,yTeleports to coordinatesYou want to jump to a specific place

Check before you type a command

  • You opened the console with F5, not the Enter chat box
  • You typed devcommands first
  • You are in a practice world or on a spare character
  • The spawn item name is spelled and capitalized correctly
  • Recording is on if you are filming the scene
If you cannot remember an exact item name, type just the start of it. Adding an asterisk spawns every matching object, so be careful with large quantities.

Record and share your cheat scenes with DOR

DOR is a free Windows game recording app. When a supported game starts it is detected automatically and the whole session is recorded, and the recordings collect in My Clips. For Valheim, record your finished build or boss practice, then trim the scene you want yourself.

You can record, edit and share without a watermark, and DOR Studio handles joining clips, switching to 9:16, BGM and text. Export an mp4 or share a dor.gg link. Continue with how to share Valheim gameplay videos.

Recording that starts when your game does: free game recorder for PC →

DOR Clips

Valheim clips on DOR

More clips

Valheim videos recorded and posted by DOR users. Tap one to play it on dor.gg.

FAQ

FAQ

Do Valheim cheats remove my achievements?

They do not delete achievements you already earned. Using a cheat command locks achievement progress for that character. If achievements matter, keep cheats to a practice world.

Can I use console commands on a multiplayer server?

Assume you cannot on someone else's server. Dedicated servers do not run them without mods, and only a world you host yourself gets some effects. If you play with friends, warn them that picking up cheated items can affect their achievements too.

I typed a command and nothing happened.

Most often you typed in the chat box instead of the console, or skipped devcommands. Open the console with F5, enter devcommands, then try again.

Games

Related game guides

Read next

Related articles

Get started with DOR

Just launch the game and DOR records on its own, so you never miss a great play