# Huawei Getting Started

> Use when starting fresh with Huawei Cloud or KooCLI, installing prerequisites, setting up authentication, or exploring what is possible. Triggers: getting started, first time, setup, install, explore, quickstart, beginner, tutorial. NOT for: specific service operations (use huawei-ecs, huawei-obs, etc.).

- Skill: `huaweicloud/huawei-getting-started` (Agent Skill)
- Install (CLI): `npx skillmds@latest add huaweicloud/huawei-getting-started`
- Raw SKILL.md: https://api.skillmd.com/api/skills/huaweicloud/huawei-getting-started/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: huaweicloud (https://skillmd.com/u/huaweicloud)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/huaweicloud/huawei-getting-started

---


# Huawei Cloud Getting Started

**STOP - Do not answer from general knowledge.** Follow the procedure below.

## KooCLI Installation

This plugin is paired with **KooCLI v7.2.12**. Install the pinned version:

| OS                   | Command                                                                                                                                                                 |
| -------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Windows (PowerShell) | See https://support.huaweicloud.com/qs-hcli/hcli_02_003.html for MSI download                                                                                           |
| Linux                | curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.2.12/huaweicloud-cli-linux-amd64.tar.gz" && tar -zxvf huaweicloud-cli-linux-amd64.tar.gz |
| macOS                | curl -LO "https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/7.2.12/huaweicloud-cli-mac-amd64.tar.gz" && tar -zxvf huaweicloud-cli-mac-amd64.tar.gz     |

> See `huaweicloud-cli-and-auth` skill for arm64 variants and the one-liner (latest) option.

## First-Time Setup

1. **Install KooCLI** using command above
2. **Accept privacy policy** (first run only): KooCLI requires one-time privacy agreement. Run `hcloud version` to read the agreement, then respond `y` to accept. Do not pipe `echo "y" |` — you must review the terms first.
3. **Configure credentials (unified)**: `npx huaweicloud-devkit auth init` — prefer this over `hcloud configure init`, which only covers KooCLI.
4. **Verify**: `hcloud configure list` to confirm profile, then `hcloud ECS ListServersDetails --cli-region=cn-north-4`
5. For detailed auth guidance, see `huaweicloud-cli-and-auth` skill

> **Security**: Never pass AK/SK as command-line arguments (`--ak=...`). Always use `npx huaweicloud-devkit auth init` (unified, interactive) or `hcloud configure init` (KooCLI only) to avoid secrets in shell history.

### Non-Interactive Setup (Agent/CI Environments)

When the interactive TUI is unavailable (Agent tools, CI/CD), configure credentials outside agent chat using the unified entry point:

```bash
# User executes in their terminal (NOT in agent chat):
npx huaweicloud-devkit auth init

# Agent verifies through redacted tooling only:
hcloud configure list
```

> Do **not** instruct the user to run `hcloud configure set --cli-access-key=... --cli-secret-key=...` — AK/SK would enter shell history. Use `npx huaweicloud-devkit auth init` instead.

## Critical Warnings

| Trap                                   | Why                                                                                           |
| -------------------------------------- | --------------------------------------------------------------------------------------------- |
| AK/SK must be kept secret              | Never commit to git or share                                                                  |
| Default region applies to all commands | Override with --cli-region= per command                                                       |
| Some services region-specific          | Not all services available in all regions                                                     |
| Privacy policy blocks first run        | Run `hcloud version` to read and accept the agreement. Review the terms before responding `y` |

## What Can I Do? (Quick Index)

| Goal              | Skill                       |
| ----------------- | --------------------------- |
| Create a VM       | huawei-ecs                  |
| Store files       | huawei-obs                  |
| Set up a database | huawei-rds / huawei-gaussdb |
| Create a network  | huawei-vpc                  |
| Manage access     | huawei-iam                  |
| Deploy an app     | huawei-deployment           |
| Run containers    | huawei-cce                  |
| Build an API      | huawei-apig                 |
| Run serverless    | huawei-functiongraph        |
| Monitor resources | huawei-cloud-eye            |

## Pro Tips

- Use `hcloud <Service> --help` to discover operations (see huaweicloud-capability-discovery)
- Prepend `hcloud configure set --cli-region=<r>` to avoid per-command region flags
- Pipe sensitive output through IAM with `--cli-output-format=json`

