HUAWEI CLOUD command-line tool service KooCLI facilitates one-click management of cloud resources

Operation and maintenance students may not be unfamiliar with CLI, that is, a command line tool. It abandons the need for a graphical interface, and no longer sticks to visual page switching, button clicking and other operations. Instead, it provides users with a convenient and highly controlled tool. The solution enables users to manage resources with one line of command in daily operation and maintenance work, and the efficiency improvement is obvious.

What is HUAWEI CLOUD KooCLI ?

HUAWEI CLOUD command line tool service (Koo Command Line Interface, KooCLI, formerly known as HCloud CLI) is an open source command line management tool provided for cloud service APIs published on API Explorer. You can use this tool to call APIs opened by various cloud services in API Explorer to manage and use various cloud service resources.

We can view KooCLI product details through the developer tools to understand and use it.

 HUAWEI CLOUD KooCLI---- work is so simple!

From an operation and maintenance engineer: Many tasks in operation and maintenance are highly repetitive. Compared with repeated clicks on the visual interface, we prefer the "simple" black and white text interface.

Now many enterprises go to the cloud, and we are pleasantly surprised by the abundant resources on the cloud, which also means that we need to improve our business and operational capabilities. We urgently hope to shorten the learning process, simplify operations and at the same time form our own precipitation to provide convenience for follow-up work or future generations.

For example, if you create an ECS at one time, after the console operation is completed, the next time you create it, you will repeat the creation steps over and over again, resulting in low work efficiency.

In KooCLI, only one-click commands are needed to call the object API to easily complete the creation of the elastic cloud server. In addition, commands can be written into scripts to customize the operation and maintenance content. After that, you only need to change the key parameters, and you can directly execute the desired operation with one click. It is easy to maintain, expandable, and inheritable, which greatly improves our work efficiency.

HUAWEI CLOUD KooCLI---- Enhance the user experience of cloud products

HUAWEI CLOUD KooCLI supports multi-system operation including Linux, Windows, and Mac, and is green and free of installation. It can be used after downloading to the local and decompressing.

Before officially starting to use KooCLI, we need to perform initialization configuration. The initialization command of KooCLI can be used to store commonly used permanent AK /SK and area information in the configuration file, so as to avoid frequent input of these fixed information during use.

 Afterwards, we can use KooCLI's rich and powerful help commands to query the cloud service list, cloud service operation list, and cloud service specific operation parameter information to help users quickly manage cloud resources.

        

In addition, users can also directly copy the automatically generated target commands to KooCLI after filling in the relevant parameters through the API Explorer --- CLI example tab, or integrate them into scripts to call, making cloud resource management work easier.

KooCLI currently also provides users with other rich functions, which can make users use it more smoothly.

  • configuration item management
  • To manage resources in multiple regions or projects, or use multiple accounts at the same time, you can store fixed information for multiple different scenarios by adding configuration items.
  • Supports setting custom parameters in configuration items, which is convenient for users to centrally manage commands that are frequently used, whose parameter values ​​are too long, or parameters whose values ​​need to be encrypted, reducing the parameters required by the API and making the commands shorter.
  • command interaction
  • Turn on auto-completion, use the "Tab" key when entering a command, and the content to be completed will be prompted according to the existing command, improving the efficiency of command input.
  • It supports powerful interactive prompts supported by multiple platforms, and prompts cloud service names, API operations, parameters and descriptions according to user input, which is convenient for command construction.
  • metadata management

In order to reduce the number of remote calls and improve command response speed, KooCLI introduces a caching mechanism

  • In online mode, the detailed information of the target cloud service and its API in your command will be obtained remotely, and the relevant information of the cloud service and its API will be saved in the local cache file during operation
  • Offline mode, download offline metadata package in advance
  • log management
  • Provides log recording and management functions, and will cache the log information generated during the API call process, so that users can query the logs generated during the API call process.
  • template management
  • Provides a shell script template composed of multiple KooCLI commands, which is convenient for users to clarify business logic and complete operations in complex scenarios.
  • Control command output
  • Three output formats are supported: json , table , tsv . Output in json format by default.
  • Provides the function of passing in JMESPath expressions, and executes JMESPath queries on the json results to filter out the information you need.
  • Simplified commands to manage OBS
  •    Integrates the functions of obsutil, a tool for managing OBS data through the command line. For details, see Managing Data in OBS_HUAWEI CLOUD Command Line Tool Service KooCLI_User Guide_Common Commands_HUAWEI CLOUD

        

As a powerful tool to support automation work, HUAWEI CLOUD KooCLI provides a convenient and fast way to access, use and manage the cloud. HUAWEI CLOUD attaches great importance to user experience, and will continue to improve user efficiency and will actively develop Produce products that are more conducive to improving the needs of users.

In the future, KooCLI will only get better, so stay tuned!

  

Product official website link: https://support.huaweicloud.com/hcli/index.html

おすすめ

転載: blog.csdn.net/hwxiaozhi/article/details/131686336