luna usage
Show what your lunas used and what it cost, a row for each organisation, project, environment, tenant, type or luna.
luna usage prints what was used and what it cost in US dollars, grouped the way you choose.
luna usage notes --since 7d
Reference
luna usage [OPTIONS] [PROJECT]
| Option | Type | Default | Does |
|---|---|---|---|
[PROJECT] |
text | Every project | Only this project, by name or as organisation/project. |
--env <ENV> |
text | Every environment | Only this environment of the project. |
--org <ORG> |
text | Every organisation you are in | Only this organisation. |
--tenant <TENANT> |
text | Every tenant | Only this tenant. |
--type <TYPE> |
text | Every type | Only this luna type. |
--luna <LUNA> |
text | Every luna | Only the luna with this key, given as JSON. Pass --type with it. |
--by <BY> |
text | type |
What each row stands for: org, project, environment, tenant, type or luna. |
--since <SINCE> |
moment | 31 days before --until |
From this moment: 24h, "2h ago", 2026-11-09T10:00:00Z, or milliseconds since the Unix epoch. |
--until <UNTIL> |
moment | Now | Up to this moment, written the same ways. |
--limit <LIMIT> |
number | 100 |
Rows a page, at most 1000. |
--all |
flag | Off | Prints every row, page after page. |
--json |
flag | Off | Prints the answer as JSON, with raw counts by meter. |
--token <TOKEN> |
text | LUNA_TOKEN, then your login |
An API token or account key to act with. |
The table starts with the time it covers in UTC. Each row gives its group, its cost and its three biggest meters in their billed units, and a last row gives the total of every row.
Good to know
- Rows come most costly first. Without
--all, the command prints the first page and says how to get the rest. - A row’s cost is its share of what the organisation was charged, after what the plan includes. When that differs from the plan’s rates with nothing included, a
Listcolumn shows the second figure. - A type that is an index says so, and each index also gets a row in a table of its own below.
- A project named without its organisation is in the organisation commands act on.
- A logged-in account sees the organisations it belongs to. An API token needs the
usage:readscope, and sees what it reaches.
Examples
Cost by type over the last week
luna usage notes --since 7d
Cost by environment
luna usage notes --by environment
The busiest lunas of one type
luna usage notes --env production --type List --by luna
Every project of an organisation for October
luna usage --org acme --by project --since 2026-10-01T00:00:00Z --until 2026-11-01T00:00:00Z
Every row as JSON
luna usage --by luna --all --json