This command enables and disables (toggles) god mode for your character. In god mode, you are invincible and do not take any damage - as a result of this, you also cannot die when in god mode.
The syntax for the invulnerability command is as follows:
Find below working examples of the invulnerability command.
If invulnerability is disabled (default), using this console command will enable it, making you invincible to all forms of damage, and unable to die. Typing this command into the console again (i.e. while invulnerability is enabled), will disable it.