Summary
I would like to request billing and cost management functionality within Alibaba Cloud CLI.
Currently, the CLI provides excellent resource management capabilities through OpenAPI integration. However, there is no simple way to retrieve billing information, pricing details, subscription status, or cost reports directly from the command line.
Adding billing-related commands would significantly improve the experience for DevOps, Cloud Engineers, Platform Engineers, and FinOps teams that rely heavily on automation and terminal-based workflows.
Proposed Features
1. Resource Billing Discovery
Allow users to retrieve all billable resources associated with their account.
Example:
aliyun billing list-resources
Output:
| Resource ID |
Resource Name |
Product |
Region |
Billing Type |
| i-xxxxx |
production-web |
ECS |
me-central-1 |
Subscription |
| d-xxxxx |
data-disk |
ESSD |
me-central-1 |
Pay-As-You-Go |
| lb-xxxxx |
prod-alb |
ALB |
us-east-1 |
Pay-As-You-Go |
---
### 2. Billing Type Information
Display whether each resource is:
- Pay-As-You-Go
- Subscription
- Savings Plan (if applicable)
- Reserved Capacity (if applicable)
Example:
```bash
aliyun billing resource-info --resource-id i-xxxxx
Output:
{
"resourceId": "i-xxxxx",
"product": "ECS",
"region": "me-central-1",
"billingType": "Subscription",
"expireTime": "2027-01-01T00:00:00Z"
}
3. Cost and Pricing Information
Provide pricing details directly from the CLI.
Example:
aliyun billing price --resource-id i-xxxxx
Output:
{
"resourceId": "i-xxxxx",
"billingType": "Subscription",
"monthlyCost": 120,
"currency": "SAR"
}
4. Region-Aware Currency Support
Display prices using the local currency associated with the selected region whenever available.
Examples:
| Region |
Currency |
| Saudi Arabia (me-central-1) |
SAR |
| UAE |
AED |
| United States |
USD |
| Europe |
EUR |
| United Kingdom |
GBP |
Example:
aliyun billing cost-summary --region me-central-1
Output:
Current Month Cost: 425.75 SAR
5. Cost Reports and Summaries
Provide monthly and daily cost reporting.
Examples:
aliyun billing cost-summary
aliyun billing cost-summary --month 2026-06
aliyun billing cost-summary --daily
Output:
{
"month": "2026-06",
"currency": "SAR",
"totalCost": 425.75,
"products": [
{
"name": "ECS",
"cost": 250.00
},
{
"name": "RDS",
"cost": 100.00
},
{
"name": "ALB",
"cost": 75.75
}
]
}
6. Cost Breakdown by Service
Allow users to analyze spending by product.
Example:
aliyun billing breakdown --group-by product
Supported grouping:
- Product
- Region
- Resource
- Billing Type
7. Export Functionality
Support exporting billing information for automation and reporting.
Examples:
aliyun billing export --format json
aliyun billing export --format csv
aliyun billing export --format table
8. Budget and Cost Monitoring
Optional future enhancement:
aliyun billing budget create \
--amount 1000 \
--currency SAR
aliyun billing budget list
aliyun billing alerts enable
Example End-to-End Workflow
aliyun billing list-resources
aliyun billing cost-summary --month 2026-06
aliyun billing breakdown --group-by product
aliyun billing export --format csv
Benefits
For DevOps Teams
- Visibility into infrastructure costs directly from the terminal.
- Easier integration with CI/CD pipelines.
- Simplified cloud cost audits.
For FinOps Teams
- Quick cost reporting.
- Automated budget tracking.
- Resource-level spending visibility.
For Multi-Cloud Users
Many engineers use Alibaba Cloud alongside AWS, Azure, and GCP.
Having billing visibility through Alibaba Cloud CLI would make it easier to integrate with existing automation and cost-management workflows across multiple cloud providers.
Suggested Command Namespace
aliyun billing list-resources
aliyun billing resource-info
aliyun billing cost-summary
aliyun billing breakdown
aliyun billing price
aliyun billing budget
aliyun billing export
Thank You
Thank you for maintaining Alibaba Cloud CLI.
This feature would greatly improve operational visibility, FinOps adoption, and automation capabilities for engineers managing cloud infrastructure through the command line.
Summary
I would like to request billing and cost management functionality within Alibaba Cloud CLI.
Currently, the CLI provides excellent resource management capabilities through OpenAPI integration. However, there is no simple way to retrieve billing information, pricing details, subscription status, or cost reports directly from the command line.
Adding billing-related commands would significantly improve the experience for DevOps, Cloud Engineers, Platform Engineers, and FinOps teams that rely heavily on automation and terminal-based workflows.
Proposed Features
1. Resource Billing Discovery
Allow users to retrieve all billable resources associated with their account.
Example:
Output:
Output:
{ "resourceId": "i-xxxxx", "product": "ECS", "region": "me-central-1", "billingType": "Subscription", "expireTime": "2027-01-01T00:00:00Z" }3. Cost and Pricing Information
Provide pricing details directly from the CLI.
Example:
Output:
{ "resourceId": "i-xxxxx", "billingType": "Subscription", "monthlyCost": 120, "currency": "SAR" }4. Region-Aware Currency Support
Display prices using the local currency associated with the selected region whenever available.
Examples:
Example:
Output:
5. Cost Reports and Summaries
Provide monthly and daily cost reporting.
Examples:
Output:
{ "month": "2026-06", "currency": "SAR", "totalCost": 425.75, "products": [ { "name": "ECS", "cost": 250.00 }, { "name": "RDS", "cost": 100.00 }, { "name": "ALB", "cost": 75.75 } ] }6. Cost Breakdown by Service
Allow users to analyze spending by product.
Example:
Supported grouping:
7. Export Functionality
Support exporting billing information for automation and reporting.
Examples:
8. Budget and Cost Monitoring
Optional future enhancement:
aliyun billing alerts enableExample End-to-End Workflow
aliyun billing list-resources aliyun billing cost-summary --month 2026-06 aliyun billing breakdown --group-by product aliyun billing export --format csvBenefits
For DevOps Teams
For FinOps Teams
For Multi-Cloud Users
Many engineers use Alibaba Cloud alongside AWS, Azure, and GCP.
Having billing visibility through Alibaba Cloud CLI would make it easier to integrate with existing automation and cost-management workflows across multiple cloud providers.
Suggested Command Namespace
aliyun billing list-resources aliyun billing resource-info aliyun billing cost-summary aliyun billing breakdown aliyun billing price aliyun billing budget aliyun billing exportThank You
Thank you for maintaining Alibaba Cloud CLI.
This feature would greatly improve operational visibility, FinOps adoption, and automation capabilities for engineers managing cloud infrastructure through the command line.