Please wait

Loading...

Start typing in the pseudo command bar to explore the commands available.

pull:database

Import database backup from a Cloud Platform environment

This uses the latest available database backup, which may be up to 24 hours old. If no backup exists, one will be created.
This command requires authentication via the Cloud Platform API.
This command requires an active database connection. Set the following environment variables prior to running this command: ACLI_DB_HOST, ACLI_DB_NAME, ACLI_DB_USER, ACLI_DB_PASSWORD

Usage

acli pull:database [--no-scripts] [--on-demand] [--no-import] [--multiple-dbs] [--] [<environmentId> [<site>]]
acli pull:database [<environmentAlias>]
acli pull:database myapp.dev
acli pull:database prod:myapp.dev
acli pull:database 12345-abcd1234-1111-2222-3333-0e02b2c3d470
acli pull:database myapp.dev default
acli pull:db

Arguments

  • environmentId

    Optional

    The Cloud Platform environment ID or alias (i.e. an application and environment name optionally prefixed with the realm)

  • site

    Optional

    For a multisite application, the directory name of the site

Options

  • --no-scripts

    Optional

    Do not run any additional scripts after the database is pulled. E.g., drush cache-rebuild, drush sql-sanitize, etc.

    Defaults to false

  • --on-demand

    Optional

    Force creation of an on-demand backup. This takes much longer than using an existing backup (when one is available)

    Defaults to false

  • --no-import

    Optional

    Download the backup but do not import it (implies --no-scripts)

    Defaults to false

  • --multiple-dbs

    Optional

    Download multiple dbs. Defaults to FALSE.

    Defaults to false

  • --help | -h

    Optional

    Display help for the given command. When no command is given display help for the <info>list</info> command

    Defaults to false

  • --quiet | -q

    Optional

    Do not output any message

    Defaults to false

  • --verbose | -v|-vv|-vvv

    Optional

    Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

    Defaults to false

  • --version | -V

    Optional

    Display this application version

    Defaults to false

  • --ansi

    Optional

    Force (or disable --no-ansi) ANSI output

  • --no-ansi

    Optional

    Negate the "--ansi" option

    Defaults to false

  • --no-interaction | -n

    Optional

    Do not ask any interactive question

    Defaults to false