The Acquia CLI tool allows you to use all features of the Acquia Cloud API v2 on the command line.
The tool is pre-installed in
cli container. Note: required
docksal/cli version: 2.13.0+.
Follow the official docs to generate your Acquia Cloud API Token.
Add your secret and key with
fin config set --global SECRET_ACQUIA_CLI_SECRET="i0bvTR9Dhf25Y6FzIK0j8NX//ll+GeAC7t75Jg4y8CE="
fin config set --global SECRET_ACQUIA_CLI_KEY="8842fd3a-e3f3-47e9-916f-6ff760e26358"
cli service configuration with
fin project start. This will inject the values into
which will be used for authentication for the Acquia CLI.
It is also possible to add/override these values via
.docksal/docksal-local.env at the project level (replace
Keep in mind,
.docksal/docksal-local.env can be used for local overrides and should be excluded from git.
As such, it is best to use
.docksal/docksal-local.env for any personal keys and tokens configured at the project level.
fin acli <command> from the host or
acli <command> inside
For easier integration with Acquia environment use the pull command. This allows you to easily bring your assets (db, files, and code) down to your local environment quickly without manually running through the steps.
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Docksal, ask it in Discussions on GitHub. Open an issue if you want to report a problem or suggest an improvement. You can also contribute changes to this page using the link in the top right corner.