How Do You Use Valheim Console Commands? Complete Guide
You use Valheim console commands by first enabling the console for your platform (Steam, Game Pass, Xbox, Mac, or dedicated server), then pressing F5 (or the controller combo on Xbox) and typing `devcommands` to access cheats. From there, you can reveal the map, teleport, adjust difficulty, spawn items, and toggle god mode or creative building. Always back up saves before experimenting, since commands can change worlds permanently, and the next sections show exactly how to do it safely.
Key Takeaways
- Enable the console per platform using `-console` in launch options (or button combo on Xbox), then open it in-game with F5 or the appropriate shortcut.
- Type `devcommands` every session to unlock cheats, and use `help` plus Tab autocomplete to see valid commands and correct syntax.
- Back up your save files and preferably test commands on separate worlds or characters to avoid corrupting main progress.
- Use exploration and build tools like `exploremap`, `goto`, `debugmode`, `fly`, and build mode (B) for creative construction and fast travel.
- Adjust gameplay difficulty and events with commands such as `players`, `DamageTaken`, `EventRate`, `event [name]`, and `randomevent` to customize challenge and encounters.
Valheim Console and Devcommands Setup by Platform

Whether you’re on Steam, PC Game Pass, Xbox, Mac, or running a dedicated server, setting up Valheim’s console and enabling `devcommands` always follows the same basic pattern: you first gain access to the developer console, then toggle it in-game and enter the cheat command.
On Steam, open Valheim’s Properties, add `-console` in Launch Options (General tab), start the game, press F5, type `devcommands`, press Enter, then F5 again.
On PC Game Pass, find Valheim.exe, create a shortcut, add ` -console` to the Target field, launch via that shortcut, then use F5 and `devcommands` as on Steam. This lets you access powerful tools like ghost mode and god mode once the console is active.
On Xbox, hold LB+RB+LT+RT+Menu, press A to open the keyboard, type `devcommands`, then close with the same button combo.
On Mac, run Terminal with the provided `-console` command or a saved automation, then use F5 and `devcommands`.
On servers, gain admin via `adminlist.txt`, then press F5 and use admin commands.
Safe Use, Risks, and World Impact of Console Commands

Although Valheim’s console and `devcommands` can be powerful tools for experimenting or speeding up progress, using them safely means treating every cheat as a potential risk to your world, your character, and even other players’ experiences. This caution is especially important because many commands were created for debugging purposes and aren’t designed as polished player-facing features.
Always back up your save files and consider creating separate worlds or characters just for testing. Use the `help` command first, learn the exact syntax, and toggle any command off by entering it again and confirming it shows `false`.
Because cheats only function in single-player, you might think they’re harmless, but anything you spawn there can be carried to multiplayer and unbalance shared servers.
Dev commands aren’t official features, lack safeguards, and can corrupt saves or permanently alter world modifiers and progression keys. Test commands one at a time, document your original settings, and avoid stacking multiple world-changing options.
If you bind commands to keys, label them clearly and monitor performance when debug tools run.
Core Valheim Console Commands for Survival

When you’re overwhelmed by Valheim’s harsh world, core survival console commands can keep your run from ending in a grave marker.
You’ll use them to secure health and resources, move and explore more safely, and control how dangerous your surroundings feel. Using “dev commands” to unlock cheat mode lets you access powerful tools like debug mode and “god” for invincibility.
Let’s look at the essential survival cheats, movement tools, and combat difficulty tweaks that matter most.
Essential Survival Cheat Commands
For longer campaigns, manage your Viking directly:
raiseskill, resetskill, or resetcharacter let you tune or completely reroll your stats. Using console cheats is generally safe in single-player, but remember that they can still affect your world in unexpected ways, so it’s wise to back up your save before experimenting.
Movement And Exploration Tools
While Valheim rewards careful planning and patience, its console gives you powerful movement and exploration tools to scout, relocate, and reshape your world on demand. Use them to test seeds, plan bases, or recover from bad spawns without wasting hours sailing or running. Cheats are officially limited to singleplayer mode, so reserve these tools for personal worlds or admin use rather than regular multiplayer play.
- Instant map control – `exploremap` reveals the world; `resetmap` hides it again. Use `find [text] [pingmax]` to mark targets, or `findtp [text]` to jump straight there.
- Targeted teleporting – `pos` shows your coordinates; `goto [x,z]`, `teleport`, and map `Ctrl + MMB` let you relocate precisely.
- Flight and free camera – Enable `debugmode`, then use `Z`, `fly`, and `freefly` for aerial scouting; `ffsmooth 1` refines camera movement.
- Creative surveying – `B` activates build-anywhere mode, `lodbias` boosts draw distance, and `Ctrl + F3` hides the HUD for clean views.
Combat And Difficulty Tweaks
Control challenge with players [number], world modifiers, and setworldpreset default to reset.
Trigger or stop raids with randomevent, event [name], stopevent, and clear clutter using removedrops.
Valheim Building and Creative Mode Console Commands

