- Print
- DarkLight
This documentation version is deprecated, please click here for the latest version.
Article summary
Did you find this summary helpful?
Thank you for your feedback
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?