Gaming · Valheim on Steam, Microsoft Store, Xbox, or Mac

Enable Console Commands in Valheim

Source-checked About 10 minutes

Answer

On Steam, add `-console` to Valheim's Launch Options, launch the game from Steam, and press F5. On Xbox, use LB + LT + Start. Most developer commands require `devcommands`; use them only in a local world or one you administer, and back up the world first. The old SkToolBox mod is not required.

Before you continue
  • Use the built-in consoleDo not install SkToolBox for ordinary commands.
  • Back up the worldDeveloper commands can permanently change it.
  • Respect server permissionsAdmin access must come from the server owner.
Guide steps7 steps
  1. Back up the world
  2. Enable it on Steam
  3. Use the platform's opening shortcut
  4. Enable developer commands
  5. List current commands
  6. Use server admin commands correctly
  7. Disable the console when finished
  8. If it still does not work

Back up the world

Close Valheim and copy the important world or use the game's current backup controls before enabling commands.

Enable it on Steam

In Steam Library, right-click Valheim > Properties > General and enter `-console` in Launch Options. Start the game from Steam.

Use the platform's opening shortcut

In a world, press F5 on a keyboard. On Xbox, press LB + LT + Start. Mac App Store and Microsoft Store installs have separate official launch instructions.

Enable developer commands

Type `devcommands` and press Enter. Read the warning. Some basic or server-admin commands do not require developer mode.

List current commands

Type `help` to see the commands in the installed version. Use a harmless information command before anything that changes the world.

Use server admin commands correctly

Kick, ban, and other server commands work only with authorized server access. Developer commands are generally for local play, not a remote server you do not own.

Disable the console when finished

Remove `-console` from Launch Options if you no longer need it, relaunch normally, and verify the world loads correctly.

If it does not work

  • If F5 changes brightness or media controls, hold the keyboard's Fn key or change its function-key mode.
  • If you used a command by mistake, exit without saving only if the game has not already saved; otherwise restore the backup.
  • Remove outdated console mods before troubleshooting the built-in console because they can conflict after game updates.
Sources and verification

Checked against official documentation on . Scope: Valheim on Steam, Microsoft Store, Xbox, or Mac.

The written instructions were checked against the current official pages linked below. The older video is kept for reference and may show different menus.

Continue with

Browse more Valheim tutorials