Authentication in the CLI is done using a service account. Please refer to the Set up a service account guide to create a service account.
To configure the CLI to authenticate using a service account, you'll need to set the authentication details for the service account using the auth set-service-account-credentials command, and specify the desired account to use when running a command using the --account top-level flag (or using the $UTILA_ACCOUNT environment variable).
Alternatively, you can set the authentication details of the user, in one of following forms:
- Set the service account's private key using the $UTILA_SA_PRIVATE_KEY environment variable
- Put the service account's private key under the config dir in the following location: <config-dir>/credentials/<account-email>/private_key.pem