| name | troubleshooting |
| description | Use when acli commands fail, return unexpected errors, authentication breaks, or the CLI behaves unexpectedly. |
| license | Proprietary |
| compatibility | acli>=2.x |
| metadata | {"category":"troubleshooting","author":"Acquia","version":"1.0.0","tags":"acli, acquia-cloud, troubleshooting, errors, authentication","software_requirements":"acli>=2.x"} |
Troubleshooting Acquia CLI
Use when:
- Diagnosing acli authentication failures
- Resolving command errors or unexpected output
- Collecting information before contacting support
General Issues
"Command not found: acli"
Cause: The binary isn't in your system PATH.
Solutions:
which acli
export PATH="/usr/local/bin:$PATH"
acli --version
echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
"Permission denied" when running acli
Cause: The binary isn't executable.
Solution:
chmod +x /usr/local/bin/acli
acli --version
"acli: command not found" after updating
Cause: Update didn't complete or PATH changed.
Solution:
curl -fsSL https://github.com/acquia/cli/releases/latest/download/acli \
-o /usr/local/bin/acli
chmod +x /usr/local/bin/acli
acli --version
Authentication Issues
"Error: Failed to authenticate"
Cause: Your authentication token expired or isn't valid.
Solution:
acli auth:login
"Error: Access Denied"
Cause: Your account doesn't have permission to access the resource.
Solutions:
-
Check you're logged in with the right account:
acli auth:me
-
Verify you have access in Acquia Cloud UI:
-
Log out and back in:
acli auth:logout
acli auth:login
"Invalid JSON in credentials.json"
Cause: Credentials file is corrupted.
Solution:
rm -rf ~/.acquia/cloud_api/
acli auth:login
IDE Issues
IDE won't start
Symptoms: IDE shows "Starting..." indefinitely or won't load.
Solutions:
-
Try restarting IDE services:
acli ide:service-stop
acli ide:service-start
-
Check IDE status:
acli ide:info
-
Wait if newly created:
New IDEs take 2-3 minutes to start. Check again in a minute.
-
Try creating a new IDE:
acli ide:create
IDE is very slow
Causes: Hibernation waking, stuck processes, or resource limits
Solutions:
-
Wait if waking from hibernation:
IDEs waking take 30-60 seconds. Be patient.
-
Clear Drupal caches:
acli remote:drush cr
-
Restart IDE:
acli ide:service-restart
-
Create a fresh IDE:
acli ide:create --label "Fresh IDE"
"Access Denied" when opening IDE
Cause: Your SSH key isn't set up.
Solution:
acli ssh-key:create
acli ide:open
IDE appears deleted but still exists
Cause: The IDE is hibernated or the listing is cached.
Solution:
acli self:clear-caches
acli ide:list
SSH Key Issues
"Permission denied (publickey)"
Cause: SSH key isn't set up or not used correctly.
Solutions:
-
Verify SSH key exists:
ls -la ~/.ssh/id_rsa
-
If not, create one:
acli ssh-key:create
-
Check permissions (must be 600):
chmod 600 ~/.ssh/id_rsa
-
Verify key is added to Acquia account:
acli ssh-key:list
"SSH key not found when creating IDE"
Cause: IDE creation requires an SSH key for secure access.
Solution:
acli ssh-key:create
acli ide:create
"Multiple SSH keys - which one to use?"
Solution:
Add to ~/.ssh/config:
Host ide-*.ides.acquia.com
IdentityFile ~/.ssh/my_custom_key
Application & Environment Issues
"No applications found"
Cause: You don't have access to any applications yet.
Solutions:
-
Check if you're in a team:
acli auth:me
-
Ask your team admin to add you to an application
"Error: Application not found"
Cause: Wrong application UUID or no access.
Solutions:
-
List applications to find the right one:
acli api:applications:list
-
Use the correct application:
acli ide:create --application=<correct-uuid>
Command Execution Issues
"Error: Drush command failed"
Cause: Drush error in your Drupal site.
Solutions:
-
Check Drush output for details:
acli remote:drush status
-
Clear caches:
acli remote:drush cr
"Error: Could not connect to remote server"
Cause: Network connectivity or SSH key issue.
Solutions:
-
Check SSH key setup:
acli ssh-key:list
-
Try verbose output for details:
acli -vvv <command>
Performance Issues
Commands taking too long
Solutions:
-
Try again (might be temporary)
-
Check internet connection:
ping acquia.com
-
Try with shorter timeout:
acli <command> --no-wait
Cache causing stale data
Cause: CLI caches API responses.
Solutions:
acli self:clear-caches
acli <command>
acli <command> --no-cache
Getting Help
Check your acli version
acli --version
Enable debug output
acli -vvv <command>
acli -vvv <command> > debug.log 2>&1
View all help
acli --help
acli list
acli <command> --help
Getting Help from Support
Before contacting support, gather info
acli --version
acli auth:me
acli api:applications:list
acli ide:list
acli ssh-key:list
acli -vvv <command> 2>&1 | tee debug.log
Contact Acquia Support
Common Error Messages
| Error | Meaning | Solution |
|---|
| "Error: Access Denied" | You don't have permission | Check account access, team membership |
| "Command not found" | Binary not in PATH | Check installation, verify PATH |
| "Failed to authenticate" | Token expired or invalid | Re-run acli auth:login |
| "SSH Key not found" | IDE needs SSH key | Create key with acli ssh-key:create |
| "IDE not starting" | IDE provisioning slow or failed | Wait 2-3 min, restart, or create new |
| "Permission denied (publickey)" | SSH key issue | Verify key setup: acli ssh-key:list |
| "No applications found" | No team access | Ask admin to add you to team |
Advanced Troubleshooting
Check API responses
acli -vvv <command> 2>&1 | grep -A 5 "Response:"
Reset all configuration
rm -rf ~/.acquia
acli auth:login
Best Practices
- Stay updated — Run
acli self:update regularly; many errors are fixed in newer versions.
- Check authentication first — Run
acli auth:me before blaming other commands.
- Use verbose mode — Add
-vvv to any failing command to see detailed error output.
Still stuck? Contact Acquia Support