Skip to main content
These examples use the one-shot commands, which print and exit. They follow the demo organization, Acme Payments, where payments-api and orders-api run in prod-us-east-1.

Start the day

You get the open critical and high incidents, what needs you, the Tasks waiting and your environments. Then pick up your own work:

Ask about something in front of you

Pipe logs, a diff or a manifest straight to Rubix:
The CLI prints rubix chat -s <id> after the answer. Run it to carry on in chat.

Look at one incident

rubix incident shows what was detected, the RCA, the Tasks and the activity. To act on it, open it in Browse with rubix browse INC-12.

Make an alias

Use JSON in your own scripts

Every list and record takes --json. Pick out what you need with jq:
A list prints { "total": …, "items": [ … ] }, and each item has its code, title, state and facts. A record prints its fields, its link and its sections.
Check the exit code in case Rubix stops for you. rubix -p exits with 2 when Rubix needs an approval or asked a question, and prints the chat to open.
The CLI signs in as you, so every command runs with your access and is recorded under your name. Run it where you’d sign in yourself, not on a shared machine.

Commands

Every command and option.

Chat prompts

More questions worth asking.