doctl droplets create adds --public-networking
Introduced 2026-03-31 · score 0.92
HOW TO USE IT
When creating a Droplet, set public networking explicitly with the documented doctl flag; `false` disables it and `true` enables it.
doctl compute droplet create <droplet-name> --size <size-slug> --image <image-slug> --enable-public-networking=falseWHY THIS HELPS
Create a droplet with a chosen public-networking setting.
REQUIREMENTS AND LIMITATIONS
- Version: v1.154.0
- --enable-public-networking: Enables public networking; default is true. Set false to disable it.
- <droplet-name> (required): Name for the new Droplet.
- --size (required): Droplet size slug.
- --image (required): Image ID or slug for the Droplet.
- Prerequisite: Install doctl and authenticate it with `doctl auth init`.
- Prerequisite: Creating Droplets requires the `droplet:create` scope and its listed required scopes.
- Docs conflict: The supplied v1.154.0 release note names `--public-networking`; the current doctl CLI reference (generated for v2.0.0) documents `--enable-public-networking`. The current docs do not establish the v1.154.0 flag spelling or behavior.
FIRST-PARTY EVIDENCE
- https://github.com/digitalocean/doctl/releases/tag/v1.154.0
- https://docs.digitalocean.com/products/droplets/how-to/create-private-droplet/
- https://docs.digitalocean.com/reference/doctl/reference/compute/droplet/create/
- https://docs.digitalocean.com/reference/api/scopes/droplet/create/
Check the installed version and the source before using it. Entry JSON