When you’re ready to build without limits, you can turn on Valheim’s creative tools and gain full control over your structures.
In this section, you’ll see how to enable creative build mode, use essential building-related commands, and manage useful debug keys for fast construction.
With these in place, you can test base designs, spawn materials, and shape the world exactly how you want it.
Enabling Creative Build Mode
Use this sequence to enable creative building:
- Type `devcommands` and confirm it returns “true” (repeat to turn cheats off).
- Type `debugmode` and wait for the “true” confirmation.
- Press B to toggle free build and access every piece without materials.
- Press Z to fly (Spacebar up, Ctrl down) and position builds precisely.
Essential Building Commands
To secure and tidy your build site, press K (or use killall) to clear enemies
and L to wipe nearby dropped items.
Debug Keys For Construction
Use these keys to streamline creative building:
- Press B to toggle free building so you can place any structure without resources or a workbench.
- Press Z to fly; use Spacebar to rise and Ctrl to descend for precise roof and tower work.
- Use Ctrl + MMB on the map to teleport around large projects.
- Hit Shift + C to lock in daytime while you build.
Valheim Map Reveal, Teleport, and World Control Commands

Although Valheim’s world normally demands slow, careful exploration, its console commands let you reveal the map, teleport across the landscape, and even reshape how the world behaves.
After you’ve enabled the console and typed `devcommands`, you can use `exploremap` to uncover the entire map, instantly showing all biomes and key locations in singleplayer. If you regret it or want a fresh start, type `resetmap` to restore full fog of war and make the world unexplored again.
Reveal the entire Valheim map with `exploremap`, then restore full mystery anytime using `resetmap`
For fast travel, first type `pos` to see your current coordinates, then use `goto [x,z]` to teleport to any spot, replacing the brackets with exact numbers.
World control commands give you even more flexibility. Use `location` to set a new spawn point.
Enable `freefly` for a flying free camera, then tweak its feel with `ffsmooth 1` for smooth movement or `ffsmooth 0` to turn smoothing off.
Valheim Combat, Events, and Difficulty Console Commands

Combat, events, and difficulty console commands in Valheim let you reshape the game’s challenge on the fly, whether you want a power trip or precise tuning.
These tools let you tweak combat balance, trigger raids, or fine‑tune world danger without restarting a save.
Use combat and player commands to dominate or practice safely:
- Turn on `god`, `ghost`, `heal`, `puke`, and `killall`/`K` to test weapons or survive brutal biomes, then reset when you’re done.
- Boost or shape your character with `raiseskill [skill] [value]`, flip your `model [0-1]`, check `pos`, or instantly `tame` nearby creatures.
- Drive the action using `event [event name]`, `randomevent`, `genloc`, `PlayerEvents`, and `EventRate` to control how often and what kind of threats appear.
- Adjust difficulty with `players [number]`, global keys like `DamageTaken`, `PlayerDamage`, `EnemyDamage`, `EnemySpeedSize`, `EnemyLevelUpRate`, plus presets from Very Easy to Very Hard, and world flags such as `PassiveMobs`.
Troubleshooting Common Valheim Console Command Problems

Many Valheim console issues come down to a few recurring mistakes: the console never actually enables, `devcommands` isn’t active, multiplayer limits block cheats, or a tiny typo breaks the syntax.
If F5 does nothing, close the game, open Steam > Valheim > Properties > Launch Options, and enter `-console` exactly (no quotes, no extra letters). Restart the game; if it still fails, temporarily remove mods.
Once the console opens, type `devcommands` every session. Don’t use the old `imacheater` command. If cheats suddenly stop, you may have toggled `devcommands` off by entering it twice.
If commands like `god` or `fly` don’t work, you’re likely on a multiplayer server; they only function in singleplayer. On servers, you’re limited to admin-style commands.
Always check capitalization (`HealthMead` vs `healthmead`) and use Tab autocomplete.
Use `help` to verify syntax, `clear` to reset clutter, and `cr` to unload assets if performance tanks.
Frequently Asked Questions
Can I Use Console Commands to Test Mods or Custom Content Safely?
Yes, you can safely test mods and custom content. Enable the console, type `devcommands`, then use debug, ghost, no resource, killall, and freefly to experiment freely without permanent world changes or survival risks.
Do Console Commands Work With Controller-Only Play on Steam Deck or Similar Devices?
Yes, they work. You enable the console via the Steam launch option, then open it with the controller combo (LB+LT+Start). You don’t need F5; you can run all normal commands once devcommands is active.
Are There Roleplay-Friendly Console Commands That Don’T Feel Like Full Cheating?
Yes. You can roleplay using say, s, w, ping, pos, fov, bind, unbind, clear, tutorialtoggle, nomap, find, sortcraft, and genloc; they tweak immersion without granting resources or invincibility.
How Do Console Commands Interact With Dedicated Server Backups and Rollback Strategies?
They’re just saved world state. When you use `save` before backups, you lock in console-made changes; rollbacks simply restore older world files, undoing later commands unless those actions existed when that specific backup was created.
Can I Restrict or Log Console Command Usage for Other Players on My Server?
You can’t natively restrict or log others’ console usage beyond admin control. You grant admin via adminlist.txt; non-admins can’t run powerful commands. For logging or stricter devcommands control, you’d need server-side mods or external tooling.
Conclusion
Now you know how to access Valheim’s console, use devcommands safely, and bend your world to your will. Whether you’re spawning gear, testing builds, or tweaking difficulty, you’ve got the tools to experiment without ruining your main save. Use a backup, stay organized with notes, and practice commands in a throwaway world first. With a bit of care, you’ll turn console commands into a powerful ally instead of a world-breaking risk.