Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Manage DigitalOcean Droplets from a terminal with doctl, DigitalOcean’s official command-line interface for its API. A safe workflow is to install and authenticate the CLI, discover current image, size, and region options, then use the relevant compute commands to create or manage Droplets. Treat tokens as credentials and pause before destructive actions such as destroying a Droplet.

What doctl does

DigitalOcean describes doctl as its official DigitalOcean command-line interface (CLI). It is available for Windows, macOS, and Linux, and supports most Control Panel functionality through the DigitalOcean API. Command options and resource availability can change, so use the current doctl reference and built-in help for the precise syntax available to you.

This walkthrough covers the practical setup and management workflow: authenticate, inspect available configuration values, create a Droplet, and handle changes such as resizing and firewall attachment.

Install doctl and authenticate safely

  1. Install doctl by following DigitalOcean’s installation instructions for your operating system.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  2. Create a DigitalOcean personal access token with the permissions needed for the operations you plan to perform. A token grants API access, so do not publish it, commit it to a repository, paste it into shared examples, or expose it in screenshots.

  3. In a terminal, run doctl auth init and follow the prompt to authenticate. Use the official doctl configuration guide if you need details for your platform.

  4. Check the current CLI command structure with doctl compute --help or the help for a specific subcommand before making changes.

Check current images, sizes, and regions

Do not assume an image or Droplet size slug copied from an old tutorial is still available to your account or in the region you want. DigitalOcean’s creation guide recommends listing the current choices first:

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • doctl compute region list — review available regions.
  • doctl compute size list — review available Droplet sizes and their slugs.
  • doctl compute image list-distribution — review available distribution images and their slugs.

Choose an image that matches the operating system or software you need, a size that fits the workload, and a region appropriate for your deployment. Availability and capacity can vary; these listing commands provide current options rather than relying on a dated example.

Create a Droplet

The basic command form in DigitalOcean’s Droplet create reference is:

doctl compute droplet create <droplet-name> --size <size-slug> --image <image-slug> --region <region-slug>

Replace each placeholder with a value you have checked using the listing commands. The size and image are required; provide a region explicitly when you need a particular location. If you omit the region, the account’s default region is used. The reference also documents options such as SSH keys and user data; consult it for supported flags and their current behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

DigitalOcean recommends SSH-key authentication as more secure than password authentication. If you choose to use a key, verify that the public key is already available to your DigitalOcean account and select it using the flag documented in the current create reference. Do not put private-key contents in a create command or share them.

Inspect and operate existing Droplets

For current list, retrieve, action, and delete syntax, use doctl compute --help and the compute command reference. DigitalOcean’s Droplet API supports operations including retrieval, reboot, snapshots, backup-related actions, and destruction, but the exact CLI form depends on the command and its current options.

  • Inspection: listing or retrieving a Droplet helps confirm its identity and state before an operation.
  • Operational actions: actions such as reboot can interrupt service. Confirm the target Droplet and expected impact first.
  • Destructive actions: destroying a Droplet removes a resource. Check the target and any data or recovery requirements before confirming; do not treat a delete command as routine cleanup without verifying consequences.

For settings beyond compute operations, consult the current CLI reference and the relevant DigitalOcean Control Panel documentation rather than guessing a flag or command name.

Resize a Droplet without skipping shutdown

DigitalOcean’s resize guide documents a sequence that shuts the Droplet down, performs the resize, and powers it back on. It recommends shutting down from inside the guest operating system to reduce data-corruption risk.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Connect to the Droplet and shut down the operating system with sudo shutdown -h now. Wait for the Droplet to finish shutting down.

  2. Use the documented doctl power-off and resize actions, substituting the Droplet identifier and a currently available size slug. Check the resize guide and current CLI help for exact syntax before running the commands.

  3. Power the Droplet back on using the documented CLI action, then check its state and service availability.

Do not treat a disk-resize option such as --resize-disk=true as a harmless default. Disk changes can have consequences for later resizing, and support depends on the direction and selected size. Read the current resize guidance and understand the disk effect before enabling it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Create and attach a Cloud Firewall

DigitalOcean Cloud Firewalls are stateful, network-based firewalls for Droplets. They block traffic unless a rule permits it. Use the firewall creation guide to create a firewall with inbound and outbound rules suited to the services the Droplet actually needs.

  • Allow only the ports and sources needed for the intended service; avoid opening broad inbound access without a reason.
  • Review outbound rules as well as inbound rules so allowed traffic matches the workload.
  • Verify that the intended Droplets are attached. The firewall management guide documents listing Droplet IDs and using doctl compute firewall add-droplets or doctl compute firewall remove-droplets to manage attachment.
  • Check the current firewall management instructions for exact command syntax and supported attachment options, including tags where applicable.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose optional protection and network settings deliberately

DigitalOcean’s creation and setup guidance presents backups, monitoring, IPv6, private networking, and tags as configuration choices. They are not universal requirements: decide based on the Droplet’s purpose and operational needs.

  • Backups: evaluate the backup schedule and retention that suit your recovery needs. Backup options add cost.
  • Monitoring: consider whether you need visibility into the Droplet’s operation and resource use.
  • IPv6 and private networking: enable them when your network design or services call for them.
  • Tags: use tags where they help organize resources or support management workflows.

For the available configuration and current behavior, follow DigitalOcean’s recommended Droplet setup guidance.

Common command-line problems and safer next steps

  • A region, size, or image slug is rejected: list current values with doctl compute region list, doctl compute size list, and doctl compute image list-distribution, then use a value that is currently available.
  • Authentication fails: rerun doctl auth init and verify that the token is valid and has the permissions required for the operation. Keep the token private.
  • A firewall rule does not appear to take effect: confirm the rule permits the required traffic and that the intended Droplet is attached to the firewall.
  • A resize does not proceed as expected: verify that the Droplet has been shut down, check the selected size and disk-resize implications in the current guide, and use the currently documented action syntax.
  • A command or flag is unfamiliar: check doctl compute --help and the matching current reference instead of relying on syntax copied from an older version.

Or let it run in the cloud

DigitalOcean Droplets are general-purpose virtual machines; they are not a service for keeping prerecorded YouTube video live. For that separate task, StreamNeo keeps an uploaded video or playlist looping on a YouTube channel from the cloud: upload the video, add your YouTube stream key, and go live. Nothing has to stay on at home; it streams the file as uploaded at any quality up to 4K 60fps for one flat price per slot, and it automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. See StreamNeo or pricing details, then start the free first day.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.