Help Center> Koo Command Line Interface> User Guide> Options> Specifying Authentication Mode
Updated on 2023-02-27 GMT+08:00

Specifying Authentication Mode

KooCLI allows you to set the authentication mode to AKSK, token, ecsAgency, or agency in a profile. AKSK is recommended. If the profile you use contains parameters related to different authentication modes such as AK/SK and token, use --cli-mode to specify the mode that will be used.

hcloud CCE ListNodes --cluster_id="f288****-****-****-****-****ac101534" --project_id="0dd8cb****************19b5a84546" --cli-profile=test --cli-mode=AKSK

When configuring a profile, use --cli-profile to specify the profile name and add authentication parameters corresponding to --cli-mode.

  • If --cli-mode is AKSK, set both --cli-access-key and --cli-secret-key.
  • If --cli-mode is token, set --cli-x-auth-token.
  • If --cli-mode is ecsAgency, set --cli-mode=ecsAgency.
  • If --cli-mode is agency, set --cli-agency-domain-id/--cli-agency-domain-name, --cli-agency-name, and --cli-source-profile.