CLI reference
Every omniglass command, generated from the binary’s own command tree. The data commands
are generated from the API (make gen), so this reference is a faithful mirror of
what the server exposes. For the narrative, connecting, authenticating, and the generated-versus-
hand-written split, see the CLI guide.
Global flags
Section titled “Global flags”Every command accepts these. An omitted flag falls back to its environment variable, read when the command runs, so this page and every --help name the variable and never print its value:
| Flag | Type | Default | Description |
|---|---|---|---|
--server | string | http://localhost:8080 | Omniglass server base URL; when omitted, $OMNIGLASS_SERVER, else the default |
--token | string | (none) | bearer token; when omitted, $OMNIGLASS_TOKEN (read at run time, never printed) |
omniglass action-rule
Section titled “omniglass action-rule”Commands for the action-rule resource
omniglass action-rule create
Section titled “omniglass action-rule create”Create an action rule
omniglass action-rule create [flags]Adds a rule that, on an alarm’s raise or clear, when its predicate holds over the alarm facts, queues one notification per target in the transition’s own transaction, which the server’s tick then delivers. An unknown transition, type or target, or a predicate that does not compile, is a 422; a taken name a 409. Audited. Gated by rule:create, with an all-scope grant: a rule watches the whole fleet.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What it is for |
--enabled | bool | false | Whether it fires (default true): a disabled rule queues nothing on a transition, and what it queued before still delivers |
--label | string | (none) | A human label |
--name | string | (none) | The rule’s name (lowercase kebab) |
--notification-type | string | (none) | The notification type to send, by name or uuid; absent sends the official one for the transition |
--on | string | (none) | The alarm transitions it fires on: raised, cleared, or both. Acknowledging an alarm is never one |
--opt-out-allowed | bool | false | Let a member of a group it targets opt out of it for themselves (default false) |
--targets | string | (none) | The notification targets to send to, by name or uuid |
--when | string | (none) | A predicate over the alarm facts at the action expression site (component, location, severity, severity_rank, platform, message, transition, rule, …; see /expressions:validate with site action); absent always holds. A refusal is a 422 with its line and column |
Example:
omniglass action-rule create --name name --on <json> --targets <json>omniglass action-rule delete
Section titled “omniglass action-rule delete”Delete an action rule
omniglass action-rule delete <name>Removes a rule; the notifications it queued keep its name. A shipped (official) rule is a 409: disable it instead. Audited. Gated by rule:delete, with an all-scope grant.
Example:
omniglass action-rule delete <name>omniglass action-rule get
Section titled “omniglass action-rule get”Get an action rule
omniglass action-rule get <name>Returns one action rule by name or uuid. Gated by rule:read.
Example:
omniglass action-rule get <name>omniglass action-rule list
Section titled “omniglass action-rule list”List action rules
omniglass action-rule listLists every action rule, by name: on which alarm transitions, when, and what it sends to which targets. Gated by rule:read.
Example:
omniglass action-rule listomniglass action-rule optIn
Section titled “omniglass action-rule optIn”Opt yourself back in to a group notification
omniglass action-rule optIn <name>Undoes your opt-out of a platform action rule; always allowed. Idempotent and audited. Gated by notification:subscribe.
Example:
omniglass action-rule optIn <name>omniglass action-rule optOut
Section titled “omniglass action-rule optOut”Opt yourself out of a group notification
omniglass action-rule optOut <name>Stops a platform action rule telling you through a group it targets, for you alone. Only a rule an admin marked opt_out_allowed (a 409 otherwise); a rule that names you directly still tells you. Idempotent and audited. Gated by notification:subscribe.
Example:
omniglass action-rule optOut <name>omniglass action-rule update
Section titled “omniglass action-rule update”Update an action rule
omniglass action-rule update <name> [flags]Patches a rule (an absent field is unchanged; on and targets replace their sets). It acts on transitions from the next one; a notification already queued is not re-rendered. A shipped (official) rule takes only enabled, opt_out_allowed and targets that keep the shipped ones; anything else is a 409. Audited. Gated by rule:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What it is for |
--enabled | bool | false | Whether it fires: a disabled rule queues nothing on a transition, and what it queued before still delivers; re-enabled, it acts on the next transition |
--label | string | (none) | A human label (empty clears it) |
--notification-type | string | (none) | The type to send (empty returns to the official one per transition) |
--on | string | (none) | The transitions it fires on (replaces the set) |
--opt-out-allowed | bool | false | Let a member of a group it targets opt out of it; false withdraws every opt-out from the next transition |
--targets | string | (none) | The targets (replaces the set) |
--when | string | (none) | The predicate (empty always holds) |
Example:
omniglass action-rule update <name>omniglass alarm
Section titled “omniglass alarm”Commands for the alarm resource
omniglass alarm list
Section titled “omniglass alarm list”List the fleet’s alarms
omniglass alarm list [flags]What is wrong now across every component the caller may read, in one read: by default the active alarms (state=cleared is the history, each row carrying when it cleared, and state=all both; since and until keep the alarms whose raised-to-cleared interval overlaps that range, so one raised before it and still open in it is kept, and since after until is a 400), worst severity first and newest first within a severity, each naming its component. Each row names its component’s location and the systems it belongs to that the caller may read. Narrow it with severity (repeatable), location (a subtree, by name), acknowledged and snoozed; pass unacknowledged for the queue nobody has looked at. limit is the page size (default 200, at most 1000) and next_page_token continues past it, so a queue of any size pages rather than truncating. It is the triage read: find what is red without walking every component. Gated by component:read; the caller’s component scope bounds the list, so an out-of-scope alarm is never named.
| Flag | Type | Default | Description |
|---|---|---|---|
--acknowledged | string | (none) | true keeps the acknowledged alarms, false the unacknowledged ones; absent keeps both |
--limit | int | 0 | At most this many, the worst first; 0 or absent means 200 |
--location | string | (none) | Only alarms whose component sits in this location or any location below it, by name |
--page-token | string | (none) | The next_page_token of the previous page: resumes the same worst-first order after it, however many alarms there are |
--severity | stringSlice | [] | Only alarms at these severity levels, by name (see /severity-levels); repeat the parameter for several |
--since | string | (none) | Only the alarms still raised at or after this RFC 3339 time: active, or cleared at or after it |
--snoozed | string | (none) | true keeps the snoozed alarms, false the ones not snoozed; absent keeps both |
--state | string | (none) | Which alarms: active (still raised, the default), cleared (a cleared alarm is history, with when it cleared), or all |
--unacknowledged | bool | false | Only the alarms nobody has looked at: the queue an operator, or an agent, works |
--until | string | (none) | Only the alarms raised at or before this RFC 3339 time; must not be earlier than since |
Example:
omniglass alarm listomniglass assistant
Section titled “omniglass assistant”Commands for the assistant resource
omniglass assistant conversation
Section titled “omniglass assistant conversation”Commands for the conversation resource
omniglass assistant conversation append
Section titled “omniglass assistant conversation append”Append a turn to one of your omnibot conversations
omniglass assistant conversation append <name> [flags]Adds a turn’s messages after the one you last saw (after), keeps or clears the write a run paused on (pending), and adds the turn’s tokens. An after that is not the conversation’s last message is a 409: another client wrote first, so read it again. While a server run holds the conversation, an append is a 409. Anyone else’s is a 404. Audited without content. Gated by assistant:use.
| Flag | Type | Default | Description |
|---|---|---|---|
--after | int | 0 | The seq of the last message you saw (0 for an empty conversation); anything else is a 409 |
--messages | string | (none) | The new messages, in order |
--pending | string | (none) | The write the run paused on, waiting on you; absent clears it |
--usage | string | (none) | The tokens this turn spent, added to the total |
Example:
omniglass assistant conversation append <name> --after <int> --messages <json>omniglass assistant conversation create
Section titled “omniglass assistant conversation create”Start an omnibot conversation
omniglass assistant conversation create [flags]Creates an empty conversation of your own, named or named for you. A name you already use is a 409. Audited. Gated by assistant:use.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | A name (lowercase kebab), unique among your own conversations; absent names it for you |
Example:
omniglass assistant conversation createomniglass assistant conversation delete
Section titled “omniglass assistant conversation delete”Delete one of your omnibot conversations
omniglass assistant conversation delete <name>Deletes one of your own conversations and its transcript. Anyone else’s is a 404. Audited. Gated by assistant:use.
Example:
omniglass assistant conversation delete <name>omniglass assistant conversation get
Section titled “omniglass assistant conversation get”Get one of your omnibot conversations
omniglass assistant conversation get <name>One of your own conversations with its transcript, its pending write if a run paused on one, and the tokens it has spent. Anyone else’s is a 404. Gated by assistant:use.
Example:
omniglass assistant conversation get <name>omniglass assistant conversation list
Section titled “omniglass assistant conversation list”List your omnibot conversations
omniglass assistant conversation listYour own stored conversations, most recently moved first, without their messages, and omnibot’s mode: live, replay (the server plays a recording, with the prompts it answers) or none. Owner-only. Gated by assistant:use.
Example:
omniglass assistant conversation listomniglass assistant conversation run
Section titled “omniglass assistant conversation run”Run omnibot on one of your conversations
omniglass assistant conversation run <name> [flags]Runs your prompt (the last user message) as your omnibot, over the stored conversation, and streams the run as AG-UI events (text/event-stream). A call your agent policy asks about ends the run on an interrupt naming it; run again with resume to answer it. A run that reaches its step limit without an answer finishes with the result {“stopped”: “step_limit”, “steps”: N}. The run’s tool calls are audited as omnibot’s, on your behalf. Only you, as yourself, run your conversations: anyone else’s is a 404, and an agent or an impersonation session is a 403. A resume that names no waiting call, a prompt while one waits, or a run while another holds the conversation is a 409. Context entries the person hands over with a prompt (references and the page, at most 20) are framed as data ahead of it. forwardedProps.skill names an embedded skill whose prompt, with its arguments, the run carries out; an unknown skill or a missing argument is a 422. The run talks to the model the assistant settings configure, read as it starts; with none, the server’s recording, if it has one. A recording answers only the prompts it was recorded for: any other question is a 422 (type urn:omniglass:omnibot-replay-unmatched) that touches nothing; the list route names the prompts. A server with no model, or a configured model whose key no longer resolves, is a 503. Gated by assistant:use.
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | (none) | What the person handed over with the prompt, read as data ahead of it; ignored on a resume |
--forwardedProps | string | (none) | An embedded skill to run; ignored on a resume |
--messages | string | (none) | The client’s view of the conversation; only its last user message is read, as the prompt |
--resume | string | (none) | The answer to the interrupt the last run ended on |
--runId | string | (none) | The run’s id, echoed in its events |
--threadId | string | (none) | Ignored: the conversation is the thread |
Example:
omniglass assistant conversation run <name>omniglass audit-log
Section titled “omniglass audit-log”Commands for the audit-log resource
omniglass audit-log list
Section titled “omniglass audit-log list”List audit-trail events
omniglass audit-log list [flags]Recent audit-trail events, newest first, each with the actor and, for an impersonated action, the real actor behind it. Read-only; gated by audit:read:admin (admin/owner only, since the audit trail is admin-sensitive).
| Flag | Type | Default | Description |
|---|---|---|---|
--agent | string | (none) | Filter to the events one agent took on its person’s behalf (the name its agent token was minted with) |
--before | string | (none) | Only events strictly older than this RFC3339 timestamp (paging backward) |
--channel | string | (none) | Filter to the events that arrived through one channel; direct is a plain API call, with no channel |
--client | string | (none) | Filter to the events whose declared MCP client contains this term, case-insensitively |
--limit | int | 0 | Max rows to return, newest first (default 100, capped at 500) |
--resource | string | (none) | Filter to one resource kind (e.g. auth, user_grant) |
--verb | string | (none) | Filter to one verb (e.g. login, create) |
Example:
omniglass audit-log listomniglass auth
Section titled “omniglass auth”Commands for the auth resource
omniglass auth agent-policy
Section titled “omniglass auth agent-policy”What the install lets an agent do
omniglass auth agent-policyReturns the install’s resolved agent policy, always, ask or never for each operation class (read, write, destructive, credential_destination), and whether this request is an agent’s (an agent token, or any request over MCP) and so governed by it. Each class names the layer that set it (platform, role, or tool), and an overridden tool is listed with its own policy; the strictest layer wins. The server refuses an agent a never class on every route; ask is the client’s to confirm. Requires authentication; answers even when the policy refuses every read.
Example:
omniglass auth agent-policyomniglass auth avatar
Section titled “omniglass auth avatar”Get your own profile picture
omniglass auth avatarReturns the caller’s profile picture as a base64-encoded JPEG. Requires authentication; self-scoped. No picture is a 404.
Example:
omniglass auth avataromniglass auth change-password
Section titled “omniglass auth change-password”Change your own password
omniglass auth change-password [flags]Verifies the current password and sets a new one. Requires authentication; self-scoped. Refused (403) to an agent token.
| Flag | Type | Default | Description |
|---|---|---|---|
--current-password | string | (none) | Your current password |
--new-password | string | (none) | The new password (at least 12 characters, not a common password, not containing the username) |
Example:
omniglass auth change-password --current-password current_password --new-password new_passwordomniglass auth create-token
Section titled “omniglass auth create-token”Create one of your own API tokens
omniglass auth create-token [flags]Mints a CLI/API token for the caller and returns it once (store it now; it cannot be retrieved again). A description is required (what the token is for); an optional ttl_days bounds its lifetime (default 90, maximum 365). Requires authentication; self-scoped (always issued for you). The token is stamped with the device and address that created it. Naming an agent mints an agent token instead: it acts on your behalf, holds only what its optional roles AND you hold (each role must be one you cover, else 403), is accepted only on its optional channels, needs an explicit ttl_days, never holds a reveal or use action, cannot mint a token, change your password or impersonate, and every row it writes names the agent. An agent token cannot call this route.
| Flag | Type | Default | Description |
|---|---|---|---|
--agent | string | (none) | Mint an agent token: the name of the agent that will act on your behalf. Every row it writes is marked with this name; it can never reveal or use a credential, mint a token, change your password, or impersonate. |
--channels | string | (none) | The channels an agent token is accepted on: api (direct calls), mcp (the MCP server), or omnibot alone (the built-in assistant, which reaches the MCP server and audits as omnibot). Omit to accept api and mcp. |
--description | string | (none) | What the token is for (required) |
--roles | string | (none) | An agent token’s own roles: it holds only what these roles AND you hold, re-checked on every request. Each must be a role you cover. Omit for your own grants, still under the agent ceiling. |
--ttl-days | int | 0 | Days until the token expires (default 90, maximum 365; required for an agent token) |
Example:
omniglass auth create-token --description descriptionomniglass auth login
Section titled “omniglass auth login”Log in with a username and password
omniglass auth login [flags]Verifies a human’s password and sets an httpOnly session cookie. Public; a bad credential is a flat 401, and a correct password against a disabled account is a distinct 403 so the screen can explain it.
| Flag | Type | Default | Description |
|---|---|---|---|
--password | string | (none) | The account password; exchanged for a session cookie, never stored |
--username | string | (none) | The sign-in username |
Example:
omniglass auth login --password password --username usernameomniglass auth logout
Section titled “omniglass auth logout”Log out the current session
omniglass auth logoutRevokes the session token and clears the cookie. Public.
Example:
omniglass auth logoutomniglass auth me
Section titled “omniglass auth me”The authenticated user, its permissions, and grants
omniglass auth meReturns the caller’s user, flattened permissions (a UI hint and the fast-reject set), the permissions held on an all-scope grant (fleet_permissions), and grants. Requires authentication.
Example:
omniglass auth meomniglass auth me action-rule
Section titled “omniglass auth me action-rule”Commands for the action-rule resource
omniglass auth me action-rule create
Section titled “omniglass auth me action-rule create”Subscribe yourself to alarms
omniglass auth me action-rule create [flags]Creates a personal action rule: on which alarm transitions, when, what to send, and on which of your channels (inbox, email). It tells you alone and names no target (targets is a 422), and it only ever matches an alarm on a component you can read at that moment, judged before its when runs. A taken name among your rules, or a 51st rule, is a 409. Audited. Gated by notification:subscribe.
| Flag | Type | Default | Description |
|---|---|---|---|
--channels | string | (none) | How it tells you: inbox, email (your directory email) |
--description | string | (none) | What it is for |
--enabled | bool | false | Whether it fires (default true) |
--label | string | (none) | A human label |
--name | string | (none) | The rule’s name (lowercase kebab), unique among your own rules |
--notification-type | string | (none) | The notification type to send, by name or uuid; absent sends the official one for the transition |
--on | string | (none) | The alarm transitions it fires on: raised, cleared, or both |
--targets | string | (none) | Refused when set (a 422): a personal rule tells you alone and names no target |
--when | string | (none) | A predicate over the alarm facts (component, location, severity, severity_rank, message, rule, …); absent always holds. Judged only for alarms on components you can read |
Example:
omniglass auth me action-rule create --channels <json> --name name --on <json>omniglass auth me action-rule delete
Section titled “omniglass auth me action-rule delete”Unsubscribe: delete one of your alarm subscriptions
omniglass auth me action-rule delete <name>Deletes one of your own personal action rules; what it already sent keeps its name. Another user’s is a 404. Audited. Gated by notification:subscribe.
Example:
omniglass auth me action-rule delete <name>omniglass auth me action-rule get
Section titled “omniglass auth me action-rule get”Get one of your alarm subscriptions
omniglass auth me action-rule get <name>One of your own personal action rules, by name or uuid; another user’s is a 404. Gated by notification:subscribe.
Example:
omniglass auth me action-rule get <name>omniglass auth me action-rule list
Section titled “omniglass auth me action-rule list”List your alarm subscriptions
omniglass auth me action-rule listYour own personal action rules, by name. Self-scoped. Gated by notification:subscribe.
Example:
omniglass auth me action-rule listomniglass auth me action-rule test
Section titled “omniglass auth me action-rule test”Test one of your alarm subscriptions against your recent alarms
omniglass auth me action-rule test <name> [flags]Judges one of your own personal action rules, or a draft of its on and when, against your most recent alarms on components you can read: for each transition it fires on, whether it would have told you. Writes and sends nothing. Another user’s rule is a 404. Gated by notification:subscribe.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | How many of your most recent alarms to judge (default 20) |
--on | string | (none) | A draft of the transitions to judge with, in place of the rule’s own |
--when | string | (none) | A draft of the predicate to judge with, in place of the rule’s own |
Example:
omniglass auth me action-rule test <name>omniglass auth me action-rule testDraft
Section titled “omniglass auth me action-rule testDraft”Test a draft alarm subscription against your recent alarms
omniglass auth me action-rule testDraft [flags]Judges a draft’s on (default raised) and when (default always) against your most recent alarms on components you can read, before it is saved: for each transition, whether it would have told you. Writes and sends nothing. Gated by notification:subscribe.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | How many of your most recent alarms to judge (default 20) |
--on | string | (none) | The transitions to judge (default raised) |
--when | string | (none) | The predicate to judge (default always) |
Example:
omniglass auth me action-rule testDraftomniglass auth me action-rule update
Section titled “omniglass auth me action-rule update”Change or pause one of your alarm subscriptions
omniglass auth me action-rule update <name> [flags]Patches one of your own personal action rules (an absent field is unchanged); enabled false pauses it. Another user’s is a 404. Audited. Gated by notification:subscribe.
| Flag | Type | Default | Description |
|---|---|---|---|
--channels | string | (none) | How it tells you (replaces the set) |
--description | string | (none) | What it is for |
--enabled | bool | false | Whether it fires: false pauses it, true resumes it from the next transition |
--label | string | (none) | A human label (empty clears it) |
--notification-type | string | (none) | The type to send (empty returns to the official one per transition) |
--on | string | (none) | The transitions it fires on (replaces the set) |
--when | string | (none) | The predicate (empty always holds) |
Example:
omniglass auth me action-rule update <name>omniglass auth me identity-link
Section titled “omniglass auth me identity-link”Commands for the identity-link resource
omniglass auth me identity-link list
Section titled “omniglass auth me identity-link list”List your own identity links
omniglass auth me identity-link listLists the identities at the identity provider you sign in through. Requires authentication; self-scoped (never another person’s).
Example:
omniglass auth me identity-link listomniglass auth me identity-link start
Section titled “omniglass auth me identity-link start”Start linking your own identity at the provider
omniglass auth me identity-link start [flags]Confirms your current password and starts a sign-in at the identity provider bound to this session: send the browser to the returned url, and signing in there links that identity to you (an owner’s only way to gain single sign-on). Requires authentication; self-scoped (it only ever links to you). Needs a session; refused to an agent token. A wrong password is a 403; single sign-on not configured is a 409.
| Flag | Type | Default | Description |
|---|---|---|---|
--current-password | string | (none) | Your current password: a link outlives the session that makes it, so it is confirmed as a password change is |
--provider | string | (none) | The identity provider to link, by name |
Example:
omniglass auth me identity-link start --current-password current_passwordomniglass auth me identity-link unlink
Section titled “omniglass auth me identity-link unlink”Unlink one of your own identity links
omniglass auth me identity-link unlink <link> [flags]Confirms your current password and removes one of your identity links; every session and token through it ends with it. Requires authentication; self-scoped (a link that is not yours is a 404). Refused to an agent token. Audited.
| Flag | Type | Default | Description |
|---|---|---|---|
--current-password | string | (none) | Your current password, as linking asks |
Example:
omniglass auth me identity-link unlink <link> --current-password current_passwordomniglass auth me notification
Section titled “omniglass auth me notification”Commands for the notification resource
omniglass auth me notification list
Section titled “omniglass auth me notification list”List your inbox
omniglass auth me notification list [flags]The caller’s own console inbox: the notifications addressed to them on the inbox channel, newest first, with the unread count. Self-scoped (never another user’s), and scoped again by the caller’s component read scope as it stands now, so an entry about a component they can no longer read is gone. Gated by notification:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | At most this many, newest first (default 100) |
--unread | bool | false | Only the entries not yet read |
Example:
omniglass auth me notification listomniglass auth me notification markAllRead
Section titled “omniglass auth me notification markAllRead”Mark every inbox entry read
omniglass auth me notification markAllReadMarks every unread entry in the caller’s own inbox read, over the same scope the inbox reads, and says how many. Audited as one row. Gated by notification:read.
Example:
omniglass auth me notification markAllReadomniglass auth me notification markRead
Section titled “omniglass auth me notification markRead”Mark an inbox entry read
omniglass auth me notification markRead <id>Marks one of the caller’s own inbox entries read (one already read keeps its first read time). An entry that is not the caller’s, or about a component outside their component read scope, is a non-disclosing 404. Audited. Gated by notification:read.
Example:
omniglass auth me notification markRead <id>omniglass auth oauth-client
Section titled “omniglass auth oauth-client”Commands for the oauth-client resource
omniglass auth oauth-client authorize
Section titled “omniglass auth oauth-client authorize”Approve or deny an OAuth client
omniglass auth oauth-client authorize <id> [flags]Answers an OAuth client’s authorization request as you. Approved, it issues a one-time code (good for five minutes) the client exchanges for an agent token accepted on the MCP channel only and holding only the roles you chose, each one whose capabilities you hold (else 403); denied, it sends the client back with access_denied. Returns where to send the browser back to. Requires authentication; an agent token or an impersonated session cannot answer.
| Flag | Type | Default | Description |
|---|---|---|---|
--approved | bool | false | Whether you approve the client; false sends it back with access_denied |
--code-challenge | string | (none) | The PKCE challenge from the authorization request |
--code-challenge-method | string | (none) | The PKCE method; S256 only |
--redirect-uri | string | (none) | The redirect URI from the authorization request; one the client registered |
--resource | string | (none) | The resource the token is for: this server’s MCP endpoint |
--roles | string | (none) | The roles to approve; each must be one whose capabilities you hold. Required when approved |
--state | string | (none) | The client’s state, echoed back |
Example:
omniglass auth oauth-client authorize <id> --approved <bool> --code-challenge code_challenge --code-challenge-method code_challenge_method --redirect-uri redirect_uri --resource resourceomniglass auth oauth-client get
Section titled “omniglass auth oauth-client get”Read an OAuth client asking for your consent
omniglass auth oauth-client get <id>Returns a registered OAuth client (the name it gave, its redirect URIs) and the roles you may approve for it, for the console’s consent page. Requires authentication; the client is the one named in the authorization request.
Example:
omniglass auth oauth-client get <id>omniglass auth remove-avatar
Section titled “omniglass auth remove-avatar”Remove your own profile picture
omniglass auth remove-avatarClears the caller’s profile picture. Requires authentication; self-scoped.
Example:
omniglass auth remove-avataromniglass auth set-avatar
Section titled “omniglass auth set-avatar”Set your own profile picture
omniglass auth set-avatar [flags]Sets the caller’s profile picture (JPEG, PNG, or WebP, base64-encoded), normalized server-side to a 256x256 JPEG. Requires authentication; self-scoped. A bad or oversize image is a 422.
| Flag | Type | Default | Description |
|---|---|---|---|
--image-base64 | string | (none) | The image (JPEG, PNG, or WebP), base64-encoded; normalized server-side to a 256x256 JPEG |
Example:
omniglass auth set-avatar --image-base64 image_base64omniglass auth status
Section titled “omniglass auth status”Commands for the status resource
omniglass auth status list
Section titled “omniglass auth status list”Whether the system has an owner yet, and whether it is a lab
omniglass auth status listPublic: reports whether any owner has been bootstrapped, so the login screen can hide the bootstrap hint, and whether this server is a lab (omniglass lab run), so the console can say so before anyone signs in.
Example:
omniglass auth status listomniglass auth stop-impersonation
Section titled “omniglass auth stop-impersonation”Stop the current impersonation session
omniglass auth stop-impersonationRevokes the impersonation session presented by the request token, ending the view-as / act-as. Requires authentication with an impersonation token; self-scoped (ends only the session the token names).
Example:
omniglass auth stop-impersonationomniglass auth update-profile
Section titled “omniglass auth update-profile”Update your own profile
omniglass auth update-profile [flags]Updates the caller’s own label (email is administrator-set). Requires authentication; self-scoped (edits only your own user).
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | Your label; empty clears it |
Example:
omniglass auth update-profileomniglass bootstrap
Section titled “omniglass bootstrap”Create the first owner (idempotent per username) and mint its bearer token
omniglass bootstrap <username> [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--email | string | (none) | owner email (optional) |
--label | string | (none) | owner label (optional) |
--password | string | (none) | owner password, so the owner can sign in to the console (optional) |
--ttl | duration | 2160h0m0s | how long the bootstrap token is valid before it expires (max 365 days) |
omniglass calc-rule
Section titled “omniglass calc-rule”Commands for the calc-rule resource
omniglass calc-rule create
Section titled “omniglass calc-rule create”Create a calc rule
omniglass calc-rule create [flags]Authors a rule that derives its output key on each owner (each component its selector picks, or each system) from its aliased inputs, reduced by an expression over the aliases, each bound as the list of its current values (one per instance on a component, every member’s on a system, with members records beside it). Every input key must be registered (by name or uuid; the rule holds it by uuid) and health may not be one; each alias is an identifier of at most 64, not a keyword, a builtin or list function’s name, or a site binding (component, has, members, system, value), and unique; the reduce must compile and yield the output key’s type (a 422 placed at body.reduce.expr with its line and column, and the name when it is one no alias binds); the output must be a registered key that is not health and that no collection writes (a native probe’s key, or one a driver declares among its emits); an enabled rule may not close a cycle in the graph from every enabled rule’s input keys to its output key (a 422 naming the chain of keys), nor write a key another enabled rule writes (a 422 naming that rule). A list or get carries calc_error when a stored reduce no longer compiles. A name already taken is a 409. Returns the rule with its uuid. Audited. Gated by rule:create, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the rule derives and why |
--enabled | bool | false | Defaults to true |
--inputs | string | (none) | The keys the rule reads, each by a unique alias its reduce uses; health may not be one |
--label | string | (none) | A human label |
--name | string | (none) | The rule’s name (lowercase letters, digits, hyphens) |
--output-key | string | (none) | The property or metric the rule writes: its type pins the reduce’s result. Not a reserved key (a native probe key, health), not a key a driver’s emits or a command type write, and not one another enabled rule writes |
--owner-kind | string | (none) | What the rule derives a value on: each component its selector picks, or each system its selector picks (read from the system’s slot-bound members). Fixed at create |
--reduce | string | (none) | An expression over the inputs by alias |
--selector | string | (none) | The owners the rule derives for: a component rule’s component_types and components, or a system rule’s system_types and systems; absent is every owner of its kind |
Example:
omniglass calc-rule create --inputs <json> --name name --output-key output_key --owner-kind owner_kind --reduce <json>omniglass calc-rule delete
Section titled “omniglass calc-rule delete”Delete a calc rule
omniglass calc-rule delete <name>Removes an operator rule; an official rule is read-only (409). Audited. Gated by rule:delete, with an all-scope grant.
Example:
omniglass calc-rule delete <name>omniglass calc-rule get
Section titled “omniglass calc-rule get”Get a calc rule
omniglass calc-rule get <name>Returns one calc rule by name (or uuid). Gated by rule:read.
Example:
omniglass calc-rule get <name>omniglass calc-rule list
Section titled “omniglass calc-rule list”List calc rules
omniglass calc-rule listLists the calc rules, by name: the authored config that derives an output key on each owner from aliased inputs, each with its live state as counts (owners_computed, owners_pending, owners_unsupported, owners_failed) over the owners the caller may read. Rules read like a catalog, so every rule is listed whatever the caller’s scope. Gated by rule:read.
Example:
omniglass calc-rule listomniglass calc-rule preview
Section titled “omniglass calc-rule preview”Preview a calc rule
omniglass calc-rule preview [flags]Computes a candidate calc rule now, on each owner it selects that the caller may read, with the reduce the tick runs, and writes nothing (a read-only transaction). For each owner it answers the value the rule would write, the output’s current value and whether they differ, the inputs with no value, the members skipped and the instances left out as stale (named when the caller may read the component, else counted). An expression that reads one member’s value by position (members[1].value.t, or an element of an input’s list) over a system with a member the caller may not read is withheld on that system, its error counting the members out of scope; one that folds each input’s list whole (avg(t), max(t)) shows the aggregate. A component rule previews the selected components holding one of its inputs, as the tick would mark them. The owners holding a current value of the output are computed first, so the cap never hides one, and the answer lists the owners holding a value or that the rule would write one on first, each by name. At most owner_cap owners are computed, and a bound on total input reads stops a preview over large systems early, a whole owner at a time (owners_judged of owners_total, truncated past either). The candidate is checked as a save would check it: a reduce that does not compile, a cycle in the key graph, an output another enabled rule or a collection writes, or health are each a 422, so the author learns before saving; given a saved rule’s name it is judged as an edit of that rule. The selector’s names resolve in the caller’s read scope: a name that does not exist and one the caller may not read are the same 422, and a name shared in and out of scope means the one in scope. A preview takes no lock a save waits on. Gated by rule:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--inputs | string | (none) | The keys the rule reads, each by a unique alias its reduce uses |
--name | string | (none) | A saved rule’s name, to preview an edit of it (its stored version is then not a second writer of its key); absent for a new rule |
--output-key | string | (none) | The property or metric the rule would write |
--owner-kind | string | (none) | What the rule derives a value on |
--reduce | string | (none) | An expression over the inputs by alias |
--selector | string | (none) | The owners the rule derives for; absent is every owner of its kind |
Example:
omniglass calc-rule preview --inputs <json> --output-key output_key --owner-kind owner_kind --reduce <json>omniglass calc-rule rename
Section titled “omniglass calc-rule rename”Rename a calc rule
omniglass calc-rule rename <name> [flags]Moves an operator rule’s name, the address an operator types. A separate act from an update, because it breaks bookmarks and integration config outside this system; inside it nothing breaks, since the audit rows hold the rule’s uuid and the key graph is of keys, not rule names. Not a material change: no version bump. An official rule keeps its name (409), a taken name is a 409, an illegal or uuid-shaped one a 422. Returns the rule with its uuid. Audited. Gated by rule:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The rule’s new name, unique among calc rules (lowercase letters, digits, hyphens) |
Example:
omniglass calc-rule rename <name> --name nameomniglass calc-rule state
Section titled “omniglass calc-rule state”Commands for the state resource
omniglass calc-rule state list
Section titled “omniglass calc-rule state list”Get a calc rule’s live state
omniglass calc-rule state list <name> [flags]What a calc rule last did on each owner the caller may read (components by the component read scope, systems by the system read scope), each owner named now: the value it computed, when and at which version, the inputs it found no value of, a system’s members that held none and the instances it left out as stale (named when the caller may read the component, else counted), an error, since when a system has had no members, and whether the owner is pending (with when a deferred mark is due). Ordered on the server, failing owners first, then pending, then those it wrote nothing for, then those holding a value, each by name, and at most limit of them; total and the pending depth count every owner the caller may read, listed or not. Gated by rule:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | The most owners to list, in state order: failing, pending, missing an input (or with no members), valued, each by name |
Example:
omniglass calc-rule state list <name>omniglass calc-rule update
Section titled “omniglass calc-rule update”Update a calc rule
omniglass calc-rule update <name> [flags]Patches a rule (an absent field is unchanged), bumping its version; a patch that changes nothing writes nothing. What changed is checked as on create: changed inputs, reduce or output recompile, a changed output must be one no collection writes, and an enabled rule may not close a cycle or share its output with another enabled rule. Enabling a disabled rule recompiles it and checks both, so a rule carrying calc_error cannot be enabled (422). The owner kind is fixed at create. Official rules are read-only (409). Audited. Gated by rule:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the rule derives and why |
--enabled | bool | false | Whether the rule runs; an enabled rule is part of the key graph |
--inputs | string | (none) | Replace the keys the rule reads |
--label | string | (none) | A human label |
--output-key | string | (none) | The property or metric the rule writes |
--reduce | string | (none) | Replace the reduce’s expression |
--selector | string | (none) | Replace the owners the rule derives for; an empty selector is every owner of its kind |
Example:
omniglass calc-rule update <name>omniglass command-type
Section titled “omniglass command-type”Commands for the command-type resource
omniglass command-type create
Section titled “omniglass command-type create”Create a command type
omniglass command-type create [flags]Registers a custom command type (official=false). The name must be a single kebab token; a target, when set, must be a registered property or metric type. Gated by command_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the command does |
--disruptive | bool | false | The command takes its device down (reboot): its delivery closes the gates of the hold set (the target and what it hosts) on the delivering outpost until each reads up again |
--hold-seconds | int | 0 | A disruptive type’s backstop in seconds, greater than quiet_seconds: an endpoint with no up reading by then reopens anyway, counted. Not the settle window. Only on a disruptive type |
--label | string | (none) | A human label |
--name | string | (none) | The command type name (lowercase kebab) |
--params-schema | string | (none) | A JSON Schema fragment for the params |
--power-outlet-param | string | (none) | Marks a power command: the name of the param that carries the outlet, so its hold set is what that outlet feeds. Only on a disruptive type |
--quiet-seconds | int | 0 | A disruptive type’s quiet period in seconds: no poll, probe or session dial runs against the held endpoints. Only on a disruptive type |
--settle-window-seconds | int | 0 | The actuation window in seconds: how long the device is given to actuate before a mismatch is a failed command. 0 means settle immediately (a fire-and-forget command, or a settleable one judged at the moment of issue). A duration has no negative, so the schema floors it at 0 rather than accepting a value that behaves as 0 with no refusal to say so. |
--target-metric-type | string | (none) | The metric this command sets, for settlement (at most one target arm) |
--target-property-type | string | (none) | The property this command sets, for settlement (at most one target arm) |
Example:
omniglass command-type create --name nameomniglass command-type delete
Section titled “omniglass command-type delete”Delete a command type
omniglass command-type delete <name>Removes a custom command type by name. Official types are read-only. Gated by command_type:delete.
Example:
omniglass command-type delete <name>omniglass command-type get
Section titled “omniglass command-type get”Get a command type
omniglass command-type get <name>Returns one command type by name. Gated by command_type:read.
Example:
omniglass command-type get <name>omniglass command-type list
Section titled “omniglass command-type list”List command types
omniglass command-type listLists every registered command type (official and custom). Fleet-wide reference data. Gated by command_type:read.
Example:
omniglass command-type listomniglass command-type update
Section titled “omniglass command-type update”Update a command type
omniglass command-type update <name> [flags]Patches a custom command type’s label, description, params schema, settle window, disruption (disruptive, quiet_seconds, hold_seconds, power_outlet_param, checked together on the merged row), or target on either arm. Partial by default: the fields present in the body change and the rest are left alone (an empty target clears it; a non-empty arm clears the other). params_schema is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; a mask naming a field this resource does not patch is a 422. The name is fixed at creation. Official types are read-only. Gated by command_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the command does |
--disruptive | bool | false | Whether the command takes its device down; checked with quiet_seconds and hold_seconds on the merged row |
--hold-seconds | int | 0 | A disruptive type’s backstop in seconds, greater than quiet_seconds; not the settle window |
--label | string | (none) | A human label |
--params-schema | string | (none) | A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name params_schema in update_mask with no value here to CLEAR it |
--power-outlet-param | string | (none) | The param that carries a power command’s outlet (empty clears it); only on a disruptive type, checked on the merged row |
--quiet-seconds | int | 0 | A disruptive type’s quiet period in seconds |
--settle-window-seconds | int | 0 | The actuation window in seconds, floored at 0 (a duration has no negative; 0 means settle immediately) |
--target-metric-type | string | (none) | The metric this command sets (empty clears it; a non-empty arm clears the other) |
--target-property-type | string | (none) | The property this command sets (empty clears it; a non-empty arm clears the other) |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (params_schema back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it |
Example:
omniglass command-type update <name>omniglass component
Section titled “omniglass component”Commands for the component resource
omniglass component alarm
Section titled “omniglass component alarm”Commands for the alarm resource
omniglass component alarm acknowledge
Section titled “omniglass component alarm acknowledge”Acknowledge an alarm
omniglass component alarm acknowledge <name> <id>Records that a human has seen this alarm, and changes nothing else. The alarm stays exactly as raised as it was: acknowledging is not fixing, so health is NOT recomputed and cleared_at is untouched. Acknowledging is orthogonal to clearing in both directions, so a cleared alarm can still be acknowledged by whoever reviews the history, and clearing never acknowledges on an operator’s behalf. Acknowledging twice is idempotent: the first person and the first time stay, and the no-op writes no second audit row. Gated by alarm:acknowledge, whose scope is resolved on the component tier from that permission (not from component:update); a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not acknowledge on is a 403.
Arguments:
Example:
omniglass component alarm acknowledge <name> <id>omniglass component alarm create
Section titled “omniglass component alarm create”Raise an alarm on a component
omniglass component alarm create <name> [flags]Raises an alarm on this component, then recomputes health in the same transaction: the component’s own health moves, and if it is now outage (an alarm at a level that declares outage), any slot it occupies loses it as an occupant while the alarm is active, which can move its system and location health with it; an alarm at a degraded level degrades the component but leaves it occupying its slots, and one at a level declaring none leaves it healthy and still listed. Gated by component:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--dedup-key | string | (none) | What the alarm is about; defaults to the message. Raising an already-open (component, dedup_key) returns the existing open alarm instead of a duplicate. A key (or, without one, a message) beginning rule: is refused (422): that namespace is a rule’s firing |
--message | string | (none) | What is wrong, for the operator reading it later |
--severity | string | (none) | How bad it is: a severity level by name (see /severity-levels); the level declares what the alarm does to the component (none, degraded or outage) |
Example:
omniglass component alarm create <name> --severity severityomniglass component alarm delete
Section titled “omniglass component alarm delete”Clear an alarm
omniglass component alarm delete <name> <id>Marks the alarm cleared and recomputes health in the same transaction, so the recovery is recorded as a transition at the moment it happened. The row is kept: what was wrong and when outlives the fix. Clearing an alarm that is already cleared or does not exist is a 404. Gated by component:update; read and update scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass component alarm delete <name> <id>omniglass component alarm list
Section titled “omniglass component alarm list”List a component’s alarms
omniglass component alarm list <name> [flags]What is currently wrong with this component, newest first, with the component’s own health those alarms make. Pass include_cleared for the history rather than the active set, and since/until to keep only the alarms raised during a range (still raised at since or later, raised by until), newest first and capped at 500. since after until is a 400. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--include-cleared | bool | false | Include cleared alarms, so the list is the history rather than what is wrong now |
--since | string | (none) | Only the alarms still raised at or after this RFC 3339 time: active, or cleared at or after it. With include_cleared, a timeline’s read of what was raised during a range |
--unacknowledged | bool | false | Only the alarms nobody has looked at. On its own this is the queue an operator works (raised and unacknowledged); with include_cleared it also returns the alarms that came and went unattended |
--until | string | (none) | Only the alarms raised at or before this RFC 3339 time; must not be earlier than since |
Example:
omniglass component alarm list <name>omniglass component alarm snooze
Section titled “omniglass component alarm snooze”Snooze an alarm
omniglass component alarm snooze <name> <id> [flags]Snoozes the alarm, by its component and dedup_key, for a duration from now (1m to 7d), so every notification any alarm of that dedup key would send, a raise or a clear, on any channel, is written suppressed with the reason instead, and a message already waiting to be retried is suppressed when its turn comes. Snoozing a snoozed alarm replaces the deadline. It changes nothing else: it does not acknowledge, does not recompute health, a snoozed alarm stays in the unacknowledged queue, and a clear does not end it. It notifies nothing itself. When the snooze ends, at its deadline or by :unsnooze, with an alarm of that dedup key still raised, that alarm is announced again as raised to whoever the action rules reach then. Audited on this alarm. Gated by alarm:snooze, whose scope is resolved on the component tier from that permission; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not snooze on is a 403.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--duration | string | (none) | How long from now the alarm stays snoozed, from 1m to 7d: a duration such as 15m, 1h, 4h or 24h, or whole days such as 7d. Snoozing a snoozed alarm replaces its deadline, shorter or longer |
Example:
omniglass component alarm snooze <name> <id> --duration durationomniglass component alarm timeline
Section titled “omniglass component alarm timeline”Read an alarm’s timeline
omniglass component alarm timeline <name> <id>The alarm’s history in one list, oldest first: the events that carry it (an event rule’s fire event, which opened it, and its clear event, which resolved it) merged by time with its audit rows (the raise, each acknowledgement, the clear, each snooze, unsnooze and snooze-end, and a rule edit that opened or resolved it, naming the editor) and the notifications its transitions queued, each at the moment it was queued with its status as it stands (#618). At one instant an event comes before the audit row it caused, and that before a notification. Gated by alarm:read; a component outside the caller’s component read scope, and an alarm not on the component, are a non-disclosing 404.
Arguments:
Example:
omniglass component alarm timeline <name> <id>omniglass component alarm unsnooze
Section titled “omniglass component alarm unsnooze”End an alarm’s snooze
omniglass component alarm unsnooze <name> <id>Ends the alarm’s snooze early, exactly as its deadline passing would: if an alarm of that dedup key is still raised, it is announced again as raised to whoever the action rules reach now. Audited on this alarm, naming the caller. Unsnoozing an alarm that is not snoozed is a 200 that writes nothing. Gated by alarm:snooze, resolved as :snooze is.
Arguments:
Example:
omniglass component alarm unsnooze <name> <id>omniglass component batchCreate
Section titled “omniglass component batchCreate”Create many components in one write
omniglass component batchCreate [flags]Creates components in one transaction: each request is the body POST /components takes, run as that create runs it, in order, so a component may name as its parent one an earlier request creates, and its system and location by name as the single create does. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /components maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by component:create; each request is held to that scope, its location resolves within your location:read scope, and a request naming a system also needs system:update over it, as its single create does.
| Flag | Type | Default | Description |
|---|---|---|---|
--requests | string | (none) | The components to create, each the body POST /components takes, in order: a parent before its children |
--validate-only | bool | false | Run every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written |
Example:
omniglass component batchCreate --requests <json>omniglass component checkName
Section titled “omniglass component checkName”Check a component name
omniglass component checkName [flags]Reports whether a proposed name is a valid slug and currently free within the given placement (parent wins over location; neither means the unplaced/root bucket). Advisory (Save is still gated by the unique constraint). Gated by component:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check |
--name | string | (none) | The proposed name to check |
--parent | string | (none) | The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check |
Example:
omniglass component checkName --name nameomniglass component command
Section titled “omniglass component command”Commands for the command resource
omniglass component command get
Section titled “omniglass component command get”Read a command
omniglass component command get <name> <id>One command, whole: what it was told and the value it set, its recorded status with a time for each transition (issued, delivered, executed, settled), where it sits now while in flight (queued, delivered, awaiting the reply, awaiting the observation), how its binding settles it, the evidence that decided it (the reply, masked of credentials, or the observed sample) and why, the endpoint, outpost and driver that carry it, and who issued it. Gated by command:read, resolved on the component tier; a component outside the caller’s component:read, or a command not on that component, is a non-disclosing 404, and a component it can read but whose commands it may not is a 403.
Arguments:
Example:
omniglass component command get 'hq.west.level-2.boardroom-a.$comp.videobar-1' 42omniglass component command issue
Section titled “omniglass component command issue”Issue a command to a component
omniglass component command issue <name> [flags]Records a command invocation, writes a caused event, and (for a settleable command) opens an intended value the observed value settles against. Answers with the command as it stands (as the command read returns it) and the computed settlement; with wait, once it settles, fails or times out, or wait_timeout passes. Gated by command:issue, whose scope is resolved on the component tier from that permission (not from component:read); a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not command is a 403.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--command-type | string | (none) | The command_type to invoke |
--instance | string | (none) | The series discriminator (e.g. an endpoint), when the target is instanced |
--params | string | (none) | The invocation params, stored on the command and the caused event |
--value | string | (none) | The intended value for the target property (a settleable command) |
--wait | bool | false | Block until the command settles, fails or times out, or until wait_timeout passes, and answer with where it stands then. Refused with a 429, before anything is issued, while too many commands are already being waited on |
--wait-timeout | int | 0 | How long a wait may block, in seconds (1 to 120). A command still in flight when it passes is answered as it stands, its phase saying where |
Example:
omniglass component command issue <name> --command-type command_typeomniglass component command list
Section titled “omniglass component command list”List a component’s commands
omniglass component command list <name> [flags]The component’s command history, newest first, each command whole (as the single read returns it), narrowed by recorded status and by when it was issued, a page at a time. status=issued is what is in flight now. Gated by command:read, resolved on the component tier; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but whose commands it may not is a 403.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | How many to return, newest first (1 to 500) |
--since | string | (none) | Only the commands issued at or after this RFC3339 time |
--status | string | (none) | Only the commands with this recorded status; issued is every command still in flight |
--until | string | (none) | Only the commands issued at or before this RFC3339 time |
Example:
omniglass component command list 'hq.west.level-2.boardroom-a.$comp.videobar-1'omniglass component create
Section titled “omniglass component create”Create a component
omniglass component create [flags]Creates a component, optionally under a parent (a root needs an all-scoped grant, or a location inside the location subtree of a location-scoped component:create grant; a root with no location needs the all-scoped grant), bound to a system and a location, and classified by a product (required; naming a generic is fine until a real product is modeled). Gated by component:create. The location reference resolves within the caller’s location:read scope, because the label this stores is rendered from it, and one outside that scope is refused (422) exactly as :renderLabel refuses to preview it. Naming a system additionally requires system:update, and resolves within that scope, because the component’s primary membership is inserted from it: it is the same row the membership route writes, so the two paths cost the same permission. A system outside that scope is refused with a 403 naming it when the caller may read the system (denying its existence to someone who can GET it would be a lie) and with the non-disclosing 422 when the caller may not.
| Flag | Type | Default | Description |
|---|---|---|---|
--expected-name | string | (none) | The name a create form previewed (POST /components:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the type’s stem moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422. |
--label | string | (none) | What an operator reads; the name is the address |
--location | string | (none) | Location name this component is placed at |
--name | string | (none) | Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the product’s type. |
--parent | string | (none) | Parent component name; omit for a root component |
--product | string | (none) | Product (catalog SKU) this component is an instance of, by name or uuid. Required: use a generic (generic-device, generic-app, generic-service) until a real product is modeled. |
--system | string | (none) | Primary system name this component belongs to. Naming one writes that system’s membership, so it costs the system:update permission and resolves in that scope; omitted, the create costs component:create alone. |
Example:
omniglass component createomniglass component createFromTemplate
Section titled “omniglass component createFromTemplate”Start a component from a template
omniglass component createFromTemplate [flags]Creates one component from a component template at a location: its product and the template’s declared values, and, when the inputs carry an address (host), its endpoint attached through the driver with the template’s preset under your inputs. A secret input names a secret you may bind (secret:bind), resolved as an attach resolves it. One transaction, every piece in your own scope with its own audit row carrying from_template; nothing points back at the template. Gated by component:create; declared values also need component:update and an attach endpoint:create. A location outside your location scope is a 404, an unknown template a 404, inputs with no address or an attach with no outpost a 422.
| Flag | Type | Default | Description |
|---|---|---|---|
--inputs | string | (none) | Driver inputs laid over the template’s preset: the address (host) attaches the endpoint, a secret input names a secret you may bind (secret:bind) |
--label | string | (none) | The component’s label |
--location | string | (none) | The location the component sits in, by name or dotted path |
--name | string | (none) | The component’s name; minted as an unnamed create mints it when empty |
--outpost | string | (none) | The outpost the endpoint is placed on; needed when inputs carry an address |
--template | string | (none) | The component template, by name |
Example:
omniglass component createFromTemplate --template templateomniglass component delete
Section titled “omniglass component delete”Delete a component
omniglass component delete <name>Deletes a component, refused (409) while it still has child components, while it still owns endpoints (delete or reassign them first), or while it is still referenced elsewhere, such as by a system slot it staffs. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by component:delete; read and delete scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass component delete <name>omniglass component dependency
Section titled “omniglass component dependency”Commands for the dependency resource
omniglass component dependency create
Section titled “omniglass component dependency create”Record that a component depends on another
omniglass component dependency create <name> [flags]Records that this component depends on the upstream: power (fed from the named outlet of the upstream; the outlet is required on this kind and refused on the others), host (hosted by the upstream, so a reboot of the upstream holds this component’s endpoints too) or path (reached through the upstream, so while the upstream’s gate is closed on this component’s outpost its in-band endpoints are held with an upstream reason naming it). A component never depends on itself, one edge of a kind joins a pair once (a 409 for the second), and an edge whose upstream already depends on this component through edges of the same kind would close a cycle and is a 422. The edge is a fact about the dependent: gated by component:update on it (a dependent the caller reads but cannot write is a 403), with the upstream resolved in the caller’s component:read (outside it, a non-disclosing 404).
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--kind | string | (none) | How it depends: power, host or path |
--outlet | string | (none) | The upstream’s outlet that feeds this component: required on a power edge, refused on any other |
--upstream | string | (none) | Name or uuid of the component this one depends on, or a dotted address |
Example:
omniglass component dependency create codec-1 --kind kind --upstream upstreamomniglass component dependency delete
Section titled “omniglass component dependency delete”Remove a component’s dependency on another
omniglass component dependency delete <name> <kind> <upstream>Removes this component’s edge of the kind to the upstream. Gated by component:update on the dependent (read but not writable, a 403). An upstream outside the caller’s component:read is a 404, as an edge that does not exist is: the list does not name it either.
Arguments:
Example:
omniglass component dependency delete codec-1 power pdu-1omniglass component dependency list
Section titled “omniglass component dependency list”List what a component depends on and what depends on it
omniglass component dependency list <name>This component’s dependency edges both ways: its upstreams (what it depends on) and its dependents (what depends on it), each of kind power (fed from an outlet of the upstream), host (hosted by it) or path (reached through it). A disruptive command follows host edges down from its target and a power command follows the power edges from its outlet, so these edges are what a reboot or an outlet cycle holds; a path edge holds the dependent’s in-band endpoints while its upstream’s gate is closed. Containment (a component’s parent) is a different fact and never appears here. An edge whose other end is outside the caller’s component:read is counted in hidden, never named. Gated by component:read; a component outside it is a non-disclosing 404.
Arguments:
Example:
omniglass component dependency list codec-1omniglass component effective-secret
Section titled “omniglass component effective-secret”Commands for the effective-secret resource
omniglass component effective-secret list
Section titled “omniglass component effective-secret list”Effective secrets for a component
omniglass component effective-secret list <name>Resolves the secrets that cascade onto a component (platform -> location -> component), with the winner and the shadowed candidates it overrode. There is NO system band: a secret is device-facing, and the room a component happens to serve is the wrong owner for a credential the device itself answers with. Fields are masked, as in the directory; plaintext is only ever the audited reveal. Gated by secret:read, which the viewer floor does not carry, and admin-sensitive secrets appear only to the admin tier.
Arguments:
Example:
omniglass component effective-secret list <name>omniglass component effective-tag
Section titled “omniglass component effective-tag”Commands for the effective-tag resource
omniglass component effective-tag list
Section titled “omniglass component effective-tag list”Effective tags for a component
omniglass component effective-tag list <name> [flags]Resolves the tags that cascade onto a component (platform -> location -> system -> component): keys union and the most specific binding shadows the rest, with the winner and the shadowed candidates. A non-propagating key resolves only from a binding on the component itself. The system band comes from MEMBERSHIP: pass ?system= (a name or a uuid, ADR-0062) to resolve against one the component belongs to (a shared device answers differently for each), or omit it to resolve against its primary membership. Gated by component:read; the component must be in the caller’s component read scope.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--system | string | (none) | Resolve against this system, name or uuid (ADR-0062), which the component must be a member of. Omit to resolve against its primary membership, the default for a caller with no system in hand. |
Example:
omniglass component effective-tag list <name>omniglass component effective-variable
Section titled “omniglass component effective-variable”Commands for the effective-variable resource
omniglass component effective-variable list
Section titled “omniglass component effective-variable list”Effective variables for a component
omniglass component effective-variable list <name>Resolves the variables that cascade onto a component (platform -> location -> system -> component): names union and the most specific binding shadows the rest, with the winner and the shadowed candidates. The system band comes from the component’s PRIMARY membership; resolving against a named system is not offered here yet, unlike effective-tags. Gated by variable:read; the component must be in the caller’s component read scope.
Arguments:
Example:
omniglass component effective-variable list <name>omniglass component event
Section titled “omniglass component event”Commands for the event resource
omniglass component event list
Section titled “omniglass component event list”List a component’s recent events
omniglass component event list <name> [flags]Returns the component’s recent log occurrences (the log-kind sink), newest first, bounded to the last 24 hours, narrowed by an optional event type (key), source and message text (q). Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | Only occurrences of this event type, by name |
--q | string | (none) | Only occurrences whose message contains this text, case-insensitively |
--source | string | (none) | Only occurrences from this transport |
Example:
omniglass component event list <name>omniglass component get
Section titled “omniglass component get”Get a component
omniglass component get <name>Fetches a component by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by component:read.
Arguments:
Example:
omniglass component get <name>omniglass component health
Section titled “omniglass component health”Commands for the health resource
omniglass component health list
Section titled “omniglass component health list”Read a component’s health
omniglass component health list <name> [flags]The component’s own current health (healthy, degraded or outage from its active alarms; unknown for a device nothing has observed) beside the recorded edges that got it there, in the shape the system health read returns: slots and systems are empty, transitions are one entry per change inside since..until (default the last 30 days), oldest first. since after until is a 400. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--since | string | (none) | Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent |
--until | string | (none) | Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since |
Example:
omniglass component health list 'hq.west.level-2.boardroom-a.$comp.videobar-1'omniglass component identity-binding
Section titled “omniglass component identity-binding”Commands for the identity-binding resource
omniglass component identity-binding delete
Section titled “omniglass component identity-binding delete”Unbind an identity a conduit reports
omniglass component identity-binding delete <name> <key> <value>Removes the binding of this value, reported by the conduit component under this match key, so its samples no longer land on the owner it named. Unbinding writes onto both ends, so it costs a write on both: gated by component:update on the conduit, and it also needs update on the binding’s owner (component:update, or system:update for a system), a 403 naming it when the caller reads the owner but cannot write it. A binding whose owner the caller cannot read is a 404, as one that does not exist is: the list does not name it either.
Arguments:
Example:
omniglass component identity-binding delete ucc-platform ucc-room-id room-17c-415aomniglass component identity-binding list
Section titled “omniglass component identity-binding list”List the identities a conduit component fans out
omniglass component identity-binding list <name>The identity bindings of this conduit component: each value it reports under a match key (a registered property type, such as ucc-room-id) and the one system or component that value’s samples land on. A component that speaks for many owners (a cloud service, a controller fronting many components) is the conduit, the path rather than the owner. Each binding is named only when its owner is inside the caller’s read on its tier (system:read for a system owner, component:read for a component owner); the rest are counted in hidden, never named. Gated by component:read; a conduit outside it is a non-disclosing 404.
Arguments:
Example:
omniglass component identity-binding list ucc-platformomniglass component identity-binding update
Section titled “omniglass component identity-binding update”Bind an identity a conduit reports to its owner
omniglass component identity-binding update <name> <key> <value> [flags]Ties this value, reported by the conduit component under this match key, to one owner, a system or a component, so the conduit’s samples naming it land on that owner. One identity on one conduit has exactly one owner: a put naming the owner it is already bound to changes nothing, and one naming a different owner moves it. The match key must be a registered property type (422 otherwise), and the owner a component or a system other than the conduit itself (a location or an outpost owns no observed sample, and a value with no identity already lands on the conduit: each a 422). The value rides the path as one percent-encoded segment, so a value carrying a slash, a space or another reserved character is escaped (room%2F1) and round-trips. A binding writes onto both of its ends, so it costs a write on both: gated by component:update on the conduit, and it also needs the owner’s update (component:update, or system:update for a system, refused with a 403 naming it before anything resolves). Each end resolves in its own tier’s read scope and must be inside its update scope: an end outside the read scope is a non-disclosing 404, one readable but not writable a 403. A move also needs update on the owner it leaves; refused, it says the identity is bound to another owner but never which one.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--owner | string | (none) | Name or uuid of the owner the identity’s values land on, or a dotted address |
--owner-kind | string | (none) | What kind of owner the identity names. A component or a system; a location or an outpost owns no observed sample, so neither is an owner here |
Example:
omniglass component identity-binding update ucc-platform ucc-room-id room-17c-415a --owner owner --owner-kind owner_kindomniglass component impairment
Section titled “omniglass component impairment”Commands for the impairment resource
omniglass component impairment get
Section titled “omniglass component impairment get”Get what is broken on a simulated component
omniglass component impairment get <name>The impairment an operator set on a simulated component (unplugged, or a degraded link), applied by the simulator beside its outpost when that simulator runs with impairments and NET_ADMIN. A healthy device reads all zero. Gated by simulation:read; the component resolves within the caller’s component read scope.
Arguments:
Example:
omniglass component impairment get <name>omniglass component impairment set
Section titled “omniglass component impairment set”Break or repair a simulated component
omniglass component impairment set <name> [flags]Sets what is broken on a simulated component: unplugged, or a link with added latency, jitter, loss or a rate limit. It replaces the whole impairment, so a field left out reads as zero (setting a latency on an unplugged device plugs it back in); an empty body repairs it. Returns the impairment as stored, loss rounded to hundredths. Audited. The simulator beside the component’s outpost applies it on its next pull. Gated by simulation:update, whose scope is resolved on the component tier; a component outside the caller’s component:read is a non-disclosing 404, and one it can read but not impair is a 403. Jitter above latency, or a value outside its range, is a 422.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--jitter-ms | int | 0 | Variation on the delay, in milliseconds; at most the latency |
--latency-ms | int | 0 | Delay added to traffic toward the device, in milliseconds |
--loss-pct | float64 | 0 | Share of packets toward the device dropped, in percent, to hundredths |
--rate-kbit | int | 0 | Bandwidth limit on the device’s link, both ways, in kilobits per second; 0 is unlimited |
--unplugged | bool | false | Dark on every protocol: connects time out, datagrams and pings go unanswered |
Example:
omniglass component impairment set <name>omniglass component list
Section titled “omniglass component list”List components in scope
omniglass component list [flags]Lists the components the caller may read, each filtered to its scope subtree. Optional product, driver and component_type filters narrow to the components a catalog row classifies or a driver serves, and limit caps the page while total counts every match (the catalog drawers’ used-by reads). Gated by component:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--component-type | string | (none) | Only components of a product classified under exactly this component type (name or uuid) |
--driver | string | (none) | Only components of a product this driver serves (name or uuid) |
--limit | int | 0 | Cap the page at this many rows; 0 or absent is no cap. total still counts every match. |
--product | string | (none) | Only components of this product (name or uuid) |
Example:
omniglass component listomniglass component listTags
Section titled “omniglass component listTags”List tags on a component
omniglass component listTags <name>Lists the tags bound directly on a component (not the resolved cascade). Gated by component:read.
Arguments:
Example:
omniglass component listTags <name>omniglass component log
Section titled “omniglass component log”Commands for the log resource
omniglass component log list
Section titled “omniglass component log list”List a component’s recent log lines
omniglass component log list <name> [flags]Returns the component’s recent raw log lines (the ingest lane of ADR-0066, distinct from typed events), newest first, bounded to the last 24 hours, narrowed by an optional severity threshold and source, with the sources the window carries. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--q | string | (none) | Only lines whose message contains this text, case-insensitively |
--severity | string | (none) | Only lines at this severity or more severe (RFC 5424’s eight levels); a line with no severity is left out |
--source | string | (none) | Only lines that arrived on this channel |
Example:
omniglass component log list <name>omniglass component membership
Section titled “omniglass component membership”Commands for the membership resource
omniglass component membership list
Section titled “omniglass component membership list”List the systems a component is in
omniglass component membership list <name>The systems this component is bound into, ordered by name. A component may belong to several: a rack DSP serving three rooms is a member of all three, and each of them depends on it. Exactly one membership may be marked primary, the default for a question asked without a system in hand. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
Example:
omniglass component membership list <name>omniglass component metric
Section titled “omniglass component metric”Commands for the metric resource
omniglass component metric list
Section titled “omniglass component metric list”List a component’s effective metrics
omniglass component metric list <name>Every metric the component’s product declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the component (from_contract false). Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
Example:
omniglass component metric list <name>omniglass component metric sample
Section titled “omniglass component metric sample”Commands for the sample resource
omniglass component metric sample list
Section titled “omniglass component metric sample list”Read one metric series’ samples
omniglass component metric sample list <name> <metric> [flags]The samples behind the effective read’s latest value for one series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with count, min, max, avg and last (null when empty), and covered_from, the earliest instant retention leaves data for. A bucket aggregates one instance’s measured samples (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured samples in the window, or a 422 listing them when there are several. Over more than 48 hours, or past the series’ retention, the resolution is raised to whole hours, and resolution_seconds is the width applied. At whole hours a series with hourly trends (an observed one) takes every hour the trend fold has closed from its trend, so the read reaches back as far as the trends are kept, and its open hours from the samples; any other series, or a finer resolution, reads its samples, within their retention (ADR-1566). Gated by component:read; an out-of-scope owner is a non-disclosing 404.
| Flag | Type | Default | Description |
|---|---|---|---|
--hours | int | 0 | The window in hours, counted back from now; 24 when unset |
--instance | string | (none) | The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. Ignored without a resolution |
--limit | int | 0 | The row cap, newest kept; 500 when unset. Ignored when a resolution is set |
--resolution | int | 0 | The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. Over a window of more than 48 hours, or one past the series’ retention, it is raised to whole hours, at least one, and resolution_seconds says the width applied. A window of more than 5000 buckets is refused |
Example:
omniglass component metric sample list <name> <metric>omniglass component move
Section titled “omniglass component move”Move a component
omniglass component move <name> [flags]Relocates and/or re-parents a component: at least one of location or parent is required (422 otherwise). Both follow the three-state convention (an omitted field is unchanged, an explicit empty string clears, a name sets). A reparent is cycle-guarded and scope-injected; clearing parent to root requires an all-scoped move grant (a location-scoped grant reaches a component for read and create only). A separate act from update, and a separately grantable one (component:move), because a placement change is an authorization act, not a label edit: it moves a row out from under one grant’s subtree and under another’s. Recorded under its own audit verb, move, distinct from update. Does not recompute health: a component’s own health is purely its active alarms, unaffected by where it sits. A taken name at the destination is a 409. Gated by component:move; read and move scopes drive the 404 versus 403 split, and the destination location resolves within the caller’s location:read scope, because the move restamps the label from it: a destination outside that scope is refused (422).
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | Relocates the component to this location name. An empty string clears its placement. |
--parent | string | (none) | Re-parents the component within the component tree to this component name; cycle-guarded and scope-injected. An empty string makes it a root component (requires an all-scoped move grant). |
Example:
omniglass component move <name>omniglass component previewLabels
Section titled “omniglass component previewLabels”Preview a component label recompute
omniglass component previewLabelsLists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by component:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.
Example:
omniglass component previewLabelsomniglass component property
Section titled “omniglass component property”Commands for the property resource
omniglass component property delete
Section titled “omniglass component property delete”Clear a property on a component
omniglass component property delete <name> <property>Removes the component’s declared value, so the property falls back to the product contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the component never set is a 404. Gated by component:update; read and update scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass component property delete <name> <property>omniglass component property list
Section titled “omniglass component property list”List a component’s properties and where each stands
omniglass component property list <name>Every property the component has: each its product declares, resolved to the component’s own value or the contract default (is_set marks a declared value), each set directly on the component (from_contract false), each a calc rule writes (source_rule), and each only observed or told by a command. Every row but a calculated one carries its reconciliation: want (declared), told (intended), is (observed, worst case across every live instance, naming is_instance) and drift, computed on read. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
Example:
omniglass component property list <name>omniglass component property sample
Section titled “omniglass component property sample”Commands for the sample resource
omniglass component property sample list
Section titled “omniglass component property sample list”Read one property series’ change history
omniglass component property sample list <name> <property> [flags]The change history behind the effective value for one property series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with the change count, last (the value its own changes end on, null when empty) and held (the value in force at its end), and covered_from, the earliest instant retention leaves data for. Both forms carry carried_in, the value in force when the window opens (the newest measured row of the instance before it, within retention), so a step chart starts on it instead of blank. A bucket aggregates one instance’s measured changes (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured changes in the window, or a 422 listing them when there are several. Gated by component:read; an out-of-scope owner is a non-disclosing 404.
| Flag | Type | Default | Description |
|---|---|---|---|
--hours | int | 0 | The window in hours, counted back from now; 24 when unset |
--instance | string | (none) | The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it |
--limit | int | 0 | The row cap, newest kept; 500 when unset. Ignored when a resolution is set |
--resolution | int | 0 | The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused |
Example:
omniglass component property sample list <name> <property>omniglass component property update
Section titled “omniglass component property update”Set a property on a component
omniglass component property update <name> <property> [flags]Declares a value for the property on this component, overriding the product contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by component:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--value | string | (none) | The value to declare, shape given by the property’s data_type |
Example:
omniglass component property update <name> <property> --value <json>omniglass component reachability
Section titled “omniglass component reachability”Commands for the reachability resource
omniglass component reachability list
Section titled “omniglass component reachability list”Read a component’s per-endpoint reachability
omniglass component reachability list <name>Composes, per endpoint, the latest reachability, the probe-layer signals that compose it, and the recent reachability transitions for the availability strip. Gated by component:read; an out-of-scope component is a non-disclosing 404.
Arguments:
Example:
omniglass component reachability list <name>omniglass component recomputeLabels
Section titled “omniglass component recomputeLabels”Recompute component labels
omniglass component recomputeLabelsApplies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by component:update.
Example:
omniglass component recomputeLabelsomniglass component removeTag
Section titled “omniglass component removeTag”Remove a tag value from a component
omniglass component removeTag <name> [flags]Removes a key’s value from a component. Gated by component:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key to remove |
Example:
omniglass component removeTag <name> --key keyomniglass component rename
Section titled “omniglass component rename”Rename a component
omniglass component rename <name> [flags]Moves the component’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by component:rename; read and rename scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique within its placement (lowercase letters, digits, hyphens) |
Example:
omniglass component rename <name> --name nameomniglass component renderLabel
Section titled “omniglass component renderLabel”Draft the name and label a component create would store
omniglass component renderLabel [flags]Drafts the name and the label a component create would stamp, for the classification and placement a create form already holds, without creating anything. It allocates no ordinal, opens no write transaction and takes no advisory lock, which is what separates it from a preview that mints: the ordinal is READ (the lowest free number among the live siblings in the placement bucket) rather than allocated. That answer is provisional, so a form posts the NAME back as expected_name on the create and is refused (409) rather than silently renamed if another create takes the number or the type’s stem moves first. Omitting name drafts the name the platform would mint, and refuses (422) exactly where a nameless create would. Gated by component:create, the permission the create it precedes needs; the parent resolves within the caller’s component:create scope and the location ref within location:read, because the rendered string can carry that label. Naming a system additionally requires system:update and resolves within that scope, the same as the create, because the create binds that system’s membership: a preview is never served for a bind the create would refuse. Omitting parent is the parentless bucket, which a create refuses without an all-scoped grant, so the draft refuses it too (403): a form must not preview a bucket its create declines, and the previewed ordinal reports which names that bucket already holds.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | The location this component will sit at, by name or uuid. Resolved within the caller’s location:read scope: a location out of scope is refused, never rendered. |
--name | string | (none) | The name the row will carry. Omit it to draft the name and label the platform would produce; supply it to draft the label an operator-named row would carry, which has no ordinal at all. |
--parent | string | (none) | The parent component, by name or uuid. Part of the placement bucket a generated name’s ordinal is read from, so a draft that omits it previews the wrong bucket. Resolved within the caller’s component:create scope, the same set the create resolves it in. |
--product | string | (none) | The product this component is an instance of, by name or uuid; the classification both a label rule and a generated name are resolved from |
--system | string | (none) | The system this component will belong to, by name or uuid. Naming it requires system:update, exactly as the create does, because the create inserts that system’s membership; it resolves within that scope, and system:read decides only whether the refusal may name the system. |
Example:
omniglass component renderLabel --product productomniglass component resetName
Section titled “omniglass component resetName”Regenerate a component’s name
omniglass component resetName <name>Hands the pen back to the platform: regenerates the name from the component’s current type and placement (the same ”
Arguments:
Example:
omniglass component resetName <name>omniglass component setTag
Section titled “omniglass component setTag”Set a tag value on a component
omniglass component setTag <name> [flags]Binds a value for a key on a component. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by component:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key (must exist and apply to this kind) |
--value | string | (none) | The bound value |
Example:
omniglass component setTag <name> --key key --value valueomniglass component simulation
Section titled “omniglass component simulation”Commands for the simulation resource
omniglass component simulation fire
Section titled “omniglass component simulation fire”Fire an operation at a simulated component
omniglass component simulation fire <name> [flags]Asks the simulator beside the component’s outpost to run one operation against the simulated component, on one of its protocol surfaces: an HTTP call, a command line (SSH, Telnet, TCP) or an SNMP get, and returns its answer. The simulator answers from the component’s live state in process, as its listeners would, so a command’s change sticks and the collector sees it; an impairment does not stop it. Audited. Gated by simulation:update, resolved on the component tier. A component that is not simulated is a 409, a surface it does not serve a 422, and no simulator answering a 503.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | (none) | HTTP: the request body |
--command | string | (none) | SSH, Telnet or TCP: the command line |
--method | string | (none) | HTTP: the method; GET when empty |
--oid | string | (none) | SNMP: the OID to get |
--path | string | (none) | HTTP: the request path |
--surface | string | (none) | The surface to fire on, by its name in the component’s surface list |
Example:
omniglass component simulation fire <name> --surface surfaceomniglass component simulation get
Section titled “omniglass component simulation get”Get a component’s simulation
omniglass component simulation get <name>Whether a component is simulated (it has an endpoint on an outpost and a product a simulator profile simulates) and, when it is, its outpost, address, live hits and impairment, the products its profile simulates, and its full API surface: every protocol surface, with its HTTP routes, commands and SNMP OIDs. A component that is not simulated reads simulated false. Gated by simulation:read; the component resolves within the caller’s component read scope.
Arguments:
Example:
omniglass component simulation get <name>omniglass component unbound-identity
Section titled “omniglass component unbound-identity”Commands for the unbound-identity resource
omniglass component unbound-identity list
Section titled “omniglass component unbound-identity list”List the identities a conduit reported that no binding places
omniglass component unbound-identity list <name>A component that speaks for many owners (a conduit) lands each value its driver identifies on the owner an identity binding names; a value naming an identity it has no binding for lands on no owner and is kept here, one row per match key and value (a count, first and last heard, the keys it carried), bounded at 1024 per conduit with the least recently heard evicted, and aged out after seven days. Binding one (PUT …/identity-bindings/{key}/{value}) makes the next value naming it land on its owner. Gated by component:read; an out-of-scope conduit is a non-disclosing 404.
Arguments:
Example:
omniglass component unbound-identity list 'hq.$comp.ucc-platform'omniglass component update
Section titled “omniglass component update”Update a component
omniglass component update <name> [flags]Patches a component’s label or product. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: relocating or re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. Product is required, so it is unchanged when omitted and reclassified when named, but an explicit empty string is refused (422), not a clear. Gated by component:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new operator-facing label |
--product | string | (none) | Re-classifies the component to this product (catalog SKU), by name or uuid. Required once set: an empty string is refused (422), not a clear. Explicitly-set property values persist; the new product’s contract defaults follow. |
Example:
omniglass component update <name>omniglass component-type
Section titled “omniglass component-type”Commands for the component-type resource
omniglass component-type create
Section titled “omniglass component-type create”Create a component type
omniglass component-type create [flags]Creates a custom (non-official) component_type, optionally under a parent. Gated by component_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--abbrev | string | (none) | A compact form of label; omit to inherit the parent’s |
--default-tags | string | (none) | Tags every instance of this type starts with |
--icon | string | (none) | A glyph key; omit to inherit the parent’s |
--label | string | (none) | What an operator reads in pickers and lists |
--label-rule | string | (none) | A label rule, written in Go text/template, rendering the label of every instance of this type, over a closed map of that component’s facts (Name, Ordinal, TypeName, TypeAbbrev, Stem, ProductName, VendorName, LocationLabel, SystemTypeLabel) and the functions title, upper, lower, slug and words (words turns a kebab or snake name into the words in it, so {{title (words .Name)}} reads north-wing as North Wing). Omit to inherit the parent’s, then the global component rule. A rule that does not parse is refused here, 422. |
--name | string | (none) | The globally unique name |
--parent-id | string | (none) | The parent component_type, by name or uuid; omit for a root type |
--stem | string | (none) | The auto-generated component name’s prefix; omit to inherit the parent’s. Lowercase letters, digits, and hyphens. |
Example:
omniglass component-type create --label label --name nameomniglass component-type delete
Section titled “omniglass component-type delete”Delete a component type
omniglass component-type delete <id>Deletes a custom component_type, refused if official (422, forked or not: a fork is an overlay, not ownership) or still a parent of another component_type (409). :restore is the only removal a shipped row admits, and it removes your fork, not the row. Gated by component_type:delete.
Example:
omniglass component-type delete displayomniglass component-type list
Section titled “omniglass component-type list”List component types
omniglass component-type listLists the component_type catalog (the taxonomy a product is classified under: mic, camera, wireless-mic under mic), ordered alphabetically by label. Each row carries its parent link, so the console reconstructs the tree client-side. Gated by component_type:read.
Example:
omniglass component-type listomniglass component-type restore
Section titled “omniglass component-type restore”Restore a component type’s shipped values
omniglass component-type restore <id>Discards your fork of a shipped component_type, so reads return the values this release ships and later releases can improve them again. 409 when the row carries no fork of yours. Gated by component_type:update, the same permission that took the fork: restoring is undoing your own edit, not deleting a row.
Example:
omniglass component-type restore displayomniglass component-type update
Section titled “omniglass component-type update”Update a component type
omniglass component-type update <id> [flags]Patches a component_type’s label, stem, icon, abbrev, label_rule, or default_tags. A shipped (official) row is never written: the patch FORKS it, storing your version over the shipped one, and the response comes back with forked=true under the same id. :restore discards the fork. Gated by component_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--abbrev | string | (none) | A new compact form; an empty string clears it, so this type inherits the nearest ancestor’s again |
--default-tags | string | (none) | Replaces the default-tag set; omit to leave unchanged |
--icon | string | (none) | A new glyph key; an empty string clears it, so this type inherits the nearest ancestor’s again |
--label | string | (none) | A new operator-facing label |
--label-rule | string | (none) | A new label rule; an empty string clears it, so instances fall back to the nearest ancestor’s rule and then the global component rule. Refused with 422 if it does not parse. |
--stem | string | (none) | A new name prefix (lowercase letters, digits, and hyphens); an empty string CLEARS it, so this type inherits the nearest ancestor’s again. A root type has no ancestor to inherit from and is refused (422). |
Example:
omniglass component-type update displayomniglass driver
Section titled “omniglass driver”Commands for the driver resource
omniglass driver create
Section titled “omniglass driver create”Create a driver
omniglass driver create [flags]Creates a custom (non-official) driver. Gated by driver:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | What an operator reads in pickers and lists |
--name | string | (none) | The globally unique name; renameable |
--spec | string | (none) | The declarative spec body; validated against the catalogs, and a spec that fails validation refuses the write (422) |
--version | string | (none) | A free-form version string, e.g. 1.0.0 |
Example:
omniglass driver create --label label --name nameomniglass driver delete
Section titled “omniglass driver delete”Delete a driver
omniglass driver delete <id>Deletes a custom driver, refused if official (422). Gated by driver:delete.
Example:
omniglass driver delete snmp-genericomniglass driver get
Section titled “omniglass driver get”Get a driver
omniglass driver get <id>Fetches a driver by id. Gated by driver:read.
Example:
omniglass driver get snmp-genericomniglass driver list
Section titled “omniglass driver list”List drivers
omniglass driver listLists the driver catalog, ordered alphabetically by label. Populates the driver picker on the product form. Gated by driver:read.
Example:
omniglass driver listomniglass driver preview
Section titled “omniglass driver preview”Preview a driver spec’s polls through an outpost
omniglass driver preview [flags]Runs a driver spec’s polls once through the outpost named, against the target its inputs name, and answers with what each poll read: the samples its emits extracted, each emit that did not locate, and an excerpt of the raw answer, masked of every secret the preview used. Nothing is stored. The spec is a stored driver (driver) or an unsaved one (spec); an invalid spec is a 422 listing its findings, as validate-driver-spec gives them. A preview runs a poll that is its own request (http, https, an snmp get, a tcp line); a poll that rides a held session or a bound socket needs an attached endpoint (run-endpoint-poll). A secret input must be one the caller may bind (secret:bind), since the preview hands it to the target named. A preview whose transport and target name an endpoint the outpost holds runs on that endpoint’s lane, never beside its other requests and ahead of its scheduled polls; when that endpoint’s gate is closed (refused, unreachable, or disrupted by a command), or the probe reads the target’s host unreachable, it is a 409 naming the reason, and nothing is sent. An outpost that is not connected is a 503, one that does not answer in time a 504; too many runs in flight, here or on the outpost’s operator lanes, is a 429. Audited on the outpost and on each secret used. Gated by driver:preview.
| Flag | Type | Default | Description |
|---|---|---|---|
--driver | string | (none) | A stored driver to preview, by name; or give spec |
--inputs | string | (none) | The inputs an attach would take (host, port, a secret by name); a secret must be one you may bind (secret:bind), since a preview hands it to the target |
--outpost | string | (none) | The outpost that runs the preview, by name: the one that reaches the target |
--polls | string | (none) | The polls to run, by name; absent runs every poll |
--spec | string | (none) | A driver spec to preview inline, unsaved; or give driver |
--timeout-seconds | int | 0 | How long the outpost may take for the whole preview (default 15, at most 30) |
Example:
omniglass driver preview --outpost outpostomniglass driver rename
Section titled “omniglass driver rename”Rename a driver
omniglass driver rename <id> [flags]Moves a custom driver’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official driver keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by driver:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass driver rename <id> --name nameomniglass driver update
Section titled “omniglass driver update”Update a driver
omniglass driver update <id> [flags]Patches a custom driver’s label or version. Official drivers are read-only (422). Gated by driver:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new operator-facing label |
--spec | string | (none) | A replacement spec body; validated like the create’s, refused with a 422 when it cannot be interpreted |
--version | string | (none) | A new version string, e.g. 1.0.1 |
Example:
omniglass driver update snmp-genericomniglass driver validate
Section titled “omniglass driver validate”Check a driver spec without saving it
omniglass driver validate [flags]Checks a driver spec by the rules a save applies (the strict parse, then validation against the live catalogs) and writes nothing. The answer lists every fault the validator can pin down, each pinned on the function it is in, the first always the fault a save would name; an empty list is a spec create-driver accepts. Gated by driver:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--spec | string | (none) | The driver spec to check, as create-driver takes it |
Example:
omniglass driver validate --spec <json>omniglass endpoint
Section titled “omniglass endpoint”Commands for the endpoint resource
omniglass endpoint create
Section titled “omniglass endpoint create”Create an endpoint
omniglass endpoint create [flags]Creates an endpoint owned by a component (or a server-hosted one, which needs an all-scoped grant), named by its transport; the optional label is the only identity string an operator types, and is where what the connection is FOR goes. A secret input hands that credential to the endpoint’s host, so it takes secret:bind on the secret: one the caller cannot read is a 422, one it can read but not bind a 403. The create scope cascades through the owning component. Gated by endpoint:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--component | string | (none) | Owning component, by name or id; omit for a server-hosted endpoint (needs an all-scoped grant) |
--driver | string | (none) | Attach this driver (by name or id): the spec derives the transport and params, and the endpoint’s tasks derive from the spec’s functions |
--inputs | string | (none) | The inputs the driver’s spec declares (host, port, credentials as secret reference names); required ones must be supplied, defaults fill the rest |
--label | string | (none) | What an operator reads in lists (Control processor). Settable here because the name is derived from the transport, so it says how the device is reached and never what the connection is for |
--out-of-band | bool | false | Mark the endpoint a management path (a BMC, a management port) that answers through a reboot of its device, so a reboot’s hold leaves its gate open |
--outpost | string | (none) | Outpost placement, by name or id |
--params | string | (none) | Address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss); an attach derives them from the inputs instead |
--transport | string | (none) | A transport name from the built-in transports (GET /transports); the endpoint is named by it, unique within the component. Exactly one of transport (a bare probe endpoint) or driver (an attach) is set |
Example:
omniglass endpoint createomniglass endpoint delete
Section titled “omniglass endpoint delete”Delete an endpoint
omniglass endpoint delete <endpoint>Deletes an endpoint, refused while a task still references it. Gated by endpoint:delete; read and delete scopes (through the component) drive the 404 versus 403 split.
Arguments:
Example:
omniglass endpoint delete 'boi.17c.415a.$comp.display-1/https'omniglass endpoint get
Section titled “omniglass endpoint get”Get an endpoint
omniglass endpoint get <endpoint>Fetches an endpoint by its address (
Arguments:
Example:
omniglass endpoint get 'boi.17c.415a.$comp.display-1/https'omniglass endpoint list
Section titled “omniglass endpoint list”List endpoints in scope
omniglass endpoint listLists the endpoints whose owning component the caller may read (the component cascade). Gated by endpoint:read.
Example:
omniglass endpoint listomniglass endpoint poll
Section titled “omniglass endpoint poll”Commands for the poll resource
omniglass endpoint poll run
Section titled “omniglass endpoint poll run”Run an endpoint’s poll now
omniglass endpoint poll run <endpoint> <poll> [flags]Runs one of an attached endpoint’s polls now, on the outpost that holds the endpoint, outside its schedule (which is unchanged), and answers with what it read. The samples land as a scheduled run’s do. The run waits for the endpoint’s lane on the outpost, ahead of its scheduled polls and never beside another request to the endpoint; it borrows the endpoint’s held session where it has one and honors its gate: a gated endpoint refuses the run with the gate’s reason (409), a refusal, an unreachable reading from the endpoint’s probe, or a disruptive command (a reboot) the run was queued behind, and nothing is sent. A poll the endpoint does not have is a 404 naming the polls it has; an endpoint on no outpost is a 409. An outpost that is not connected is a 503, one that does not answer in time a 504; too many runs in flight, here or on the outpost’s operator lanes, is a 429. Audited on the endpoint. Gated by endpoint:run; read and run scopes (through the component) drive the 404 versus 403 split.
| Flag | Type | Default | Description |
|---|---|---|---|
--timeout-seconds | int | 0 | How long the outpost may take (default 15, at most 30) |
Example:
omniglass endpoint poll run 'hq.west.level-2.huddle.$comp.panel-1/telnet' statusomniglass endpoint retry
Section titled “omniglass endpoint retry”Retry an endpoint’s gated connections
omniglass endpoint retry <endpoint> [flags]Moves the endpoint’s retry counter, which is part of its connection fingerprint: a gate a refusal retrying cannot fix holds (a wrong credential, a changed host key or certificate, a reply its driver declares terminal) lifts, the outpost recycles the endpoint’s held session, and every connection to it is attempted again. Fixing the secret, the address, the transport, the tls mode or the driver’s login needs no retry: the change moves the fingerprint itself. An unrelated edit (a label) moves nothing. host_key names a key to trust, the one the endpoint’s transport pins (the offered key a key refusal names): an ssh host key, or a tls or https endpoint’s certificate public key, which such an endpoint also takes as certificate. It becomes the declared pin and recycles the session onto it whatever its state, an audited acceptance of the change. While the endpoint’s gate names an offered key, the key must be that key, so a trust confirmed against a refusal the record has since moved past is a 409 and changes nothing. Audited, a trusted key with the pin it replaced (old) and the pin it set (new). Gated by endpoint:retry; read and retry scopes (through the component) drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--certificate | string | (none) | A tls or https endpoint only: the same as host_key, named for the certificate (the offered_key a certificate refusal names). It becomes the endpoint’s declared tls-certificate pin, held to the same rule (the exact offered key while a key refusal holds), and the session redials onto it. Omit to retry with the pin unchanged |
--host-key | string | (none) | The SHA256 fingerprint of a changed key the operator now trusts, the key the endpoint’s transport pins (the offered_key a key refusal names on the component’s reachability read): an ssh endpoint’s host key, which becomes its declared ssh-host-key, or a tls or https endpoint’s certificate public key, which becomes its declared tls-certificate. The session redials onto it. While a key refusal holds, it must be that exact offered key: any other is a 409 that changes nothing (the refusal on record is the outpost’s last word, so to trust a key the component presents since, retry without a key first). With no key refusal held it declares a pin ahead of time. Omit to retry with the pin unchanged |
Example:
omniglass endpoint retry 'boi.17c.415a.$comp.display-1/https'omniglass endpoint rotateToken
Section titled “omniglass endpoint rotateToken”Rotate a webhook endpoint’s token
omniglass endpoint rotateToken <endpoint>Mints a webhook endpoint’s token anew (#1024): a post bearing the old one answers 404 at once, exactly as a token that never existed, and the new one is revealed through the endpoint’s secret, to give the sender. A token deleted with its secret is minted again. A dialed endpoint has no token, a 422. Audited on the endpoint and the secret. Gated by endpoint:update; read and update scopes (through the component) drive the 404 versus 403 split.
Arguments:
Example:
omniglass endpoint rotateToken 'boi.17c.415a.$comp.display-1/https'omniglass endpoint update
Section titled “omniglass endpoint update”Update an endpoint
omniglass endpoint update <endpoint> [flags]Patches an endpoint’s outpost placement, params, label, out-of-band mark, or (driver-attached) its connection inputs in place: the host, port and attached secret references (a secret taking secret:bind, as on create), validated against the driver’s declared inputs, the endpoint’s tasks re-derived in the same transaction. A value the driver refuses is a 400 naming the field. An empty label clears it and the surface falls back to the derived name. Gated by endpoint:update; read and update scopes (through the component) drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--inputs | string | (none) | A driver-attached endpoint’s inputs, edited in place (#1061): the host, the port, an attached secret’s reference name, any input the driver declares. Merged over the stored inputs and validated against the driver; a value it refuses is a 400 naming the input. Changing where a credential is sent needs the caller to hold secret:bind on it, a 403 naming secret:bind without it |
--label | string | (none) | A new label; an empty string clears it, and the surface falls back to the derived name. Omit to leave it alone |
--out-of-band | bool | false | Mark the endpoint a management path that answers through a reboot of its device (true), or an ordinary one (false). Omit to leave it alone |
--outpost | string | (none) | Reassign the outpost placement, by name or id |
--params | string | (none) | Replace the address/target settings (jsonb): set target as host[:port] (host and port keys are refused); timeout, count (icmp), tls-mode (tls, https, wss). On a driver-attached endpoint only the timeout is set here: its address derives from its host and port inputs |
--transport | string | (none) | The transport: a driver-attached endpoint takes only one its driver speaks |
Example:
omniglass endpoint update 'boi.17c.415a.$comp.display-1/https'omniglass event-rule
Section titled “omniglass event-rule”Commands for the event-rule resource
omniglass event-rule create
Section titled “omniglass event-rule create”Create an event rule
omniglass event-rule create [flags]Authors a rule that fires on each component it watches when its sample key meets the fire criteria for the fire sustain, and clears when the clear criteria (or the negation of fire) holds for the clear sustain. It names the event type it writes when it fires (required) and, optionally, when it clears; with a severity it also raises an alarm while it is firing, and without one it is informational. Criteria are expressions over the sample (value, key, instance, component.name, component.type) yielding true or false; a metric rule with a sample_window also reads window, the series’ points over that span, oldest first, so slope, growth and span can fire it on a sustained trend (criteria that read window need a sample_window, and a sample_window needs criteria that read it), and any metric rule may read age, how long the series has run in seconds (a process’s own key, since the process started), to hold a trend until a fill or a restart’s refill is past; a body may give {expr} or the short form {op, value}, and the answer is always {expr}. The key must be a registered property or metric, the criteria must compile against its lane (an unknown name or a result that is not a bool is a 422 naming the criteria, line and column), the event types registered and the severity, when given, a level that exists (else 422); a name already taken is a 409. Audited. Gated by rule:create, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--clear-criteria | string | (none) | The criteria that ends it: {expr} or {op, value}; absent clears on the negation of fire_criteria, !(fire) |
--clear-event-type | string | (none) | The event type the rule writes when it clears, by name (rule-cleared is the generic one); absent, it writes none |
--clear-sustain | string | (none) | A Go duration; empty is 0s |
--description | string | (none) | What the rule watches for and why |
--enabled | bool | false | Defaults to true |
--fire-criteria | string | (none) | The criteria the rule fires on: {expr}, or the short form {op, value} |
--fire-event-type | string | (none) | The event type the rule writes when it fires, by name (rule-fired is the generic one) |
--fire-sustain | string | (none) | A Go duration; empty is 0s |
--label | string | (none) | A human label; also the alarm message when message is empty |
--message | string | (none) | The alarm message; empty uses the label or the name |
--name | string | (none) | The rule’s name (lowercase kebab) |
--sample-key | string | (none) | The property or metric the rule reads |
--sample-window | string | (none) | A metric rule’s trend window, a Go duration up to 168h: the criteria read window, the series’ points over it, oldest first; empty is 0s, no window |
--selector | string | (none) | The components the rule watches (component types and components); absent is every component |
--severity | string | (none) | The severity level the alarm is raised at, by name; absent or empty, the rule is informational and raises no alarm |
Example:
omniglass event-rule create --fire-criteria <json> --fire-event-type fire_event_type --name name --sample-key sample_keyomniglass event-rule delete
Section titled “omniglass event-rule delete”Delete an event rule
omniglass event-rule delete <name>Removes an operator rule; an official rule is read-only (409). Audited. Gated by rule:delete, with an all-scope grant.
Example:
omniglass event-rule delete <name>omniglass event-rule get
Section titled “omniglass event-rule get”Get an event rule
omniglass event-rule get <name>Returns one event rule by name, with its live state as counts over the components the caller may read. Gated by rule:read.
Example:
omniglass event-rule get <name>omniglass event-rule list
Section titled “omniglass event-rule list”List event rules
omniglass event-rule listLists the event rules, the authored config that raises alarms, each with its live state as counts (firing, open_alarms, pending_streaks) read in the same query. Rules read like a catalog: every rule is listed whatever the caller’s scope, while the counts cover only components the caller may read. Gated by rule:read.
Example:
omniglass event-rule listomniglass event-rule preview
Section titled “omniglass event-rule preview”Preview an event rule
omniglass event-rule preview [flags]Judges a candidate rule (sample key, selector, criteria) without writing anything, as the ingest would have with no sustains (the answer says they are ignored): over each series it selects on components the caller may read, from the state its newest deciding sample in the 7 days before the window set (state_unknown when there is none), through every sample in the last 24 hours that the ingest would have judged (a late sample older than one before it decides nothing). Answers the edges it would have written and the series it would hold in force now. Its reads are index probes per series, capped at row_cap window samples taken a whole series at a time: series_judged of series_total, and truncated when the cap stopped it. A selector naming a component the caller cannot read is the same 422 as one that does not exist. Criteria take {expr} or {op, value}; one that does not compile is a 422 naming the criteria, line and column, and criteria that read window or age (a trend rule’s) are a 422, since each sample is judged alone. Gated by rule:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--clear-criteria | string | (none) | The criteria it clears on; absent, the negation of fire_criteria |
--clear-sustain | string | (none) | Accepted and ignored, like fire_sustain |
--fire-criteria | string | (none) | The criteria it fires on: {expr}, or the short form {op, value} |
--fire-sustain | string | (none) | Accepted so a rule body previews as it is, and ignored: a preview judges each sample alone |
--sample-key | string | (none) | The property or metric the candidate rule reads |
--selector | string | (none) | The components it watches; absent or empty, every component |
Example:
omniglass event-rule preview --fire-criteria <json> --sample-key sample_keyomniglass event-rule rename
Section titled “omniglass event-rule rename”Rename an event rule
omniglass event-rule rename <name> [flags]Moves an operator rule’s name, the address an operator types. A separate act from an update, because it breaks bookmarks and integration config outside this system; inside it nothing breaks, since every reference holds the rule’s uuid (an alarm’s raised_by_rule_id and dedup key, a firing, a streak, an event’s derived_by_rule_id). Not a material change: no version bump, streaks keep running and firings stay. An event keeps the name it was written under (derived_by_rule); the rule’s next events carry the new one. An official rule keeps its name (409), a taken name is a 409, an illegal or uuid-shaped one a 422. Returns the rule with its uuid. Audited. Gated by rule:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The rule’s new name, unique among rules (lowercase letters, digits, hyphens) |
Example:
omniglass event-rule rename <name> --name nameomniglass event-rule state
Section titled “omniglass event-rule state”Commands for the state resource
omniglass event-rule state list
Section titled “omniglass event-rule state list”Get an event rule’s live state
omniglass event-rule state list <name>What a rule holds right now: its firings (one per component and instance, whether or not it raises an alarm), the alarms it raised that are still open, each on a component and instance, its streaks waiting out a sustain, and when it last judged an ingested sample. Only firings, alarms and streaks on components the caller may read are listed. Gated by rule:read.
Example:
omniglass event-rule state list <name>omniglass event-rule update
Section titled “omniglass event-rule update”Update an event rule
omniglass event-rule update <name> [flags]Patches a rule (an absent field is unchanged), bumping its version; disabling it stops new opens. Criteria take {expr} or the short form {op, value}, compiled as on create (a 422 names the criteria, line and column). An empty severity makes the rule informational and an empty clear_event_type drops its clear event; the fire event type cannot be emptied (422). Official rules are read-only (409). Audited. Gated by rule:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--clear-criteria | string | (none) | The criteria that ends it: {expr} or {op, value}; absent clears on the negation of fire_criteria, !(fire) |
--clear-event-type | string | (none) | The event type the rule writes when it clears, by name; empty writes none |
--clear-negates | bool | false | Drop the clear criteria, so the rule clears on the negation of its fire criteria |
--clear-sustain | string | (none) | How long the clear criteria must hold, a Go duration; empty is 0s |
--description | string | (none) | What the rule watches for and why |
--enabled | bool | false | Whether the rule evaluates; defaults to true on create |
--fire-criteria | string | (none) | The criteria the rule fires on: {expr}, or the short form {op, value} |
--fire-event-type | string | (none) | The event type the rule writes when it fires, by name; it cannot be emptied |
--fire-sustain | string | (none) | How long the fire criteria must hold, a Go duration (e.g. 30s); empty is 0s |
--label | string | (none) | A human label; also the alarm message when message is empty |
--message | string | (none) | The alarm message; empty uses the label or the name |
--sample-key | string | (none) | The property or metric the rule reads |
--sample-window | string | (none) | How far back the criteria’s window reads the metric’s series, a Go duration up to 168h; empty is 0s, no window |
--selector | string | (none) | Replace the components the rule watches; absent leaves them unchanged, and an empty selector watches every component |
--severity | string | (none) | The severity level the alarm is raised at, by name; empty makes the rule informational (no alarm) |
Example:
omniglass event-rule update <name>omniglass event-type
Section titled “omniglass event-type”Commands for the event-type resource
omniglass event-type create
Section titled “omniglass event-type create”Create an event type
omniglass event-type create [flags]Registers a custom event type (official=false). The name must be a single kebab token, e.g. call-started. Gated by event_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the occurrence means |
--label | string | (none) | A human label |
--name | string | (none) | The event type name (lowercase kebab) |
--payload-schema | string | (none) | A JSON Schema fragment for the payload |
Example:
omniglass event-type create --name nameomniglass event-type delete
Section titled “omniglass event-type delete”Delete an event type
omniglass event-type delete <name>Removes a custom event type by name. Official event types are read-only (409), and so is a type still in use: one that recorded events or an event rule’s fire or clear event type names is a 409 until nothing names it. Gated by event_type:delete.
Example:
omniglass event-type delete <name>omniglass event-type get
Section titled “omniglass event-type get”Get an event type
omniglass event-type get <name>Returns one event type by name. Gated by event_type:read.
Example:
omniglass event-type get <name>omniglass event-type list
Section titled “omniglass event-type list”List event types
omniglass event-type listLists every registered event type (official and custom). The catalog is fleet-wide reference data. Gated by event_type:read.
Example:
omniglass event-type listomniglass event-type update
Section titled “omniglass event-type update”Update an event type
omniglass event-type update <name> [flags]Patches a custom event type’s label, description, or payload schema. Partial by default: the fields present in the body change and the rest are left alone. payload_schema is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; label and description clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. The name is fixed at creation. Official event types are read-only. Gated by event_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the occurrence means |
--label | string | (none) | A human label |
--payload-schema | string | (none) | A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name payload_schema in update_mask with no value here to CLEAR it |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (payload_schema back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it |
Example:
omniglass event-type update <name>omniglass expression
Section titled “omniglass expression”Commands for the expression resource
omniglass expression validate
Section titled “omniglass expression validate”Validate an expression
omniglass expression validate [flags]Compiles an expression against a registered site’s environment and answers whether it compiles, with positioned diagnostics, and the site’s bindings, admitted builtins and run budget, all generated from the site’s declaration. For criteria a sample key is required, and types the value (a metric is a number; a property is text, or a bool for a bool property). For calc the key is the rule’s output key, typing the result, and the rule’s inputs (and owner_kind, component by default) give the bindings, each input’s alias bound to the list of its key’s type (a system also binds members, one record per member); an input that is unknown, or an alias that is not an identifier, is reserved or repeats, is a 422; a name the expression uses that no alias binds is a diagnostic carrying that name (unbound); the answer’s value_type so reveals a key’s lane and data type to a rule:read holder, as the rule list already does. Compiles without the engine’s program cache and stores and runs nothing. An unknown site, a missing or unknown key is a 422. Gated by rule:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--inputs | string | (none) | For calc (required there), the rule’s inputs: each bound by its alias, typed by its key (by name or uuid) |
--key | string | (none) | The sample key that types the expression (required at both sites). For criteria, the key the rule reads: its lane and data type type the value (a metric is a number; a property is text, or a bool for a bool property). For calc, the rule’s output key: its type is the result the reduce must yield |
--owner-kind | string | (none) | For calc, what the rule derives on: each input binds by its alias as the list of its current values (one per instance on a component, every member’s on a system); a system also binds members, one record per slot-bound member with value. |
--site | string | (none) | Where the expression is written: action, an action rule’s when; calc, a calc rule’s reduce; criteria, an event rule’s fire_criteria or clear_criteria |
--source | string | (none) | The expression |
Example:
omniglass expression validate --site site --source sourceomniglass file
Section titled “omniglass file”Commands for the file resource
omniglass file create
Section titled “omniglass file create”Create a file from an upload
omniglass file create [flags]Stores the uploaded bytes as a content-addressed blob (identical bytes dedup to one blob) and writes the file handle pointing at it. Gated by file:create; a sensitive file additionally needs the admin tier (file:create:admin).
| Flag | Type | Default | Description |
|---|---|---|---|
--content | string | (none) | The file bytes, base64-encoded |
--content-type | string | (none) | The MIME type used to serve the file |
--name | string | (none) | The file’s filename, which is already the label an operator reads (no path separators) |
--sensitive | bool | false | Admin-only visibility; defaults false. Setting true requires the admin tier |
Example:
omniglass file create --content content --content-type content_type --name nameomniglass file delete
Section titled “omniglass file delete”Delete a file
omniglass file delete <file>Removes a file handle. The underlying blob is left in place (garbage collection is a later slice). A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:delete.
Example:
omniglass file delete codec-firmware-2.1.4.txtomniglass file download
Section titled “omniglass file download”Download a file’s bytes
omniglass file download <file>Returns a file’s bytes (base64-encoded) read from the blob it points at, the hash verified on read. A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:read.
Example:
omniglass file download codec-firmware-2.1.4.txtomniglass file get
Section titled “omniglass file get”Get a file’s metadata
omniglass file get <file>Returns one file handle’s searchable metadata (no bytes). A sensitive file is a non-disclosing 404 without the admin tier. Gated by file:read.
Example:
omniglass file get codec-firmware-2.1.4.txtomniglass file list
Section titled “omniglass file list”List files
omniglass file listLists the file handles the caller may see (searchable metadata, no bytes). Sensitive files appear only to the admin tier. Gated by file:read.
Example:
omniglass file listomniglass healthz
Section titled “omniglass healthz”Liveness and database-reachability probe
omniglass healthzReports process health and the database leg, pinged through the Storage Gateway. Public: the liveness probe carries no operator data.
Example:
omniglass healthzomniglass lab
Section titled “omniglass lab”A working omniglass on Docker, to learn on
omniglass lab calendar
Section titled “omniglass lab calendar”Commands for the calendar resource
omniglass lab calendar list
Section titled “omniglass lab calendar list”What the lab’s simulator intends in a window
omniglass lab calendar list [flags]The lab calendar (#2757) for a window: the meetings and scripted problems every simulated room acts out, the ground truth to lay beside what Omniglass detected. Derived from the lab’s scenario and seed (the same calendar the simulator computes), never stored or learned from collected data. Lab only: a server that is not a lab answers 404. Gated by simulation:read; entries are limited to rooms whose system is in the caller’s system read scope. The window is at most 31 days; a wider one is a 422. site, building, room and system narrow it further.
| Flag | Type | Default | Description |
|---|---|---|---|
--building | string | (none) | Only rooms in this building. |
--end | string | (none) | End of the window (RFC 3339), after start and at most 31 days past it. |
--room | string | (none) | Only this room. |
--site | string | (none) | Only rooms at this site. |
--start | string | (none) | Start of the window (RFC 3339). |
--system | string | (none) | Only the room of this system, by name. |
Example:
omniglass lab calendar listomniglass lab measure
Section titled “omniglass lab measure”Measure a running scale lab: rows a minute, growth, WAL a sample, CPU and memory, ingest lag, redeliveries, the busiest ingest lane’s busy fraction, fleet view and system page times, the retention drain and each kind’s delivery loss, once or sampled on an interval
omniglass lab measure [flags]Measures a scale lab (omniglass lab run --scenario corporate --systems N) over a stated window and prints one table: rows a minute per lane, table and WAL growth a day extrapolated from the window, CPU and memory per container, WAL bytes a sample, ingest lag from probe to row (p50, p95, p99), consumer redeliveries, the busiest ingest lane’s busy fraction and service time a batch, the console’s fleet view response times, the retention pass’s drain rate, each telemetry kind’s delivery loss across the outpost hop and the ingest hop (in, out, loss, deduplicated and the cause of any loss), the outpost lane and the push lane apart, each polled protocol’s loss across the sim hop (the requests the simulated endpoints settled against the replies that reached the outpost), and the outpost lane’s end-to-end loss a kind. It writes the same figures as JSON so two runs compare.
With no —systems it measures the scale lab already running. With —systems it brings up a throwaway scale lab of that size, measures it, and removes it, so the one command is the whole run.
When no sample probed in the window had landed by its end, the ingest lag cell reads not measured, with the reason and the age of the newest landed sample under the table, and every other figure still prints. The consumer lane row is read from the server’s periodic ingest lane log line, a line a lane, and needs two of a lane’s tallies, 30 s apart, inside the window; a window too short to hold them reads not measured, with the reason under the table.
The delivery read waits, up to —settle-timeout, until every boot that minted a batch in the window (each outpost’s, and the server’s for the push lane) has landed one minted after it and the server’s ingest lanes have acknowledged, landed or dropped at the bound, every batch the stream held once all of those were published (its ack floor past the stream’s last sequence), so a consumer that never empties under steady load still settles; then it reconciles each batch’s ledger against what landed. The outpost hop is what each outpost minted against what its spool shipped: a batch its spool dropped (overflow, age, refused by the bus) and items it lost before any batch carried them (self-log overflow, encode failure) read under their cause. The ingest hop is what the outpost (or the server, for the push lane) shipped against what was stored. A healthy lab reads loss 0 for every kind on both hops; a boot that did not settle prints unsettled with its outpost (or as the push lane), and no ratio is read from it. A boot its outpost followed with another boot (the outpost restarted with batches still spooled) is read as far as it landed and prints unshipped: what it held never shipped, and nothing landed says how much.
Every database read the measure makes runs under what its run has left, and never longer than ten minutes: the database itself stops a read at that bound, and a run that is interrupted cancels the read in flight, so no measure leaves a query running against the lab it measured.
The retention probe plants a backlog of aged property rows and restarts the server to run its pass; —backlog 0 skips it and leaves the server alone. A lab started before this build’s lab run does not record commit timestamps, which the ingest lag reads: bring it up again.
—page-clients N times the console’s system page as an operator feels it: N clients each load the page —page-loads times across the window, making every read a cold open of the page makes, timed from the first request to the last answer. A load with any read that does not answer 200 counts as an error and stays out of the times.
—every samples the lab already running on an interval instead of measuring it once. The lab is found and warmed up once; then every —every one window is measured and written as one JSON line holding the same fields at the same paths as —json, plus the sample’s sequence, end time and the server’s uptime. Lines go to —append (opened for append, so a series resumes into the same file) or to standard output. —samples stops after that many; 0 samples until interrupted, finishing the sample in flight. A sample that fails writes a line with its error and no figures, and the run goes on. Sampling skips the retention probe, which restarts the server.
| Flag | Type | Default | Description |
|---|---|---|---|
--append | string | (none) | append each sample’s line to this file, created if missing; empty writes to standard output |
--backlog | int64 | 150000 | aged property rows the retention probe plants; 0 skips the probe and its server restart (0 when sampling) |
--drain-timeout | duration | 3m0s | how long the retention probe waits for the pass to clear the backlog |
--every | duration | 0s | sample the running lab on this interval, one JSON line a sample; 0 measures once |
--fleet-reads | int | 100 | how many timed fleet view reads, spread over the window |
--json | string | lab-measure.json | also write the figures here as JSON; empty writes none |
--page-clients | int | 0 | how many clients load the console’s system page at once across the window; 0 skips the load |
--page-loads | int | 20 | how many timed system page loads each client makes, spread over the window |
--page-system | string | (none) | the system whose page the clients load, by name; empty loads the fleet view’s first |
--samples | int | 0 | stop after this many samples; 0 samples until interrupted |
--scenario | string | corporate | the scale scenario a —systems lab runs |
--settle-timeout | duration | 5m0s | how long the delivery read waits for every outpost’s and the push lane’s batches from the window to land before naming a boot unsettled; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more |
--systems | int | 0 | bring up a throwaway scale lab of this many systems, measure it and remove it; 0 measures the one already running |
--warmup | duration | 2m0s | how long the lab runs before the window starts (once, before the first sample) |
--window | duration | 5m0s | the window the rates, growth and usage are read over |
omniglass lab perf
Section titled “omniglass lab perf”Check a fresh scale lab against the committed performance baseline, regenerate it, or measure each driver’s cost
omniglass lab perf baseline
Section titled “omniglass lab perf baseline”Measure fresh scale labs and write the size’s baseline from them
omniglass lab perf baseline [flags]Brings up —runs throwaway scale labs of the size, one after another, and writes the baseline the check compares with: each gated figure’s median, spread and values, the inputs the runs measured with and the host they ran on. It refuses, naming each, when an exact figure is not 0, a figure was not measured in every run, or a figure’s runs spread past its tolerance, which a check could never gate. The baseline is a host’s: generate it on the host class it gates, and commit the file in a reviewed change.
—systems, —warmup, —window and —fleet-reads override the size’s inputs, for a throwaway baseline a quick check can run against; the committed baselines use the size’s own.
| Flag | Type | Default | Description |
|---|---|---|---|
--append | string | (none) | keep each fresh run’s report as a line in this file, which —samples reads again |
--fleet-reads | int | 0 | override the size’s timed fleet view reads; 0 is the size’s |
--image | string | (none) | the omniglass image each lab runs (lab run’s —image); empty is this binary’s own build |
--last | int | 0 | with —samples: how many samples from the series’ end to read; 0 reads —runs |
--out | string | (none) | where to write the baseline; empty is the size’s committed file under internal/labfootprint/baseline |
--runs | int | 3 | how many throwaway labs to measure, one after another; every gated figure is their median |
--samples | string | (none) | read a sampling run’s series (lab measure —every —append) in place of fresh labs |
--settle-timeout | duration | 5m0s | how long each run’s delivery read waits for its window’s batches to land; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more |
--size | string | 300 | the gated size, its rung on the ladder: 300 (corporate at 300 systems) or 1000 (corporate at 1000) |
--systems | int | 0 | override the size’s systems; 0 is the size’s |
--warmup | duration | 0s | override the size’s warmup; 0 is the size’s |
--window | duration | 0s | override the size’s window; 0 is the size’s |
omniglass lab perf check
Section titled “omniglass lab perf check”Measure fresh scale labs and fail when a figure regressed past the baseline
omniglass lab perf check [flags]Brings up —runs throwaway scale labs one after another, each measured with the baseline’s own inputs (scenario, systems, warmup, window and fleet reads, with the retention probe off), and compares the runs with the baseline. It prints one row a figure and exits nonzero when any reads fail, or when the runs are invalid.
The exact figures (every closed-loop gap, an ingest lag not measured, redeliveries, each kind’s delivery loss) fail at any value but 0. The host-independent figures (rows a minute, growth and WAL per system, samples a batch) gate on any host. The host-dependent figures (latency, CPU, memory, fleet view time) gate only on the host the baseline was generated on; on another they read reported. A gated figure is the median of the runs, and fails only past its tolerance and past the runs’ combined spread. Runs that spread past the tolerance read noisy, which does not fail. A figure better than its tolerance reads improved: refresh the baseline.
Runs are invalid, and no figure is compared, when they measured another fleet, window or device set than the baseline’s, or an outpost restarted, changed fleet or carried an impairment during the window.
| Flag | Type | Default | Description |
|---|---|---|---|
--append | string | (none) | keep each fresh run’s report as a line in this file, which —samples reads again |
--baseline | string | (none) | the baseline to check against; empty is the size’s committed one under internal/labfootprint/baseline |
--image | string | (none) | the omniglass image each lab runs (lab run’s —image); empty is this binary’s own build |
--json | string | (none) | also write the verdict here as JSON |
--last | int | 0 | with —samples: how many samples from the series’ end to read; 0 reads —runs |
--runs | int | 3 | how many throwaway labs to measure, one after another; every gated figure is their median |
--samples | string | (none) | read a sampling run’s series (lab measure —every —append) in place of fresh labs |
--settle-timeout | duration | 5m0s | how long each run’s delivery read waits for its window’s batches to land; at the platform’s 60s report window the settle can take four of them: a batch proving the window lands within one, the server reads the stream’s last sequence after it within two more, and the ack floor passes that within one more |
--size | string | 300 | the gated size, its rung on the ladder: 300 (corporate at 300 systems) or 1000 (corporate at 1000) |
omniglass lab perf drivers
Section titled “omniglass lab perf drivers”Measure what each shipped driver’s polls cost an outpost, and write the table the docs render
omniglass lab perf drivers [flags]Brings up a throwaway lab with no fleet and, for each shipped driver in turn, an outpost of its own with the simulator beside it in its network namespace, so the outpost’s cgroup holds only the outpost’s work. Each driver is measured idle, then at one, two and three times —step-tasks poll tasks; the table is the slope of the outpost’s CPU over every step and of its memory over the loaded steps (the jump from idle is a one-off warm cost), with the threads’ own CPU per run from poll-cpu-time beside it. A driver whose memory does not fit a line is swept again on a fresh outpost at four times the step, up to —max-step-tasks, since a cheap driver’s few KiB a task is inside the noise at a small step. A figure that still does not fit is listed as not measured, with why. The sweep takes hours: each step’s window holds the driver’s slowest poll.
The table is a host’s: run it on the host class it describes, then run go run ./cmd/labgen and commit both files in a reviewed change.
| Flag | Type | Default | Description |
|---|---|---|---|
--image | string | (none) | the omniglass image the lab and the sweep’s outposts run (lab run’s —image); empty is this binary’s own build |
--max-step-tasks | int | 6400 | the biggest step a driver whose memory does not show is swept again at; 0 sweeps each driver once |
--only | stringSlice | [] | sweep only these drivers; empty sweeps every shipped one |
--out | string | internal/labfootprint/drivercost/shipped.json | where to write the table, relative to the working directory: run it from the repository’s root |
--step-tasks | int | 400 | about how many poll tasks each step adds |
--warmup | duration | 2m0s | how long each step runs before it is measured |
--window | duration | 2m0s | each step’s measured window; a driver’s slowest poll lengthens it |
omniglass lab run
Section titled “omniglass lab run”Bring up a lab: omniglass, its database and an outpost collecting from a simulated fleet, until Ctrl-C
omniglass lab run [flags]Brings up a working omniglass on this machine’s Docker as one compose project of three containers: Postgres, the server, and the edge outpost edge-hq running the simulator in its own process, serving the seeded dev fleet. The outpost collects from the fleet for real, and impairments work. It prints what it is doing while it comes up, then the console’s address and the login, and holds until Ctrl-C, which removes the containers and the network and keeps the data for the next run.
Docker is the only requirement. Only the console is published, on 127.0.0.1 (—listen moves it, and says what that exposes). A binary built by make runs the image the same make built; a release binary runs its release’s image. The lab’s database is marked as a lab’s, and a lab and a real server refuse each other’s database.
| Flag | Type | Default | Description |
|---|---|---|---|
--fresh | bool | false | remove the lab’s data first and start over from the seed |
--image | string | (none) | run this omniglass image instead of the one this binary was built with (env OMNIGLASS_LAB_IMAGE); one that is not this binary’s own build is warned about |
--keep | bool | false | a scale lab: keep its data when it stops, so the next run with the same scenario, size and —keep picks up where it left off (—fresh starts over) |
--listen | string | 127.0.0.1 | the address the console is published on; anything but loopback exposes the lab, and its well-known login, to your network |
--omnibot-key-env | string | (none) | run omnibot on a live model (OpenRouter by default) with the key in this environment variable, e.g. OPENROUTER_API_KEY, handed to the server as its env secret lab-omnibot-key; without it, or the shell’s own OMNIGLASS_SETTING__ASSISTANT__ and OMNIGLASS_SECRET__ variables, omnibot plays the recording —omnibot-replay names |
--omnibot-replay | string | (none) | the recording omnibot plays when no live model is configured, by name (corporate-outage, default); default: the one written for the scenario’s fleet (corporate-outage for corporate, else default) |
--plan | bool | false | print the scale lab scenario’s resolved plan (sites, systems per standard, components per product) and exit, starting nothing |
--port | int | 8080 | the console’s port on this machine; 0 lets Docker pick a free one, printed when the lab is ready |
--scenario | string | dev | the fleet the lab seeds on its first run (the seed-dev command lists them), or a scale lab scenario (corporate) sized by —systems |
--systems | int | 0 | how many systems a scale lab scenario resolves to |
omniglass lab soak
Section titled “omniglass lab soak”Judge a 3,000-system soak from the platform’s own alarm history
omniglass lab soak verdict
Section titled “omniglass lab soak verdict”Print pass or fail for a soak: no platform alarm left open or open too long, every loss ratio at 0
omniglass lab soak verdict [flags]Judges a soak from what the platform says about itself, and nothing else: it reads, through the API (—server and —token, or $OMNIGLASS_SERVER and $OMNIGLASS_TOKEN), the platform system’s alarm history and the Platform health page, and prints pass or fail with every reason. The token needs read over outposts, systems and components, all of them, since a verdict from part of the page would pass what it could not see.
Pass: the soak ran at least 7 days (—since to —until), no platform alarm is still open, none raised in the window was open longer than —tolerance, and every loss ratio on the page (each hop, kind and outpost, the newest window and the last hour, the end to end, the worklist pull) is 0. A reading that cannot answer fails: no build reported, no loss ratio on the page, an alarm history the API cut short, or two builds among the servers.
With —record-dir it also writes the release record, one file named for the build, which the release commits: docs/src/content/soak-records from the repository’s root. The exit status is 1 on a fail.
| Flag | Type | Default | Description |
|---|---|---|---|
--record-dir | string | (none) | also write the release record into this directory, one file named for the build (docs/src/content/soak-records is where releases keep them) |
--since | string | (none) | when the soak started, an RFC 3339 timestamp; required |
--tolerance | duration | 30m0s | the longest a platform alarm may stay open and still pass |
--until | string | (none) | when the soak ended, an RFC 3339 timestamp; empty is now |
omniglass location
Section titled “omniglass location”Commands for the location resource
omniglass location batchCreate
Section titled “omniglass location batchCreate”Create many locations in one write
omniglass location batchCreate [flags]Creates locations in one transaction: each request is the body POST /locations takes, run as that create runs it, in order, so a location may name as its parent one an earlier request creates. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /locations maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by location:create, and each request is held to that scope as its single create is.
| Flag | Type | Default | Description |
|---|---|---|---|
--requests | string | (none) | The locations to create, each the body POST /locations takes, in order: a parent before its children, which then name it as their parent |
--validate-only | bool | false | Run every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written |
Example:
omniglass location batchCreate --requests <json>omniglass location checkName
Section titled “omniglass location checkName”Check a location name
omniglass location checkName [flags]Reports whether a proposed name is a valid slug and currently free within the given placement (under the given parent, or among roots when no parent is given). Advisory (Save is still gated by the unique constraint). Gated by location:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check |
--name | string | (none) | The proposed name to check |
--parent | string | (none) | The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check |
Example:
omniglass location checkName --name nameomniglass location create
Section titled “omniglass location create”Create a location
omniglass location create [flags]Creates a location, optionally under a parent (a root needs an all-scoped grant). Omit name and the platform generates one from the location_type’s name rule, taking the lowest free ordinal among the siblings in that placement; a type carrying no name rule refuses (422), since a building’s real name is not something the platform can know. The parent resolves within the caller’s location:read scope before its location:create scope: a parent the caller cannot read is the same 404 as one that does not exist, so the answer never discloses a location outside the caller’s read, and a parent the caller can read but not create under is a 403. Gated by location:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--expected-name | string | (none) | The name a create form previewed (POST /locations:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the location_type’s name rule moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422. |
--label | string | (none) | What an operator reads; the name is the address |
--location-type | string | (none) | The location_type, by name or uuid (campus, building, …) |
--name | string | (none) | Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the location_type’s name rule. |
--parent | string | (none) | Parent location name; omit for a root location |
Example:
omniglass location create --location-type location_typeomniglass location createFromTemplate
Section titled “omniglass location createFromTemplate”Start a subtree of locations from a template
omniglass location createFromTemplate [flags]Creates a subtree of locations from a location template under a parent location (or as a new top), each location’s type checked against its parent type’s allowed parents as this fleet has them (your fork of a shipped type included), each named by the template, the request (the root) or its type’s name rule, and the systems the template puts in them, staffed as a system template is, unattached. One transaction: all of it or none, every piece in your own scope with its own audit row carrying from_template. Gated by location:create; when the subtree carries systems it also needs system:create, system:read, system:update, component:create and component:update, and standard:create when a standard is created from its template. A type this fleet does not hold, or a placement its types refuse, is a 422 naming the type or the pair.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | The subtree root’s label |
--name | string | (none) | The subtree root’s name; omitted takes the template’s, else its type’s name rule mints one |
--parent | string | (none) | The location the subtree sits under, by name or dotted path; omitted makes it a new top |
--template | string | (none) | The location template, by name |
Example:
omniglass location createFromTemplate --template templateomniglass location delete
Section titled “omniglass location delete”Delete a location
omniglass location delete <name>Deletes a location, refused (409) while it still has child locations or is still referenced elsewhere. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by location:delete; read and delete scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass location delete <name>omniglass location get
Section titled “omniglass location get”Get a location
omniglass location get <name>Fetches a location by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by location:read.
Arguments:
Example:
omniglass location get <name>omniglass location health
Section titled “omniglass location health”Commands for the health resource
omniglass location health list
Section titled “omniglass location health list”Read a location’s health
omniglass location health list <name> [flags]The location’s current health, worst-wins over every system placed anywhere beneath it, with those systems and their health as the drill-down (the system health read names the slot, which occupant is down, and the alarm). Transitions are the recorded edges inside since..until (default the last 30 days); since after until is a 400. Gated by location:read; an out-of-scope location is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--since | string | (none) | Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent |
--until | string | (none) | Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since |
Example:
omniglass location health list <name>omniglass location list
Section titled “omniglass location list”List locations in scope
omniglass location listLists the locations the caller may read, each filtered to its scope subtree. Gated by location:read.
Example:
omniglass location listomniglass location listTags
Section titled “omniglass location listTags”List tags on a location
omniglass location listTags <name>Lists the tags bound directly on a location (not the resolved cascade). Gated by location:read.
Arguments:
Example:
omniglass location listTags <name>omniglass location metric
Section titled “omniglass location metric”Commands for the metric resource
omniglass location metric list
Section titled “omniglass location metric list”List a location’s effective metrics
omniglass location metric list <name>Every metric the location’s type declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the location (from_contract false). Gated by location:read; an out-of-scope location is a non-disclosing 404.
Arguments:
Example:
omniglass location metric list <name>omniglass location move
Section titled “omniglass location move”Move a location
omniglass location move <name> [flags]Re-parents a location (a tree move): parent is required (422 if omitted), cycle-guarded, and placement-validated against the resolved location_type. Moving to root is not supported (422): MoveLocation gains no clear-to-root capability locations have never had. A separate act from update, and a separately grantable one (location:move), because a placement change is an authorization act, not a label edit. Recorded under its own audit verb, move, distinct from update. Does not recompute health. A taken name at the destination is a 409. A move can RENAME the location: a platform-generated name is scoped to its parent bucket, so a move that changes the parent re-mints the name and the ordinal under the new parent, from the same location_type name rule. A move that re-states the current parent leaves the name alone, and an operator-typed name is never touched. Gated by location:move; the read and move scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--parent | string | (none) | Re-parents the location (a tree move) to this location name; cycle-guarded and placement-validated. Moving to root is not supported. |
Example:
omniglass location move <name>omniglass location previewLabels
Section titled “omniglass location previewLabels”Preview a location label recompute
omniglass location previewLabelsLists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by location:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.
Example:
omniglass location previewLabelsomniglass location property
Section titled “omniglass location property”Commands for the property resource
omniglass location property delete
Section titled “omniglass location property delete”Clear a property on a location
omniglass location property delete <name> <property>Removes the location’s declared value, so the property falls back to the location type contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the location never set is a 404. Gated by location:update; read and update scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass location property delete <name> <property>omniglass location property list
Section titled “omniglass location property list”List a location’s effective properties
omniglass location property list <name>Every property the location’s type declares, resolved to the location’s own value or the contract default (is_set marks a declared value), plus any property set directly on the location (from_contract false), in the component and system properties read’s shape. A location owns no observed sample, so a row’s reconciliation carries want and never is. Gated by location:read; an out-of-scope location is a non-disclosing 404.
Arguments:
Example:
omniglass location property list <name>omniglass location property update
Section titled “omniglass location property update”Set a property on a location
omniglass location property update <name> <property> [flags]Declares a value for the property on this location, overriding the location type contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by location:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--value | string | (none) | The value to declare, shape given by the property’s data_type |
Example:
omniglass location property update <name> <property> --value <json>omniglass location recomputeLabels
Section titled “omniglass location recomputeLabels”Recompute location labels
omniglass location recomputeLabelsApplies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by location:update.
Example:
omniglass location recomputeLabelsomniglass location removeTag
Section titled “omniglass location removeTag”Remove a tag value from a location
omniglass location removeTag <name> [flags]Removes a key’s value from a location. Gated by location:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key to remove |
Example:
omniglass location removeTag <name> --key keyomniglass location rename
Section titled “omniglass location rename”Rename a location
omniglass location rename <name> [flags]Moves the location’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by location:rename; the read and rename scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique within its placement (lowercase letters, digits, hyphens) |
Example:
omniglass location rename <name> --name nameomniglass location renderLabel
Section titled “omniglass location renderLabel”Draft the name and label a location create would store
omniglass location renderLabel [flags]The location tier of :renderLabel on components. Drafts the name and the label a location create would stamp, allocating nothing. A shipped fleet answers from the global location rule, which reads the location’s own name as words and titles it, so a location named north-wing drafts as North Wing; an empty label means no rule resolves at any tier, and the surface falls back to the name. Omitting name refuses (422) a location_type with no name rule, the same refusal a nameless create gives. Gated by location:create; the parent resolves within the caller’s location:create scope, because a location’s two placement buckets are under a parent or at the root and that is where the ordinal is read from. Omitting parent is the ROOT bucket, which a create refuses without an all-scoped grant, so the draft refuses it too (403) rather than reporting which names the fleet root already holds.
| Flag | Type | Default | Description |
|---|---|---|---|
--location-type | string | (none) | The location_type this location is classified by, by name or uuid |
--name | string | (none) | The name the row will carry. Omit it to draft the name and label the platform would produce, which a location_type with no name rule refuses; supply it to draft the label an operator-named location would carry. |
--parent | string | (none) | The parent location, by name or uuid. A location has two placement buckets, under a parent or at the root, and this is which one a generated name’s ordinal is read from. Resolved within the caller’s location:create scope. |
Example:
omniglass location renderLabel --location-type location_typeomniglass location resetName
Section titled “omniglass location resetName”Regenerate a location’s name
omniglass location resetName <name>Hands the pen back to the platform, the same verb components and systems carry: the name is re-minted from the location_type’s name rule and the lowest free ordinal in this placement, and name_generated goes back to true. A location_type carrying no name rule refuses (422), which is every type a shipped fleet has: only a positional kind of location, one whose number is an arbitrary disambiguator rather than a designation read off the signage (a parking deck, a rack row), has a name the platform can generate, and an operator declares such a type themselves. Gated by location:rename, the same token :rename uses.
Arguments:
Example:
omniglass location resetName <name>omniglass location setTag
Section titled “omniglass location setTag”Set a tag value on a location
omniglass location setTag <name> [flags]Binds a value for a key on a location. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by location:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key (must exist and apply to this kind) |
--value | string | (none) | The bound value |
Example:
omniglass location setTag <name> --key key --value valueomniglass location update
Section titled “omniglass location update”Update a location
omniglass location update <name> [flags]Patches a location’s label or location_type. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. Changing the location_type of a location the PLATFORM named re-mints the name from the new type’s name rule, and is refused (422) when the new type carries none, which is every shipped type: :rename the location first to claim its name, then reclassify it. A location an operator named is never renamed by a reclassify. Gated by location:update; the read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new operator-facing label |
--location-type | string | (none) | Re-types the location: a location_type, by name or uuid |
Example:
omniglass location update <name>omniglass location-type
Section titled “omniglass location-type”Commands for the location-type resource
omniglass location-type create
Section titled “omniglass location-type create”Create a location type
omniglass location-type create [flags]Creates a custom (non-official) location_type, optionally with the label_rule locations of that type get. An unparseable rule is a 422. Gated by location_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-parent-types | string | (none) | location_type names and/or the reserved root sentinel this type may be placed under; empty means unconstrained |
--icon | string | (none) | A glyph key; the console falls back to map-pin when empty |
--label | string | (none) | What an operator reads in pickers and lists |
--label-rule | string | (none) | The label rule locations of this type get, a Go text/template over the location data map; omit to fall back to the global rule. Refused (422) if it does not compile |
--name | string | (none) | The globally unique name (e.g. wing); “root” is reserved |
--name-rule | string | (none) | How the platform NAMES locations of this type; omit to have an operator name every one of them. Refused (422) if it cannot mint a legal name |
Example:
omniglass location-type create --label label --name nameomniglass location-type delete
Section titled “omniglass location-type delete”Delete a location type
omniglass location-type delete <id>Deletes a custom location_type, refused if official (422) or still referenced by a location (409). Gated by location_type:delete.
Example:
omniglass location-type delete roomomniglass location-type list
Section titled “omniglass location-type list”List location types
omniglass location-type listLists the location_type catalog (the shape-definers a location is classified by), ordered alphabetically by label. Populates the type picker on the location form. Gated by location_type:read.
Example:
omniglass location-type listomniglass location-type metric
Section titled “omniglass location-type metric”Commands for the metric resource
omniglass location-type metric delete
Section titled “omniglass location-type metric delete”Withdraw a metric from a location type
omniglass location-type metric delete <id> <metric>Removes one line from a location type’s contract, a shipped (official) type’s included, since nothing seeds a contract line; locations of the type keep any samples the series already holds, now off-contract. A metric the type does not declare is a 404, and so is an unknown type. Gated by location_type:delete.
Example:
omniglass location-type metric delete room <metric>omniglass location-type metric list
Section titled “omniglass location-type metric list”List a location type’s declared metrics
omniglass location-type metric list <id>Lists the location type’s declared-metric contract (which metrics every location of the type carries), ordered by metric name, each with its optional default and required flag. Gated by location_type:read.
Example:
omniglass location-type metric list roomomniglass location-type metric update
Section titled “omniglass location-type metric update”Declare a metric on a location type
omniglass location-type metric update <id> <metric> [flags]Declares a catalog metric on a location type, or revises the declaration in place (the line is addressed by name, so the write is idempotent). A shipped (official) type’s contract is writable too: a contract line is a row in its own table and nothing seeds one, so every line is an operator’s. An unknown type is a 404 and a metric the catalog does not know is a 422. Gated by location_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the metric’s data_type; omit for no default |
--required | bool | false | Whether every location of this type must carry the metric; defaults to false |
Example:
omniglass location-type metric update room <metric>omniglass location-type property
Section titled “omniglass location-type property”Commands for the property resource
omniglass location-type property delete
Section titled “omniglass location-type property delete”Withdraw a property from a location type
omniglass location-type property delete <id> <property>Removes one line from a location type’s contract, a shipped (official) type’s included, since nothing seeds a contract line; locations of the type keep any value they set for it, now off-contract. A property the type does not declare is a 404, and so is an unknown type. Gated by location_type:delete.
Example:
omniglass location-type property delete room <property>omniglass location-type property list
Section titled “omniglass location-type property list”List a location type’s declared properties
omniglass location-type property list <id>Lists the location type’s declared-property contract (what every location of the type exposes), ordered by property name, each with its optional default and required flag. Gated by location_type:read.
Example:
omniglass location-type property list roomomniglass location-type property update
Section titled “omniglass location-type property update”Declare a property on a location type
omniglass location-type property update <id> <property> [flags]Declares a catalog property on a location type, or revises the declaration in place (the line is addressed by name, so the write is idempotent). A shipped (official) type’s contract is writable too: a contract line is a row in its own table and nothing seeds one, so every line is an operator’s. An unknown type is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by location_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the property’s data_type; omit for no default |
--required | bool | false | Whether every location of this type must set the property; defaults to false |
Example:
omniglass location-type property update room <property>omniglass location-type rename
Section titled “omniglass location-type rename”Rename a location type
omniglass location-type rename <id> [flags]Moves a custom location type’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official location type keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by location_type:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass location-type rename <id> --name nameomniglass location-type restore
Section titled “omniglass location-type restore”Restore a location type’s shipped values
omniglass location-type restore <id>Discards your fork of a shipped location_type, so reads return the values this release ships, including a rule a later release WITHDREW. 409 when the row carries no fork of yours. Gated by location_type:update, the same permission that took the fork: restoring is undoing your own edit, not deleting a row.
Example:
omniglass location-type restore roomomniglass location-type update
Section titled “omniglass location-type update”Update a location type
omniglass location-type update <id> [flags]Patches a location_type’s label, icon, allowed parents, label_rule or name_rule. An unparseable label_rule (or a name_rule that cannot mint a legal name) is a 422 at rule-edit time, never a broken row at create time, and setting a label rule restamps nothing on its own: apply it with /locations:recomputeLabels after seeing the blast radius with :previewLabels. A shipped (official) row is never written: the patch FORKS it, storing your version over the shipped one, and the response comes back with forked=true under the same id. :restore discards the fork. Gated by location_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-parent-types | string | (none) | Replaces the allowed-parent set; omit to leave unchanged, [] to clear back to unconstrained |
--icon | string | (none) | A new glyph key; the console falls back to map-pin when empty |
--label | string | (none) | A new operator-facing label |
--label-rule | string | (none) | A new label rule for locations of this type; omit to leave unchanged, "" to clear back to the global rule. Refused (422) if it does not compile. Editing it does not restamp anything: apply it with /locations:recomputeLabels, having seen the blast radius with :previewLabels |
--name-rule | string | (none) | A new name rule for locations of this type; omit to leave unchanged, or name name_rule in update_mask with no rule here to CLEAR it back to operator-named. Refused (422) if it cannot mint a legal name. Setting it renames nothing that already exists: it decides how the NEXT nameless create, :resetName, move or reclassify names a row |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (name_rule back to operator-named); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it |
Example:
omniglass location-type update roomomniglass mcp
Section titled “omniglass mcp”Serve the omniglass MCP tools over stdio, for a local agent
omniglass mcpServes the omniglass MCP server over stdio by relaying to the server’s /mcp endpoint with your token, so a local agent (Claude Code, or any MCP client that launches a command) drives omniglass through the same generated tools, with your permissions and scope, audited as you via MCP. Configure the agent to run omniglass mcp with OMNIGLASS_SERVER and OMNIGLASS_TOKEN in its environment. Standard output carries only the MCP protocol; anything else goes to standard error.
omniglass mcp call
Section titled “omniglass mcp call”Call one MCP tool, as an MCP client over stdio does
omniglass mcp call <tool> [flags]Calls one tool on the omniglass MCP server, connecting over stdio to omniglass mcp exactly as an agent does, and prints its result. A tool error (the route’s own refusal) is printed and exits non-zero.
| Flag | Type | Default | Description |
|---|---|---|---|
--args | string | (none) | the tool’s arguments, a JSON object |
Example:
omniglass mcp call get-component-reachability --args '{"name":"panel-1"}'omniglass mcp skill
Section titled “omniglass mcp skill”List the agent skills, or print one as its SKILL.md
omniglass mcp skill [name]Lists the skills the omniglass MCP server serves as prompts (workflows such as triaging an alarm), or prints one as an Agent Skills SKILL.md, for an agent that reads skill files. The skills ship in the binary, so this needs no server.
Example:
omniglass mcp skill triage-alarm > .claude/skills/triage-alarm/SKILL.mdomniglass mcp tools
Section titled “omniglass mcp tools”List the MCP tools, as an MCP client over stdio sees them
omniglass mcp toolsLists every tool the omniglass MCP server serves, with what a client may assume of each (read-only, destructive, idempotent, open-world), by connecting over stdio to omniglass mcp exactly as an agent does.
omniglass metric-type
Section titled “omniglass metric-type”Commands for the metric-type resource
omniglass metric-type create
Section titled “omniglass metric-type create”Create a metric type
omniglass metric-type create [flags]Registers a custom metric type (official=false). The name must be a valid metric key. Gated by metric_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--data-type | string | (none) | The value type; a metric is always a number |
--description | string | (none) | What the series measures |
--label | string | (none) | A human label |
--name | string | (none) | The metric type name (lowercase kebab) |
--precision | int | 0 | Decimal places a rendered value keeps |
--unit | string | (none) | The display unit of the series (ms, dB, percent) |
Example:
omniglass metric-type create --data-type data_type --name nameomniglass metric-type delete
Section titled “omniglass metric-type delete”Delete a metric type
omniglass metric-type delete <name>Removes a custom metric type by name. Official metric types are read-only. A metric type a calc rule writes is a 409 naming the rule. Gated by metric_type:delete.
Example:
omniglass metric-type delete <name>omniglass metric-type get
Section titled “omniglass metric-type get”Get a metric type
omniglass metric-type get <name>Returns one metric type by name. Gated by metric_type:read.
Example:
omniglass metric-type get <name>omniglass metric-type list
Section titled “omniglass metric-type list”List metric types
omniglass metric-type listLists every registered metric type (official and custom). The catalog is fleet-wide reference data. Gated by metric_type:read.
Example:
omniglass metric-type listomniglass metric-type setRetention
Section titled “omniglass metric-type setRetention”Set a metric type’s retention window
omniglass metric-type setRetention <name> [flags]Sets how many days this type’s samples are kept, overriding the metric lane’s window (retention.metric_days), or with null returns it to the lane’s. Works on an official type: a shipped type’s definition is read-only, but how long an install keeps its samples is the install’s, and the boot seed never resets it. A command’s intended values are never removed; a series with no sample inside the window reads as no reading within retention (ADR-1275). 3 to 36,500 days (a metric day folds into blocks 48 hours after it starts, so a shorter window folds nothing). Audited as set_retention. Gated by metric_type:update and platform:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--days | string | (none) | The type’s own retention window in whole days, 3 to 36,500; null clears it, so the type is kept for its lane’s window (retention.metric_days). Required: an empty body is refused |
Example:
omniglass metric-type setRetention <name> --days <json>omniglass metric-type update
Section titled “omniglass metric-type update”Update a metric type
omniglass metric-type update <name> [flags]Patches a custom metric type’s label, description, unit, or precision. Partial by default: the fields present in the body change and the rest are left alone. precision is a nullable integer with no empty value, so it clears by being named in update_mask with no value in the body; label, description and unit clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. Data type is fixed at creation. Official metric types are read-only. Gated by metric_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the series measures |
--label | string | (none) | A human label |
--precision | int | 0 | Decimal places a rendered value keeps; omit to leave unchanged, or name precision in update_mask with no value here to CLEAR it back to unset |
--unit | string | (none) | The display unit of the series |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (precision back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it |
Example:
omniglass metric-type update <name>omniglass migrate
Section titled “omniglass migrate”Apply embedded database migrations (dbmate)
omniglass migrateApplies every embedded migration the database has not run. Migrations only move forward, so a database a newer release migrated is refused, naming its newest migration and the newest this binary knows: run that release or a later one.
omniglass notification
Section titled “omniglass notification”Commands for the notification resource
omniglass notification get
Section titled “omniglass notification get”Get a notification
omniglass notification get <id>Returns one notification. One about a component outside the caller’s component read scope is a non-disclosing 404. Gated by notification:read.
Example:
omniglass notification get <id>omniglass notification list
Section titled “omniglass notification list”List notifications
omniglass notification list [flags]The messages sent, on their way, or failed about alarms, newest first, filtered by alarm, target or status. Only notifications about components in the caller’s component read scope are listed. A row addressed to a person names them only to that person and to holders of user:read:admin. Gated by notification:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--alarm | string | (none) | Only the notifications about this alarm (its uuid) |
--limit | int | 0 | At most this many, newest first (default 100) |
--status | string | (none) | Only those in this status |
--target | string | (none) | Only those to this target, by name |
Example:
omniglass notification listomniglass notification retry
Section titled “omniglass notification retry”Retry a failed notification
omniglass notification retry <id>Re-queues a failed notification for a fresh run of attempts, sending the same rendered message with the same Idempotency-Key. One that is queued, sent or suppressed (its alarm was snoozed), or one that failed before any attempt (its rule’s when did not run, or its type did not render, so it holds no message), is a 409. Audited as retry. Gated by notification:retry, whose scope resolves on the component tier; a component outside the caller’s component read scope is a non-disclosing 404, one it reads but may not retry on a 403.
Example:
omniglass notification retry <id>omniglass notification-target
Section titled “omniglass notification-target”Commands for the notification-target resource
omniglass notification-target create
Section titled “omniglass notification-target create”Create a notification target
omniglass notification-target create [flags]Adds a destination a notification can be sent to: a webhook, its URL and, optionally, the platform secret it signs or authenticates with; or people, a user_group (every person in the group, read at each alarm transition), one user, or a role (every person holding it, directly or through a group grant, read at each alarm transition), on the channels named. A person is told only about an alarm on a component their own component read scope admits. Binding a group takes user_group:read:admin, binding a person user:read:admin, and binding a role role:read:admin and user:read:admin (a 403 without it), since the target reaches whoever they name. Binding a secret takes the right to bind it (secret:bind, and the admin tier for an admin-sensitive one), since every send hands it to the URL: a secret the caller cannot read is a 404, one it can read but not bind a 403. A URL the egress contract refuses under the allow list in force, an unknown kind, or a secret that is not a platform hmac-key or bearer-token is a 422; a taken name a 409. Audited, the URL masked. Gated by notification_target:create with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--addresses | string | (none) | An email target’s recipient addresses |
--channels | string | (none) | A group, person or role target’s channels: inbox, email |
--enabled | bool | false | Whether deliveries go to it (default true) |
--kind | string | (none) | The target kind |
--label | string | (none) | A human label |
--name | string | (none) | The target’s name (lowercase kebab) |
--role | string | (none) | A role target’s role, by name or uuid; binding one takes role:read:admin and user:read:admin, since it reaches whoever holds the role |
--secret | string | (none) | A platform secret, by name or uuid, of type hmac-key (signs each body) or bearer-token (sent as Authorization: Bearer) |
--url | string | (none) | A webhook’s destination URL: https, or plain http to a host or address the notification.egress_allow setting names. A private, loopback or link-local destination is refused at send unless that setting names it; a cloud metadata address always is |
--user | string | (none) | A user target’s person, by username or uuid; binding one takes user:read:admin |
--user-group | string | (none) | A user_group target’s group, by name or uuid; binding one takes user_group:read:admin |
Example:
omniglass notification-target create --kind kind --name nameomniglass notification-target delete
Section titled “omniglass notification-target delete”Delete a notification target
omniglass notification-target delete <name>Removes a target. One an action rule still sends to is a 409, and so is a shipped (official) one, which is disabled instead. Audited. Gated by notification_target:delete with an all-scope grant.
Example:
omniglass notification-target delete <name>omniglass notification-target get
Section titled “omniglass notification-target get”Get a notification target
omniglass notification-target get <name>Returns one notification target by name or uuid, its URL masked. Gated by notification_target:read with an all-scope grant.
Example:
omniglass notification-target get <name>omniglass notification-target list
Section titled “omniglass notification-target list”List notification targets
omniglass notification-target listLists every notification target, by name, each URL masked to its scheme and host. An all-scope directory: gated by notification_target:read with an all-scope grant (admin), and off the viewer floor, since a target is an egress destination holding a credential.
Example:
omniglass notification-target listomniglass notification-target reveal
Section titled “omniglass notification-target reveal”Reveal a notification target’s URL
omniglass notification-target reveal <name>Returns the target’s URL whole. Audited as reveal (the URL is not in the audit row). Gated by notification_target:reveal with an all-scope grant.
Example:
omniglass notification-target reveal <name>omniglass notification-target test
Section titled “omniglass notification-target test”Send a test notification to a target
omniglass notification-target test <name>Sends one synthetic message (transition test, about no alarm) to a webhook or email target through the egress contract, signed or authenticated as a delivery would be (an email through the install’s mail relay), and answers what the receiver said; a group, person or role target is a 422, since people are told only about alarms. Records nothing but its audit row (the result, never the URL). A disabled target is still tested. Gated by notification_target:test with an all-scope grant.
Example:
omniglass notification-target test <name>omniglass notification-target update
Section titled “omniglass notification-target update”Update a notification target
omniglass notification-target update <name> [flags]Patches a target’s label, URL, secret or enabled flag (an absent field is unchanged; an empty secret unbinds it). Binding a secret takes the right to bind it (secret:bind), as on create, and so does moving the URL of a target that keeps a bound secret (a 403 without it), since the next send would hand the secret to the new URL. A shipped (official) target takes only its label and enabled flag; any other field is a 409. Audited, the URL masked and a change to it recorded as changed. Gated by notification_target:update with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--addresses | string | (none) | An email target’s recipient addresses |
--channels | string | (none) | A group, person or role target’s channels: inbox, email; refused on a shipped (official) target |
--enabled | bool | false | Whether deliveries go to it |
--label | string | (none) | A human label (empty clears it) |
--secret | string | (none) | A platform secret by name or uuid; empty unbinds it |
--url | string | (none) | The destination URL: https, or plain http to a host or address the notification.egress_allow setting names. A private, loopback or link-local destination is refused at send unless that setting names it; a cloud metadata address always is |
Example:
omniglass notification-target update <name>omniglass notification-type
Section titled “omniglass notification-type”Commands for the notification-type resource
omniglass notification-type create
Section titled “omniglass notification-type create”Create a notification type
omniglass notification-type create [flags]Registers an operator notification type (official=false). Subject and text are written in the rule language a label rule uses (the functions title, upper, lower, slug, words; {{if}} and the builtins and, or, not, eq, ne, lt, le, gt, ge), reading the alarm facts Component, ComponentLabel, ComponentType, Location, Severity, SeverityLabel, Message, Transition, RaisedAt, ClearedAt, Rule, Link; a fact outside them renders empty, and anything else (printf, call, index, range, a variable, a source past 4096 bytes) is a 422, and is never stored. A taken name is a 409. Audited. Gated by notification_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the message is for |
--label | string | (none) | A human label |
--name | string | (none) | The type’s name (lowercase kebab) |
--subject | string | (none) | The one-line subject, written in the rule language |
--text | string | (none) | The body text, written in the rule language |
Example:
omniglass notification-type create --name name --subject subject --text textomniglass notification-type delete
Section titled “omniglass notification-type delete”Delete a notification type
omniglass notification-type delete <name>Removes an operator notification type. An official type, or one an action rule still sends, is a 409. Audited. Gated by notification_type:delete.
Example:
omniglass notification-type delete <name>omniglass notification-type get
Section titled “omniglass notification-type get”Get a notification type
omniglass notification-type get <name>Returns one notification type by name or uuid. Gated by notification_type:read.
Example:
omniglass notification-type get <name>omniglass notification-type list
Section titled “omniglass notification-type list”List notification types
omniglass notification-type listLists every notification type (official and operator), by name: what a message about an alarm says. Fleet-wide reference data. Gated by notification_type:read.
Example:
omniglass notification-type listomniglass notification-type preview
Section titled “omniglass notification-type preview”Preview a notification type against an alarm
omniglass notification-type preview <name> [flags]Renders the type’s subject and text (or a draft of either, sent in the body) against one real alarm, exactly as a delivery of that alarm’s transition would carry them, with the facts they read. Writes nothing. The alarm is named by its component and id; without an id, the component’s most recently raised alarm. A draft the sandbox refuses is a 422, one that fails to render (its output past the cap) a 422 naming it. Gated by notification_type:read; the component is resolved in the caller’s component read scope, so a component outside it is a non-disclosing 404.
| Flag | Type | Default | Description |
|---|---|---|---|
--alarm | string | (none) | The alarm’s id; absent previews the component’s most recently raised alarm |
--component | string | (none) | The component the alarm is on, by name or dotted address |
--subject | string | (none) | A draft subject to render instead of the stored one, so an editor previews before it saves |
--text | string | (none) | A draft text to render instead of the stored one |
--transition | string | (none) | The edge to render for; absent reads the alarm’s own state (cleared when it is, raised otherwise) |
Example:
omniglass notification-type preview <name> --component componentomniglass notification-type rename
Section titled “omniglass notification-type rename”Rename a notification type
omniglass notification-type rename <id> [flags]Moves a custom notification type’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official notification type keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by notification_type:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass notification-type rename <id> --name nameomniglass notification-type update
Section titled “omniglass notification-type update”Update a notification type
omniglass notification-type update <name> [flags]Patches an operator type’s label, description, subject or text (an absent field is unchanged). Subject and text are written in the rule language a label rule uses (the functions title, upper, lower, slug, words; {{if}} and the builtins and, or, not, eq, ne, lt, le, gt, ge), reading the alarm facts Component, ComponentLabel, ComponentType, Location, Severity, SeverityLabel, Message, Transition, RaisedAt, ClearedAt, Rule, Link; a fact outside them renders empty, and anything else (printf, call, index, range, a variable, a source past 4096 bytes) is a 422. An official type is read-only (409). The name moves only through :rename. Audited. Gated by notification_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the message is for |
--label | string | (none) | A human label (empty clears it) |
--subject | string | (none) | The one-line subject, written in the rule language |
--text | string | (none) | The body text, written in the rule language |
Example:
omniglass notification-type update <name>omniglass omnibot
Section titled “omniglass omnibot”Run omnibot, the built-in assistant, on a prompt or in a chat
omniglass omnibot [prompt...] [flags]Runs omnibot, the built-in assistant, as the person whose token it is given. The conversation runs on the server, on the model the install is configured with (the assistant settings), so the model’s key never reaches this terminal; the server is told it acts for you and the audit log shows its actions as omnibot’s. A tool whose agent policy is always runs, one whose policy is ask is put to you on the terminal first (without a terminal it is declined), and one whose policy is never is not offered. With no prompt it opens a chat, each line continuing the conversation; in the chat, /secret
| Flag | Type | Default | Description |
|---|---|---|---|
--max-steps | int | 10 | with —replay, the most model turns the run takes before it stops |
--replay | string | (none) | run the loop here on a recorded model (YAML turns) instead of on the server’s |
--resume | string | (none) | keep the conversation on the server under this name, picking it up if it exists |
Example:
omniglass omnibot "add a display to the lobby" omniglass omnibot omniglass omnibot --resume omnibot-3f2a omniglass omnibot --replay lobby.yaml "add a display to the lobby"omniglass outpost
Section titled “omniglass outpost”Commands for the outpost resource
omniglass outpost claim
Section titled “omniglass outpost claim”Claim an outpost identity in exchange for its NATS credential
omniglass outpost claim [flags]The outpost-facing exchange: an outpost presents its enrollment token and receives its NATS credential (url, username, password). Public (the token is the authentication); an invalid token is a 401.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The outpost name the enrollment was minted for |
--token | string | (none) | The one-time enrollment token from outpost create, exchanged here for the outpost’s NATS credential |
Example:
omniglass outpost claim --name name --token tokenomniglass outpost create
Section titled “omniglass outpost create”Create an outpost
omniglass outpost create [flags]Registers an edge outpost server-side (day-one enrollment: create, then :enroll to mint its token). Gated by outpost:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | Free-form operator notes about the outpost |
--label | string | (none) | Operator label; falls back to the name when empty |
--location | string | (none) | Optional location the outpost sits in, by name or id (descriptive placement, not scope) |
--name | string | (none) | Globally unique outpost name (lowercase letters, digits, and hyphens); it is also the outpost’s NATS subject token, which is why the rule forbids a dot |
Example:
omniglass outpost create --name nameomniglass outpost delete
Section titled “omniglass outpost delete”Delete an outpost
omniglass outpost delete <name>Decommissions an outpost: a hard delete that cascades its endpoints, their derived tasks, its outpost-owned tags and self-telemetry, its platform component, and its enrollment credential. Component telemetry it collected is unaffected. Requires an all-scope action. Gated by outpost:delete.
Example:
omniglass outpost delete <name>omniglass outpost enroll
Section titled “omniglass outpost enroll”Mint an outpost’s enrollment token
omniglass outpost enroll <name>Mints (or re-mints) the outpost’s enrollment token and returns it once. The token is stored only as a hash; it is never logged. Gated by outpost:enroll.
Example:
omniglass outpost enroll <name>omniglass outpost get
Section titled “omniglass outpost get”Get an outpost
omniglass outpost get <name>Fetches an outpost by name. Requires an all-scope read. Gated by outpost:read.
Example:
omniglass outpost get <name>omniglass outpost list
Section titled “omniglass outpost list”List outposts
omniglass outpost listLists the edge outposts. An outpost is fleet-wide, so listing requires an all-scope read. Gated by outpost:read.
Example:
omniglass outpost listomniglass outpost listTags
Section titled “omniglass outpost listTags”List tags on a outpost
omniglass outpost listTags <name>Lists the tags bound directly on a outpost (not the resolved cascade). Gated by outpost:read.
Arguments:
Example:
omniglass outpost listTags <name>omniglass outpost log
Section titled “omniglass outpost log”Commands for the log resource
omniglass outpost log list
Section titled “omniglass outpost log list”List an outpost’s recent self-logs
omniglass outpost log list <name>Returns the outpost’s own recent operational log lines (the raw ingest lane of ADR-0066, owner-bound to the outpost), newest first, bounded to the last 24 hours. Gated by outpost:read; an out-of-scope outpost is a non-disclosing 404.
Example:
omniglass outpost log list <name>omniglass outpost removeTag
Section titled “omniglass outpost removeTag”Remove a tag value from a outpost
omniglass outpost removeTag <name> [flags]Removes a key’s value from a outpost. Gated by outpost:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key to remove |
Example:
omniglass outpost removeTag <name> --key keyomniglass outpost run
Section titled “omniglass outpost run”Run the edge outpost: claim, pull the worklist, and heartbeat over NATS
omniglass outpost run [flags]Runs the edge outpost: claims its NATS credential with the enrollment token, pulls its worklist, collects, and heartbeats until interrupted. Outbound-only: the outpost dials the server, never the reverse.
—simulate also runs the simulator in the same process, serving the simulated components placed on this outpost on its own loopback (each on its 127.x address), with this outpost’s identity: one process, one enrollment, nothing to arrange between them. —impairments, —port-offset and —poll are the simulator’s and are refused without —simulate. omniglass sim run is the same simulator as a process of its own, beside an outpost.
| Flag | Type | Default | Description |
|---|---|---|---|
--heartbeat | duration | 30s | heartbeat interval |
--impairments | bool | false | with —simulate: apply impairments (unplug, latency, loss) and truthful ping by rewriting the firewall and traffic shaping of this network namespace; needs NET_ADMIN, and is meant for a namespace of the outpost’s own (a container) |
--lane-workers | string | auto | how many endpoint lanes run at once, each sending one request to its endpoint at a time, an operator’s ahead of the scheduled; auto sizes them from the CPU and memory the outpost may use (env OMNIGLASS_LANE_WORKERS) |
--name | string | (none) | this outpost’s registered name (env OMNIGLASS_OUTPOST_NAME) |
--once | bool | false | run a single claim + pull + heartbeat cycle and exit |
--poll | duration | 10s | with —simulate: how often the simulator re-pulls its component list |
--port-offset | int | 0 | with —simulate: lift the simulated ports below 1024 by this much, to serve without the privilege to bind them |
--probe-every | duration | 30s | how often each reachability probe runs, on the outpost’s own timer, apart from the heartbeat. Keep it under the console’s 150s staleness window, past which a probe-only endpoint reads stale between probes |
--server | string | (none) | Omniglass server base URL (env OMNIGLASS_SERVER) |
--session-dials | int | 16 | how many held sessions make their first dial and handshake at once (a redial takes no slot); a session waiting for a slot reads establishing (env OMNIGLASS_OUTPOST_SESSION_DIALS) |
--simulate | bool | false | also run the simulator in this process, serving the simulated components placed on this outpost on its own loopback |
--token | string | (none) | enrollment token from POST /outposts/{name}:enroll (env OMNIGLASS_OUTPOST_TOKEN) |
--worklist-every | duration | 30s | how often the outpost pulls its worklist, apart from the heartbeat; a change to the outpost’s worklist nudges it to pull at once, and only a lost nudge waits for this pull |
omniglass outpost setTag
Section titled “omniglass outpost setTag”Set a tag value on a outpost
omniglass outpost setTag <name> [flags]Binds a value for a key on a outpost. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by outpost:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key (must exist and apply to this kind) |
--value | string | (none) | The bound value |
Example:
omniglass outpost setTag <name> --key key --value valueomniglass outpost simulation
Section titled “omniglass outpost simulation”Get an outpost’s simulator
omniglass outpost simulation <name>The devices a simulator beside the outpost serves (each component with an endpoint placed on the outpost, within the caller’s component read scope), joined to the hits the server has seen and the simulator’s capabilities. Hits are live and per server process, not stored. Requires an all-scope outpost read. Gated by outpost:read.
A value equal to a subcommand name (observation) runs that subcommand; put — before it to pass it as outpost simulation -- observation.
Example:
omniglass outpost simulation <name>omniglass outpost simulation observation
Section titled “omniglass outpost simulation observation”Commands for the observation resource
omniglass outpost simulation observation list
Section titled “omniglass outpost simulation observation list”Get an outpost’s endpoint observation
omniglass outpost simulation observation list <name>What the simulated endpoints beside an outpost saw arrive and how each request settled, and what the outpost tallied sending, read in that order: the simulator, then the outpost, then the simulator again, so a request in transit between reads is never a false gap. A scale lab reconciles the three. Totals are per protocol with a capped sample of device ids, bounded at any fleet size, and count since each process started. Gated by simulation:read, and only for a caller whose component read scope is all, since the totals span every component the outpost simulates. An outpost that does not exist is a 404; no simulator answering, or the outpost not answering, a 503.
Example:
omniglass outpost simulation observation list <name>omniglass outpost update
Section titled “omniglass outpost update”Update an outpost
omniglass outpost update <name> [flags]Patches an outpost’s label, description, and location (a nil field is unchanged; a location of "" clears it). The name is immutable. Requires an all-scope action. Gated by outpost:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | New free-form operator notes |
--label | string | (none) | A new operator-facing label |
--location | string | (none) | Set the outpost’s location by name or id, or "" to clear it |
Example:
omniglass outpost update <name>omniglass platform
Section titled “omniglass platform”Read Omniglass’s own health from a running server
omniglass platform health
Section titled “omniglass platform health”Read whether the platform is keeping up, and exit nonzero when it is not
omniglass platform health [flags]Reads the platform view (the read behind the console’s Platform health page) and reduces it to whether Omniglass is keeping up: the system and server health, open alarms, each pipeline hop’s in, out and loss with the end to end, the outposts with loss or not healthy, ingest lag, the queues, the database and retention, and every failure figure above zero. It exits nonzero when any health is not healthy, an alarm is open, or the newest windows lost work end to end.
It reads through the API alone with —server and —token, so it works against any deployment. The view is gated by outpost:read; a part the token cannot read prints as not visible to you, never as zero. —window reads twice and adds the database’s and the telemetry stream’s growth and rates; —every samples on an interval and writes one JSON line a sample, to —append or stdout; —page-clients times the console’s system page under concurrent clients.
| Flag | Type | Default | Description |
|---|---|---|---|
--append | string | (none) | append each sample’s line to this file (with —every) |
--every | duration | 0s | sample on this interval, one JSON line a sample (0 reads once) |
--json | bool | false | print the reading as JSON |
--page-clients | int | 0 | time the console’s system page with this many concurrent clients (0 skips it) |
--page-loads | int | 1 | timed system page loads a client, spread across —window |
--page-system | string | (none) | the system whose page to load (default the fleet view’s first) |
--samples | int | 0 | stop after this many samples (with —every; 0 runs until interrupted) |
--window | duration | 0s | read twice this far apart and add the growth and rates between (0 reads once) |
Example:
omniglass platform health omniglass platform health --json omniglass platform health --window 1m --page-clients 4 omniglass platform health --every 5m --window 1m --append health.jsonlomniglass product
Section titled “omniglass product”Commands for the product resource
omniglass product create
Section titled “omniglass product create”Create a product
omniglass product create [flags]Creates a custom (non-official) product, classified under a component_type. kind and component_type are both required; kind refuses vm (retired, folded into app). Gated by product:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--component-type | string | (none) | The component_type this product is classified under (mic, camera, …), by name or uuid; every product must belong to a type in that tree. The generics (generic-device, generic-app, generic-service) fit anything not yet modeled more specifically. |
--driver-id | string | (none) | The driver that talks to it, by handle or uuid |
--icon | string | (none) | A product-level icon override; unset inherits the component_type’s icon |
--kind | string | (none) | What class of thing the product is. vm is retired (folded into app); required, no default, so every product states its class explicitly. |
--label | string | (none) | What an operator reads in pickers and lists |
--label-rule | string | (none) | A label rule, written in Go text/template, rendering the label of every component of this product, over a closed map of that component’s facts (Name, Ordinal, TypeName, TypeAbbrev, Stem, ProductName, VendorName, LocationLabel, SystemTypeLabel) and the functions title, upper, lower, slug and words (words turns a kebab or snake name into the words in it, so {{title (words .Name)}} reads north-wing as North Wing). Omit to inherit the component_type chain’s rule, then the global component rule. A rule that does not parse is refused here, 422. |
--name | string | (none) | The globally unique name; renameable |
--parent-product-id | string | (none) | The parent product, by handle or uuid |
--vendor-id | string | (none) | The vendor, by handle or uuid |
Example:
omniglass product create --component-type component_type --kind kind --label label --name nameomniglass product delete
Section titled “omniglass product delete”Delete a product
omniglass product delete <id>Deletes a custom product, refused if official (422) or still referenced by a component (409). Gated by product:delete.
Example:
omniglass product delete boreal-edge-55omniglass product get
Section titled “omniglass product get”Get a product
omniglass product get <id>Fetches a product by its name or its uuid. Either form resolves, so omniglass product get acme-soundbar and the uuid are interchangeable. Gated by product:read.
Example:
omniglass product get boreal-edge-55omniglass product list
Section titled “omniglass product list”List products
omniglass product list [flags]Lists the product catalog, ordered alphabetically by label. Each product carries its vendor, driver, kind, and component_type. declares_metric and declares_property narrow it to the products whose contract declares that key. Gated by product:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--declares-metric | string | (none) | Only products whose contract declares this metric (name or uuid) |
--declares-property | string | (none) | Only products whose contract declares this property (name or uuid) |
Example:
omniglass product listomniglass product metric
Section titled “omniglass product metric”Commands for the metric resource
omniglass product metric delete
Section titled “omniglass product metric delete”Withdraw a metric from a product
omniglass product metric delete <id> <metric>Removes one line from a custom product’s contract; instances keep any samples the series already holds, now off-contract. A metric the product does not declare is a 404, and an official product is read-only (422). Gated by product:delete.
Example:
omniglass product metric delete boreal-edge-55 <metric>omniglass product metric list
Section titled “omniglass product metric list”List a product’s declared metrics
omniglass product metric list <id>Lists the product’s declared-metric contract (which metrics every instance of the product carries), ordered by metric name, each with its optional default and required flag. Gated by product:read.
Example:
omniglass product metric list boreal-edge-55omniglass product metric update
Section titled “omniglass product metric update”Declare a metric on a product
omniglass product metric update <id> <metric> [flags]Declares a catalog metric on a custom product, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official products are read-only (422); an unknown product is a 404 and a metric the catalog does not know is a 422. Gated by product:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the metric’s data_type; omit for no default |
--required | bool | false | Whether every instance of this product must carry the metric; defaults to false |
Example:
omniglass product metric update boreal-edge-55 <metric>omniglass product property
Section titled “omniglass product property”Commands for the property resource
omniglass product property delete
Section titled “omniglass product property delete”Withdraw a property from a product
omniglass product property delete <id> <property>Removes one line from a custom product’s contract; instances keep any value they set for it, now off-contract. A property the product does not declare is a 404, and an official product is read-only (422). Gated by product:delete.
Example:
omniglass product property delete boreal-edge-55 <property>omniglass product property list
Section titled “omniglass product property list”List a product’s declared properties
omniglass product property list <id>Lists the product’s declared-property contract (what every instance of the product exposes), ordered by property name, each with its optional default and required flag. Gated by product:read.
Example:
omniglass product property list boreal-edge-55omniglass product property update
Section titled “omniglass product property update”Declare a property on a product
omniglass product property update <id> <property> [flags]Declares a catalog property on a custom product, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official products are read-only (422); an unknown product is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by product:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the property’s data_type; omit for no default |
--required | bool | false | Whether every instance of this product must set the property; defaults to false |
Example:
omniglass product property update boreal-edge-55 <property>omniglass product rename
Section titled “omniglass product rename”Rename a product
omniglass product rename <id> [flags]Moves a custom product’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official product keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by product:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass product rename <id> --name nameomniglass product update
Section titled “omniglass product update”Update a product
omniglass product update <id> [flags]Patches a custom product’s label, vendor, driver, kind, component_type, icon, label rule, or parent. Each optional field follows the three-state string: omitted is unchanged, an empty string clears it, a value sets it, so a vendor, driver, parent, icon or label rule can be unset as well as changed. component_type is required, so an empty string on it is a 422 (a reclassify names a real type; it never clears). Official products are read-only (422). Gated by product:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--component-type | string | (none) | Reclassifies the product to this component_type, by name or uuid; component_type is required, so this only reclassifies, it never clears |
--driver-id | string | (none) | A new driver, by handle or uuid; an empty string clears it |
--icon | string | (none) | A new icon override; an empty string clears it, so the product inherits its component_type’s icon |
--kind | string | (none) | A new product class |
--label | string | (none) | A new operator-facing label |
--label-rule | string | (none) | A new label rule; an empty string clears it, so components fall back to the component_type chain and then the global component rule. Refused with 422 if it does not parse. |
--parent-product-id | string | (none) | A new parent product, by handle or uuid; an empty string clears it |
--vendor-id | string | (none) | A new vendor, by handle or uuid; an empty string clears it |
Example:
omniglass product update boreal-edge-55omniglass property-type
Section titled “omniglass property-type”Commands for the property-type resource
omniglass property-type create
Section titled “omniglass property-type create”Create a property
omniglass property-type create [flags]Registers a custom property (official=false). The name must be a valid property key. Gated by property_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--data-type | string | (none) | The value type; a numeric signal is a metric type |
--description | string | (none) | What the property means |
--label | string | (none) | A human label |
--name | string | (none) | The property name (lowercase kebab) |
--validation | string | (none) | A JSON Schema fragment constraining the value |
Example:
omniglass property-type create --data-type data_type --name nameomniglass property-type delete
Section titled “omniglass property-type delete”Delete a property
omniglass property-type delete <name>Removes a custom property by name. Official properties are read-only. A property a calc rule writes is a 409 naming the rule, and one identity bindings use as their match key is a 409 counting them. Gated by property_type:delete.
Example:
omniglass property-type delete <name>omniglass property-type get
Section titled “omniglass property-type get”Get a property
omniglass property-type get <name>Returns one property by name. Gated by property_type:read.
Example:
omniglass property-type get <name>omniglass property-type list
Section titled “omniglass property-type list”List properties
omniglass property-type listLists every registered property (official and custom). The catalog is fleet-wide reference data. Gated by property_type:read.
Example:
omniglass property-type listomniglass property-type setRetention
Section titled “omniglass property-type setRetention”Set a property type’s retention window
omniglass property-type setRetention <name> [flags]Sets how many days this type’s transitions are kept, overriding the property lane’s window (retention.property_days), or with null returns it to the lane’s. Works on an official type: a shipped type’s definition is read-only, but how long an install keeps its samples is the install’s, and the boot seed never resets it. The retention floor still holds: a declared value and a series’ latest value are never removed. 1 to 36,500 days. Audited as set_retention. Gated by property_type:update and platform:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--days | string | (none) | The type’s own retention window in whole days, 1 to 36,500; null clears it, so the type is kept for its lane’s window (retention.metric_days or retention.property_days). Required: an empty body is refused |
Example:
omniglass property-type setRetention <name> --days <json>omniglass property-type update
Section titled “omniglass property-type update”Update a property
omniglass property-type update <name> [flags]Patches a custom property’s label, description, or validation. Partial by default: the fields present in the body change and the rest are left alone. validation is a nullable object with no empty value, so it clears by being named in update_mask with no value in the body; label and description clear with an explicit empty string. A mask naming a field this resource does not patch is a 422. Data type is fixed at creation. Official properties are read-only. Gated by property_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | What the property means |
--label | string | (none) | A human label |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED (validation back to unset); send [”*”] for full replacement. A field this resource does not patch is a 422 naming it |
--validation | string | (none) | A JSON Schema fragment (replaces wholesale); omit to leave unchanged, or name validation in update_mask with no value here to CLEAR it |
Example:
omniglass property-type update <name>omniglass role
Section titled “omniglass role”Commands for the role resource
omniglass role list
Section titled “omniglass role list”List roles
omniglass role listLists the roles with their metadata and effective (flattened) permissions. Gated by the role:read:admin capability.
Example:
omniglass role listomniglass search
Section titled “omniglass search”Commands for the search resource
omniglass search list
Section titled “omniglass search list”Find locations, systems, components and catalog entries by name
omniglass search list [flags]The read behind the command palette. Returns up to limit hits of each kind whose name or label holds q, case-insensitively, best match first (exact, then prefix, then the rest by name). Locations, systems and components are searched inside the caller’s own read scope for each kind, so nothing outside it appears; a caller with no scope for a kind gets an empty group, not an error. Each fleet hit carries its location_path, so many components with one name are told apart. Catalog hits cover products (product:read), drivers (driver:read), calc rules and event rules (rule:read) and metrics (metric_type:read), each only for a caller who holds that permission. Gated by location:read, the floor of every fleet reader; the component group also needs component:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | The most hits returned for each kind |
--q | string | (none) | The text to find, matched case-insensitively anywhere in a name or label |
Example:
omniglass search listomniglass secret
Section titled “omniglass secret”Commands for the secret resource
omniglass secret copy
Section titled “omniglass secret copy”Decrypt a secret for clipboard copy
omniglass secret copy <secret>Decrypts and returns a secret’s field values for a clipboard copy, audited under the copy verb (distinct from an on-screen reveal). Same exposure and the same secret:reveal gate as reveal.
Arguments:
Example:
omniglass secret copy demo-panel-loginomniglass secret create
Section titled “omniglass secret create”Create a secret
omniglass secret create [flags]Seals a secret at an owner scope. Fields are validated and encrypted against the type shape. Gated by secret:create, plus platform:create when owner_kind is platform (the install-wide tier).
| Flag | Type | Default | Description |
|---|---|---|---|
--admin-sensitive | bool | false | Admin-only visibility; omit to use the type default. Setting true requires the admin tier |
--fields | string | (none) | The operator field map, validated against the type shape |
--label | string | (none) | What an operator reads in lists and pickers (Polling community); omit to fall back to the name |
--name | string | (none) | The cascade name (lowercase letters, digits, and hyphens); unique per owner |
--owner | string | (none) | The owning entity’s name; omit for a platform secret |
--owner-kind | string | (none) | Which tier owns this secret (the system band is retired, ADR-0052) |
--secret-type | string | (none) | A secret_type id |
Example:
omniglass secret create --fields <json> --name name --owner-kind owner_kind --secret-type secret_typeomniglass secret delete
Section titled “omniglass secret delete”Delete a secret
omniglass secret delete <secret>Removes a secret, by name or uuid. Gated by secret:delete, plus platform:delete when the secret sits at the platform tier; read and delete scopes on the owner drive the 404 versus 403 split.
Arguments:
Example:
omniglass secret delete demo-panel-loginomniglass secret list
Section titled “omniglass secret list”List secrets
omniglass secret listLists the secrets the caller may see, with masked fields, filtered to the read scope; admin-sensitive secrets appear only to the admin tier. Gated by secret:read, which the viewer floor does not carry (secret is a sensitive resource).
Example:
omniglass secret listomniglass secret reveal
Section titled “omniglass secret reveal”Reveal a secret’s plaintext
omniglass secret reveal <secret>Decrypts and returns a secret’s field values, auditing the decrypt. Gated by secret:reveal at the caller’s scope; an admin-sensitive secret additionally needs the admin tier (secret:reveal:admin), so a scoped operator reveals device secrets but never a platform credential.
Arguments:
Example:
omniglass secret reveal demo-panel-loginomniglass secret update
Section titled “omniglass secret update”Update a secret
omniglass secret update <secret> [flags]Replaces the given field values on a secret, re-sealing secret fields, and patches its label. Only those change; name, type, and owner are fixed at creation. An omitted field keeps its value, an omitted label leaves it alone, and an empty label clears it. Gated by secret:update, plus platform:update when the secret sits at the platform tier.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--fields | string | (none) | The field values to replace; an omitted field keeps its value |
--label | string | (none) | A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone |
Example:
omniglass secret update demo-panel-loginomniglass secret-type
Section titled “omniglass secret-type”Commands for the secret-type resource
omniglass secret-type list
Section titled “omniglass secret-type list”List secret types
omniglass secret-type listLists the secret_type shapes a secret can take, for the create form. Gated by secret:read.
Example:
omniglass secret-type listomniglass seed-dev
Section titled “omniglass seed-dev”Seed a dev database with example locations, users, and grants (idempotent; never for production)
omniglass seed-dev [flags]Populate a fresh dev database with a small example fleet so a dev stack comes up with locations, sign-in-able users, and their grants instead of empty. The same trusted direct-DB lane as bootstrap, and idempotent, so a re-run changes nothing. Not for production: these are operator rows, not ship-with reference data.
—scenario picks the fleet: dev the example fleet a lab comes up with empty nothing beyond the boot seed: a fresh install’s first run degraded the example fleet with an open alarm on one in every 3 components storm the large fleet with an open alarm on one in every 3 components: an alarm storm of 150 or more, for the alarm queue’s scale checks large the example fleet plus its self-contained rooms copied 6 times under each of 5 replica sites (only the example fleet is simulated)
| Flag | Type | Default | Description |
|---|---|---|---|
--scenario | string | dev | the fleet to seed (see the list above) |
--sim-fleet | bool | true | wire the simulated fleet: addresses and endpoints on the dev outpost for every example-fleet component the simulator serves, never a scenario’s copies or a hand-added device (a lab’s outpost collects from them) |
--sim-port-offset | int | 0 | the lift the simulator applies to ports below 1024, which the simulated fleet’s endpoints target: 0 for one that binds the real ports (in a container, as the lab’s does), or the —port-offset of a simulator run unprivileged on a host |
omniglass server
Section titled “omniglass server”Run the control-plane server (HTTP API)
omniglass serverRuns the control plane: applies pending migrations and the boot seed, then serves the HTTP API on OMNIGLASS_ADDR and hosts the embedded NATS bus outposts connect to on OMNIGLASS_NATS_ADDR. Either address may name port 0, which binds whatever free port the kernel hands out; set OMNIGLASS_READY_FILE to a path and, once both listeners are bound, the server writes the addresses it got there as JSON (addr, nats_addr, and the nats_url it advertises to outposts). A file already at that path is cleared first thing at boot, and the server removes its own at a graceful shutdown (SIGINT or SIGTERM). A supervisor or a test reads the ports from that file rather than picking one and hoping it stays free. Configured by environment; see the deployment guides.
| Flag | Type | Default | Description |
|---|
omniglass session
Section titled “omniglass session”Commands for the session resource
omniglass session list
Section titled “omniglass session list”List your own sessions and tokens
omniglass session listLists the caller’s own active bearer credentials (time-bounded web-login sessions and CLI/API tokens) with their non-secret metadata; the current one is flagged. Requires authentication; self-scoped (never another user’s). The token secret is never returned.
Example:
omniglass session listomniglass session revoke
Section titled “omniglass session revoke”Revoke one of your own sessions
omniglass session revoke <id>Revokes one of the caller’s own sessions or tokens by id (from the session list); revoking the current one signs it out. Requires authentication; self-scoped, so a credential id that is not yours is a 404.
Example:
omniglass session revoke <id>omniglass session revoke-all
Section titled “omniglass session revoke-all”Revoke all of your own sessions or tokens
omniglass session revoke-all [flags]Revokes every one of the caller’s own web-login sessions, or every one of its CLI/API tokens (chosen by purpose), returning how many were ended. Requires authentication; self-scoped. Always keeps the credential that made this request, so you are never signed out of the one you are on; sessions and tokens never cross.
| Flag | Type | Default | Description |
|---|---|---|---|
--purpose | string | (none) | Which of your own credentials to revoke: all your web-login sessions, or all your CLI/API tokens |
Example:
omniglass session revoke-all --purpose purposeomniglass set-password
Section titled “omniglass set-password”Set or rotate a user’s console password, revoking their sessions (direct DB)
omniglass set-password <username> <password> [flags]Installs or replaces a human’s password credential (argon2id), addressed by username, and revokes the user’s live SESSIONS so a break-glass reset locks out any stolen login at once. API tokens are a separate bearer secret, not tied to the password, and are kept unless —revoke-tokens is given (a full lockout of a compromised account). The same trusted direct-DB lane as bootstrap and token: dev setup, break-glass, or a password reset before the admin UI lands.
| Flag | Type | Default | Description |
|---|---|---|---|
--revoke-tokens | bool | false | also revoke the user’s API tokens (a full lockout of a compromised account) |
omniglass setting
Section titled “omniglass setting”Commands for the setting resource
omniglass setting delete
Section titled “omniglass setting delete”Restore a settings namespace to defaults
omniglass setting delete <namespace>Drops the namespace’s platform binding, restoring the env layer, the file layer and the declared defaults. Gated by settings:update and platform:update.
Example:
omniglass setting delete <namespace>omniglass setting list
Section titled “omniglass setting list”Get effective settings with provenance
omniglass setting listThe effective settings document plus per-key provenance (which level won) and lock state. Gated by settings:read (admin).
Example:
omniglass setting listomniglass setting me
Section titled “omniglass setting me”Commands for the me resource
omniglass setting me list
Section titled “omniglass setting me list”Get the caller’s effective settings
omniglass setting me listThe current user’s resolved settings, client-visible namespaces only, no provenance. Feeds the SPA at boot. Requires authentication.
Example:
omniglass setting me listomniglass setting restoreDefaults
Section titled “omniglass setting restoreDefaults”Restore all settings to defaults
omniglass setting restoreDefaultsRemoves every platform binding (a factory reset), restoring the env layer, the file layer and the declared defaults. Gated by settings:update and platform:update.
Example:
omniglass setting restoreDefaultsomniglass setting update
Section titled “omniglass setting update”Update a settings namespace
omniglass setting update <namespace> [flags]Applies an RFC 7386 JSON Merge Patch to the namespace’s platform binding; null on a key restores it (for example {“egress_allow”:null}). Gated by settings:update and platform:update.
The request body is a JSON object: pass it inline with —body, or from a file (or - for stdin) with —body-file. A malformed document is refused before any request is made.
| Flag | Type | Default | Description |
|---|---|---|---|
--body | string | (none) | the request body as a JSON object |
--body-file | string | (none) | read the request body, a JSON object, from this file (- for stdin) |
Example:
omniglass setting update notification --body '{"egress_allow":["smtp.example.com"]}'omniglass severity-level
Section titled “omniglass severity-level”Commands for the severity-level resource
omniglass severity-level create
Section titled “omniglass severity-level create”Create a severity level
omniglass severity-level create [flags]Adds an operator severity level at a rank of its own, between two others without renumbering. A name or rank already taken is a 409; a color outside the palette is a 422. Audited. Gated by severity_level:create, with an all-scope grant: a level’s rank moves health fleet-wide.
| Flag | Type | Default | Description |
|---|---|---|---|
--color | string | (none) | One of gray, blue, green, yellow, orange, red, darkred |
--health-effect | string | (none) | What an open alarm at this level does to its component; omitted, derived from rank (below 20 none, below 40 degraded, else outage) |
--label | string | (none) | A human label |
--name | string | (none) | The level’s name (lowercase kebab) |
--rank | int | 0 | Its position among the levels: higher is more severe; unique |
Example:
omniglass severity-level create --color color --name name --rank <int>omniglass severity-level delete
Section titled “omniglass severity-level delete”Delete a severity level
omniglass severity-level delete <name>Removes an operator level no alarm or event rule names; an official level or one in use is a 409. Audited. Gated by severity_level:delete, with an all-scope grant.
Example:
omniglass severity-level delete <name>omniglass severity-level get
Section titled “omniglass severity-level get”Get a severity level
omniglass severity-level get <name>Returns one severity level by name. Gated by severity_level:read.
Example:
omniglass severity-level get <name>omniglass severity-level list
Section titled “omniglass severity-level list”List severity levels
omniglass severity-level listLists the severity levels, least to most severe, each with its declared health effect (none, degraded or outage) on a component with an open alarm at it; outage remains as a deprecated alias of health_effect outage. Gated by severity_level:read.
Example:
omniglass severity-level listomniglass severity-level update
Section titled “omniglass severity-level update”Update a severity level
omniglass severity-level update <name> [flags]Patches an operator level’s name, label, color, rank or health effect (an absent field is unchanged); a rename carries every alarm at the level with it. Official levels are read-only (409). Audited. Gated by severity_level:update, with an all-scope grant.
| Flag | Type | Default | Description |
|---|---|---|---|
--color | string | (none) | One of gray, blue, green, yellow, orange, red, darkred |
--health-effect | string | (none) | What an open alarm at this level does to its component; changing it recomputes every component with an open alarm at the level |
--label | string | (none) | A human label |
--name | string | (none) | A new name; every alarm at this level follows |
--rank | int | 0 | Its position among the levels; unique |
Example:
omniglass severity-level update <name>omniglass sim
Section titled “omniglass sim”Simulate the devices placed on an outpost
omniglass sim mail
Section titled “omniglass sim mail”Run a mail relay simulator that keeps what it is sent
omniglass sim mail [flags]Serves SMTP on —listen and keeps every message it accepts, writing each as one JSON line (from, to, subject, text, message_id) to —out (standard output by default). It sends nothing on. Point the notification settings’ mail_relay at it with mail_security none and name its address in egress_allow. While —down-file holds the word down, it refuses every message with a temporary error.
| Flag | Type | Default | Description |
|---|---|---|---|
--down-file | string | (none) | while this file holds the word down, refuse every message with a temporary error |
--listen | string | 127.0.0.1:2525 | the address to serve SMTP on |
--out | string | (none) | append each accepted message as a JSON line to this file (default standard output) |
omniglass sim run
Section titled “omniglass sim run”Serve the outpost’s simulated devices and follow changes until interrupted
omniglass sim run [flags]Serves each component placed on the outpost whose product has a simulator profile and whose endpoints target a loopback address, on that address, and reports every request it answers to the server. Re-pulls the device list on an interval, so devices added or removed on the server start or stop without a restart. With a world file (env OMNIGLASS_SIM_WORLD), the simulator holds the world it simulates: the lab calendar and each device’s room, from the scenario and not from the server.
| Flag | Type | Default | Description |
|---|---|---|---|
--impairments | bool | false | apply impairments (unplug, latency, loss) and truthful ping by rewriting the firewall and traffic shaping of this network namespace; needs NET_ADMIN, and is meant for a namespace of the simulator’s own (a pod or container) |
--name | string | (none) | the outpost this simulator runs beside (env OMNIGLASS_OUTPOST_NAME) |
--poll | duration | 10s | how often to re-pull the device list |
--port-offset | int | 0 | lift the simulated ports below 1024 by this much, to serve without the privilege to bind them |
--server | string | (none) | Omniglass server base URL (env OMNIGLASS_SERVER) |
--token | string | (none) | that outpost’s enrollment token (env OMNIGLASS_OUTPOST_TOKEN) |
omniglass simulation
Section titled “omniglass simulation”Commands for the simulation resource
omniglass simulation add-component
Section titled “omniglass simulation add-component”Add a simulated component
omniglass simulation add-component <name> [flags]Creates a component of a simulated product, at the lowest free address in the simulated block (127.60.0.0/16), with the endpoint the collector reaches it through placed on the outpost: a driver attach where the driver’s inputs are known (only when the platform secret the attach references exists, the community or the credential the face demands, else it falls back), otherwise a reachability probe on a port the profile serves, lifted as the outpost’s simulator lifts its ports. The simulator serves it from its next pull, with no restart. Gated by simulation:update, and also needs component:create and endpoint:create, each in the caller’s own scope. An outpost with no simulator connected is a 409, and a product no profile simulates a 422.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | Where the component sits, by name or dotted path |
--name | string | (none) | The new component’s name |
--product | string | (none) | A product a simulator profile simulates |
Example:
omniglass simulation add-component <name> --name name --product productomniglass simulation add-system
Section titled “omniglass simulation add-system”Add a simulated system
omniglass simulation add-system <name> [flags]Creates a system built to a standard, with a simulated component for each staffed slot in the standard’s plan (see plan-simulation-system), each at its own free address in the simulated block with its endpoint placed on the outpost, and assigned its slot, all in one transaction: it lands whole or not at all. Component names are minted as an unnamed create mints them; slots nothing simulated fits are left short and listed. The simulator serves the components from its next pull. Gated by simulation:update, and also needs system:create, system:update, system:read, component:create, component:update, endpoint:create and outpost:read (and location:read when it names a location), each in the caller’s own scope; the components are created without a parent, so component:create must be all-scope, and so must component:update, since assigning each its slot writes onto it as an assignment route does. A refused piece is mapped as its own route maps it (a component refused is a 403). An outpost with no simulator connected is a 409, and a standard nothing simulated can staff a 422.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | Where the system and its components sit, by name or dotted path |
--name | string | (none) | The system’s name; minted from its type when empty |
--standard | string | (none) | The standard the system is built to; its slots decide the components |
--system-type | string | (none) | The system’s type, which also mints its name when none is given |
Example:
omniglass simulation add-system <name> --standard standard --system-type system_typeomniglass simulation get
Section titled “omniglass simulation get”Get the simulated fleet
omniglass simulation getEvery outpost a simulator has pulled for since the server started, each with its capabilities, its account of impairments, and the components it simulates within the caller’s component read scope, joined to their live hits. A caller sees an outpost’s simulator when its component read scope holds at least one component the outpost simulates (an all-scope reader sees all of them); no outpost read is needed. Connected is true when any listed simulator pulled recently. Hits are per server process, not stored. Gated by simulation:read.
Example:
omniglass simulation getomniglass simulation plan-component
Section titled “omniglass simulation plan-component”Plan a simulated component
omniglass simulation plan-component <name> [flags]Previews what adding a simulated component of a product would create (see add-outpost-simulation-component): the lowest free address in the simulated block (127.60.0.0/16) and the endpoints the collector would reach it through, a driver attach with its inputs (a secret input names the platform secret, never its value) or a reachability probe with its target, planned exactly as the add plans them. Creates nothing and reserves nothing: the address is not held, so an add or another plan in between may take it, and an add made after this plan then lands on the next free address instead. Gated by simulation:read, and needs outpost:read on the outpost. An outpost that does not exist is a 404, one with no simulator connected a 409, a product no profile simulates a 422, and a full block or a profile with no surface the collector can reach a 409.
| Flag | Type | Default | Description |
|---|---|---|---|
--product | string | (none) | A product a simulator profile simulates |
Example:
omniglass simulation plan-component <name>omniglass simulation plan-system
Section titled “omniglass simulation plan-system”Plan a simulated system to a standard
omniglass simulation plan-system <standard>Previews a simulated system built to a standard: each of the standard’s slots (one alternate taken per choice) staffed with the first simulated product that fits its accepted types and pins, as many as its quorum and at least one, or left short with the reason when nothing simulated fits. Creates nothing. Gated by simulation:read.
Example:
omniglass simulation plan-system <standard>omniglass simulation profiles
Section titled “omniglass simulation profiles”List the simulator’s profiles
omniglass simulation profilesThe simulator’s profile catalog, embedded in the binary: each profile with the products it simulates and the protocols it speaks. Adding a simulated component names one of these products. Gated by simulation:read.
Example:
omniglass simulation profilesomniglass standard
Section titled “omniglass standard”Commands for the standard resource
omniglass standard create
Section titled “omniglass standard create”Create a standard
omniglass standard create [flags]Creates a custom (non-official) standard, optionally as a variant of another. Gated by standard:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | What an operator reads in pickers and lists |
--name | string | (none) | The globally unique name; renameable |
--parent-standard-id | string | (none) | A standard this one is a variant of, by handle or uuid |
Example:
omniglass standard create --label label --name nameomniglass standard createFromTemplate
Section titled “omniglass standard createFromTemplate”Create a standard from a template
omniglass standard createFromTemplate [flags]Writes one standard of your own (official false) from a standard template in the catalog: its slots, choices, property and metric contract lines and map, in one transaction, audited once as a create carrying the template it came from (from_template). Nothing points back at the template, so a later release can change the template without touching your standard, and your standard renames, edits and deletes like any you created. The name is the template’s unless you give one; a taken name is a 409, so creating from the same template again needs a second name. A variant is created only once you hold the standard it hangs off (the parent you name, or yours named for the template’s parent), else a 422 naming the template to create from first. An unknown template is a 404. Gated by standard:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | The standard’s label; omitted takes the template’s |
--name | string | (none) | The name the standard takes; omitted takes the template’s |
--parent | string | (none) | For a variant, the standard it hangs off, by name or uuid; omitted takes your standard named for the template’s parent |
--template | string | (none) | The standard template to create from, by name |
Example:
omniglass standard createFromTemplate --template templateomniglass standard delete
Section titled “omniglass standard delete”Delete a standard
omniglass standard delete <id>Deletes a custom standard, refused if official (422) or still referenced by a system (409). Gated by standard:delete.
Example:
omniglass standard delete meeting-roomomniglass standard get
Section titled “omniglass standard get”Get a standard
omniglass standard get <id>Fetches a standard by id. Gated by standard:read.
Example:
omniglass standard get meeting-roomomniglass standard list
Section titled “omniglass standard list”List standards
omniglass standard listLists the standard catalog, ordered alphabetically by label. A standard is the contract a system is built to. Gated by standard:read.
Example:
omniglass standard listomniglass standard metric
Section titled “omniglass standard metric”Commands for the metric resource
omniglass standard metric delete
Section titled “omniglass standard metric delete”Withdraw a metric from a standard
omniglass standard metric delete <id> <metric>Removes one line from a custom standard’s contract; conforming systems keep any samples the series already holds, now off-contract. A metric the standard does not declare is a 404, and an official standard is read-only (422). Gated by standard:delete.
Example:
omniglass standard metric delete meeting-room <metric>omniglass standard metric list
Section titled “omniglass standard metric list”List a standard’s declared metrics
omniglass standard metric list <id>Lists the standard’s declared-metric contract (which metrics every system conforming to it carries), ordered by metric name, each with its optional default and required flag. Gated by standard:read.
Example:
omniglass standard metric list meeting-roomomniglass standard metric update
Section titled “omniglass standard metric update”Declare a metric on a standard
omniglass standard metric update <id> <metric> [flags]Declares a catalog metric on a custom standard, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official standards are read-only (422); an unknown standard is a 404 and a metric the catalog does not know is a 422. Gated by standard:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the metric’s data_type; omit for no default |
--required | bool | false | Whether every system conforming to this standard must carry the metric; defaults to false |
Example:
omniglass standard metric update meeting-room <metric>omniglass standard property
Section titled “omniglass standard property”Commands for the property resource
omniglass standard property delete
Section titled “omniglass standard property delete”Withdraw a property from a standard
omniglass standard property delete <id> <property>Removes one line from a custom standard’s contract; conforming systems keep any value they set for it, now off-contract. A property the standard does not declare is a 404, and an official standard is read-only (422). Gated by standard:delete.
Example:
omniglass standard property delete meeting-room <property>omniglass standard property list
Section titled “omniglass standard property list”List a standard’s declared properties
omniglass standard property list <id>Lists the standard’s declared-property contract (what every system conforming to it exposes), ordered by property name, each with its optional default and required flag. Gated by standard:read.
Example:
omniglass standard property list meeting-roomomniglass standard property update
Section titled “omniglass standard property update”Declare a property on a standard
omniglass standard property update <id> <property> [flags]Declares a catalog property on a custom standard, or revises the declaration in place (the line is addressed by name, so the write is idempotent). Official standards are read-only (422); an unknown standard is a 404 and a property the catalog does not know is a 422, as is a default its property type refuses. Gated by standard:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--default-value | string | (none) | The contract default, validated against the property’s data_type; omit for no default |
--required | bool | false | Whether every system conforming to this standard must set the property; defaults to false |
Example:
omniglass standard property update meeting-room <property>omniglass standard rename
Section titled “omniglass standard rename”Rename a standard
omniglass standard rename <id> [flags]Moves a custom standard’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official standard keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by standard:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass standard rename <id> --name nameomniglass standard slot
Section titled “omniglass standard slot”Commands for the slot resource
omniglass standard slot delete
Section titled “omniglass standard slot delete”Withdraw a slot from a standard
omniglass standard slot delete <id> <slot>Removes the slot from the standard, and with it every assignment conforming systems made to it. A slot the standard does not declare is a 404. Gated by standard:delete.
Example:
omniglass standard slot delete meeting-room <slot>omniglass standard slot list
Section titled “omniglass standard slot list”List a standard’s declared slots
omniglass standard slot list <id>Lists the slots this standard declares (every conforming system inherits them live), ordered by name, each with its quorum and the component_types (accepted_types) and, if pinned, the products a filling component must match. An unknown standard is a 404, never an empty list. Gated by standard:read.
Example:
omniglass standard slot list meeting-roomomniglass standard slot update
Section titled “omniglass standard slot update”Declare a slot on a standard
omniglass standard slot update <id> <slot> [flags]Declares a slot every conforming system needs filled, or revises it in place (the slot is addressed by name, so the write is idempotent and declaring is this same route). Partial by default: the fields present in the body change and the rest of the declaration is left alone. update_mask overrides that, writing exactly the fields it names, which is how a field is cleared, and [”*”] replaces the whole declaration. An unknown standard, type, or product is a 422, as is a mask naming a field this resource does not patch. A name a conforming system already declares itself is a 409, since a slot name must mean one slot in a system, and so is a capacity below what a conforming system already holds; either names the conflicting system only if the caller may read it. Gated by standard:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--accepted-types | string | (none) | The component_types a filling component’s product must be classified within (self or a descendant); replaces the accepted set wholesale when written, and an empty set accepts any type. Clearing it means naming accepted_types in update_mask |
--alternate | string | (none) | The choice/alternate this slot joins, addressed as “choice-name/alternate-name” (#626). An empty string detaches the slot, making it unconditional; an unknown choice or alternate is a 422 |
--capacity | int | 0 | The most components the slot will accept; must be at least quorum, and unbounded on first declare. Name capacity in update_mask with no value here to clear it back to unbounded |
--impact | string | (none) | What an impaired slot means for its system; degraded on first declare. The same broken component matters differently depending on the slot it was filling: a dead confidence monitor is not a dead main display |
--label | string | (none) | The slot’s human label; defaults to the slot name on first declare |
--pinned-products | string | (none) | If set, a filling component’s product must be one of these; replaces the pinned set wholesale when written, and an empty set accepts any product of an accepted type. Clearing it means naming pinned_products in update_mask |
--position-labels | string | (none) | Human labels for each position within the slot, by index; replaces the label set wholesale when written. An empty list is not a populated field, so clearing the labels means naming position_labels in update_mask |
--quorum | int | 0 | How many components must fill the slot; one on first declare |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED; send [”*”] for full replacement, where every field the body omits goes back to its default. A field this resource does not patch is a 422 naming it |
Example:
omniglass standard slot update meeting-room <slot>omniglass standard update
Section titled “omniglass standard update”Update a standard
omniglass standard update <id> [flags]Patches a custom standard’s label, parent, label rule or map. The parent_standard_id field follows the three-state convention: an omitted field is unchanged, an explicit empty string clears it (a standalone standard), a handle or uuid sets it, and an unknown parent is a 422. Official standards are read-only (422). Gated by standard:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new operator-facing label |
--map | string | (none) | The room-layout declaration to store; JSON null clears it; absent leaves it. Validated: positive aspect, coordinates in [0, 1], 1-based positions, no duplicate (slot, position) pair |
--parent-standard-id | string | (none) | A new variant parent, by handle or uuid; omit to leave unchanged, "" to clear it back to a standalone standard |
Example:
omniglass standard update meeting-roomomniglass system
Section titled “omniglass system”Commands for the system resource
omniglass system alarm
Section titled “omniglass system alarm”Commands for the alarm resource
omniglass system alarm list
Section titled “omniglass system alarm list”List a system’s members’ alarms
omniglass system alarm list <name> [flags]Every member’s alarms in one read, newest first, each naming its component: the active ones whatever their age, and those cleared in the last 30 days, capped at 500. With since (and optionally until) it is instead every alarm raised during that range, active or cleared, the same cap applying. It is what a system’s Activity reads to explain its alarms, one request however many members the system has. since after until is a 400. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--since | string | (none) | Read the alarms raised during since..until instead of the default (active ones, and those cleared in the last 30 days): active, or cleared at or after since, and raised at or before until |
--until | string | (none) | The range’s end, with since; defaults to now and must not be earlier than since |
Example:
omniglass system alarm list <name>omniglass system batchCreate
Section titled “omniglass system batchCreate”Create many systems in one write
omniglass system batchCreate [flags]Creates systems in one transaction: each request is the body POST /systems takes, run as that create runs it, in order, so a system may name as its parent one an earlier request creates, and its location by name as the single create does. Every row writes its own audit row carrying the one batch_id the response returns, under from_batch. A refused request refuses the whole batch, mapped as POST /systems maps it, with its position in the request (requests[3]) leading the detail; nothing lands. validate_only runs the same transaction and rolls it back, answering 200 with the names the write would mint and no ids. A batch carries at most 1000 requests; more is a 413 naming the limit, so split a bigger import (by building). Gated by system:create; each request is held to that scope, and its location resolves within your location:read scope, as its single create is.
| Flag | Type | Default | Description |
|---|---|---|---|
--requests | string | (none) | The systems to create, each the body POST /systems takes, in order: a parent before its children |
--validate-only | bool | false | Run every request in the transaction and roll it back: the response is what the write would create (names minted, ids empty), or the row that would refuse it, and nothing is written |
Example:
omniglass system batchCreate --requests <json>omniglass system checkName
Section titled “omniglass system checkName”Check a system name
omniglass system checkName [flags]Reports whether a proposed name is a valid slug and currently free within the given placement (parent wins over location; neither means the root/unplaced bucket). Advisory (Save is still gated by the unique constraint). Gated by system:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | The location (by name or uuid) the entity would be placed at, if any and if unparented; ignored by the locations check |
--name | string | (none) | The proposed name to check |
--parent | string | (none) | The parent (by name or uuid) the entity would be created under, if any; omit for a root/unplaced check |
Example:
omniglass system checkName --name nameomniglass system create
Section titled “omniglass system create”Create a system
omniglass system create [flags]Creates a system, optionally under a parent (a root needs an all-scoped grant, or a location inside the location subtree of a location-scoped system:create grant; a root with no location needs the all-scoped grant), at a location, conforming to a standard, and classified as a system_type. Gated by system:create; the location reference resolves within the caller’s location:read scope, because the label this stores is rendered from it, and a location outside that scope is refused (422) exactly as :renderLabel refuses to preview it.
| Flag | Type | Default | Description |
|---|---|---|---|
--expected-name | string | (none) | The name a create form previewed (POST /systems:renderLabel returns it). The create is refused with a 409 naming what it would produce instead, rather than silently landing a different name, if the number was taken or the system_type’s stem moved while the form was open. It does not name the row (the platform still does, and the row is still name_generated): it only asserts what that name will be. Applies only when the platform names the row: sending it beside a name is a 422. |
--label | string | (none) | What an operator reads; the name is the address |
--location | string | (none) | Location name this system is placed at |
--name | string | (none) | Name, unique within its placement (the address; lowercase letters, digits, hyphens). Omit to have the platform generate one from the system_type’s stem. |
--parent | string | (none) | Parent system name; omit for a root system |
--standard-id | string | (none) | The standard it conforms to, by handle or uuid; omit for a one-off system |
--system-type-id | string | (none) | The system_type it is classified as (what it is for), by name or uuid; omit to leave it unclassified |
Example:
omniglass system createomniglass system createFromTemplate
Section titled “omniglass system createFromTemplate”Start a whole system from a template
omniglass system createFromTemplate [flags]Creates a system from a system template at a location, built to the standard you name or the template’s own (yours of that name when you hold one, else created from its standard template, with any parent it hangs off, in the same write), with a component for each slot filled to its quorum and assigned, and the declared values. A component whose slot you give an address in attach lands attached; the rest land unattached and are listed in to_attach. One transaction: it lands whole or not at all, every piece in your own scope with its own audit row carrying from_template. Gated by system:create, and also needs system:read, system:update, component:create and component:update; endpoint:create when anything attaches, standard:create when a standard is created from its template. A location outside your location scope is a 404, an unknown template or standard a 404, a standard the template cannot staff a 422 naming the slots.
| Flag | Type | Default | Description |
|---|---|---|---|
--attach | string | (none) | Driver inputs per slot, one object per component of the slot in order; an object with an address (host) attaches that component, the rest land unattached |
--label | string | (none) | The system’s label |
--location | string | (none) | The location the system and its components sit in, by name or dotted path |
--name | string | (none) | The system’s name; minted from its type when empty |
--outpost | string | (none) | The outpost the endpoints are placed on; needed when any component attaches |
--standard | string | (none) | A standard of your own to build to, by name; omitted takes the template’s, created from its template in the same write when you hold none of that name |
--template | string | (none) | The system template, by name |
Example:
omniglass system createFromTemplate --template templateomniglass system delete
Section titled “omniglass system delete”Delete a system
omniglass system delete <name>Deletes a system, refused (409) while it still has child systems or is still referenced elsewhere. The 409 lists what is in the way as blockers (kind, id, name, label), naming only rows the caller may read and counting the rest in blockers_hidden. Gated by system:delete; read and delete scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass system delete <name>omniglass system event
Section titled “omniglass system event”Commands for the event resource
omniglass system event list
Section titled “omniglass system event list”List a system’s recent events, members included
omniglass system event list <name> [flags]Returns the system’s own events and its members’, newest first, bounded to the last 24 hours, each row labeled by the owner that raised it, narrowed by an optional event type (key), source and message text (q). A component shared with another system appears in both systems’ lists. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | Only occurrences of this event type, by name |
--q | string | (none) | Only occurrences whose message contains this text, case-insensitively |
--source | string | (none) | Only occurrences from this transport |
Example:
omniglass system event list <name>omniglass system get
Section titled “omniglass system get”Get a system
omniglass system get <name>Fetches a system by name within the caller’s read scope. Out of scope is a non-disclosing 404. Gated by system:read.
Arguments:
Example:
omniglass system get <name>omniglass system health
Section titled “omniglass system health”Read every system’s health
omniglass system healthThe current health for every system in the caller’s read scope, in one call: the bulk counterpart of the per-system health read, carrying the one fact a list’s health column renders and none of the explanation. A console painting a page of systems reads this once instead of resolving every slot, occupant, alarm and transition per row. A system that has never been recomputed reads healthy. Gated by system:read; an empty scope is an empty list, not a 403.
Example:
omniglass system healthomniglass system health list
Section titled “omniglass system health list”Read a system’s health
omniglass system health list <name> [flags]The system’s current health and why: every slot it needs filled, whether it is impaired, what an impaired slot means for the system (impact), and for an impaired slot which assigned components are down plus the alarms that took them down. A slot that belongs to a choice (#626, an exclusive-or group such as an all-in-one alternate versus a component-built one) carries choice and alternate, and active is false when a different alternate answered the choice, meaning this slot’s own impaired figure did not move the health. Members lists every component bound into the system, slotted or not, with its own health, its open alarms and the slot it fills; a member outside every slot is shown and not rolled up, since only slots decide the health (ADR-2459). Reason names the slots behind the health. Transitions are the recorded edges inside since..until (default the last 30 days), one entry per change; since after until is a 400. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--since | string | (none) | Only the transitions recorded at or after this RFC 3339 time. Defaults to 30 days before until, or before now when until is absent |
--until | string | (none) | Only the transitions recorded at or before this RFC 3339 time. Defaults to now; must not be earlier than since |
Example:
omniglass system health list <name>omniglass system list
Section titled “omniglass system list”List systems in scope
omniglass system list [flags]Lists the systems the caller may read, each filtered to its scope subtree. An optional standard filter narrows to the systems built to one standard, and limit caps the page while total counts every match. Gated by system:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit | int | 0 | Cap the page at this many rows; 0 or absent is no cap. total still counts every match. |
--standard | string | (none) | Only systems built to this standard (name or uuid) |
Example:
omniglass system listomniglass system listTags
Section titled “omniglass system listTags”List tags on a system
omniglass system listTags <name>Lists the tags bound directly on a system (not the resolved cascade). Gated by system:read.
Arguments:
Example:
omniglass system listTags <name>omniglass system log
Section titled “omniglass system log”Commands for the log resource
omniglass system log list
Section titled “omniglass system log list”List a system’s members’ recent log lines
omniglass system log list <name> [flags]Returns the members’ raw log lines merged newest first, bounded to the last 24 hours and capped, each naming the component that wrote it, narrowed by an optional severity threshold and source, with the sources the window carries. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--q | string | (none) | Only lines whose message contains this text, case-insensitively |
--severity | string | (none) | Only lines at this severity or more severe (RFC 5424’s eight levels); a line with no severity is left out |
--source | string | (none) | Only lines that arrived on this channel |
Example:
omniglass system log list <name>omniglass system member
Section titled “omniglass system member”Commands for the member resource
omniglass system member delete
Section titled “omniglass system member delete”Take a component out of a system
omniglass system member delete <name> <component>Unbinds this component from the system. Refused with a 409 while it still fills a slot here, since removing it would leave the system staffed by a non-member: unassign the slot first. A component that was not a member is a 404. Gated by system:update, and also needs component:update, because unbinding moves the component’s primary and restamps its label; read and update scopes drive the system’s 404 versus 403 split, and a member outside the component:update scope is a 403 (the system’s member list already names it).
Arguments:
Example:
omniglass system member delete <name> <component>omniglass system member list
Section titled “omniglass system member list”List the components in a system
omniglass system member list <name>The components bound into this system, ordered by name. Membership is what a slot attaches to: every component staffing a slot here is a member, and a member may also carry no slot at all (a power conditioner is in the room without filling a declared slot). Each member carries its own health, so a system’s view can poll its members’ health here rather than reading the whole fleet. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
Example:
omniglass system member list <name>omniglass system member setPrimary
Section titled “omniglass system member setPrimary”Make this the component’s default system
omniglass system member setPrimary <name> <component>Moves the component’s default to this membership. The default answers questions asked without a system in hand; it does not decide anything that names a system explicitly. A component that was not a member here is a 404. Gated by system:update, and also needs component:update, because the default decides which system’s band every cascade on the component reads; read and update scopes drive the system’s 404 versus 403 split, and a member outside the component:update scope is a 403 (the system’s member list already names it).
Arguments:
Example:
omniglass system member setPrimary <name> <component>omniglass system member update
Section titled “omniglass system member update”Put a component in a system
omniglass system member update <name> <component>Binds this component into the system. Idempotent. A component’s first membership becomes its primary with nobody asking, so a component in exactly one system never has to think about the concept; a later membership does not take that default away. Gated by system:update, and also needs component:update, because the binding writes onto the component (its primary, its label, the system band of its cascade): each end resolves in its own tier’s read scope and must be inside its update scope, so an end outside the read scope is a non-disclosing 404 and one readable but not writable a 403.
Arguments:
Example:
omniglass system member update <name> <component>omniglass system metric
Section titled “omniglass system metric”Commands for the metric resource
omniglass system metric list
Section titled “omniglass system metric list”List a system’s effective metrics
omniglass system metric list <name>Every metric the system’s standard declares, resolved to the newest observed or calculated sample across its live instances (instance names the one shown, instance_count counts them) or the contract default until one arrives (is_sampled marks a live series), plus any metric sampled directly on the system (from_contract false). Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
Example:
omniglass system metric list <name>omniglass system metric sample
Section titled “omniglass system metric sample”Commands for the sample resource
omniglass system metric sample list
Section titled “omniglass system metric sample list”Read one metric series’ samples
omniglass system metric sample list <name> <metric> [flags]The samples behind the effective read’s latest value for one series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with count, min, max, avg and last (null when empty), and covered_from, the earliest instant retention leaves data for. A bucket aggregates one instance’s measured samples (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured samples in the window, or a 422 listing them when there are several. Over more than 48 hours, or past the series’ retention, the resolution is raised to whole hours, and resolution_seconds is the width applied. At whole hours a series with hourly trends (an observed one) takes every hour the trend fold has closed from its trend, so the read reaches back as far as the trends are kept, and its open hours from the samples; any other series, or a finer resolution, reads its samples, within their retention (ADR-1566). Gated by system:read; an out-of-scope owner is a non-disclosing 404.
| Flag | Type | Default | Description |
|---|---|---|---|
--hours | int | 0 | The window in hours, counted back from now; 24 when unset |
--instance | string | (none) | The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. Ignored without a resolution |
--limit | int | 0 | The row cap, newest kept; 500 when unset. Ignored when a resolution is set |
--resolution | int | 0 | The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. Over a window of more than 48 hours, or one past the series’ retention, it is raised to whole hours, at least one, and resolution_seconds says the width applied. A window of more than 5000 buckets is refused |
Example:
omniglass system metric sample list <name> <metric>omniglass system move
Section titled “omniglass system move”Move a system
omniglass system move <name> [flags]Relocates and/or re-parents a system: at least one of location or parent is required (422 otherwise). Both follow the three-state convention (an omitted field is unchanged, an explicit empty string clears, a name sets). A reparent is cycle-guarded and scope-injected; clearing parent to root requires an all-scoped move grant (a location-scoped grant reaches a system for read and create only). A separate act from update, and a separately grantable one (system:move), because a placement change is an authorization act, not a label edit: it moves a row out from under one grant’s subtree and under another’s. Recorded under its own audit verb, move, distinct from update. A relocate still recomputes health at both ends (the location it left and the one it arrived at); a reparent does not, since the health rollup runs system -> location, never through the system tree. A taken name at the destination is a 409. A move can RENAME the system: a platform-generated name is scoped to its placement bucket, so a move that changes the bucket re-mints the name and the ordinal in the destination. A move that changes no bucket, including a re-stated placement and a relocate of a parented system (a parent wins over a location), leaves the name alone, and an operator-typed name is never touched. Gated by system:move; read and move scopes drive the 404 versus 403 split, and the destination location resolves within the caller’s location:read scope, because the move restamps the label from it: a destination outside that scope is refused (422).
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | Relocates the system to this location name. An empty string clears its placement. |
--parent | string | (none) | Re-parents the system within the system tree to this system name; cycle-guarded and scope-injected. An empty string makes it a root system (requires an all-scoped move grant). |
Example:
omniglass system move <name>omniglass system previewLabels
Section titled “omniglass system previewLabels”Preview a system label recompute
omniglass system previewLabelsLists exactly the rows a recompute would change, and leaves the fleet as it found it. Use it before :recomputeLabels to see the blast radius of a rule edit. Every generated label in the caller’s read and update scope is re-rendered from its current rules and compared with what is stored; a label an operator typed by hand is never a candidate. Bounded by the same two scopes the apply is, so it never lists a row the apply would then refuse to touch. A location preview also lists the components and systems placed at every location whose label would move, because those go stale the moment it does. Gated by system:update, the same permission the apply needs: a preview is half of an edit rather than a report, and an operator who cannot apply has no use for it.
Example:
omniglass system previewLabelsomniglass system property
Section titled “omniglass system property”Commands for the property resource
omniglass system property delete
Section titled “omniglass system property delete”Clear a property on a system
omniglass system property delete <name> <property>Removes the system’s declared value, so the property falls back to the standard contract’s default (or leaves the effective read entirely when it was off-contract). Clearing a property the system never set is a 404. Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass system property delete <name> <property>omniglass system property list
Section titled “omniglass system property list”List a system’s properties and where each stands
omniglass system property list <name>Every property the system has: each its standard declares, resolved to the system’s own value or the contract default (is_set marks a declared value), each set directly on the system (from_contract false), each a calc rule writes (source_rule), and each only observed or told by a command. Every row but a calculated one carries its reconciliation: want (declared), told (intended), is (observed, worst case across every live instance, naming is_instance) and drift, computed on read. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
Example:
omniglass system property list <name>omniglass system property sample
Section titled “omniglass system property sample”Commands for the sample resource
omniglass system property sample list
Section titled “omniglass system property sample list”Read one property series’ change history
omniglass system property sample list <name> <property> [flags]The change history behind the effective value for one property series, newest first, windowed (hours) and capped (limit, newest kept). With a resolution (seconds) it answers instead with every regular bucket of the window, oldest first, each with the change count, last (the value its own changes end on, null when empty) and held (the value in force at its end), and covered_from, the earliest instant retention leaves data for. Both forms carry carried_in, the value in force when the window opens (the newest measured row of the instance before it, within retention), so a step chart starts on it instead of blank. A bucket aggregates one instance’s measured changes (observed and calculated, never declared or intended): instance names it, and unset it is the one instance with measured changes in the window, or a 422 listing them when there are several. Gated by system:read; an out-of-scope owner is a non-disclosing 404.
| Flag | Type | Default | Description |
|---|---|---|---|
--hours | int | 0 | The window in hours, counted back from now; 24 when unset |
--instance | string | (none) | The instance a bucketed read aggregates. Unset, the one instance with measured samples in the window; when more than one has them the read is refused with a 422 listing them. On a raw read it names only the instance whose carried_in value is returned, the one with a measured row in the window else the one holding a value from before it |
--limit | int | 0 | The row cap, newest kept; 500 when unset. Ignored when a resolution is set |
--resolution | int | 0 | The bucket width in seconds, at most 30 days. Set, the read answers with every regular bucket of the window (buckets) instead of raw rows; unset, the raw samples. A window of more than 5000 buckets is refused |
Example:
omniglass system property sample list <name> <property>omniglass system property update
Section titled “omniglass system property update”Set a property on a system
omniglass system property update <name> <property> [flags]Declares a value for the property on this system, overriding the standard contract’s default. Idempotent: the first set stores the value, a later set replaces it. The property need not be on the contract, but it must exist in the catalog (422 otherwise), and the value must satisfy the property type’s data type and validation (422 otherwise). Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--value | string | (none) | The value to declare, shape given by the property’s data_type |
Example:
omniglass system property update <name> <property> --value <json>omniglass system recomputeLabels
Section titled “omniglass system recomputeLabels”Recompute system labels
omniglass system recomputeLabelsApplies what :previewLabels describes, over the rows in the caller’s read and update scope, and returns exactly what it changed. Idempotent: a second call changes nothing. A label an operator typed by hand is left alone, and clearing that label by hand is how it is handed back to the platform. Recorded as ONE audit row for the operation, naming the rule tier and the affected count, rather than one row per changed entity. Gated by system:update.
Example:
omniglass system recomputeLabelsomniglass system removeTag
Section titled “omniglass system removeTag”Remove a tag value from a system
omniglass system removeTag <name> [flags]Removes a key’s value from a system. Gated by system:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key to remove |
Example:
omniglass system removeTag <name> --key keyomniglass system rename
Section titled “omniglass system rename”Rename a system
omniglass system rename <name> [flags]Moves the system’s name, the address an operator types and every external reference stores. A separate act from an update, and a separately grantable one, because it breaks bookmarks, runbooks, and integration config outside this system; inside it nothing breaks, since every reference holds the uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by system:rename; read and rename scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique within its placement (lowercase letters, digits, hyphens) |
Example:
omniglass system rename <name> --name nameomniglass system renderLabel
Section titled “omniglass system renderLabel”Draft the name and label a system create would store
omniglass system renderLabel [flags]The system tier of :renderLabel on components. Drafts the name and the label a system create would stamp, allocating nothing: the ordinal is read from the placement bucket and the drafted name is posted back as expected_name on the create. A system suppresses the first ordinal in a bucket, so the first board-meeting in a room drafts as board-meeting and the second as board-meeting-2. Omitting name drafts the name the platform would mint and refuses (422) an unclassified system, the same refusal a nameless create gives, since the stem lives on the system_type. Gated by system:create; the parent resolves within the caller’s system:create scope and the location ref within location:read, because a system’s label can carry its location’s. Omitting parent is the parentless bucket, refused (403) without an all-scoped create grant, exactly as the create refuses it.
| Flag | Type | Default | Description |
|---|---|---|---|
--location | string | (none) | The location this system will sit at, by name or uuid. Resolved within the caller’s location:read scope. |
--name | string | (none) | The name the row will carry. Omit it to draft the name and label the platform would produce; supply it to draft the label an operator-named row would carry, which has no ordinal at all. |
--parent | string | (none) | The parent system, by name or uuid. Part of the placement bucket a generated name’s ordinal is read from. Resolved within the caller’s system:create scope. |
--standard-id | string | (none) | The standard this system conforms to, by name or uuid; omit for a one-off system |
--system-type-id | string | (none) | The system_type this system is classified by, by name or uuid. Required to render a generated name’s label: the stem lives on that catalog row. |
Example:
omniglass system renderLabelomniglass system resetName
Section titled “omniglass system resetName”Regenerate a system’s name
omniglass system resetName <name>Hands the pen back to the platform: regenerates the name from the system’s current system_type and placement (the same rule a nameless create applies, the type’s stem plus the lowest free ordinal, bare for the first of that stem in the placement) and marks it name_generated, whether or not it already was. An unclassified system is a 422: the stem lives on the system_type. Gated by system:rename, the same token :rename uses: it changes the name, exactly that permission’s blast radius.
Arguments:
Example:
omniglass system resetName <name>omniglass system setTag
Section titled “omniglass system setTag”Set a tag value on a system
omniglass system setTag <name> [flags]Binds a value for a key on a system. The key must exist and apply to this entity kind. Setting a value is the ordinary entity write, gated by system:update.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--key | string | (none) | The tag key (must exist and apply to this kind) |
--value | string | (none) | The bound value |
Example:
omniglass system setTag <name> --key key --value valueomniglass system slot
Section titled “omniglass system slot”Commands for the slot resource
omniglass system slot assignment
Section titled “omniglass system slot assignment”Commands for the assignment resource
omniglass system slot assignment delete
Section titled “omniglass system slot assignment delete”Unassign a component from a slot
omniglass system slot assignment delete <name> <slot> <component>Takes this component out of the slot, leaving the slot understaffed until another fills it. A component that was not filling the slot is a 404. Gated by system:update, and also needs component:update, as assigning does; read and update scopes drive the system’s 404 versus 403 split, and an occupant outside the component:update scope is a 403 (the slot’s own read already names it).
Arguments:
Example:
omniglass system slot assignment delete <name> <slot> <component>omniglass system slot assignment update
Section titled “omniglass system slot assignment update”Assign a component to a slot
omniglass system slot assignment update <name> <slot> <component>Puts this component in the slot for this system. Refused with a 422 naming both parties when the component is not a typed match: its product’s component_type outside every type the slot accepts, or (if the slot pins products) its product not one of them. A slot with no accepted types takes any type. Idempotent. Gated by system:update, and also needs component:update, because staffing a slot makes the component a member and writes onto it: each end resolves in its own tier’s read scope and must be inside its update scope, so an end outside the read scope is a non-disclosing 404 and one readable but not writable a 403.
Arguments:
Example:
omniglass system slot assignment update <name> <slot> <component>omniglass system slot delete
Section titled “omniglass system slot delete”Withdraw a slot from a system
omniglass system slot delete <name> <slot>Removes a slot declared on this system, and with it every assignment to it. A slot the system does not declare itself is a 404 (a slot inherited from its standard is withdrawn on the standard, not here). Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
Example:
omniglass system slot delete <name> <slot>omniglass system slot list
Section titled “omniglass system slot list”List a system’s effective slots
omniglass system slot list <name>Every slot this system needs filled: those its standard declares (from_standard true) plus those declared directly on it, each with the types it accepts (and products it pins, if any), the components filling it, and how many more it wants before quorum (understaffed). A one-off system shows only its own. Gated by system:read; an out-of-scope system is a non-disclosing 404.
Arguments:
Example:
omniglass system slot list <name>omniglass system slot swapPositions
Section titled “omniglass system slot swapPositions”Exchange two occupants’ positions within a slot
omniglass system slot swapPositions <name> <slot> [flags]Exchanges the positions of whichever components currently hold position and with within this slot: an ordering change only, it does not affect who is assigned or the system’s health. Either position missing an occupant is a 404. Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--position | int | 0 | One of the two positions to exchange |
--with | int | 0 | The other position to exchange with |
Example:
omniglass system slot swapPositions <name> <slot> --position <int> --with <int>omniglass system slot update
Section titled “omniglass system slot update”Declare a slot on a system
omniglass system slot update <name> <slot> [flags]Declares a slot directly on this system (how a one-off system gets slots at all, and how a conforming one adds what its standard does not cover), or revises it in place. Partial by default: the fields present in the body change and the rest of the declaration is left alone. update_mask overrides that, writing exactly the fields it names, which is how a field is cleared, and [”*”] replaces the whole declaration. A name the system’s standard already declares is a 409: a system slot never shadows an inherited one, since a slot name must mean one slot in a system. Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--accepted-types | string | (none) | The component_types a filling component’s product must be classified within (self or a descendant); replaces the accepted set wholesale when written, and an empty set accepts any type. Clearing it means naming accepted_types in update_mask |
--alternate | string | (none) | The choice/alternate this slot joins, addressed as “choice-name/alternate-name” (#626). An empty string detaches the slot, making it unconditional; an unknown choice or alternate is a 422 |
--capacity | int | 0 | The most components the slot will accept; must be at least quorum, and unbounded on first declare. Name capacity in update_mask with no value here to clear it back to unbounded |
--impact | string | (none) | What an impaired slot means for its system; degraded on first declare. The same broken component matters differently depending on the slot it was filling: a dead confidence monitor is not a dead main display |
--label | string | (none) | The slot’s human label; defaults to the slot name on first declare |
--pinned-products | string | (none) | If set, a filling component’s product must be one of these; replaces the pinned set wholesale when written, and an empty set accepts any product of an accepted type. Clearing it means naming pinned_products in update_mask |
--position-labels | string | (none) | Human labels for each position within the slot, by index; replaces the label set wholesale when written. An empty list is not a populated field, so clearing the labels means naming position_labels in update_mask |
--quorum | int | 0 | How many components must fill the slot; one on first declare |
--update-mask | string | (none) | Which fields this write changes (AIP-134). Omit it and the fields present in the body change and nothing else; name a field here and it is written even when the body leaves it empty, which is how a field is CLEARED; send [”*”] for full replacement, where every field the body omits goes back to its default. A field this resource does not patch is a 422 naming it |
Example:
omniglass system slot update <name> <slot>omniglass system update
Section titled “omniglass system update”Update a system
omniglass system update <name> [flags]Patches a system’s label, standard, or system_type. The name is not patchable: renaming is the :rename custom method. Placement is not patchable either: relocating or re-parenting is the :move custom method, gated separately, because a placement change is an authorization act. The standard and system_type fields both follow the three-state convention: an omitted field is unchanged, an explicit empty string clears (a one-off system, an unclassified system), a name sets. A new standard declaring a slot name the system declares itself is a 409 naming the slot, since a slot name must mean one slot in a system. A standard change carries the system’s staffing in the same transaction: each occupant of an inherited slot moves onto the new standard’s slot of the same name when it is still a typed match and the slot has room, and is released, staying a member, otherwise; clearing the standard releases every inherited assignment. Gated by system:update; read and update scopes drive the 404 versus 403 split.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new operator-facing label |
--standard-id | string | (none) | A new standard, by handle or uuid; "" clears it (a one-off system) |
--system-type-id | string | (none) | A new system_type, by name or uuid; "" clears it (an unclassified system) |
Example:
omniglass system update <name>omniglass system-type
Section titled “omniglass system-type”Commands for the system-type resource
omniglass system-type create
Section titled “omniglass system-type create”Create a system type
omniglass system-type create [flags]Creates a custom (non-official) system_type, optionally under a parent and optionally with the label_rule systems of that type get. A root type must carry a stem, since it has no ancestor to inherit one from. An unparseable label_rule is a 422. Gated by system_type:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--abbrev | string | (none) | A compact form of label; omit to inherit the parent’s |
--icon | string | (none) | A glyph key; omit to inherit the parent’s |
--label | string | (none) | What an operator reads in pickers and lists |
--label-rule | string | (none) | The label rule systems of this type get, a Go text/template over the system data map; omit to inherit the nearest ancestor’s. Refused (422) if it does not compile |
--name | string | (none) | The globally unique name |
--parent-id | string | (none) | The parent system_type, by name or uuid; omit for a root type |
--stem | string | (none) | The prefix a generated system name is built from; omit to inherit the parent’s. Lowercase letters, digits, and hyphens. Required for a root type, which has no ancestor to inherit one from. |
Example:
omniglass system-type create --label label --name nameomniglass system-type delete
Section titled “omniglass system-type delete”Delete a system type
omniglass system-type delete <id>Deletes a custom system_type, refused if official (422), still a parent of another system_type (409), or still classifying a system (409). Gated by system_type:delete.
Example:
omniglass system-type delete avomniglass system-type list
Section titled “omniglass system-type list”List system types
omniglass system-type listLists the system_type catalog (the taxonomy of what a system is for: meeting, teaching, signage), ordered alphabetically by label. Each row carries its parent link, so the console reconstructs the tree client-side. Distinct from standard, which is the contract a system is built to. Gated by system_type:read.
Example:
omniglass system-type listomniglass system-type update
Section titled “omniglass system-type update”Update a system type
omniglass system-type update <id> [flags]Patches a custom system_type’s label, stem, icon, abbrev, or label_rule. An unparseable label_rule is a 422 at rule-edit time, never a broken row at create time, and setting one restamps nothing on its own: apply it with /systems:recomputeLabels after seeing the blast radius with :previewLabels. Official types are read-only (422). Gated by system_type:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--abbrev | string | (none) | A new compact form; an empty string clears it, so this type inherits the nearest ancestor’s again |
--icon | string | (none) | A new glyph key; an empty string clears it, so this type inherits the nearest ancestor’s again |
--label | string | (none) | A new operator-facing label |
--label-rule | string | (none) | A new label rule for systems of this type; omit to leave unchanged, "" to clear back to the inherited one. Refused (422) if it does not compile. Editing it restamps nothing on its own: apply it with /systems:recomputeLabels, having seen the blast radius with :previewLabels |
--stem | string | (none) | A new name prefix (lowercase letters, digits, and hyphens); an empty string CLEARS it, so this type inherits the nearest ancestor’s again. A root type has no ancestor to inherit from and is refused (422). |
Example:
omniglass system-type update avomniglass tag
Section titled “omniglass tag”Commands for the tag resource
omniglass tag clearPlatform
Section titled “omniglass tag clearPlatform”Clear a platform tag value
omniglass tag clearPlatform <name>Removes the platform-tier binding for a key. Gated by tag:update (all-scope) and platform:update.
Example:
omniglass tag clearPlatform <name>omniglass tag create
Section titled “omniglass tag create”Mint a tag key
omniglass tag create [flags]Adds a key to the governed vocabulary. The name is normalized (a lowercase identifier); the optional label is what an operator reads instead. Gated by tag:create (all-scope, an admin action).
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-values | string | (none) | The value enum a bound value must belong to; omit for free text |
--applies-to | string | (none) | Entity kinds this key may bind to (component, system, location); omit for universal |
--label | string | (none) | What an operator reads in lists and pickers (Cost Center); omit to fall back to the name |
--name | string | (none) | The normalized name (lowercase letters, digits, and hyphens), unique tenant-wide |
--propagates | bool | false | Whether bindings cascade to descendants; defaults true |
Example:
omniglass tag create --name nameomniglass tag delete
Section titled “omniglass tag delete”Delete a tag key
omniglass tag delete <name>Removes a key from the vocabulary, cascading its bindings. Gated by tag:delete (all-scope).
Example:
omniglass tag delete <name>omniglass tag list
Section titled “omniglass tag list”List tag keys
omniglass tag listLists the governed key vocabulary. Rides the tag:read floor.
Example:
omniglass tag listomniglass tag setPlatform
Section titled “omniglass tag setPlatform”Set a platform tag value
omniglass tag setPlatform <name> [flags]Binds an install-wide default value for a key at the platform tier. Gated by tag:update (all-scope) and platform:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--value | string | (none) | The bound value |
Example:
omniglass tag setPlatform <name> --value valueomniglass tag update
Section titled “omniglass tag update”Update a tag key
omniglass tag update <name> [flags]Replaces a key’s governance fields (applies_to, propagates) and patches its label; the name is fixed. Gated by tag:update (all-scope).
| Flag | Type | Default | Description |
|---|---|---|---|
--allowed-values | string | (none) | The value enum a bound value must belong to; omit for free text |
--applies-to | string | (none) | Entity kinds this key may bind to; omit for universal |
--label | string | (none) | A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone |
--propagates | bool | false | Whether bindings cascade to descendants; defaults true |
Example:
omniglass tag update <name>omniglass tag values
Section titled “omniglass tag values”List the distinct values bound for a key
omniglass tag values <name>Returns the distinct values already bound for a key across the fleet, for value autocomplete on a free-text key (an enum key carries its allowed set on the key itself). Rides the tag:read floor.
Example:
omniglass tag values <name>omniglass task
Section titled “omniglass task”Commands for the task resource
omniglass task get
Section titled “omniglass task get”Get a task
omniglass task get <id>Fetches a task by id. A task whose component is out of the caller’s read scope is a non-disclosing 404. Gated by task:read.
Example:
omniglass task get <id>omniglass task list
Section titled “omniglass task list”List tasks in scope
omniglass task listLists the tasks whose endpoint’s owning component the caller may read (the component cascade). Tasks are derived from endpoints, not authored. Gated by task:read.
Example:
omniglass task listomniglass telemetry
Section titled “omniglass telemetry”Commands for the telemetry resource
omniglass telemetry push
Section titled “omniglass telemetry push”Push telemetry for an owner
omniglass telemetry push [flags]Accepts per-lane observations (metrics, properties, events) and raw log lines for one owner and publishes them onto the ingest lane. Each lane validates against its own catalog: an unregistered name is rejected and reported in the response rather than silently dropped, and a property or event payload violating its type’s schema refuses the batch with a 422. Every key has one writer class, and a push writes only a collected key: a built-in key an outpost writes (a reachability or rung, a probe metric or timing, a held session’s state, collection-failed, an endpoint’s collection telemetry) is an outpost’s own observation and a platform key (health, the webhook receiver’s counts) is the platform’s, each rejected by name on every lane; a key a calc rule outputs is rejected naming the rule. The owner is a component or a system; a system batch carries no log lines (a log line is component-owned), refused with a 422. An observation’s instance is the endpoint it came through: one naming no endpoint on the owner refuses the batch with a 422 naming it and listing the owner’s endpoints, and a system has none, so a system’s observations name no instance. Gated by telemetry:push, whose scope must cover the declared owner on its own tier (one check per batch): the push scope alone is enough to see the owner (no component:read or system:read is needed), an owner outside both the push scope and the caller’s read of that kind is a non-disclosing 404, and one the caller can read but may not push to is a 403.
| Flag | Type | Default | Description |
|---|---|---|---|
--events | string | (none) | Natively caught occurrences, validated against event_type |
--logs | string | (none) | Raw untyped log lines. No catalog gate. Component owners only: a system batch carrying one is refused with a 422 |
--metrics | string | (none) | Numeric observations, validated against metric_type |
--owner | string | (none) | The entity every row in the batch lands under |
--properties | string | (none) | Categorical observations, validated against property_type and each type’s validation schema |
--source | string | (none) | Who observed this batch (recorded as the provenance source on every row) |
--ts | string | (none) | Batch timestamp; a per-item timestamp overrides it |
Example:
omniglass telemetry push --owner <json>omniglass template
Section titled “omniglass template”Commands for the template resource
omniglass template get
Section titled “omniglass template get”Get a template
omniglass template get <template>Reads one template from the catalog by name, whole: its kind and the body that kind carries. An unknown name is a 404. Gated by template:read.
Example:
omniglass template get meeting-roomomniglass template list
Section titled “omniglass template list”List templates
omniglass template list [flags]Lists the template catalog this binary ships, ordered by kind then name, optionally one kind. A template is an example an operator clones: creating from one (POST /standards:createFromTemplate, and the same method on components, systems and locations) writes ordinary rows the operator owns, and nothing points back at the template. Gated by template:read.
| Flag | Type | Default | Description |
|---|---|---|---|
--kind | string | (none) | Only templates of this kind; omitted lists every kind |
Example:
omniglass template listomniglass token
Section titled “omniglass token”Mint an additional bearer token for an existing user (direct DB)
omniglass token <username> [flags]Issues a new bearer credential for an existing user, addressed by username, and prints the token once. The same trusted direct-DB lane as bootstrap: token reissue, break-glass, or a fresh login token for a dev database when the owner already exists. A —description (required) names what the token is for. The token expires after —ttl (default 90 days, hard maximum 365 days); every credential is time-bounded.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | what the token is for (required) |
--ttl | duration | 2160h0m0s | how long the token is valid before it expires (max 365 days) |
omniglass transport
Section titled “omniglass transport”Commands for the transport resource
omniglass transport list
Section titled “omniglass transport list”List the transports the platform speaks
omniglass transport listLists the built-in transports: the wires an endpoint can speak over, a build-time fact of the binary (ADR-0073). Gated by endpoint:read, the surface that consumes it.
Example:
omniglass transport listomniglass unclaimed-source
Section titled “omniglass unclaimed-source”Commands for the unclaimed-source resource
omniglass unclaimed-source list
Section titled “omniglass unclaimed-source list”List the sources no endpoint claims
omniglass unclaimed-source listThe unclaimed-source inbox: each source a listener heard from that no endpoint claims (a webhook post to an unknown or rotated token), with how often, when first and last, and its last message cut to 512 bytes. Bounded at 256 sources per listener, the least recently heard evicted, and aged out after seven days; a source is let go once its messages land on an endpoint. Claim one by creating its endpoint. Gated by outpost:read on an all-scope grant: it is the listener’s own observation, and listeners are fleet-wide as outposts are.
Example:
omniglass unclaimed-source listomniglass user
Section titled “omniglass user”Commands for the user resource
omniglass user archive
Section titled “omniglass user archive”Archive a user
omniglass user archive <id>Soft-deletes a user: it is hidden from the directory, can no longer authenticate, and its rows stay intact, reversibly (restore) until purged. Gated by user:archive (all-scope). The last active owner cannot be archived.
Example:
omniglass user archive <id>omniglass user avatar
Section titled “omniglass user avatar”Commands for the avatar resource
omniglass user avatar list
Section titled “omniglass user avatar list”Get a user’s profile picture
omniglass user avatar list <id>Returns the user’s profile picture as a base64-encoded JPEG. Gated by user:read:admin. A user without a picture is a 404.
Example:
omniglass user avatar list <id>omniglass user create
Section titled “omniglass user create”Create a person
omniglass user create [flags]Creates a person with an optional initial password. Gated by user:create (all-scope). The new user holds no grants; assign roles separately.
| Flag | Type | Default | Description |
|---|---|---|---|
--email | string | (none) | Contact email for the account |
--label | string | (none) | What an operator reads in lists; falls back to the username |
--password | string | (none) | Optional initial password (at least 12 characters, not a common password, not containing the username); the user changes it after signing in |
--username | string | (none) | Unique sign-in name (lowercase letters, digits, and . _ -) |
Example:
omniglass user create --username usernameomniglass user disable
Section titled “omniglass user disable”Disable a user
omniglass user disable <id>Soft-disables a user so it can no longer authenticate; its audit trail is kept. Gated by user:update (all-scope). The last active owner cannot be disabled.
Example:
omniglass user disable <id>omniglass user enable
Section titled “omniglass user enable”Enable a user
omniglass user enable <id>Re-enables a disabled user, restoring its ability to authenticate. Gated by user:update (all-scope).
Example:
omniglass user enable <id>omniglass user get
Section titled “omniglass user get”Get a user
omniglass user get <id>Fetches one user by id with its profile and grants. Gated by user:read:admin.
Example:
omniglass user get <id>omniglass user grant
Section titled “omniglass user grant”Commands for the grant resource
omniglass user grant create
Section titled “omniglass user grant create”Grant a role to a user
omniglass user grant create <id> [flags]Assigns a role at a scope to a user. Gated by user_grant:create (all-scope). Refused (403) when the granted role’s capabilities exceed the granter’s own (no promoting anyone, including yourself, to a higher tier such as owner). A duplicate is 409, an unknown role or bad scope 422.
| Flag | Type | Default | Description |
|---|---|---|---|
--role | string | (none) | A role id (viewer, operator, admin, owner, or a custom role) |
--scope-id | string | (none) | The scope root, the location, system or component the scope kind names, by name, dotted address or uuid (stored as its uuid); omit for the all scope |
--scope-kind | string | (none) | The scope kind; ‘all’ confers the whole fleet (group-as-scope is unbuilt and not offered) |
--scope-op | string | (none) | How the scope root matches the tree: subtree (root + descendants, the default), subtree_excl_root (descendants only for update/delete, root kept for read/create), or self (the root row only). Moot for the all scope. |
Example:
omniglass user grant create <id> --role role --scope-kind scope_kindomniglass user grant delete
Section titled “omniglass user grant delete”Revoke a grant
omniglass user grant delete <id> <grantId>Removes one grant from a user. Gated by user_grant:delete (all-scope). The last owner grant cannot be revoked.
Example:
omniglass user grant delete <id> <grantId>omniglass user identity-link
Section titled “omniglass user identity-link”Commands for the identity-link resource
omniglass user identity-link create
Section titled “omniglass user identity-link create”Link a person to an identity at the provider
omniglass user identity-link create <id> [flags]Links another person to an identity at the identity provider (iss|sub), so they sign in through single sign-on as that person. Email never links. Gated by user:link-identity (all-scope) and the takeover guard a password reset takes: refused on yourself (link from your profile), on an owner (an owner links their own identity), or on a person whose capabilities exceed yours. An identity already linked to anyone is a 409. Audited, the link recording who made it; granting the person owner later deletes it.
| Flag | Type | Default | Description |
|---|---|---|---|
--identifier | string | (none) | The identity at the provider as iss |
Example:
omniglass user identity-link create <id> --identifier identifieromniglass user identity-link delete
Section titled “omniglass user identity-link delete”Unlink a person from an identity at the provider
omniglass user identity-link delete <id> <link>Removes one of another person’s identity links; every session and token they signed in through it ends with it. Gated by user:link-identity (all-scope) and the same takeover guard as linking. Audited.
Example:
omniglass user identity-link delete <id> <link>omniglass user identity-link list
Section titled “omniglass user identity-link list”List a person’s identity links
omniglass user identity-link list <id>Lists the identities at the identity provider a person signs in through (single sign-on), each iss|sub with who made it and when it was last used. Gated by user:read:admin (all-scope), as the user directory is.
Example:
omniglass user identity-link list <id>omniglass user impersonate
Section titled “omniglass user impersonate”Impersonate a user (view-as or act-as)
omniglass user impersonate <id> [flags]Mints a bounded, revocable token to view as (read-only) or act as (full) the target. Gated by user:impersonate (all-scope). Refused on self, on an owner target (owners are un-impersonatable by anyone), when it would grant a capability the caller lacks (the escalation guard), from within an existing impersonation, or to an agent token.
| Flag | Type | Default | Description |
|---|---|---|---|
--duration-minutes | int | 0 | Session lifetime in minutes (default 30, max 1440) |
--mode | string | (none) | view_as is read-only; act_as is full, with mutations attributed to both the real actor and the impersonated user |
Example:
omniglass user impersonate <id> --mode modeomniglass user list
Section titled “omniglass user list”List users
omniglass user list [flags]Lists all users (people and machine users) with their grants. Gated by user:read:admin.
| Flag | Type | Default | Description |
|---|---|---|---|
--include-archived | bool | false | Include archived (soft-deleted) users, hidden by default |
--kind | string | (none) | Optionally filter by user kind |
Example:
omniglass user listomniglass user purge
Section titled “omniglass user purge”Purge a user
omniglass user purge <id>Hard-deletes an archived user and its owned rows (profile, credentials, grants, memberships); the audit trail is preserved. Irreversible. A person a notification target notifies cannot be purged (a 409; the refusal names the target to a caller who reads targets). Gated by user:purge:admin (admin-sensitive, all-scope), and the user must be archived first.
Example:
omniglass user purge <id>omniglass user removeAvatar
Section titled “omniglass user removeAvatar”Remove a user’s profile picture
omniglass user removeAvatar <id>Clears another person’s profile picture. Gated by user:set-avatar (all-scope). Removing an absent picture is a no-op. Audited with the administrator as the actor.
Example:
omniglass user removeAvatar <id>omniglass user resetPassword
Section titled “omniglass user resetPassword”Reset a user’s password
omniglass user resetPassword <id> [flags]Sets a new password for another person (an administrator action; the target’s current password is not required). Gated by user:reset-password (all-scope). The new password must meet the password policy; a violation is a 422. Refused on yourself (change your own password from your profile, which verifies your current one), on an owner (owners cannot be reset by anyone), or when it would exceed the caller’s own capabilities (the takeover guard, shared with impersonation). The action is audited with the administrator as the actor.
| Flag | Type | Default | Description |
|---|---|---|---|
--password | string | (none) | The new password (at least 12 characters, not a common password, not containing the username) |
Example:
omniglass user resetPassword <id> --password passwordomniglass user restore
Section titled “omniglass user restore”Restore a user
omniglass user restore <id>Reverses an archive: the account is restored to active and can authenticate again. Gated by user:archive (all-scope).
Example:
omniglass user restore <id>omniglass user session
Section titled “omniglass user session”Commands for the session resource
omniglass user session list
Section titled “omniglass user session list”List a user’s sessions
omniglass user session list <id>Lists another user’s active bearer credentials (login sessions and API tokens) with their non-secret metadata, newest first, so an administrator can see where an account is signed in and revoke a session that should not be. Gated by user:revoke-session (all-scope). The token secret is never returned, and current is always false (there is no “this request’s own session” when viewing another user).
Example:
omniglass user session list <id>omniglass user session revoke
Section titled “omniglass user session revoke”Revoke a user’s session
omniglass user session revoke <id> <sid>Revokes one of another user’s sessions or tokens by id (an administrator action; the target is immediately signed out of that credential). Gated by user:revoke-session (all-scope). Bounded to the target, so a credential id that is not theirs is a non-disclosing 404, never a cross-user revoke. Refused (403) on an owner (an owner’s sessions cannot be revoked by anyone, the takeover guard shared with impersonation and password reset) or when it would exceed the caller’s own capabilities. Audited with the administrator as the actor.
Example:
omniglass user session revoke <id> <sid>omniglass user session revokeAll
Section titled “omniglass user session revokeAll”Revoke all of a user’s sessions or tokens
omniglass user session revokeAll <id> [flags]Revokes every one of another user’s web-login sessions, or every one of its CLI/API tokens (chosen by purpose), in a single administrator action, returning how many were ended. Gated by user:revoke-session (all-scope). Bounded to the target and never crosses purpose (revoking sessions leaves tokens, and vice versa). Refused (403) on an owner (the takeover guard shared with impersonation and the password reset) or when it would exceed the caller’s own capabilities. Audited with the administrator as the actor.
| Flag | Type | Default | Description |
|---|---|---|---|
--purpose | string | (none) | Which credentials to revoke: all of the user’s web-login sessions, or all its CLI/API tokens |
Example:
omniglass user session revokeAll <id> --purpose purposeomniglass user setAvatar
Section titled “omniglass user setAvatar”Set a user’s profile picture
omniglass user setAvatar <id> [flags]Sets another person’s profile picture (an administrator action). Gated by user:set-avatar (all-scope). The image (JPEG, PNG, or WebP, base64-encoded) is normalized server-side to a 256x256 JPEG; a bad or oversize image is a 422. Audited with the administrator as the actor.
| Flag | Type | Default | Description |
|---|---|---|---|
--image-base64 | string | (none) | The image (JPEG, PNG, or WebP), base64-encoded; normalized server-side to a 256x256 JPEG |
Example:
omniglass user setAvatar <id> --image-base64 image_base64omniglass user update
Section titled “omniglass user update”Update a user
omniglass user update <id> [flags]Updates a person’s label, email, and username. Gated by user:update (all-scope). A username is not an entity name and is patchable here rather than through a :rename method: it is the sign-in identifier, on its own rule, and nothing keys on it.
| Flag | Type | Default | Description |
|---|---|---|---|
--email | string | (none) | Email; empty clears it |
--label | string | (none) | Label; empty clears it |
--username | string | (none) | Sign-in name (lowercase letters, digits, and . _ -); renaming is safe |
Example:
omniglass user update <id>omniglass user-group
Section titled “omniglass user-group”Commands for the user-group resource
omniglass user-group create
Section titled “omniglass user-group create”Create a user group
omniglass user-group create [flags]Creates a user group. Gated by user_group:create (all-scope). A duplicate name is 409.
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | Free-form notes on what the group is for |
--label | string | (none) | What an operator reads in lists |
--name | string | (none) | Unique group name (lowercase letters, digits, and hyphens) |
Example:
omniglass user-group create --name nameomniglass user-group delete
Section titled “omniglass user-group delete”Delete a user group
omniglass user-group delete <group>Removes a group and, by cascade, its memberships and grants. A group a notification target notifies cannot be deleted (a 409): the refusal names the target to a caller who reads targets. Gated by user_group:delete (all-scope).
Example:
omniglass user-group delete night-shiftomniglass user-group get
Section titled “omniglass user-group get”Get a user group
omniglass user-group get <group>One user group, by name or uuid. Gated by user_group:read:admin.
Example:
omniglass user-group get night-shiftomniglass user-group grant
Section titled “omniglass user-group grant”Commands for the grant resource
omniglass user-group grant create
Section titled “omniglass user-group grant create”Grant a role to a group
omniglass user-group grant create <group> [flags]Assigns a role at a scope to a group; its members inherit it. Gated by user_grant:create (all-scope). Refused (403) when the granted role’s capabilities exceed the granter’s own, exactly as for a direct grant. A duplicate is 409, and so is an owner grant on a group an identity provider group mapping feeds (no provider group reaches an owner).
| Flag | Type | Default | Description |
|---|---|---|---|
--role | string | (none) | A role id (viewer, operator, admin, owner, or a custom role) |
--scope-id | string | (none) | The scope root, the location, system or component the scope kind names, by name, dotted address or uuid (stored as its uuid); omit for the all scope |
--scope-kind | string | (none) | The scope kind; ‘all’ confers the whole fleet (group-as-scope is unbuilt and not offered) |
--scope-op | string | (none) | How the scope root matches the tree; moot for the all scope |
Example:
omniglass user-group grant create night-shift --role role --scope-kind scope_kindomniglass user-group grant delete
Section titled “omniglass user-group grant delete”Revoke a group grant
omniglass user-group grant delete <group> <grantId>Removes one grant from a group. Gated by user_grant:delete (all-scope).
Example:
omniglass user-group grant delete night-shift <grantId>omniglass user-group grant list
Section titled “omniglass user-group grant list”List a group’s grants
omniglass user-group grant list <group>The role x scope grants a group confers on its members. Gated by user_group:read:admin.
Example:
omniglass user-group grant list night-shiftomniglass user-group idp-mapping
Section titled “omniglass user-group idp-mapping”Commands for the idp-mapping resource
omniglass user-group idp-mapping create
Section titled “omniglass user-group idp-mapping create”Map an identity provider group to a group
omniglass user-group idp-mapping create <group> [flags]Maps a value of the identity provider’s groups claim to this group, so a person whose token carries it becomes an idp member at their next sign-in and inherits the group’s grants. The issuer defaults to the configured provider’s; with none configured and none given it is a 422. Refused (409) when the group carries an owner grant at any scope, since no provider group may reach an owner, and when the group already maps the value. Gated by user_group:update (all-scope). Under an agent token or the agent ceiling, refused (403) when the group’s grants exceed the caller’s bounded permissions, as adding a member is.
| Flag | Type | Default | Description |
|---|---|---|---|
--claim-value | string | (none) | The value of the identity provider’s groups claim that puts a person in this group |
--issuer | string | (none) | The identity provider’s issuer, exactly as its tokens carry it; omit for the configured provider’s |
Example:
omniglass user-group idp-mapping create night-shift --claim-value claim_valueomniglass user-group idp-mapping delete
Section titled “omniglass user-group idp-mapping delete”Remove an identity provider group mapping
omniglass user-group idp-mapping delete <group> <mappingId>Removes one mapping. When it was the group’s last mapping from its issuer, that issuer’s idp memberships of the group are removed with it; otherwise they are re-judged at each person’s next sign-in or re-check. Local memberships are never touched. Gated by user_group:update (all-scope).
Example:
omniglass user-group idp-mapping delete night-shift <mappingId>omniglass user-group idp-mapping list
Section titled “omniglass user-group idp-mapping list”List a group’s identity provider mappings
omniglass user-group idp-mapping list <group>The identity provider groups that put a person in this group: each a value of the provider’s groups claim, keyed by its issuer. At each single sign-on sign-in, and each re-check refresh whose id_token carries the claim, a person’s idp memberships from that issuer are set to exactly the mapped set. Gated by user_group:read:admin.
Example:
omniglass user-group idp-mapping list night-shiftomniglass user-group list
Section titled “omniglass user-group list”List user groups
omniglass user-group listEvery user group. Gated by user_group:read:admin.
Example:
omniglass user-group listomniglass user-group member
Section titled “omniglass user-group member”Commands for the member resource
omniglass user-group member create
Section titled “omniglass user-group member create”Add a member to a group
omniglass user-group member create <group> [flags]Adds a user to a group; its members inherit the group’s grants. The membership is local: a member an identity provider’s groups brought (idp) becomes local, so it no longer follows the provider. Gated by user_group:update (all-scope). Idempotent. Under an agent token or the agent ceiling, refused (403) when the group’s grants exceed the caller’s bounded permissions, since membership is a grant by another route.
| Flag | Type | Default | Description |
|---|---|---|---|
--user-id | string | (none) | The user to add: a person’s username, a machine user’s name, or its uuid |
Example:
omniglass user-group member create night-shift --user-id user_idomniglass user-group member delete
Section titled “omniglass user-group member delete”Remove a member from a group
omniglass user-group member delete <group> <user>Removes a user from a group; it stops inheriting the group’s grants. An idp membership comes back at the person’s next sign-in or re-check while a mapping still puts them in the group. Gated by user_group:update (all-scope).
Example:
omniglass user-group member delete night-shift aliceomniglass user-group member list
Section titled “omniglass user-group member list”List a group’s members
omniglass user-group member list <group>The users in a group, each with its source: local (an admin added it) or idp (synced from an identity provider’s groups claim through a mapping, with the issuer). Gated by user_group:read:admin.
Example:
omniglass user-group member list night-shiftomniglass user-group rename
Section titled “omniglass user-group rename”Rename a user group
omniglass user-group rename <group> [flags]Moves the group’s name. A separate act from an update, and a separately grantable one, because it breaks the references stored outside this system; inside it nothing breaks, since membership and grants both key on the group’s uuid. A taken name is a 409, an illegal or uuid-shaped one a 422. Gated by user_group:rename (all-scope).
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new unique group name (lowercase letters, digits, hyphens) |
Example:
omniglass user-group rename night-shift --name nameomniglass user-group update
Section titled “omniglass user-group update”Update a user group
omniglass user-group update <group> [flags]Updates a group’s presentational fields. The name is not patchable: renaming is the :rename custom method. Gated by user_group:update (all-scope).
| Flag | Type | Default | Description |
|---|---|---|---|
--description | string | (none) | Description; empty clears it |
--label | string | (none) | Label; empty clears it |
Example:
omniglass user-group update night-shiftomniglass variable
Section titled “omniglass variable”Commands for the variable resource
omniglass variable create
Section titled “omniglass variable create”Create a variable
omniglass variable create [flags]Sets a variable at an owner scope. The value is validated against value_type; the optional label is what an operator reads instead of the name. Gated by variable:create, plus platform:create when owner_kind is platform (the install-wide tier).
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | What an operator reads in lists and pickers (Poll Interval); omit to fall back to the name |
--name | string | (none) | The cascade name (lowercase letters, digits, and hyphens); unique per owner |
--owner | string | (none) | The owning entity’s name; omit for a platform variable |
--owner-kind | string | (none) | Which tier owns this variable |
--value | string | (none) | The value, validated against value_type |
--value-type | string | (none) | The declared value type |
Example:
omniglass variable create --name name --owner-kind owner_kind --value <json> --value-type value_typeomniglass variable delete
Section titled “omniglass variable delete”Delete a variable
omniglass variable delete <variable>Removes a variable, by name or uuid. Gated by variable:delete, plus platform:delete when the variable sits at the platform tier; read and delete scopes on the owner drive the 404 versus 403 split.
Arguments:
Example:
omniglass variable delete poll-intervalomniglass variable list
Section titled “omniglass variable list”List variables (admin directory)
omniglass variable listLists every variable. Requires an all-scope read. Gated by variable:read.
Example:
omniglass variable listomniglass variable update
Section titled “omniglass variable update”Update a variable
omniglass variable update <variable> [flags]Replaces a variable’s value (validated against its fixed value_type) and patches its label; either may be omitted, and an empty label clears it. Name, type, and owner are fixed at creation. Gated by variable:update, plus platform:update when the variable sits at the platform tier.
Arguments:
| Flag | Type | Default | Description |
|---|---|---|---|
--label | string | (none) | A new label; an empty string clears it, and the surface falls back to the name. Omit to leave it alone |
--value | string | (none) | The new value, validated against the fixed value_type; omit to leave it |
Example:
omniglass variable update poll-intervalomniglass vendor
Section titled “omniglass vendor”Commands for the vendor resource
omniglass vendor create
Section titled “omniglass vendor create”Create a vendor
omniglass vendor create [flags]Creates a custom (non-official) vendor. Gated by vendor:create.
| Flag | Type | Default | Description |
|---|---|---|---|
--icon | string | (none) | A glyph key, e.g. boreal-logo |
--kind | string | (none) | The role the organization plays |
--label | string | (none) | What an operator reads in pickers and lists |
--name | string | (none) | The globally unique name; renameable |
--support-phone | string | (none) | The vendor’s support line |
--website | string | (none) | The vendor’s website (http or https) |
Example:
omniglass vendor create --label label --name nameomniglass vendor delete
Section titled “omniglass vendor delete”Delete a vendor
omniglass vendor delete <id>Deletes a custom vendor, refused if official (422). Gated by vendor:delete.
Example:
omniglass vendor delete borealomniglass vendor get
Section titled “omniglass vendor get”Get a vendor
omniglass vendor get <id>Fetches a vendor by id. Gated by vendor:read.
Example:
omniglass vendor get borealomniglass vendor list
Section titled “omniglass vendor list”List vendors
omniglass vendor listLists the vendor catalog, ordered alphabetically by label. Populates the vendor picker on the product form. Gated by vendor:read.
Example:
omniglass vendor listomniglass vendor rename
Section titled “omniglass vendor rename”Rename a vendor
omniglass vendor rename <id> [flags]Moves a custom vendor’s name, the handle an operator types, addressed by its current name or its uuid. The uuid does not change, so every reference inside the platform still resolves and now reads the new name; a script or a bookmark that typed the old one stops resolving, which is why the rename is its own act and its own permission rather than a patch field. A label rendered from the name is not restamped (the recompute verb applies that). An official vendor keeps its shipped name (422), since the boot seed owns it by name; a taken name is a 409; an illegal or uuid-shaped name is a 422. Audited as rename. Gated by vendor:rename.
| Flag | Type | Default | Description |
|---|---|---|---|
--name | string | (none) | The new name, unique in the catalog (lowercase letters, digits, hyphens; never a uuid) |
Example:
omniglass vendor rename <id> --name nameomniglass vendor update
Section titled “omniglass vendor update”Update a vendor
omniglass vendor update <id> [flags]Patches a custom vendor’s label, kind, icon, support_phone, or website. Official vendors are read-only (422). Gated by vendor:update.
| Flag | Type | Default | Description |
|---|---|---|---|
--icon | string | (none) | A new glyph key |
--kind | string | (none) | A new organization role |
--label | string | (none) | A new operator-facing label |
--support-phone | string | (none) | A new support line |
--website | string | (none) | A new website (http or https) |
Example:
omniglass vendor update borealomniglass view
Section titled “omniglass view”Commands for the view resource
omniglass view fleet
Section titled “omniglass view fleet”Commands for the fleet resource
omniglass view fleet list
Section titled “omniglass view fleet list”Read the whole in-scope fleet in one call
omniglass view fleet listReturns every in-scope location (flat, with parent and health), every in-scope system (with location and health), and one dot per component in each system. A dot carries the component id, its health, and the primary/shared flags, not a full component row. The open_alarms count is the alarms open on the components the caller may read. Each tier is scoped on its own read permission: a caller who can read locations but not components gets locations with empty systems, and a caller with no scope gets an empty result, not an error. Gated by location:read.
Example:
omniglass view fleet listomniglass view platform
Section titled “omniglass view platform”Commands for the platform resource
omniglass view platform list
Section titled “omniglass view platform list”Read Omniglass’s own health in one call
omniglass view platform listReturns the read behind the Platform health page: the server clock (read_at), whether this is a lab, the platform system and its health, each server’s running build, start time and panels (Requests, Ingest, Queues and Retention: each key’s catalog facts and its latest sample per instance, a ranked key cut to the ten highest of its newest window in the database, and the open alarms on the server component with the key each one’s rule samples), the outpost table’s column groups with each key’s catalog facts, and one row per outpost with its last heartbeat, its platform component’s current figure per key (a gauge’s latest sample, a window count only while its window is the newest) and its loss over its own hops, and the pipeline: each hop an item crosses, in order, with its in, out and loss per kind and per component, newest window and last hour, and the end to end. The rows need a fleet-wide outpost:read, so a location-scoped holder is refused rather than shown an empty table. The platform components are unplaced, so the figures, health and servers (with their panels) need a fleet-wide component:read and the system a fleet-wide system:read; short of that each (the pipeline and the outpost loss with them) is left out, never zeroed. Gated by outpost:read.
Example:
omniglass view platform listomniglass view platform simulation
Section titled “omniglass view platform simulation”Commands for the simulation resource
omniglass view platform simulation list
Section titled “omniglass view platform simulation list”Read what each simulator saw against what the platform collected
omniglass view platform simulation listReturns the read behind the Platform health page’s simulation section: one row per outpost with a connected simulator, read over a sliding window the server brackets each minute by default (bracket_seconds). Each gap is a loss ratio (count over what went into the hop, 0 healthy, null when nothing did), its masking term and how to read it: impaired under an applied impairment, restarted while the window holds a restart or a change to the fleet the simulator serves, otherwise loss. Beside them, the receipts counted for the window, each protocol’s received and answered counts, service-time quantiles and in-flight high water, and each simulated component’s requests. An outpost reads warming up until the server holds a full window. The devices are unplaced simulator state, so the read needs a fleet-wide component:read; short of that it answers not found. Gated by simulation:read.
Example:
omniglass view platform simulation listomniglass view run
Section titled “omniglass view run”Read the history of one or more view bindings
omniglass view run [flags]Reads each binding’s history from one snapshot and answers the tail cursor it was taken at (ADR-1830). A binding names a primitive (metric, property, event or log), an entity selector (literal refs, or a kind and a filter), the keys, and a range (from and to, or window_seconds back from now). A metric or property binding answers one series per resolved entity, key and instance: its raw points, or with step_seconds every bucket of an epoch-aligned grid (metric buckets carry count, min, max, avg and last; property buckets count, last and held), the older hours from the hourly trends when an hour-multiple step reaches past the raw retention. An event or log binding answers a page of rows, newest first, and a next_page. /views:watch from the cursor carries exactly the rows the history does not. Gated by view:read; each binding also needs
| Flag | Type | Default | Description |
|---|---|---|---|
--bindings | string | (none) | The bindings read, all from one snapshot |
Example:
omniglass view run --bindings <json>omniglass view watch
Section titled “omniglass view watch”Follow view bindings live over one SSE stream
omniglass view watch [flags]Streams the rows that land for every binding, and a changed notice for every topic a write moved, as Server-Sent Events, one connection for all of them (ADR-1830, ADR-2731). Each binding resumes after its own cursor (the /views:run result’s), so history and live rows meet with no gap and no duplicate. A rows event carries each binding’s matching rows and has the cursor after them as its id; a mark event advances that position when nothing matched; a reconnecting EventSource sends it back as Last-Event-ID and every binding resumes from it or its own cursor, whichever is later. A reset event names bindings whose cursor the tail no longer holds (too old, or from before a server restart), and the stream ends: the client re-runs their history and reconnects. The tail is the ingest landing point of this server, not a poll; rows a calc or rule derives are not on it. Gated by view:read, with each binding’s
| Flag | Type | Default | Description |
|---|---|---|---|
--bindings | string | (none) | The bindings followed, as a JSON array: each the body of a /views:run binding plus its cursor (the result’s cursor it resumes after; unset follows from now). Give bindings, topics, or both |
--duration-seconds | int | 0 | Ends the stream after this many seconds, for a script or the CLI reading a bounded tail. Unset, or past it, the stream ends at its 900 second lifetime, and the client reconnects from its position |
--topics | string | (none) | The entities whose changes the stream names, comma separated, each kind:ref (component or system, by name, uuid or dotted address; at most 32). A changed event says one moved: refetch its route. Give bindings, topics, or both |
--topics-cursor | string | (none) | The position the topics resume after: the last event id the client received. Unset, Last-Event-ID; unset too, the topics follow from now |
Example:
omniglass view watchomniglass webhook
Section titled “omniglass webhook”Commands for the webhook resource
omniglass webhook receive
Section titled “omniglass webhook receive”Receive a webhook post for an endpoint
omniglass webhook receive <token>The webhook transport’s listener (#1024): a component or a cloud service posts here, to the URL its webhook endpoint was given. The token names one endpoint; the scheme its driver declares authenticates the post (an hmac signature over a signed timestamp, a token, basic, or none, which reads unsigned); a signed timestamp outside five minutes is refused, and a declared delivery id lands once. The driver’s listeners map the body (json, xml, form or text) onto any lane, and the post also lands as a log line unless its listener says otherwise. Public by necessity: the sender is not a user, and the endpoint’s scheme is the authentication. Answers 202 once the post is published, 401 for a refused scheme (saying nothing of which part failed), 404 for an unknown or rotated token (identical either way), 413 past 1 MiB, 429 with Retry-After past a rate limit.
Example:
omniglass webhook receive <token>omniglass webhook verify
Section titled “omniglass webhook verify”Answer a webhook sender’s verification of its URL
omniglass webhook verify <token>A sender checking its URL before it posts (#1024): an unknown or rotated token is the receiver’s identical 404; a known one answers 200, echoing the query parameter its driver declares as the challenge (text, bounded), and 204 when it declares none. Public by necessity, as the receiver is.
Example:
omniglass webhook verify <token>