Acquia CLI

Local development with Acquia CLI

You can use Acquia CLI with your local development environment to facilitate integration with Cloud Platform.

With Acquia CLI, you can:

  • Pull your database and Drupal files from Cloud Platform to your local machine

  • Push your database and Drupal files from your local machine to Cloud Platform

To integrate your local development solution with Acquia CLI, set the following environmental variables to match your local database settings:

  • ACLI_DB_HOST

  • ACLI_DB_NAME

  • ACLI_DB_USER

  • ACLI_DB_PASSWORD

Note

The variables are already set when you use a recommended local development solution, such as Lando.

For more information about local development solutions, see Local development.

For information about adding your custom code before or after an Acquia CLI command, see Hooking into Acquia CLI commands.