Acquia Integration¶
DDEV provides integration with the Acquia Cloud Platform, which allows Acquia users to quickly download and provision a project from Acquia in a local DDEV-managed environment.
DDEV’s Acquia integration pulls database and files from an existing project into your local system so you can develop locally.
Acquia Quickstart¶
- Get your Acquia API token from Account Settings → API Tokens.
- Make sure you’ve added your SSH key to your Acquia account in Account Settings → SSH Keys.
- Run
ddev auth ssh. (Typically once per DDEV session, not every pull.) -
In
$HOME/.ddev/global_config.yaml(see global configuration directory) add or update theweb_environmentsection with the API keys:You can also do this with:
What if I have more than one API key?
To use multiple API keys for different projects, add them to your per-project configuration using the
.ddev/config.local.yamlfile instead. This file is gitignored by default. -
In the project
.ddev/config.yamladd theACQUIA_ENVIRONMENT_IDenvironment variable:You can also do this with:
-
Run
ddev restart. - Use
ddev pull acquiato pull the project database and files. - Optionally use
ddev push acquiato push local files and database to Acquia. Be aware thatddev pushis a command that can potentially damage your production site, so we don’t recommend using it.
Usage¶
ddev pull acquiawill connect to the Acquia Cloud Platform to download the database and files; note that it will download the latest available backup on the requested environment, rather than use a fresh copy of the database. To skip downloading and importing either file or database assets, use the--skip-filesand--skip-dbflags.-
To pull from a specific environment without permanently changing your project config, pass environment variables using
--environment:You can combine multiple variables:
-
If you need to change the
acquia.yamlrecipe, you can change it to suit your needs, but remember to remove the#ddev-generatedline from the top of the file.