Information for: DEVELOPERS   PARTNERS

Using the Dev Studio CLI


Dev Studio CLI will reach end-of-life on March 30, 2021. Acquia will no longer support Dev Studio CLI after March 30, 2021. Dev Studio CLI is replaced by Acquia CLI and Acquia Cloud IDE. Acquia recommends you to move from Dev Studio CLI to Acquia CLI and Acquia Cloud IDE which are more secure, reliable, and scalable.

The Dev Studio command-line interface (CLI) includes command line-based documentation you can use to explore its available functions by running the following command from a command prompt window:

ads help

Commands within the Dev Studio CLI can be nested, or they can be within topics to provide a clear experience. Dev Studio CLI exposes these topics of commands before listing every related command. For a tutorial about a specific command, add the --help parameter for the command. For example, running ads api --help displays results similar to the following:

Utilize the Cloud Platform REST API. Run api:setup to insert your api keys.

   ads api:COMMAND

  api:accounts                   Returns details about your account.
  api:agreement                  Accepts a legal agreement by UUID.

Displaying CLI help topics

Dev Studio CLI includes over 200 commands for interacting with Cloud Platform. To view a list of topics and commands, run either of the following commands:

  • ads help: Displays all top-level topics.
  • ads help <topic>: Displays all commands for the specified topic.

Overriding CLI commands


Overriding commands can cause your application to not function properly.

If you need to change an ads command for a project, you can override the command by using a project-based YAML configuration file. To generate a sample configuration file, run the command with an --override flag, and then edit the listed file to run the code needed for your environment. Dev Studio supports only the chaining of commands.

You can override the following commands:

The following example overrides the ads deploy command:


ads deploy --override


ads deploy is now overridden in /home/acquia/ads-projects/vagrant1/ads.yml
with a sample command.
Use ads deploy --delete-override to restore the original command.
Please edit ads.yml as needed:

version: 1
      - echo "ads deploy is overwritten by this in ads.yml"
    concurrent: false
    exitOnError: true
    verbose: true

[[email protected] vagrant1]$ ads deploy
[18:29:54] echo "ads deploy is overwritten by this in ads.yml" [started]
ads deploy is overwritten by this in ads.yml
[18:29:54] → ads deploy is overwritten by this in ads.yml
[18:29:54] echo "ads deploy is overwritten by this in ads.yml" [completed]

To cancel the override, run the command with the --delete-override flag, as displayed in the following example:


ads deploy --delete-override


ads deploy is no longer overridden.

Troubleshooting Dev Studio CLI

To troubleshoot most Dev Studio CLI-related error messages, complete the following steps:

  • Re-run commands using --verbose to diagnose issues.
  • Use ads logs:tail [ENVIRONMENT] when running commands to get log output to terminal.
Error message Resolution
No container found for PROJECTNAME Run ads start from the project directory to start Lando.
Invalid commit message!

The override for the Acquia BLT Git hooks is -n. For example:

git commit -m "message" -n