Stellaris effect add_district = command

This command adds <span class="parameter parameter-primary">District ID</span> to the planet.
Command syntax
effect add_district = <span class="parameter parameter-primary">District ID</span>
Example
effect add_district = district_city
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.