alibabacloud-clilisted
Install: claude install-skill abdullahkhawer/devops-skills
# Alibaba Cloud CLI Skill
When running `aliyun` commands, always pass the `--profile` flag based on the target environment, and specify the region explicitly.
## Configuration
Update the profile map below with your Alibaba Cloud CLI profile names:
| Environment | Profile | Default Region |
|---|---|---|
| Production | `<your-prod-profile>` | `<your-prod-region>` (e.g. `cn-hangzhou`) |
| Staging / Non-Prod | `<your-nonprod-profile>` | `<your-nonprod-region>` (e.g. `ap-southeast-1`) |
### Prerequisites (one-time setup by user)
If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.
```bash
brew install aliyun-cli
aliyun configure --profile <your-profile-name>
aliyun configure list
```
## Command Format
```bash
aliyun <product> <action> --profile <profile> --region <region> [options]
```
### Examples
```bash
# Production
aliyun ecs DescribeInstances --profile <your-prod-profile> --region <your-prod-region>
# Staging / Non-Prod
aliyun ecs DescribeInstances --profile <your-nonprod-profile> --region <your-nonprod-region>
```
## Available Commands
### Read-only (safe, no confirmation needed)
| Command pattern | Description |
|---|---|
| `aliyun ecs DescribeInstances` | List ECS instances |
| `aliyun ecs DescribeInstanceAttribute` | Describe an ECS instance |
| `aliyun rds DescribeDBInstances` | List RDS database instances |
| `aliyun cs DescribeClusters` | List Kub