Where do I add the DIGITALOCEAN_ACCESS_TOKEN variable

Probably a dumb question, but at least it’s a quick one to answer. Thanks!

You can add it to your shell’s profile like ~/.bash_profile , ~/.bashrc, ~/.zshrc, etc using export:


Make sure to start a new terminal/shell after adding it.

Or, for “single use”, prepend any command with an env var:

DIGITALOCEAN_ACCESS_TOKEN="foo" trellis droplet create
1 Like