doctl has no single flag for this because under the hood it does two API calls: POST /v2/droplets to create the droplet, then POST /v2/projects/$PROJECT_ID/resources to assign it to the project. So the way to do it yourself is to create the droplet normally, then assign it with doctl compute droplet…
doctl has no single flag for this because under the hood it does two API calls: POST /v2/droplets to create the droplet, then POST /v2/projects/$PROJECT_ID/resources to assign it to the project. So the way to do it yourself is to create the droplet normally, then assign it with doctl compute droplet…