ach-cli is a command line interface for users to interact with Acquia China Managed Service. It is installed on each server of China Managed Server. With Acquia China CLI, you can:
Trigger code deployment
Import the database file
Prerequisites
Ensure that you have SSH access to the server for each environment.
Deploying code with ach-cli
Run the following command to deploy code with a specific branch:
ach-cli deploy -e <environment> -b <branch>
Run the following command to check the deployment history:
Run the following command to check the detail of a deployment job with ID:
ach-cli deploy describe <Build ID>
Command line interface
ach-cli is a command line interface for users to interact with Acquia China Managed Service. It is installed on each server of China Managed Server. With Acquia China CLI, you can:
Trigger code deployment
Import the database file
Prerequisites
Ensure that you have SSH access to the server for each environment.
Deploying code with ach-cli
Run the following command to deploy code with a specific branch:
ach-cli deploy -e <environment> -b <branch>
Run the following command to check the deployment history:
Run the following command to check the detail of a deployment job with ID:
ach-cli deploy describe <Build ID>
Importing the database with ach-cli
China Managed Service does not support the drushsql-import command. Therefore, you must use the ach-clisql-import command to import the database from sql files.
Run the following command to import the database with the .sql extension:
ach-cli sql-import -l <site alias> < db.sql
Run the following command to import the database with the .sql.gz extension:
China Managed Service does not support the drushsql-import command. Therefore, you must use the ach-clisql-import command to import the database from sql files.
Run the following command to import the database with the .sql extension:
ach-cli sql-import -l <site alias> < db.sql
Run the following command to import the database with the .sql.gz extension: