How acquia/cli works
Acquia CLI is a Symfony-based command-line client for Acquia Cloud Platform. A user invokes a command, which may resolve Cloud or ACSF API clients and perform a platform operation; the database-push example also stages a local dump, transfers it, and imports it remotely. The tree shows broad command families for IDEs, environments, applications, authentication, SSH, and Code Studio. README documents Drush and log-tail support. Several command families were not sampled, so their internal call paths are not asserted.
Main entry points: ClientService.php Cloud API client service · CommandBase.php Command base · PushDatabaseCommand.php Push database · PullCommandBase.php Pull workflows
Components 22
CLI runtime
- Console application
src/Application.php - Command base
src/Command/CommandBase.php - Authentication commands
src/Command/Auth - Configuration datastore
src/DataStore/Datastore.php
Platform access
- Cloud API client service
src/CloudApi/ClientService.php - Cloud connector factory
src/CloudApi/ConnectorFactory.php - ACSF client service
src/AcsfApi/AcsfClientService.php - ACSF response client
src/AcsfApi/AcsfClient.php
Cloud operations
- Environment commands
src/Command/Env - Pull workflows
src/Command/Pull/PullCommandBase.php - Pull database
src/Command/Pull/PullDatabaseCommand.php - Push database
src/Command/Push/PushDatabaseCommand.php - Local process helper
src/Helpers/LocalMachineHelper.php - SSH helper
src/Helpers/SshHelper.php - Environment transformer
src/Transformer/EnvironmentTransformer.php
Developer workflows
- Cloud IDE commands
src/Command/Ide - Application commands
src/Command/App - Code Studio workflows
src/Command/CodeStudio - Remote command tools
src/Command/Remote - Archive export
src/Command/Archive/ArchiveExportCommand.php
Other components
- CLI user
- Acquia Cloud API
Connections 23
- CLI user → Console application: invokes
README.md - Console application → Command base: dispatches commands
src/Command/CommandBase.php - CLI user → Authentication commands: authenticates
README.md - Command base → Cloud API client service: uses API client
src/Command/CommandBase.php - Command base → ACSF client service: uses ACSF client
src/Command/CommandBase.php - Cloud API client service → Cloud connector factory: creates connector
src/CloudApi/ClientService.php - Cloud API client service → Acquia Cloud API: sends API requests
- ACSF client service → ACSF response client: creates client
src/AcsfApi/AcsfClientService.php - CLI user → Environment commands: manages environments
README.md - CLI user → Pull workflows: pulls site data
README.md - Pull database → Pull workflows: delegates
src/Command/Pull/PullDatabaseCommand.php - Pull workflows → Cloud API client service: queries platform
src/Command/Pull/PullCommandBase.php - CLI user → Push database: pushes database
src/Command/Push/PushDatabaseCommand.php - Push database → Cloud API client service: gets environment data
src/Command/Push/PushDatabaseCommand.php - Push database → Local process helper: creates local dump
src/Command/Push/PushDatabaseCommand.php - Push database → SSH helper: imports remotely
src/Command/Push/PushDatabaseCommand.php - CLI user → Cloud IDE commands: manages IDEs
README.md - CLI user → Application commands: manages applications
README.md - CLI user → Code Studio workflows: runs CI migration
- CLI user → Remote command tools: runs remote commands
README.md - CLI user → Archive export: exports archive
- Pull workflows → Environment transformer: transforms environments
src/Command/Pull/PullCommandBase.php - Command base → Configuration datastore: uses datastore
src/Command/CommandBase.php