Login
Safely stores the Service Account Key ID and Secret key locally.
Read time 1 minuteLast updated 21 hours ago
Safely stores the Service Account Key ID and Secret key locally.
Interactive usage
By default, calling this command prompts you to enter your service accountkey-idsecret-keyugs loginEnter your key-id: <your-key-id>Enter your secret-key: <your-secret-key>
Automated usage
You can automate login by using both the--service-key-id--secret-key-stdinThe
--service-key-idkey-idThe
--secret-key-stdinsecret-keyWhereugs login --service-key-id "your-key-id" --secret-key-stdin < "secret-key-file"
"your-key-id"key-id"secret-key-file"secret keyOptions
Option | Alias | Description |
|---|---|---|
| key-id | --service-key-id | The key-id of your service account. Must be used with "--secret-key-stdin". |
| secret-key | --secret-key-stdin | The secret-key of your service account. Must be used with "--service-key-id". |
| help | -?, -h, --help | Display help and usage information. |
| quiet | -q, --quiet | Reduce logging to a minimum. |
| json | -j, --json | Use JSON as the output format. |
Environment Variables
Logging in with Environment Variables
To log in manually use theugs loginUGS_CLI_SERVICE_KEY_IDUGS_CLI_SERVICE_SECRET_KEYlocal configurationService Account Key ID and Secret key environment variables