Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Alibaba Cloud CLI

$ aliyun Official High Risk
Alibaba Cloud · Cloud & Infra · Apache-2.0 · macos / linux / windows

Alibaba Cloud CLI (aliyun) invokes Alibaba Cloud OpenAPI endpoints directly from a single Go binary, returning JSON by default and supporting --profile switching, --region overrides, --output tabular extraction, and --waiter polling.

FCRS-1.0 Score
81 /100
Good
Medium Confidence
Zero-Friction Install
brew install aliyun-cli
CLI vs MCP Decision CLI Preferred vs MCP

aliyun maps 1:1 to Alibaba Cloud OpenAPI RPC/ROA calls with default JSON responses, avoiding MCP wrapper lag.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 20 / 25

Emits JSON by default and exposes embedded API metadata via aliyun <product> --help, though it lacks built-in JMESPath filtering.

  • Default JSON output; lacks built-in --query projection
Trust & Safety 18 / 25

Supports --profile isolation and STS tokens, but lacks a universal --dry-run flag outside select APIs like ECS --DryRun.

  • Supports named --profile configs and RAM/STS credentials
Setup & Portability 14 / 15

Fast standalone Go binary installable via Homebrew or GitHub releases across macOS, Linux, and Windows.

  • Single Go binary via brew install aliyun-cli
Utility & Efficiency 12 / 15

Covers broad Alibaba Cloud OpenAPI surface, though PascalCase RPC flags require careful parameter matching.

  • Direct RPC/ROA API mapping across Alibaba Cloud products
Maintenance & Lineage 9 / 10

Official aliyun/aliyun-cli repository actively maintained by Alibaba Cloud.

  • Official aliyun/aliyun-cli under Apache-2.0
Docs & Verifiability 8 / 10

Includes offline OpenAPI metadata (aliyun <service> <action> --help) alongside online documentation.

  • Embedded API parameter help per service

Security, Auth & Guardrails

Auth Modes
Config File Env API Key Service Account
Credential Storage

Stores profiles in ~/.aliyun/config.json, or reads ALIBABA_CLOUD_ACCESS_KEY_ID, ALIBABA_CLOUD_ACCESS_KEY_SECRET, and ALIBABA_CLOUD_STS_TOKEN.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

CLI is free (Apache-2.0); cloud resource actions incur Alibaba Cloud billing.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Aliyun CLI Agent Rules
- Explicitly pass `--profile` and `--region` on every invocation.
- Restrict agents to read-only RAM policies (`ReadOnlyAccess`) during discovery.
- Require approval before calling `Delete*`, `Release*`, or `Stop*` OpenAPI actions.

Agent-Ready Command Recipes

Safe Read-Only Queries

List configured Alibaba Cloud profiles
aliyun configure list

Checks active profile names, regions, and authentication modes.

Describe ECS instances in JSON
aliyun ecs DescribeInstances --RegionId cn-hangzhou --PageSize 20

Returns raw JSON directly from the ECS OpenAPI endpoint.

Strengths for Agents

  • + Fast single Go binary with zero runtime dependencies.
  • + Outputs raw OpenAPI JSON by default.
  • + Supports --profile and STS temporary credentials.

Caveats & Pitfalls

  • ! No built-in JMESPath --query flag; pipe to jq for field filtering.
  • ! Service APIs use mixed PascalCase parameters and lack a universal CLI --dry-run.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI