Skip to main content

Black Week: 10% extra from 3 months paid upfront, no code. Until Monday, 23:59. 2 days left.

All deals

Valheim Console Commands

Every Valheim console command and cheat, searchable and ready to copy: admin commands for your server kept apart from the cheats that need devcommands.

Using the commands on your server

  1. Add your Steam ID (Steam_7656…) to the server admin list. Valheim reloads adminlist.txt without a restart.
  2. Launch Valheim with the -console launch option (Steam: right-click Valheim, Properties, Launch Options).
  3. Press F5 in game to open the console and type the command. Unlock cheats with devcommands first.

The server console in the panel does not accept Valheim commands: the Valheim dedicated server reads no input. Type commands in game with F5 instead.

Server and admin 12

These commands act on the server. On a rented server you need an entry in the admin list.

  • kick [name/ip/userID]

    Kicks a player from the server by name, IP or user ID.

    runs on the server

  • ban [name/ip/userID]

    Bans a player by name, IP or user ID.

    runs on the server

  • unban [ip/userID]

    Lifts a ban by IP or user ID.

    runs on the server

  • banned

    Lists the banned players.

    runs on the server

  • save

    Saves the world now and restarts the save interval.

    runs on the server

  • optterrain

    Optimizes old terrain modifications in the world.

    runs on the server

  • genloc

    Regenerates all locations in the world (dungeons, altars, traders).

    runs on the server

  • resetworldkeys [name]

    Resets all world modifiers to default.

    runs on the server

  • setworldpreset [name]

    Sets the world modifiers to a named preset.

    runs on the server

  • setworldmodifier [name] [value]

    Sets a single world modifier to a value.

    runs on the server

  • restartparty

    Restarts the PlayFab party network (crossplay).

    runs on the server

  • noportals

    Turns portals off on the server.

    admin only

Cheats (devcommands) 85

