DigitalOcean
  • 05 Oct 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light

DigitalOcean

  • Dark
    Light

Article summary

The DigitalOcean CLI, or doctl, is the official CLI for the DigitalOcean API. With this component of the Cloud CLI Extension, you can interact with DigitalOcean directly from LimaCharlie.

This extension makes use of DigitalOcean's official CLI tool, which can be found here. Reference documentation can be found here.

Example

The following example of a response action will enumerate a list of compute droplets within a DigitalOcean instance.

- action: extension request
  extension action: run
  extension name: ext-cloud-cli
  extension request:
    cloud: '{{ "doctl" }}' 
    command_line: '{{ "compute droplet list" }}'
    credentials: '{{ "hive://secret/secret-name" }}'

Credentials

To utilize doctl capabilities, you will need:

  • A personal access token. More information on this can be found here.

  • Create a secret in the secrets manager in the following format:

    personalAccessToken
    


Was this article helpful?

What's Next