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

luna status

See an environment at a glance, a line for each luna type, or one luna type in full with its calls, errors, latency and cost.

luna status shows an environment at a glance, with a line for each luna type. Name a type to see it in full.

luna status List

Reference

luna status [OPTIONS] [TYPE]
Option Type Default Does
[TYPE] text None Shows this luna type in full. Without it, a line for each type.
--since <SINCE> length 1h How far back the numbers go, such as 90s, 15m, 2h or 3d.
--json flag Off Prints Luna’s answer as JSON.
--dir <DIR> path . The app’s folder. Its env file names the project and environment.
--env <ENV> text LUNA_ENV, then production The environment.
--project <PROJECT> text LUNA_PROJECT The project, by name or as organisation/project.
--tenant <TENANT> text The environment’s own A tenant added to the environment, by name.
--token <TOKEN> text LUNA_TOKEN, then your login An API token or account key to act with.

Good to know

  • A type in full shows its URL, what its code defines, how many of its lunas are awake, its calls, errors and latency by handler, its busiest lunas and what it cost.
  • Costs appear only for a login or token allowed to read usage. Without that, the CLI says why on standard error and shows the rest.
  • Naming an index instead of a luna type shows the index, as luna indexes does.
  • With --json, the object has environment, tenant, metrics and usage, and indexes when no type is named. When nothing is deployed, tenant is null.
  • luna status is also luna metrics.

Examples

See production at a glance

luna status --env production

See one luna type over the last day

luna status List --since 1d

Read the numbers in a script

luna status --json

Was this page helpful?