Only available after devcommands. On a server, the game accepts devcommands from admins only.

  • dpsdebug

    Toggles a damage-per-second readout for testing.

    devcommands

  • gc

    Shows garbage collector information.

    devcommands

  • cr

    Unloads unused assets from memory.

    devcommands

  • players [nr]

    Sets the difficulty as if that many players were present. 0 resets it.

    devcommands runs on the server

  • setkey [name]

    Sets a global world key, such as a defeated boss.

    devcommands runs on the server

  • removekey [name]

    Removes a global world key.

    devcommands runs on the server

  • resetkeys [name]

    Resets all global world keys.

    devcommands runs on the server

  • setkeyplayer [name]

    Sets a key for your character only.

    devcommands

  • removekeyplayer [name]

    Removes a key from your character.

    devcommands

  • listkeys

    Lists the keys set on the world and your character.

    devcommands runs on the server

  • debugmode

    Turns on debug mode, which includes flying.

    devcommands

  • fly

    Toggles flying.

    devcommands

  • nocost

    Build and craft without material costs.

    devcommands

  • raiseskill [skill] [amount]

    Raises a skill by an amount.

    devcommands

  • resetskill [skill]

    Resets a skill.

    devcommands

  • sleep

    Skips the night to the next morning.

    devcommands runs on the server

  • yesiuseddevcommandsbutiwantmyachievementsanyway [1 = true/ 0 = false]

    With 1, cheated items and pieces trigger achievements too; with 0 they do not.

    devcommands

  • skiptime [gameseconds]

    Skips game time ahead by that many seconds.

    devcommands runs on the server

  • time

    Shows the current game time.

    devcommands

  • resetcharacter

    Resets your character data.

    devcommands

  • timescale [target] [fadetime, default: 1, max: 5]

    Changes the game speed, optionally with a fade time (default 1, max 5).

    devcommands

  • randomevent

    Starts a random event, such as a raid.

    devcommands

  • event [name]

    Starts a specific event by name.

    devcommands

  • stopevent

    Stops the current event.

    devcommands

  • removedrops

    Removes all dropped items in the area.

    devcommands

  • removefish

    Removes all fish.

    devcommands

  • printcreatures

    Shows counts and levels of active creatures.

    devcommands

  • printnetobj [radius = 5]

    Counts the network objects around you by name (radius 5 by default).

    devcommands

  • removebirds

    Removes all birds.

    devcommands

  • printlocations

    Shows the number of loaded locations.

    devcommands

  • find [text] [pingmax]

    Searches loaded objects and locations by name and pings them on the map. With pingmax above 1 it places map pins.

    devcommands

  • findtp [text] [index=-1] [closerange=30]

    Searches objects and locations by name and teleports you to the closest one outside closerange. An index picks another match.

    devcommands

  • setfuel [amount=10]

    Refuels all light sources (10 by default).

    devcommands admin only

  • location [SAVE*]

    Spawns a location at your position. Caution: saving stays disabled for good unless you add SAVE.

    devcommands admin only

  • haslocation

    Checks whether the current zone has a location.

    devcommands

  • vegetation

    Spawns plants and vegetation.

    devcommands admin only

  • nextseed

    Forces the seed of the next dungeon. Caution: saving stays disabled for good.

    devcommands admin only

  • spawn [amount] [level] [radius] [p/e/i]

    Spawns items or creatures with amount, level and radius. A star at the end of the word spawns every match, p picks up, e equips, i only if you have none yet.

    devcommands admin only

  • catch [fishname] [level]

    Simulates catching a fish of a given type and level.

    devcommands

  • itemset [name] [item level override] [keep]

    Spawns a premade gear set. Add keep to hold on to your current items.

    devcommands admin only

  • pos

    Shows your current position.

    devcommands

  • recall [*name]

    Pulls players to you, optionally only those with a matching name.

    devcommands admin only

  • goto [x,z]

    Teleports you to the coordinates x,z.

    devcommands admin only

  • exploremap

    Reveals the whole map.

    devcommands

  • resetmap

    Resets the explored map.

    devcommands

  • puke

    Empties your stomach, removing all food effects.

    devcommands admin only

  • tame

    Tames all tameable creatures nearby.

    devcommands admin only

  • aggravate

    Makes all neutral creatures nearby hostile.

    devcommands admin only

  • killall

    Kills all creatures nearby.

    devcommands admin only

  • killenemycreatures

    Kills all hostile creatures nearby.

    devcommands admin only

  • killenemies

    Kills all enemies nearby.

    devcommands admin only

  • killtame

    Kills all tamed creatures nearby.

    devcommands admin only

  • heal

    Restores health and stamina fully.

    devcommands admin only

  • adrenaline

    Sets the adrenaline level.

    devcommands admin only

  • god

    Invincible.

    devcommands admin only

  • ghost

    Ghost mode: creatures do not notice you.

    devcommands admin only

  • nospawn

    Toggles natural monster spawning.

    devcommands

  • beard

    Changes the beard.

    devcommands

  • hair

    Changes the hairstyle.

    devcommands

  • model

    Switches the player model.

    devcommands

  • tod

    Sets the time of day from 0 to 1 (0.5 is noon). -1 releases the time again.

    devcommands

  • env [env]

    Forces a weather or environment by name.

    devcommands

  • snow [amount]

    Adds or removes snow on nearby building pieces.

    devcommands

  • updatecover

    Recalculates cover (weather protection).

    devcommands

  • resetenv

    Lifts the forced weather.

    devcommands

  • cinematic [name]

    Plays a cinematic by name.

    devcommands

  • unlockcinematics

    Toggles unlocking all cinematics in the main menu.

    devcommands

  • inventorysize

    Changes the inventory size.

    devcommands

  • cinematicsleep [name]

    Plays a cinematic for everyone on the next sleep.

    devcommands

  • wind [angle] [intensity]

    Sets wind direction (angle) and intensity.

    devcommands

  • resetwind

    Releases the wind again.

    devcommands

  • clearstatus

    Removes all status effects.

    devcommands admin only

  • addstatus [name]

    Adds a status effect, e.g. Rested, Burning, SoftDeath or Wet.

    devcommands admin only

  • setpower [name]

    Sets your guardian power and resets its cooldown, e.g. GP_Eikthyr or GP_TheElder.

    devcommands admin only

  • pevents

    Controls events with the subcommands list, start, stop and here.

    devcommands admin only

  • tombstone [name]

    Creates a tombstone with a name.

    devcommands admin only

  • forcedelete [radius] [*name]

    Removes all objects in a radius (5 by default, max 150), only matching ones if you give a name. Careful, make a backup first.

    devcommands admin only

  • stopfire

    Puts out all spreading fires and smoke.

    devcommands admin only

  • stopsmoke

    Puts out all spreading fires.

    devcommands admin only

  • repairall

    Repairs all equipment.

    devcommands

  • respawntime

    Sets the respawn wait time.

    devcommands

  • biomeinfo

    Shows information about the current biome sector.

    devcommands

  • altbioms

    Lists biomes with modifiers.

    devcommands

  • findbiome

    Marks the center of every biome of a type on the map.

    devcommands

  • findbiometp

    Finds the closest matching biome and teleports you there.

    devcommands

