Find below documenation for the MakeSoldierAClass console command in XCOM 2. Documentation includes a list of all 10 XCOM 2 class IDs, how to use the command, and working examples for you to copy or modify.
makesoldieraclass ["soldier name"] [class id] Avenger
This console command sets the class of the soldier with the specified name. Note that this will demote your soldier to squaddie rank, and that you should make a save before using This console command, as some classes can break your game. See class IDs at commands.gg/xcom2/makesoldieraclass.
|"Soldier Name"||The name of the solider you wish to change the specialist class of, in quotation marks.|
|Class ID||The class ID of the class you wish to make the soldier.|
Find below working examples of the MakeSoldierAClass command.
MakeSoldierAClass "Leah Brown" Ranger
This console command would make the soldier named Leah Brown a Ranger.
MakeSoldierAClass "Angus Ferguson" PsiOperative
The above command would make Angus Fergusson's class the Psi Operative class.
|Class Name||Class ID|
|Spark Shen's Last Gift||Spark|
|Reaper WOTC: Tactical Legacy||Reaper|
|Templar WOTC: Tactical Legacy||Templar|
|Skirmisher WOTC: Tactical Legacy||Skirmisher|
Spark Shen's Last Gift
Reaper WOTC: Tactical Legacy
Templar WOTC: Tactical Legacy
Skirmisher WOTC: Tactical Legacy