How youngsunli/aca works
aca is a CLI for operating Windows IIS sites and services on Alibaba Cloud ECS through Cloud Assistant. The primary workflow is to discover/configure targets, pre-check and deploy a package across servers, then inspect or roll back deployments; it also provides remote administration, diagnostics, and certificate management. The graph follows documented command capabilities and sampled TypeScript call sites. PowerShell scripts implement server-side actions, but their individual internals and some command wiring were not sampled.
Main entry points: cli.ts aca CLI · ecs.ts ECS API · deploy.ts Deploy and check · rollback.ts Rollback
Components 23
CLI and targets
- aca CLI
src/cli.ts - Target config
src/config.ts - Discovery
src/discover.ts - Agent skill
.claude/skills/aca/SKILL.md
Release operations
- Deploy and check
src/deploy.ts - Rollback
src/rollback.ts - Load balancing
src/clb.ts - Server scripts
ps
Remote operations
- Status overview
src/overview.ts - File comparison
src/diff.ts - Log inspection
src/logs.ts - Remote file transfer
src/pull.ts - PowerShell runner
src/ecs.ts
Certificate management
- Certificate operations
src/certs.ts - Cloud certificates
src/cas.ts
Cloud and internals
- ECS API
src/ecs.ts - Package and transfer storage
src/oss.ts - Target leases
src/lease.ts
Other components
- Operator
- AI agent
- Alibaba Cloud
- OSS
- Windows servers
Connections 42
- Operator → aca CLI: runs commands
- AI agent → Agent skill: uses guidance
- Agent skill → aca CLI: invokes
- aca CLI → Target config: loads
- aca CLI → Discovery: dispatches
- Discovery → ECS API: queries instances
- aca CLI → Deploy and check: dispatches
- Deploy and check → Target config: resolves targets
- Deploy and check → Target leases: acquires target lease
- Deploy and check → Package and transfer storage: uploads package
- Deploy and check → Server scripts: renders scripts
- Deploy and check → ECS API: runs checks and deploy
- Deploy and check → Load balancing: takes servers out
- aca CLI → Rollback: dispatches
- Rollback → Target config: resolves target
- Rollback → Target leases: acquires target lease
- Rollback → Server scripts: renders scripts
- Rollback → ECS API: runs rollback
- Rollback → Load balancing: takes servers out
- aca CLI → Status overview: dispatches
- Status overview → ECS API: queries server state
- aca CLI → File comparison: dispatches
- File comparison → ECS API: runs file listing
- File comparison → Package and transfer storage: transfers listing
- aca CLI → Log inspection: dispatches
- Log inspection → ECS API: queries server logs
- aca CLI → Remote file transfer: dispatches
- Remote file transfer → ECS API: runs file transfer
- Remote file transfer → Package and transfer storage: transfers file
- aca CLI → PowerShell runner: dispatches run
- PowerShell runner → ECS API: submits commands
- aca CLI → Certificate operations: dispatches
- Certificate operations → Cloud certificates: uses cloud certificate source
- Certificate operations → Server scripts: renders scripts
- Certificate operations → ECS API: inspects and replaces
- Certificate operations → Package and transfer storage: transfers encrypted certificate
- ECS API → Alibaba Cloud: calls ECS API
- ECS API → Windows servers: executes via Cloud Assistant
- Cloud certificates → Alibaba Cloud: calls certificate API
- Package and transfer storage → OSS: reads and writes
- Target leases → Package and transfer storage: stores lease records
- Load balancing → Alibaba Cloud: updates CLB weights