XCOM 2 ToggleUnlimitedActions Command
This console command lets you to enable and disable (toggles) infinite action points for both you and the AI (well, APs will not be used up). Note that if you are using it on the AIs turn, the AI will not run out of action points.
The syntax for the ToggleUnlimitedActions command is given below:
Below you will find the working samples of the ToggleUnlimitedActions command.
If you have not previously enabled this command (default), you can type 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).