Help Center> Koo Command Line Interface> User Guide> Options> Specifying Authentication Mode
Updated on 2024-06-17 GMT+08:00

Specifying Authentication Mode

KooCLI allows you to set the authentication mode to AKSK and ecsAgency in a profile. AKSK is recommended. If the profile you use contains parameters related to different authentication modes, 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 ecsAgency, set --cli-mode=ecsAgency.