Stellaris planet_class command

This command changes the selected celestial body to <span class="parameter parameter-primary">Celestial body ID</span>.
Command syntax
planet_class <span class="parameter parameter-primary">Planet class ID</span>
Example
planet_class pc_arid
How to open the console in Stellaris
Press the ~ / ` key to open the command console. This key is located at the top left of the keyboard, usually under the F1 or ESC key. Type the command and press the Enter key.