cloud
DigitalOcean CLI for Cron Jobs
Use the DigitalOcean CLI for cron jobs with headless JSON commands, schema discovery, credentials, and permission controls.
10 functions 7 read 3 write Bearer token auth
DigitalOcean CLI for Cron Jobs
Schedule repeatable integration workflows from cron while keeping credentials in KosmoKrator config.
Use the headless CLI from cron when an operation should run without an interactive agent session. The DigitalOcean CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# DigitalOcean CLI for Cron Jobs
kosmokrator integrations:configure digitalocean --set access_token="$DIGITALOCEAN_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call digitalocean.digitalocean_list_droplets '{"page":1,"per_page":1}' --json Discovery Before Execution
Agents and scripts can inspect DigitalOcean docs and schemas before choosing a function.
kosmo integrations:docs digitalocean --json
kosmo integrations:docs digitalocean.digitalocean_list_droplets --json
kosmo integrations:schema digitalocean.digitalocean_list_droplets --json
kosmo integrations:search "DigitalOcean" --json
kosmo integrations:list --json Useful DigitalOcean CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
digitalocean.digitalocean_list_droplets | Read | page, per_page | List all droplets (virtual machines) in the DigitalOcean account. Returns IDs, names, status, size, region, and IP addresses. |
digitalocean.digitalocean_get_droplet | Read | id | Get details for a specific DigitalOcean droplet by ID. Returns full droplet information including networks, image, and region. |
digitalocean.digitalocean_create_droplet | Write | name, region, size, image, ssh_keys, backups, ipv6, user_data, tags | Create a new DigitalOcean droplet (virtual machine). Requires a name, region, size, and image. |
digitalocean.digitalocean_delete_droplet | Write | id | Permanently delete a DigitalOcean droplet. This action is irreversible and will destroy all data on the droplet. |
digitalocean.digitalocean_reboot_droplet | Write | id | Reboot a DigitalOcean droplet. The droplet will be power-cycled and will be temporarily unavailable. |
digitalocean.digitalocean_list_domains | Read | page, per_page | List all DNS domains managed in the DigitalOcean account. |
digitalocean.digitalocean_get_domain | Read | name | Get details for a specific DNS domain in DigitalOcean, including zone file and TTL information. |
digitalocean.digitalocean_list_spaces | Read | page, per_page | List Spaces (S3-compatible object storage buckets) in the DigitalOcean account. |
digitalocean.digitalocean_list_kubernetes | Read | page, per_page | List Kubernetes (DOKS) clusters in the DigitalOcean account. |
digitalocean.digitalocean_get_current_user | Read | none | Get information about the current authenticated DigitalOcean account, including email, UUID, and status. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.