hcloud_cli
Execute Huawei Cloud CLI commands to manage services. Explore available operations with --help and safely perform destructive actions with dry-run.
Instructions
Huawei Cloud CLI (hcloud) terminal interface.
Navigate the CLI using --help to discover operations and parameters:
--help— list all available services<Service> --help— list operations for a service (e.g.,IAM --help)<Service> <Operation> --help— show parameters for an operation (e.g.,IAM ListCustomPolicies --help)<Service> <Operation> --param1=value1 --param2=value2— execute an operation
The parameter format is always --param=value (equals sign required).
JSON output is forced automatically (--cli-output=json).
For destructive operations (Delete, Remove, Revoke, Detach, etc.), set confirm=true to execute. Without confirmation, the command runs in --dryrun mode first.
OBS (Object Storage Service) uses obsutil with a different format:
obs help— list all OBS commandsobs help <command>— show help for a specific command (e.g.,obs help ls)obs <command> [args...] [options...]— execute an OBS commandUse
--cli-region=<region>to specify the region (translated to the OBS endpoint automatically)OBS output is plain text (not JSON)
For OBS destructive commands that support dry-run (cp, mv, sync), the command runs with -dryRun unless confirmed
For OBS destructive commands without dry-run support (rm, abort, mb, chattri, bucketpolicy, lifecycle), you must set confirm=true to execute
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| command | Yes | hcloud CLI arguments (everything after 'hcloud'). Examples: '--help', 'IAM --help', 'IAM ListCustomPolicies --help', 'IAM ListCustomPolicies', 'IAM DeleteCustomPolicy --role_id=abc123', 'obs help', 'obs help ls', 'obs ls --cli-region=la-north-2', 'obs rm obs://bucket/key' | |
| confirm | No | Set to true to execute destructive operations. If false (default), destructive commands run in --dryrun mode (or are refused for OBS commands without dry-run support). |