Huawei Cloud CLI Guidance for Openclaw

A complete, step-by-step developer guide to installing, configuring, and automating operations using the Huawei Cloud CLI (KooCLI) command-line interface.

jason7602
v0.0.2
Jun 5, 2026
0
544
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install hwc-cli-guidance-v2

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install hwc-cli-guidance-v2 using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Huawei Cloud CLI Guidance?

Huawei Cloud CLI Guidance is a highly structured technical manual designed to help developers seamlessly adopt, configure, and run Huawei Cloud's command-line interface (KooCLI). By utilizing this guidance, developers can manage their core cloud infrastructure, resources, and applications entirely from local terminals or automated CI/CD pipelines. This interactive documentation is natively supported as one of the elite Openclaw Skills, giving users programmatic access to cloud resources.

Whether you need to initialize credentials via Access Keys, manage environment profiles, or run complex queries on cloud servers, this guide acts as your primary command center. Integrating this skill into your AI workflows via Openclaw Skills bridges the gap between terminal automation and AI-driven infrastructure management, accelerating devops processes globally.

Huawei Cloud CLI Guidance Use Cases

  • Cloud Infrastructure Automation: Automate the lifecycle of cloud servers (ECS) and databases (RDS) through bash scripts.
  • Batch Data Migration: Perform high-throughput object storage (OBS) transfers and file management programmatically using shell commands or Python processes.
  • Real-time Monitoring & Alerting: Query CPU utilization metrics and setup alerting thresholds dynamically with cloud monitoring tools (CES).
  • Serverless Automation: Deploy, query, and trigger FunctionGraph serverless functions seamlessly from terminal environments.

How Huawei Cloud CLI Guidance Works

  1. Environment Preparation: Ensure Python 3.8+ is installed across Windows, macOS, or Linux, then obtain Access Keys from the Huawei Cloud console.
  2. KooCLI Installation: Install the core CLI tool using pip, curl, or PowerShell package managers.
  3. Authentication Configuration: Run hcloud configure init to securely hook up Access Key ID, Secret Access Key, and designated region.
  4. Command Execution: Execute service-specific requests to fetch server lists, write files to object buckets, or query performance metrics.
  5. Multi-profile Switching: Maintain independent credentials for dev, testing, or prod environments using built-in profile managers.

Huawei Cloud CLI Guidance Setup

pip install huaweicloudsdkcore
pip install huaweicloudsdkkoocli

2. Install via curl (Linux/macOS)

curl -LO https://dl.koo.cloud/cli/latest/huaweicloud-cli-linux-amd64.tar.gz
tar -xzvf huaweicloud-cli-linux-amd64.tar.gz
sudo mv huaweicloud-cli-linux-amd64 /usr/local/bin/hcloud

3. Initialize Credentials

hcloud configure init

Follow the interactive prompts to insert your Access Key ID, Secret Access Key, and target region.

Huawei Cloud CLI Guidance Data Schema & Taxonomy

The Huawei Cloud CLI structures profiles, outputs, and errors according to the following schema:

Error Codes and Handling Schema

Error Code Error Meaning Recommended Solution
401 Authentication Failed Verify AK/SK correctness and re-initialize configuration
403 Insufficient Permissions Adjust IAM policies for the target user in Huawei Cloud Console
404 Resource Not Found Verify resource IDs or query boundaries
429 Rate Limit Exceeded Reduce polling intervals or request frequency
500 Internal Server Error Contact Huawei Cloud technical support

Formatting and Queries

Use --output=json or --output=table to dynamically format results. Apply filtering parameters like --query='servers[*].id' to narrow down JSON arrays.

Huawei Cloud CLI Guidance Advanced Features

  • Multi-Environment Profiles: Seamlessly switch active environments (e.g., dev, test, prod) via hcloud configure set --profile=prod directly within Openclaw Skills integrations.
  • Python Shell Integrations: Execute commands programmatically inside Python scripts with robust exception handling and output capture processes.
  • Dynamic Output Customization: Filter complex JSON query responses directly from the command line, reducing network overhead and formatting payloads for downstream automation tools.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*