一键导入
getting-started
Use when acli is not installed, authentication fails, or user needs to install and authenticate acli for the first time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when acli is not installed, authentication fails, or user needs to install and authenticate acli for the first time.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when user asks about updating outdated Drupal packages, upgrading Drupal core minor or patch versions, updating contrib modules, or resolving composer version conflicts.
Use when user asks about fixing security vulnerabilities, composer audit failures, vulnerable Drupal packages, or CVE advisories in a Drupal codebase.
Use when user wants to update Drupal dependencies and deploy the changes to an Acquia environment, optionally triggering a pipeline build. Chains drupal-maintenance, acli, and pipelines-cli skills.
Use when listing Acquia Cloud applications, linking or unlinking a local repo to an application, opening an app in browser, checking VCS/branch deployment status, or exporting a site archive.
Use when setting up a new Code Studio (GitLab CI/CD) project, changing PHP version in Code Studio builds. NOT for checking pipeline job status — use pipelines-cli-pipeline-operations for that.
Use when listing, creating, deleting, or mirroring Cloud environments, managing CDEs, deploying code to an environment, or checking environment status.
| name | getting-started |
| description | Use when acli is not installed, authentication fails, or user needs to install and authenticate acli for the first time. |
| license | Proprietary |
| compatibility | acli>=2.x |
| metadata | {"category":"onboarding","author":"Acquia","version":"1.0.0","tags":"acli, acquia-cloud, cli, installation, authentication","software_requirements":"acli>=2.x"} |
This guide covers installation, authentication, and your first commands.
Use when:
Two separate CLIs exist for Acquia Cloud operations:
| Tool | Purpose |
|---|---|
acli | General Cloud management: applications, environments, IDEs, SSH keys, code/DB sync |
pipelines-cli | CI/CD pipeline operations: trigger builds, check job status, stream logs |
Use pipelines-cli for anything related to pipeline jobs. Use acli for everything else.
The native binary requires no PHP installation and works on any modern macOS or Linux system.
# Download the latest release
curl -fsSL https://github.com/acquia/cli/releases/latest/download/acli \
-o /usr/local/bin/acli
# Make it executable
chmod +x /usr/local/bin/acli
# Verify it works
acli --version
If you prefer or already have PHP 8.2 installed:
curl -fsSL https://github.com/acquia/cli/releases/latest/download/acli.phar \
-o /usr/local/bin/acli.phar
chmod +x /usr/local/bin/acli.phar
# Use as:
acli.phar --version
# Or create an alias
alias acli='acli.phar'
brew tap acquia/cli
brew install acli
acli --version
Acquia CLI uses OAuth to authenticate with your Acquia account. You'll only need to do this once.
acli auth:login
This will:
~/.acquia/cloud_api/credentials.json (encrypted)Tokens are valid for 30 days. If your token expires, run acli auth:login again.
acli auth:me
Shows your name, email, and account information.
See which applications you have access to:
acli api:applications:list
Output:
Select a Cloud Platform application:
[0] My First App (prod, staging, dev)
[1] Client Project (prod, staging)
[2] Development App (dev)
Enable tab completion for faster command entry.
eval "$(acli shell:complete bash)"
Add to ~/.bashrc for permanent setup:
echo 'eval "$(acli shell:complete bash)"' >> ~/.bashrc
source ~/.bashrc
eval "$(acli shell:complete zsh)"
Add to ~/.zshrc:
echo 'eval "$(acli shell:complete zsh)"' >> ~/.zshrc
source ~/.zshrc
acli shell:complete fish | source
Add to ~/.config/fish/config.fish:
acli shell:complete fish | source
Every command has a built-in help page:
# General help
acli --help
acli -h
# Help for a specific command
acli ide:create --help
acli ide:create -h
# List all available commands by category
acli list
For debugging, show detailed output:
# -v (normal), -vv (detailed), -vvv (very detailed)
acli ide:list -vvv
acli ide:create -v
Run any command in debug mode to see behind-the-scenes details:
acli ide:create --debug
Configuration is stored at: ~/.acquia/
~/.acquia/
├── cloud_api/
│ └── credentials.json # Your API token (encrypted)
├── config.yaml # Settings
└── cache/ # Cached data
Run acli app:link in your project directory to associate it with a Cloud application. See Application Management for details.
acli auth:login
acli auth:me
cd /path/to/project
acli app:link
acli ide:create # Create a new one
# OR
acli ide:list # Connect to existing
acli ssh-key:list # See your SSH keys
# If no keys, create one
acli ssh-key:create
acli remote:drush status
acli remote:drush cr # Clear caches
Make sure the binary is in your PATH. Try:
which acli
# If nothing, add to PATH
export PATH="/usr/local/bin:$PATH"
acli --version
Your token has expired or isn't valid. Try:
acli auth:login
You don't have permission to access that application or resource. Check:
Run acli auth:me to verify you're using the right account.
See Troubleshooting Guide for more issues.
If your organization uses Acquia Site Factory, register separate credentials:
acli auth:acsf-login
Options:
acli auth:acsf-login \
--username=myuser \
--key=MY_API_KEY \
--factory-url=https://www.myfactory.com
To log out:
acli auth:acsf-logout
Clear local acli caches (useful when commands behave unexpectedly):
acli self:clear-caches
Aliases: acli cc, acli cr
acli collects anonymous usage data by default to help improve the tool. To opt out:
acli self:telemetry:disable
To re-enable:
acli self:telemetry:enable
Toggle interactively:
acli self:telemetry:toggle
Alias: acli telemetry
Open Acquia product docs in your browser:
acli docs
For a specific product:
acli docs acli
acli docs cloud-ide
acli auth:login before anything else; most commands require it.acli list to see all available commands grouped by topic.acli shell:complete once to get tab-completion for commands and flags.acli self:info to confirm your authenticated identity and acli version.acli self:update regularly to get bug fixes and new features.acli self:clear-caches if commands return unexpected results.Now that you're set up, try: