Command reference
deployments cost
Estimated and provider-reported costs
| Command | Summary |
|---|---|
deployments cost show | Show cost records |
deployments cost summary | Summarize cost per metric and hour or day |
deployments cost show
Show cost records.
deployments cost show- Calls
GET /v1/costs(SDKlistCostRecords). - Needs an environment:
--envor the saved context. - Paginated.
--page-sizesets the page size; pass the returned cursor as--cursorfor the next page.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--cursor | string (cursor) | Pagination cursor | ||
--page-size | string (number) | Page size | ||
--since | string | Start timestamp | ||
--until | string | End timestamp |
Also accepts the global flags.
deployments cost summary
Summarize cost per metric and hour or day.
deployments cost summary --since <since> --until <until>- Calls
GET /v1/costs/summary(SDKgetCostSummary). - Needs an environment:
--envor the saved context.
| Flag | Type | Required | Default | Description |
|---|---|---|---|---|
--since | string | yes | Start timestamp on an interval boundary (UTC) | |
--until | string | yes | End timestamp on an interval boundary (UTC), exclusive | |
--interval | string | Bucket width: hour (default) or day | ||
--definition | string | Only usage of runs that executed this agent definition | ||
--workspace-id | string | Only usage that names this workspace; not combinable with --definition |
Also accepts the global flags.