Digitalocean

From mvanhorn/printing-press-library · View interactive version

Digitalocean is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. Printing Press CLI for Digitalocean.

How to use this skill

Skill file

Digitalocean — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the digitalocean-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install digitalocean --cli-only

```

  1. Verify: digitalocean-pp-cli --version
  2. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/cloud/digitalocean/cmd/digitalocean-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local state that compounds

_Gives agents a durable local inventory before planning cloud changes._

```bash

digitalocean-pp-cli workflow archive --full --json

```

_Lets agents locate relevant resources before choosing a narrower command._

```bash

digitalocean-pp-cli search "production" --data-source local --json --limit 20

```

Operational summaries

_Turns resource listings into operational summaries an agent can reason about._

```bash

digitalocean-pp-cli analytics --type droplets --group-by region --json

```

_Provides a safe one-shot or continuous change feed without bespoke scripts._

```bash

digitalocean-pp-cli tail --resource droplets --interval 30s --json

```

Command Reference

1-clicks — Manage 1 clicks

account — Provides information about your current account.

actions — Actions are records of events that have occurred on the resources in your account.

These can be things like rebooting a Droplet, or transferring an image to a new region.

An action object is created every time one of these actions is initiated. The action

object contains information about the current status of the action, start and complete

timestamps, and the associated resource type and ID.

Every action that creates an action object is available through this endpoint. Completed

actions are not removed from this list and are always available for querying.

Note: You can pass the following HTTP header with the request to have the API return

the reserved_ips stanza instead of the floating_ips stanza:

add-ons — Add-ons are third-party applications that can be added to your DigitalOcean account.

They are available through the DigitalOcean Marketplace.

Add-ons can be used to enhance the functionality of your existing resources or to provide

additional services.

The Add-Ons API allows you to manage these resources, including creating, listing, and retrieving

details about specific add-on resources.

apps — App Platform is a Platform-as-a-Service (PaaS) offering from DigitalOcean that allows

developers to publish code directly to DigitalOcean servers without worrying about the

underlying infrastructure.

Most API operations are centered around a few core object types. Following are the

definitions of these types. These definitions will be omitted from the operation-specific

documentation.

For documentation on app specifications (AppSpec objects), please refer to the

product documentation).

async-invoke — Manage async invoke

batches — Manage batches

billing — The billing endpoints allow you to retrieve your account balance, invoices,

billing history, and insights.

Balance: By sending requests to the /v2/customers/my/balance endpoint, you can

retrieve the balance information for the requested customer account.

Invoices: Invoices

are generated on the first of each month for every DigitalOcean

customer. An invoice preview is generated daily, which can be accessed

with the preview keyword in place of $INVOICE_UUID. To interact with

invoices, you will generally send requests to the invoices endpoint at

/v2/customers/my/invoices.

Billing History: Billing history is a record of billing events for your account.

For example, entries may include events like payments made, invoices

issued, or credits granted. To interact with invoices, you

will generally send requests to the invoices endpoint at

/v2/customers/my/billing_history.

Billing Insights: Day-over-day changes in billing resource usage based on nightly invoice items,

including total amount, region, SKU, and description for a specified date range.

It is important to note that the daily resource usage may not reflect month-end billing totals when totaled for

a given month as nightly invoice items do not necessarily encompass all invoicing factors for the entire month.

v2/billing/{account_urn}/insights/{start_date}/{end_date} where account_urn is the URN of the customer

account, can be a team (do:team:uuid) or an organization (do:teamgroup:uuid). The date range specified by

start_date and end_date must be in YYYY-MM-DD format.

byoip-prefixes — Bring your own IP (BYOIP) lets you provision your own IPv4 network prefixes

to your account, then assign those IPs to your DigitalOcean resources.

BYOIP supports the following features:

cdn — Manage cdn

certificates — In order to perform SSL termination on load balancers, DigitalOcean offers

two types of SSL certificate management:

where they will be placed in a fully encrypted and isolated storage system.

DigitalOcean utilizing an integration with Let's Encrypt, the free and

open certificate authority. These certificates will also be automatically

renewed as required.

chat — Manage chat

customers — Manage customers

databases — DigitalOcean's managed database service

simplifies the creation and management of highly available database clusters. Currently, it

offers support for PostgreSQL,

Caching,

Valkey,

MySQL,

MongoDB, and

OpenSearch.

By sending requests to the /v2/databases endpoint, you can list, create, or delete

database clusters as well as scale the size of a cluster, add or remove read-only replicas,

and manage other configuration details.

Database clusters may be deployed in a multi-node, high-availability configuration.

If your machine type is above the basic nodes, your node plan is above the smallest option,

or you are running MongoDB, you may additionally include up to two standby nodes in your cluster.

The size of individual nodes in a database cluster is represented by a human-readable slug,

which is used in some of the following requests. Each slug denotes the node's identifier,

CPU count, and amount of RAM, in that order.

For a list of currently available database slugs and options, use the /v2/databases/options endpoint or use the

doctl databases options command.

dedicated-inferences — Dedicated Inference

delivers scalable production-grade LLM hosting on DigitalOcean. Create, list, get, update,

and delete Dedicated Inference instances; manage accelerators, CA certificate, sizes,

GPU model config, and access tokens.

domains — Domain resources are domain names that you have purchased from a domain

name registrar that you are managing through the

DigitalOcean DNS interface.

This resource establishes top-level control over each domain. Actions that

affect individual domain records should be taken on the

Domain Records resource.

droplets — A Droplet is a DigitalOcean

virtual machine. By sending requests to the Droplet endpoint, you can

list, create, or delete Droplets.

Some of the attributes will have an object value. The region and image

objects will all contain the standard attributes of their associated

types. Find more information about each of these objects in their

respective sections.

embeddings — Text embedding vectors via POST /v1/embeddings on the

Serverless Inference base URL

https://inference.do-ai.run (bearer model access key).

firewalls — DigitalOcean Cloud Firewalls

provide the ability to restrict network access to and from a Droplet

allowing you to define which ports will accept inbound or outbound

connections. By sending requests to the /v2/firewalls endpoint, you can

list, create, or delete firewalls as well as modify access rules.

floating-ips — As of 16 June 2022, we have renamed the Floating IP product to Reserved IPs.

The Reserved IP product's endpoints function the exact same way as Floating IPs.

The only difference is the name change throughout the URLs and fields.

For example, the floating_ips field is now the reserved_ips field.

The Floating IP endpoints will remain active until fall 2023 before being

permanently deprecated.

With the exception of the Projects API,

we will reflect this change as an additional field in the responses across the API

where the floating_ip field is used. For example, the Droplet metadata response

will contain the field reserved_ips in addition to the floating_ips field.

Floating IPs retrieved using the Projects API will retain the original name.

DigitalOcean Floating IPs

are publicly-accessible static IP addresses that can be mapped to one of

your Droplets. They can be used to create highly available setups or other

configurations requiring movable addresses.

Floating IPs are bound to a specific region.

functions — Serverless functions are blocks of code that run on demand without the need to manage any infrastructure.

You can develop functions on your local machine and then deploy them to a namespace using doctl, the official DigitalOcean CLI tool.

The Serverless Functions API currently only supports creating and managing namespaces.

gen-ai — Manage gen ai

images — A DigitalOcean image can be

used to create a Droplet and may come in a number of flavors. Currently,

there are five types of images: snapshots, backups, applications,

distributions, and custom images.

a full copy of an existing Droplet instance taken on demand.

to snapshots but are created automatically at regular intervals when

enabled for a Droplet.

are Linux-based virtual machine images (raw, qcow2, vhdx, vdi, and vmdk

formats are supported) that you may upload for use on DigitalOcean.

be used as a base to create Droplets.

are distributions pre-configured with additional software.

To interact with images, you will generally send requests to the images

endpoint at /v2/images.

kubernetes — DigitalOcean Kubernetes

allows you to quickly deploy scalable and secure Kubernetes clusters. By

sending requests to the /v2/kubernetes/clusters endpoint, you can list,

create, or delete clusters as well as scale node pools up and down,

recycle individual nodes, and retrieve the kubeconfig file for use with

a cluster.

load-balancers — DigitalOcean Load Balancers

provide a way to distribute traffic across multiple Droplets. By sending

requests to the /v2/load_balancers endpoint, you can list, create, or

delete load balancers as well as add or remove Droplets, forwarding rules,

and other configuration details.

messages — Manage messages

models — Manage models

monitoring — The DigitalOcean Monitoring API makes it possible to programmatically retrieve metrics as well as configure alert

policies based on these metrics. The Monitoring API can help you gain insight into how your apps are performing

and consuming resources.

nfs — NFS lets you create fully managed, POSIX-compliant network file storage that delivers secure,

high-performance shared storage right inside your VPC. This enables seamless data sharing across Droplets in a VPC.

partner-network-connect — Partner Network Connect lets you establish high-bandwidth, low-latency

network connections directly between DigitalOcean VPC networks and other

public cloud providers or on-premises datacenters.

projects — Projects allow you to organize your resources into groups that fit the way

you work. You can group resources (like Droplets, Spaces, load balancers,

domains, and floating IPs) in ways that align with the applications

you host on DigitalOcean.

regions — Provides information about DigitalOcean data center regions.

registries — Manage registries

registry — Manage registry

reports — Manage reports

reserved-ips — As of 16 June 2022, we have renamed the Floating IP

product to Reserved IPs. The Reserved IP product's endpoints function the exact

same way as Floating IPs. The only difference is the name change throughout the

URLs and fields. For example, the floating_ips field is now the reserved_ips field.

The Floating IP endpoints will remain active until fall 2023 before being

permanently deprecated.

With the exception of the Projects API,

we will reflect this change as an additional field in the responses across the API

where the floating_ip field is used. For example, the Droplet metadata response

will contain the field reserved_ips in addition to the floating_ips field.

Floating IPs retrieved using the Projects API will retain the original name.

DigitalOcean Reserved IPs are publicly-accessible static IP addresses that can be

mapped to one of your Droplets. They can be used to create highly available

setups or other configurations requiring movable addresses.

Reserved IPs are bound to a specific region.

reserved-ipv6 — DigitalOcean Reserved IPv6s are publicly-accessible static IP addresses that can be

mapped to one of your Droplets. They can be used to create highly available

setups or other configurations requiring movable addresses.

Reserved IPv6s are bound to a specific region.

responses — Manage responses

security — Security CSPM endpoints for scans, scan findings, and settings.

sizes — The sizes objects represent different packages of hardware resources that

can be used for Droplets. When a Droplet is created, a size must be

selected so that the correct resources can be allocated.

Each size represents a plan that bundles together specific sets of

resources. This includes the amount of RAM, the number of virtual CPUs,

disk space, and transfer. The size object also includes the pricing

details and the regions that the size is available in.

snapshots — Snapshots are saved

instances of a Droplet or a block storage volume, which is reflected in

the resource_type attribute. In order to avoid problems with compressing

filesystems, each defines a min_disk_size attribute which is the minimum

size of the Droplet or volume disk when creating a new resource from the

saved snapshot.

To interact with snapshots, you will generally send requests to the

snapshots endpoint at /v2/snapshots.

spaces — Manage spaces

tags — A tag is a label that can be applied to a resource (currently Droplets,

Images, Volumes, Volume Snapshots, and Database clusters) in order to

better organize or facilitate the lookups and actions on it.

Tags have two attributes: a user defined name attribute and an embedded

resources attribute with information about resources that have been tagged.

upload-url — Manage upload url

uptime — DigitalOcean Uptime Checks provide the ability to monitor your endpoints from around the world, and alert you when they're slow, unavailable, or SSL certificates are expiring.

To interact with Uptime, you will generally send requests to the Uptime endpoint at /v2/uptime/.

volumes — Manage volumes

vpc-nat-gateways — VPC NAT Gateways

allow resources in a private VPC to access the public internet without

exposing them to incoming traffic.

By sending requests to the /v2/vpc_nat_gateways endpoint, you can create,

configure, list, and delete VPC NAT Gateways as well as retrieve information

about the resources assigned to them.

vpc-peerings — VPC Peerings

join two VPC networks with a secure, private connection. This allows

resources in those networks to connect to each other's private IP addresses

as if they were in the same network.

vpcs — VPCs (virtual private clouds)

allow you to create virtual networks containing resources that can

communicate with each other in full isolation using private IP addresses.

By sending requests to the /v2/vpcs endpoint, you can create, configure,

list, and delete custom VPCs as well as retrieve information about the

resources assigned to them.

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

digitalocean-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Auth Setup

Store your access token:

digitalocean-pp-cli auth set-token YOUR_TOKEN_HERE

Or set DIGITALOCEAN_BEARER_AUTH as an environment variable.

Run digitalocean-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

digitalocean-pp-cli 1-clicks list --agent --select id,name,status

```

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

digitalocean-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
digitalocean-pp-cli feedback --stdin < notes.txt
digitalocean-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.digitalocean-pp-cli/feedback.jsonl. They are never POSTed unless DIGITALOCEAN_FEEDBACK_ENDPOINT is set AND either --send is passed or DIGITALOCEAN_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

| Sink | Effect |

|------|--------|

| stdout | Default; write to stdout only |

| file:<path> | Atomically write output to <path> (tmp + rename) |

| webhook:<url> | POST the output body to the URL (application/json or application/x-ndjson when --compact) |

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

digitalocean-pp-cli profile save briefing --json
digitalocean-pp-cli --profile briefing 1-clicks list
digitalocean-pp-cli profile list --json
digitalocean-pp-cli profile show briefing
digitalocean-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

| Code | Meaning |

|------|---------|

| 0 | Success |

| 2 | Usage error (wrong arguments) |

| 3 | Resource not found |

| 4 | Authentication required |

| 5 | API error (upstream issue) |

| 7 | Rate limited (wait and retry) |

| 10 | Config error |

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show digitalocean-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/cloud/digitalocean/cmd/digitalocean-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add digitalocean-pp-mcp -- digitalocean-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which digitalocean-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

digitalocean-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: digitalocean-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.