Help Center/ Koo Command Line Interface/ FAQs/ Regions/ Why Am I Seeing a Message Indicating that the cli-region Parameter Is Missing?
Updated on 2023-02-27 GMT+08:00

Why Am I Seeing a Message Indicating that the cli-region Parameter Is Missing?

Background

When you use KooCLI to call cloud service APIs, a proper value of cli-region is required. If you have neither specified the value of cli-region in the command, nor configured it in the current profile, the following error message is displayed:

[USE_ERROR] Specify cli-region.

Solution

  1. If the value of cli-region is not specified in the command, add --cli-region=${regionValue} to the command and try again.
  2. If there is a region you often use, run the hcloud configure set --cli-profile=${profileName} --cli-region=${regionValue} command to add it to the target profile. When you use the profile again to call an API, you do not need to enter the value of cli-region in the command. However, if the target API is not available in this region, enter --cli-region=${regionValue} in the command to specify a supported region.