kick
Kicks a player from the current game. This is not a permanent ban; use ban for that.
- Syntax
kick <name|ip|userID>- Example
kick ThorfinnKicks the player “Thorfinn” from the server.
You decide which services we may enable for analytics, personalization, and external content.
We use cookies and similar technologies on our website to personalize content, embed external media, and better understand how individual areas are used.
Necessary cookies
These entries support essential functions such as security, stability, and form processing.
Optional sections
Your data may be processed with your consent or on the basis of legitimate interests. In the cookie settings, you can reject or explicitly allow each optional category.
Some services process personal data in third countries. By consenting, you also agree to this transfer. You can find more information in our Privacy Policy.
You can reopen and change your selection at any time. · 1.0.2
Valheim console commands and cheat codes at your fingertips: search the command list for spawn, god, fly, kick, or “teleport” and copy an example into the console. For each Valheim command, see whether you need devcommands and whether it works in single-player, as host, or as a server admin. Includes a command generator, admin setup, and launch parameters. Free, no sign-up, right in your browser.
Built by Dimitri Heissler
Found the commands? Use them on your own server.
Searches command names, explanations, syntax, and notes. All search words must match.
97 of 97 commands
As of Valheim 1.0.16
Kicks a player from the current game. This is not a permanent ban; use ban for that.
kick <name|ip|userID>kick ThorfinnKicks the player “Thorfinn” from the server.
Bans a player. They are kicked and cannot rejoin the server until you unban them with unban.
ban <name|ip|userID>ban ThorfinnBans the player “Thorfinn”.
Unbans a player. You need their ID or IP from the ban list.
unban <ip|userID>unban Steam_76561197986247731Releases the Steam ID for reuse.
Shows all banned players.
bannedbannedSaves the world immediately and resets the autosave timer.
savesaveUseful before a restart or risky commands.
Optimizes old terrain changes in the world. Create a Backup first.
optterrainoptterrainForces the difficulty to match the specified number of players. Set it to 0 to use the actual player count again.
players <number>players 4Scales enemies as if there were four players.
Regenerates all locations in the world, including dungeons, ruins, and altars.
genlocgenlocMeasures the server's response time.
pingpingOutputs system information and the game's memory usage in the console.
infoinfoToggles invincibility mode. You no longer take damage. Use on or off to set it explicitly.
god [on|off]godToggles ghost mode. Enemies will no longer notice you. Use on or off to set it explicitly.
ghost [on|off]ghostSame command: debugmode
Toggles flight mode. You can fly freely through the world.
flyflyToggles building without material costs. Use on or off to set it explicitly.
nocost [on|off]nocostInstantly restores health, stamina, and Eitr.
healhealEmpties your stomach; you lose all food you've eaten.
pukepukeIncreases a skill by the specified number of levels.
raiseskill <skill> [amount]raiseskill Run 10Increases Running by 10 levels.
Resets a skill to level 0.
resetskill <skill>resetskill SwordsResets your character data, including your character’s skills and progress.
resetcharacterresetcharacterGives you a status effect, such as Rested, Burning, SoftDeath, or Wet.
addstatus <name>addstatus RestedRemoves all status effects from you.
clearstatusclearstatusSets your active Guardian Power and clears its cooldown, for example GP_Eikthyr or GP_TheElder.
setpower <name>setpower GP_EikthyrSets your adrenaline level.
adrenaline <amount>adrenaline 10Shows your character's stats.
statsstatsDisables the map for this character. If you're the host, this applies to everyone who joins from now on.
nomapnomapKills your character. Useful if you're stuck.
diedieResets your respawn point.
resetspawnresetspawnSets the time until respawn.
respawntime <seconds>respawntime 3Forgets all items and recipes known to your character.
resetknownitemsresetknownitemsResets all previously seen tutorial hints.
tutorialresettutorialresetGenerates items, creatures, or building pieces in front of you. The name must match the prefab name. The following number is the quantity; the next is the level. Use p, e, or i to pick up the item immediately, equip it, or spawn it only if you don't already have it.
spawn <prefab> [amount] [level] [radius] [p|e|i]spawn Wood 50Generates 50 wood.
Generates a preset item set. Use keep to avoid dropping your current items. The name appears in tab completion.
itemset <name> [level] [keep]Repairs all your equipment.
repairallrepairallSets the size of your inventory.
inventorysize <size>Drops all items in invalid inventory slots.
inventorycleaninventorycleanSets the fuel of all lights and fires to the specified value. The default is 10.
setfuel [amount]setfuel 10Deletes all objects within a radius, optionally only those with a matching name. Default is 5, maximum is 150.
forcedelete [radius] [name]forcedelete 10 BoarRemoves all wild boars within a radius of 10.
Shows your current position.
posposTeleports you to the x and z coordinates. The game sets the height automatically.
goto <x> <z>goto 1000 -2500Teleports you to x 1000, z -2500.
Brings all players to you, optionally only those with a matching name.
recall [name]recallSearches loaded objects and places by name and highlights them with a ping on the map. With a pingmax above 1, it places pins instead.
find <text> [pingmax]find TrollLike find, but teleports you to the nearest match outside melee range. Use index to jump to another match.
findtp <text> [index] [closerange]Marks the center of every biome of this type on the map.
findbiome <name>findbiome PlainsTeleports you to the nearest biome matching your input.
findbiometp <name>findbiometp MountainShows information about the biome sector at your position.
biomeinfobiomeinfoShows the world generation height at your position.
heightheightReveals the entire map.
exploremapexploremapResets the explored portion of the map.
resetmapresetmapRemoves shared map data from the cartography table.
resetsharedmapresetsharedmapGenerates a location, such as a dungeon, at your position.
location <name> [SAVE]Sets the time of day to a value between 0 and 1, as a fraction of the day. Use -1 to restore normal time.
tod <0-1>tod 0.5Advances game time by the specified number of seconds.
skiptime <seconds>skiptime 600Skips the night and sets the time to the next morning.
sleepsleepShows the current playtime.
timetimeChanges the game speed. 1 is normal. With fadetime (up to 3), the transition is smooth.
timescale <target> [fadetime]timescale 2Forces a weather condition, such as Clear, Rain, LightRain, ThunderStorm, Snow, SnowStorm, or Misty.
env <name>env ClearRemoves forced weather.
resetenvresetenvSets wind direction (angle) and wind strength.
wind <angle> <intensity>wind 90 1Removes the forced wind.
resetwindresetwindAdds snow to or removes it from all nearby building pieces.
snow <amount>Toggles natural monster spawning. Use on or off to set it explicitly.
nospawn [on|off]nospawnKills all nearby creatures.
killallkillallSame command: killenemycreatures
Kills only nearby hostile creatures.
killenemieskillenemiesKills all nearby tamed creatures.
killtamekilltameInstantly tames all nearby tamable creatures.
tametameMakes all nearby neutral creatures aggressive.
aggravateaggravateExtinguishes all spreading fires and clears the smoke.
stopfirestopfireStarts an event at your position, such as an attack. Known names: army_eikthyr, army_theelder, army_bonemass, army_moder, army_goblin, foresttrolls, blobs, skeletons, surtlings, wolves.
event <name>event army_eikthyrStarts Eikthyr’s animal attack.
Starts a random event.
randomeventrandomeventEnds the current event.
stopeventstopeventSets a global world key. Use it to enable world rules such as nomap, nobuildcost, playerevents or passivemobs, or to mark bosses as defeated, for example with defeated_eikthyr.
setkey <key>setkey nomapDisables the map for the entire world.
Removes a global world key.
removekey <key>removekey nomapRe-enables the map for the world.
Lists all set global world keys and your character's keys.
listkeyslistkeysDeletes all global world keys and your character's personal keys.
resetkeysresetkeysSets a key for your character only.
setkeyplayer <key>Removes a key from your character.
removekeyplayer <key>Sets all world modifiers to a preset: Normal, Casual, Easy, Hard, Hardcore, Immersive or Hammer.
setworldpreset <name>setworldpreset hardSets one world modifier: combat, deathpenalty, resources, raids, or portals, each with an appropriate value.
setworldmodifier <name> <value>setworldmodifier raids noneDisables raids.
Resets all world modifiers to their defaults.
resetworldkeysresetworldkeysShows the list of commands. For example, help 2 4 shows the second quarter.
help [part] [parts]helpEnables cheat commands; entering it again disables them. Without this step, cheat commands report that cheats have not been enabled.
devcommandsdevcommandsClears the console window.
clearclearBinds a command to a key. This may conflict with game controls.
bind <keycode> <command>bind F6 godF6 now toggles invulnerability mode.
Removes all commands bound to a key.
unbind <keycode>unbind F6Shows all keys placed.
printbindsprintbindsResets all custom keys to the default developer commands.
resetbindsresetbindsChanges the camera’s field of view.
fov <value>fov 90Sets a frame rate limit.
maxfps <fps>maxfps 120Sets the distance at which object graphics become less detailed.
lodbias <value>Toggles free photo mode.
freeflyfreeflySets camera movement smoothing in photo mode.
ffsmooth <value>Toggles the display of damage dealt.
dpsdebugdpsdebugShows how many creatures are active at each level.
printcreaturesprintcreaturesCounts nearby network objects by name; the default radius is 5. Helps identify lag caused by too many objects.
printnetobj [radius]printnetobj 50Shows how many locations are currently loaded.
printlocationsprintlocationsSwitches between exclusive fullscreen and borderless windowed mode.
exclusivefullscreenexclusivefullscreenSame command: s, w
Sends a chat message from the console. s shouts, while w <spieler> <text> whispers to a specific player.
say <text>say Server startet in 5 Minuten neuExpected result
Search for a command or keyword to get the syntax, an explanation, usually an example you can copy, and whether you need devcommands and where the command works. Three examples:
Input:
spawnOutput: a card with these details
In words: spawn creates items, creatures, or building pieces in front of you. You must enable devcommands first, and the command only works in single-player or in a world you host yourself. spawn Wood 50 places 50 wood in front of you.
Input: select category “Server & Admin”
Output: all admin commands
| Command | Where? | Devcommands required? |
|---|---|---|
| kick | Admin on server | no |
| ban | Admin on server | no |
| unban | Admin on server | no |
| banned | Admin on server | no |
| save | Admin on server | no |
| optterrain | Admin on server | no |
| players | Admin on server | Yes |
| genloc | Admin on server | no |
| ping | Everywhere | no |
| info | Everywhere | no |
In words: The category contains 10 commands. kick, ban, unban, banned, and save are everyday server admin commands and do not require cheats.
Input in the command generator:
Output:
spawn Troll 1 3In words: The generator sets the quantity to 1 because Valheim reads the quantity before the level. The troll appears at level 3, with two stars. You can copy the completed command to the console with one click.
How it works
Four steps from search term to console command—no account, no download.
Step 1
Type a command like spawn or god, or a word like weather, teleport, or admin, in the search field. Results appear instantly as you type.
Step 2
Narrow the list to a category such as Server & Admin, or to commands that also run on a server. That way, you can quickly see what works for your situation.
Step 3
Most commands include an example with a copy button. If you need custom values, use the command generator to build spawn, event, or goto commands.
Step 4
In your world, open the console with F5. For cheat commands, enter devcommands first, then paste the command with Ctrl+V. Press Enter to run it.
Cheat sheet
The 14 commands and cheat codes you’ll need most often. Find more in the command list above.
Enables cheat commands; entering it again disables them. Without this step, cheat commands report that cheats have not been enabled.
devcommandsToggles invincibility mode. You no longer take damage. Use on or off to set it explicitly.
godToggles ghost mode. Enemies will no longer notice you. Use on or off to set it explicitly.
ghostToggles flight mode. You can fly freely through the world.
flyToggles building without material costs. Use on or off to set it explicitly.
nocostGenerates items, creatures, or building pieces in front of you. The name must match the prefab name. The following number is the quantity; the next is the level. Use p, e, or i to pick up the item immediately, equip it, or spawn it only if you don't already have it.
spawn Wood 50Teleports you to the x and z coordinates. The game sets the height automatically.
goto 1000 -2500Instantly restores health, stamina, and Eitr.
healSkips the night and sets the time to the next morning.
sleepStarts an event at your position, such as an attack. Known names: army_eikthyr, army_theelder, army_bonemass, army_moder, army_goblin, foresttrolls, blobs, skeletons, surtlings, wolves.
event army_eikthyrForces a weather condition, such as Clear, Rain, LightRain, ThunderStorm, Snow, SnowStorm, or Misty.
env ClearKicks a player from the current game. This is not a permanent ban; use ban for that.
kick ThorfinnBans a player. They are kicked and cannot rejoin the server until you unban them with unban.
ban ThorfinnSaves the world immediately and resets the autosave timer.
saveManage players, save progress, and maintain the world: kick, ban, save, and more. These are the commands for server admins.
Everything about your character: invulnerability, flying, skills, status effects, and respawning.
Spawn items, creatures, and building pieces, repair equipment, and remove objects again.
Time, weather, map, teleportation, and nearby creatures.
Start and end raids, set global keys such as defeated bosses, and adjust world modifiers.
Help, enable cheats, assign keys, and display and performance settings.
Singleplayer or server
Not every command works everywhere. The game distinguishes between playing alone, hosting the world yourself, and playing on a dedicated server. This classification comes from the game code.
Works in any world, even as a player on someone else’s server. The command affects only you.
25 commands, for example:
ping, info, nomap, die, resetspawn, resetknownitems, tutorialreset, inventoryclean, pos, height, resetsharedmap, time, help, clear
On a server, the command is sent to and executed by the server, but only for players in adminlist.txt. In single-player and as host, it runs directly on your machine.
18 commands, for example:
kick, ban, unban, banned, save, optterrain, players, genloc, skiptime, sleep, setkey, removekey, listkeys, resetkeys
Runs locally only: in single-player or when you host the world yourself. On someone else's or a dedicated server, the game reports that the command is not valid in the current context.
54 commands, for example:
god, ghost, fly, nocost, heal, puke, raiseskill, resetskill, resetcharacter, addstatus, clearstatus, setpower, adrenaline, stats
Setup
How to access the console, enable cheats, and make yourself an admin on your server.
Items and structures created with cheats usually don't trigger achievements. It's best to use cheats in a world you don't mind changing, or back up the world first.
On Linux, adminlist.txt, bannedlist.txt, and permittedlist.txt are located in ~/.config/unity3d/IronGate/Valheim by default. You can change the folder with -savedir. Note: If someone is listed in permittedlist.txt, everyone else is excluded from the server.
Dedicated Server
Add these arguments to valheim_server.x86_64 in your startup script. The details come from the Valheim Dedicated Server manual, version 1.0.16.
"My server"Name displayed for the server in the server list.
2456The port on which the server accepts connections. Valheim uses this port and the next one.
Default 2456, so it uses 2456 and 2457. The included startup script recommends opening 2456 through 2458.
"Dedicated"World name. If it doesn't exist, it will be created; otherwise, the existing world will be loaded.
"secret"Password players need to join.
At least 5 characters; it must not appear in the server name.
/home/valheim/dataOverrides the storage location for worlds and the files adminlist.txt, bannedlist.txt, and permittedlist.txt.
Default on Linux: ~/.config/unity3d/IronGate/Valheim.
11 shows the server in the server list; 0 hides it. You can then connect using “Join by IP”.
The default is 1.
/home/valheim/valheim.logSets where the log file is written.
1800Automatic save interval in seconds.
Default 1800, meaning every 30 minutes.
4How many automatic Backups to keep. The first is a short Backup; the rest are long Backups.
Default 4: one Backup after 2 hours and three more at 12-hour intervals.
7200Time until the first automatic Backup, in seconds.
Default 7200, meaning 2 hours.
43200Time between subsequent automatic Backups, in seconds.
Default 43200, meaning 12 hours.
Starts the server on the crossplay backend (PlayFab). Players on any platform can then join.
Without this option, the server uses Steam, and only Steam players can see it.
"1"A unique identifier when multiple servers use the same port on the same machine.
hardSets a world preset and overrides previous modifiers: Normal, Casual, Easy, Hard, Hardcore, Immersive or Hammer.
raids noneSets a single world modifier. If you combine it with a preset, place it after the preset.
Modifiers: Combat, DeathPenalty, Resources, Raids, Portals.
nomapEnables a world modifier as a toggle.
Valid: nobuildcost, playerevents, passivemobs, nomap.
A complete startup command (from the included start_server.sh):
./valheim_server.x86_64 -name "My server" -port 2456 -world "Dedicated" -password "secret" -crossplayDiscover more
Choose an item, name, lore, and enchantments—a ready-to-use /give command with the correct syntax for each Java version.
Built by Rugile Rutkauskaite
Convert a SteamID64 or Xbox-XUID to the Steam_<ID>/Xbox_<ID> format required for adminlist.txt/bannedlist.txt/permittedlist.txt since Valheim crossplay, with a warning if the platform prefix is missing.
Built by Justin Schuessler
Enter a seed and see the entire Valheim world: biomes, spawn point, boss altars, the traders Haldor and Hildir, and the Bog Witch. Calculated in your browser and checked against the game.
Built by Marvin Kluck
Check whether specific ports are open on an IP or hostname—select a protocol or game instead of scanning all ports at once.
Built by Sebastian Rademacher
Find a Steam ID from a profile link, custom URL, friend code, or s.team invite link — with all ID formats, profile, ban status (where available from Steam), ready-to-use admin commands for each game, and bulk lookup with CSV.
Built by Florian Galz
FAQ
Quick answers about Valheim commands, the console, and admin setup.
Enable “Activate console” in the game settings or launch Valheim with the Steam launch option -console. Then press F5 while in your world. With a controller, press both analog sticks at once to show or hide the console. The launch option overrides the setting. If F5 does nothing, the console usually isn’t enabled yet.
Open the console with F5 and enter devcommands. This enables cheat commands such as god, fly, nocost, and spawn; enter devcommands again to disable them. Without this step, the game reports that cheats are not enabled. Items and structures created with cheats normally don't trigger achievements.
The syntax is spawn Name Amount Level. spawn Wood 50 creates 50 wood, spawn Boar 4 creates four boars, and spawn Troll 1 3 creates a level 3 troll with two stars. The name is the in-game prefab name, such as Wood, Stone, Troll or Eikthyr. An * at the end spawns everything containing the term. The command generator above offers more than 50 common names to choose from.
god makes you invulnerable, so you no longer take damage. ghost prevents enemies from noticing you. fly enables flight mode; it's also called debugmode. All three require devcommands and work only in single-player or on a world you host yourself. You can use on or off to explicitly enable or disable god, ghost, and nocost.
That depends on the command. The game sends commands such as kick, ban, unban, banned, and save to the server, which executes them only for players in adminlist.txt. Commands marked “Admin on server,” such as sleep, skiptime, and setworldpreset, also run on the server. Valheim 1.0.16 runs cheat commands such as spawn, god, and fly only locally: in single-player or when you host the world yourself. As a player on someone else's server, the game reports “is not valid in the current context”.
Add your platform ID to the adminlist.txt file in the server's save folder, one ID per line. The format is Platform_ID; for Steam, for example, Steam_76561197986247731. You can find the ID in the server log or in-game with F2. Our Admin ID Formatter converts your SteamID64 to the correct format. You can then access server commands in the console as an admin.
exploremap reveals the entire map; resetmap clears your explored areas. goto 1000 -2500 teleports you to coordinates x 1000 and z -2500; pos shows your current position. findbiometp Mountain takes you to the nearest biome of that type. exploremap, resetmap, goto, and findbiometp require devcommands and work only in single-player or a world you host yourself. pos works everywhere.
env Clear forces clear weather; other options are Rain, LightRain, ThunderStorm, Snow, SnowStorm, and Misty. resetenv reverses it. sleep skips the night, tod 0.5 sets the time of day to a value between 0 and 1, and skiptime 600 advances time by 600 seconds. sleep and skiptime also work as an admin on a server; env and tod only work locally.
Any more questions?
Contact SupportReliably hosted and easy to manage in the panel – including admin, ban, and whitelist management.
No setup. No risk. Online in seconds.
Command list and data: Valheim 1.0.16. Looking for more tools? View all Valheim tools
© 2026 ZAP-Hosting GmbH