Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview
On this page

luna billing

Show an organisation's plan, credit and spending limits with a month of usage, and set a spending cap and alerts.

luna billing prints an organisation’s plan, credit and spending limits, and a month of its usage a meter a row.

luna billing

Reference

luna billing [OPTIONS]
Option Type Default Does
--month <YYYY-MM> text This month Another month, such as 2026-10.
--daily flag Off Adds what each day cost, by group of meters.
--meter <METER> text None With --daily, prints what one meter used each day instead.
--hard-cap-usd <AMOUNT> number None Sets a spending cap for the month, in US dollars.
--no-cap flag Off Removes the spending cap.
--alert-usd <AMOUNT> number, repeatable None Sets an amount for the month to be alerted at, in US dollars. Replaces the alerts set before.
--no-alerts flag Off Removes every alert.
--json flag Off Prints one JSON object: billing holds the plan, credit and limits, and month holds the month by meter and by day.
--org <ORG> text LUNA_ORG, then the folder’s project’s, then the one luna orgs use chose The organisation, by name.
--token <TOKEN> text LUNA_TOKEN, then your login An API token or account key to act with.

For this month, the command first prints the plan, the credit left, what the month costs so far, the spending cap and alerts, and the payment method. Then it prints the month a meter a row: what was used, what the plan includes, what is over and what was charged, with the monthly fee and the total.

With --daily, each day’s cost is split into four groups: calls, compute, storage and sandboxes. A day’s cost is counted after what the plan includes and before credit.

Meters

--meter takes one of these names.

Meter Counts
requests Requests
messages Messages
streamReads Stream reads
egressBytes Egress
ingressBytes Ingress
lunaCpuMs Luna CPU
isolateCpuMs Dynamic code CPU
lunaMemoryMibMs Luna memory
databaseByteHours Database storage
blobByteHours File storage
historyByteHours History
codeByteHours Deployed code
sandboxCpuMs Sandbox CPU
sandboxMemoryMibMs Sandbox memory
sandboxDiskByteHours Sandbox disk

Pricing gives each meter’s unit and price.

Good to know

  • Once the month reaches the spending cap, the organisation’s work pauses. New work is refused with QuotaExceeded until the next month or a higher cap.

  • Each alert amount is raised once a month, when spending passes it, and recorded in the audit log. An organisation has at most 20 alerts.

  • Reading billing needs the owner, admin or billing role, or an API token for the whole organisation with the billing:read scope. Setting limits needs one of those three roles.

  • Each flag changes only its own limit. --hard-cap-usd and --no-cap leave the alerts as they are, and --alert-usd leaves the cap.

Examples

See this month so far

luna billing

See a past month, a day at a time

luna billing --month 2026-10 --daily

See requests each day

luna billing --daily --meter requests

Set a cap with two alerts

luna billing --hard-cap-usd 200 --alert-usd 50 --alert-usd 150

Remove the cap and every alert

luna billing --no-cap --no-alerts

Was this page helpful?