XCOM 2 TakeNoDamage Command
With this console command, you can enable and disable (toggle) invincibility for all of your soldiers.
The syntax for the TakeNoDamage command is given below:
Below you will find the working samples of the TakeNoDamage command.
If this command is disabled (default), typing the above command into the console can make all of your squad unbeatable. If you have already enabled this command, typing it into the console will toggle it off.