Now you can open the console by pressing the tilde button during gameplay. (`) usually found left of the 1 button.
These commands are generally set to 1 or 0 to enable/disable effects. To reverse the effect, add the opposite amount to the variable e.g. CvarAdd g_permagodmode -1 will disable god mode.