auth:login
Register Cloud Platform API credentials
Authenticates ACLI with Acquia Cloud Platform.
Acquia CLI can store multiple sets of credentials in case you have multiple Cloud Platform accounts. However, only a single account can be active at a time. This command allows you to activate a new or existing set of credentials.
Which sign-in it uses depends on what is already stored:
- --use-legacy-auth, or --key/--secret on the command line, always uses the API key and secret.
- An active API key: ACLI reports it and offers device code sign-in instead. Declining keeps the existing key chooser.
- An active device code session: ACLI offers to re-authenticate by device code.
- Nothing stored: device code sign-in, which needs no API key.
Device code sign-in prints a URL and a short code. Open the URL in a browser on any device, sign in to Acquia, and confirm the code to finish signing in.
Usage
acli auth:login [-k|--key KEY] [-s|--secret SECRET] [--use-legacy-auth] [--environment ENVIRONMENT]
acli login
Options
--key | -k
Required
Your Cloud Platform API key
--secret | -s
Required
Your Cloud Platform API secret
--use-legacy-auth
Optional
Force API key/secret authentication instead of device code flow
Defaults to
false--environment
Required
Cloud Platform API environment
Defaults to
"prod"--help | -h
Optional
Display help for the given command. When no command is given display help for the `list` command
Defaults to
false--quiet | -q
Optional
Do not output any message
Defaults to
false--verbose | -v|-vv|-vvv
Optional
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Defaults to
false--version | -V
Optional
Display this application version
Defaults to
false--ansi
Optional
Force (or disable --no-ansi) ANSI output
--no-ansi
Optional
Negate the "--ansi" option
--no-interaction | -n
Optional
Do not ask any interactive question
Defaults to
false