This console command enables and disables (toggles) unlimited action points for both you and the AI (well, APs will not be used up). Note that if you use this on the AIs turn, the AI will not run out of action points.
The syntax for the ToggleUnlimitedActions command is as follows:
Search our database of 38 XCOM 2 commands...I'd Love To
Find below working examples of the ToggleUnlimitedActions command.
If you have not previously enabled this command (default), typing ToggleUnlimitedActions into the console will turn unlimited actions on, making action points not be used up when you or the AI makes a move. Typing this into the console after having previously enabled it will toggle it off (disable it).