God Mode: Valheim cheat code
Toggles god mode, which makes you invincible and indestructible and lets you instantly kill anything you attack.
Console commands
PCgodAdd -console to the Steam launch options, press F5 to open the console, type devcommands to enable cheats, then type the command.
To get the God Mode cheat in Valheim on PC, type god.