This command changes the government type of the character with the specified ID. Note that if you change your government type to one from a DLC that isn't installed, the game will end.
The syntax for the set_government command is as follows:
set_government [government type id] [character id]
This command has the following arguments:
|Government Type ID||The ID of the government type you wish to change the specified character's to. Government type IDs:|
|Character ID||The ID of the character you wish to change the government type of. How to find character IDs: commands.gg/ck2/blog/console-help#charids.|
Find below working examples of the set_government command.
set_government tribal_government 140
This console command would set the government type of the character with ID 140 to tribal_government (the government ID for Tribal Government).