General 33

Work without admin rights or devcommands, mostly just for you.

  • help

    Lists the console commands. Numbers show a part only, e.g. help 2 4 for the second quarter.

  • devcommands

    Unlocks the cheats. On a server, admins only.

  • ping

    Measures the connection to the server.

  • lodbias

    Changes the level of detail at distance.

  • info

    Prints system information.

  • fov

    Changes the camera field of view.

  • exclusivefullscreen

    Switches between exclusive fullscreen and borderless window.

  • sortcraft [type]

    Sorts the crafting lists by a setting.

  • stats

    Shows your character stats.

  • achievements

    Shows your achievement progress.

  • getstat

    Shows a single stat value.

  • maxfps [FPS]

    Limits the frames per second.

  • resetknownitems

    Forgets all known items and recipes of your character.

  • tutorialreset

    Resets the tutorial hints.

  • freefly

    Free camera for photos.

  • ffsmooth

    Sets how smoothly the free camera glides.

  • resetsharedmap

    Removes shared map data from the cartography table.

  • inventoryclean

    Drops items sitting in invalid inventory slots.

  • clear

    Clears the console window.

  • clearpopups

    Closes all open unlock messages.

  • filtercraft [name]

    Filters the crafting list by part of a text.

  • bind [keycode] [command and parameters]

    Binds a console command to a key. May clash with the game controls.

  • unbind [keycode]

    Clears all binds on a key.

  • printbinds

    Shows the current key binds.

  • resetbinds

    Resets all custom binds to the default dev commands.

  • height

    Shows the world generator height at your position.

  • printseeds

    Shows the seeds of loaded dungeons.

  • nomap

    Turns the map off for your character. As host, for everyone who joins from now on.

  • resetspawn

    Resets your respawn point.

  • die

    Your character dies.

  • say

    Sends a chat message.

  • s

    Shouts a message.

  • w [playername]

    Whispers a private message to a player.

Frequently asked questions

Why does the game say "Cheats are not enabled"?

Type devcommands first. On a server this only works if your Steam ID is on the admin list.

Can I type the commands into the server console in the panel?

No. The Valheim dedicated server has no input console. Admin commands such as kick, ban or save are typed in game with F5 and then act on the server.

Do I still get achievements with cheats?

Items and pieces created with cheats normally do not trigger achievements. The command yesiuseddevcommandsbutiwantmyachievementsanyway 1 turns that check off.

Source

Commands, usage and flags come from the game file assembly_valheim.dll of the Valheim dedicated server (Steam app 896660, build 26266951), read on 2026-11-24. We wrote the explanations ourselves. Valheim is a trademark of Iron Gate AB.

No Valheim server of your own yet?

Rent a Valheim server

Continue on your server

Open your server dashboard if needed. Confirm changes to settings and worlds there yourself.