Valheim Console Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
m Add link to the game service page (internal linking sweep)
Add ValheimOne web admin console section (browser console, kick/ban/save/graceful shutdown, admin-only note, link to Valheim Live Map); command tables untouched
Line 42: Line 42:


'''WORK IN PROGRESS'''
'''WORK IN PROGRESS'''
== Running admin commands from a browser ==
[https://github.com/HumanGenome/ValheimOne ValheimOne] is a free, open source, server side mod that adds a web admin console to a Valheim dedicated server. Players install nothing and join with the normal game, on PC or console.
[[File:ValheimOne_web_admin_console.png|none|800px|ValheimOne web admin console]]
The console tab shows the live server log and a command box with history and autocomplete. Commands run through the game's own console on the server, so you can kick or ban a player, save the world, or schedule a graceful shutdown that warns players before the server goes down, all from a browser and without being logged into the game. Only commands on the console's whitelist can run.
'''Note:''' The console only exists in the Admin view. The Shared and Public links to the mod's live map never expose it, so you can hand the map to your players without handing out admin.
The same mod draws a live map of the world with players, ships and portals on it. What it shows, how the three share views work, and the install steps for a self hosted server are in [[Valheim Live Map]]. On a hosted server it is usually a mod option in the control panel.


Need a host? [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server hosting] from Survival Servers comes with instant setup and 24/7 support.
Need a host? [https://www.survivalservers.com/services/game_servers/valheim/ Valheim server hosting] from Survival Servers comes with instant setup and 24/7 support.

Revision as of 13:50, 1 September 2026

To gain access to the in-game admin commands, whitelist your Steam UID in the control panel.

In order to enable admins, find your Steam 64bit UID and then add it to the Admin UID box on the control panel:

Add a Valheim Admin

Renting a Valheim server (see example control panel below!)

Control panel.gif
Valheim game server.png

Commands can be executed by Valheim admins via the in game command console by pressing F5 while logged in to your game server

''If you add "-console" to launch options in steam you can press F5 to open console in-game.''
Admin Commands
Command Description
help Shows a list of the available commands
kick [name/ip/userID] Kicks the user matching criteria
ban[name/ip/userID] Bans the user matching criteria
unban[name/ip/userID] Unban the user matching criteria
banned Shows a complete listing of banned users
save Saves world (Save interval can be changed in your control panel under "Advanced Launch Params")
ping Sends a ping to the server to get your latency
lodbias [number] Set distance LOD bias. If empty it shows actual lodbias. Default 1.5
info Print system info

How to get no build cost:
You then type devcommands, you then type debugmode, you then close the console and press the "B" key. This will enable no cost. When in this mode you can build what ever you like with no material cost

As far as server admin commands go, that's it. There are additional commands in the single player variant of Valheim (using the imacheater command) but these unfortunately do not work server side quite yet.

WORK IN PROGRESS

Running admin commands from a browser

ValheimOne is a free, open source, server side mod that adds a web admin console to a Valheim dedicated server. Players install nothing and join with the normal game, on PC or console.

ValheimOne web admin console

The console tab shows the live server log and a command box with history and autocomplete. Commands run through the game's own console on the server, so you can kick or ban a player, save the world, or schedule a graceful shutdown that warns players before the server goes down, all from a browser and without being logged into the game. Only commands on the console's whitelist can run.

Note: The console only exists in the Admin view. The Shared and Public links to the mod's live map never expose it, so you can hand the map to your players without handing out admin.

The same mod draws a live map of the world with players, ships and portals on it. What it shows, how the three share views work, and the install steps for a self hosted server are in Valheim Live Map. On a hosted server it is usually a mod option in the control panel.

Need a host? Valheim server hosting from Survival Servers comes with instant setup and 24/7 support.