Massdriver Constellation Reference
This feature is alpha. Names, fields, and behavior can change or be removed at any time without notice.
Commandโ
mass dashboard [flags]
Flagsโ
| Flag | Default | What it does |
|---|---|---|
--env | The environment of the most recent deployment | The environment to center on, by id |
--depth | 1 | How many hops from the focus to read |
--refresh | 30s | How often to read the status, deployments, and alarms of the instances in view again, unless every environment in view streams. 0 reads them again only when the audit log shows a change. |
--events | 5s | How often to read new audit log events. 0 turns the ticker off. |
--stash | 3s | How often to read the stash when it cannot be streamed: with a service account, while a stream reconnects, or with more than 20 environments in view. 0 reads it with each refresh. |
--watch | Off | Jump to any alarm that starts firing in view, and send a desktop notification |
--theme | constellation | How the map is drawn: constellation, metro, radar, or plain |
--palette | night | Colors and backdrop: night, rain, or blueprint |
--flashes | emoji | What rises over an environment where something happens: emoji, words, or off. See Flashes. |
--render | braille | How the map's dots are drawn: braille dots, or solid blocks for terminals that draw block characters themselves, such as Ghostty |
--read-only | Off | Turn off approving, rejecting, and deploying |
--playback | None | Replay an incident recording written with w, offline. Takes the path to the .json file. |
--tutorial | Off | Walk through what the map shows, offline, on a made-up organization. Needs no profile. |
--keys | ~/.config/massdriver/dashboard.yaml | A key bindings file. See Key bindings. |
--profile | The active profile | The configuration profile to sign in with |
With --playback, only --theme, --palette, and --render apply. A playback reads nothing from Massdriver and is always read-only.
With --tutorial, --palette, --render, and --flashes apply. --theme, --watch, --read-only, --env, --depth, and --playback cannot be combined with it, and the command stops with an error if you pass one.
Keysโ
The key line at the bottom shows only the keys that do something where you are. ? lists every key.
Everywhereโ
| Key | What it does |
|---|---|
1 to 5 | Switch tabs: Constellation, Runtimes, Alarms, Upgrades, Deployments |
โ โ โ โ, or h j k l | Move the selection |
tab, shift+tab | Step through the list |
o | Open the selection in the Massdriver web app: the environment on the map, the runtime on Runtimes, and the instance on Alarms, Upgrades, and Deployments |
w | Open the write-up of an incident: the one behind the selected alarm or environment, or else the most recent |
r | Read the organization again now |
? | Show or hide the help for the tab, with every key |
esc | Clear the search, close the help, unpick the picked instance, or put away an incident banner. With logs open, it closes only the logs. |
q, ctrl+c | Quit |
Constellationโ
| Key | What it does |
|---|---|
enter | Move the focus to the selection now |
/ | Find an environment, in view or anywhere in the organization |
f | Follow the selected environment's deployment logs: the one running, or else the most recent. f again closes them. |
n, N | Pick the next or previous instance in the side panel |
y | Approve the picked instance's deployment awaiting approval |
d | Deploy the picked instance again with its current configuration |
t | Replay the audit log |
e | Save the map as an SVG in the current directory |
b a c g s | Toggles. Each shows all five on the key line for a few seconds. See Reading the map. |
v | The next theme |
p | The next palette |
Logsโ
While you follow a deployment's logs with f, on the map or the Deployments tab:
| Key | What it does |
|---|---|
pgup, ctrl+u | Back a page |
pgdown, ctrl+d | Forward a page |
shift+โ, shift+โ | Back or forward a line |
home | Show the logs from the first line |
end, G | Go to the newest line and follow it again |
f, esc | Close the logs, and nothing else |
While you are scrolled back, the heading shows โ N lines back ยท end follows.
Write-upโ
Opened by w. While reading:
| Key | What it does |
|---|---|
โ โ, j k, pgup, pgdown | Scroll |
g, home | Go to the top |
G, end | Go to the bottom |
e | Edit the markdown |
ctrl+s | Save the .md and .json files, replacing any saved before |
q, esc | Close. With unsaved changes, asks first. |
While editing:
| Key | What it does |
|---|---|
| Any text | Edit the markdown |
ctrl+s | Save |
esc | Go back to reading the rendered write-up |
When closing with unsaved changes, the heading asks discard changes? y/n. y discards them, and any other key keeps them. โ unsaved shows in the heading while changes are not saved. Opening the same incident again before you quit shows the text last saved.
Tutorialโ
With --tutorial:
| Key | What it does |
|---|---|
โ, space, enter | Next step. After the last step, explore the made-up organization with every other key. |
โ | Previous step |
q, esc | Quit |
Searchโ
| Key | What it does |
|---|---|
| Any text | Select the first environment in view that matches |
backspace | Delete a character |
enter | Move the focus to the match, or search the whole organization when nothing in view matches |
esc | Cancel the search and go back to the earlier selection |
Replayโ
| Key | What it does |
|---|---|
โ โ | Choose how far back, from 5 minutes to 24 hours |
enter, space | Start the replay |
esc | Cancel before it starts |
space | Pause or resume. At the end, start over. |
[ ] | Slower or faster, from 1 to 16 events a step |
t | Stop |
A replay reads up to the newest 1,000 events in its window. When the window holds more, the ticker says newest 1000 only.
space, [, and ] also control a --playback replay.
Runtimesโ
| Key | What it does |
|---|---|
โ โ | Choose a runtime |
p m M | Show what a patch, minor, or major release would leave behind |
0 | Show the runtime as it is |
o | Open the runtime in the web app |
Alarms and Upgradesโ
| Key | What it does |
|---|---|
โ โ | Choose a row |
enter | Show it on the map, with its blast radius |
o | Open its instance in the web app |
w | Open the write-up of the selected alarm's incident (Alarms only) |
Deploymentsโ
| Key | What it does |
|---|---|
โ โ | Choose a deployment |
enter | Show its environment on the map, with its blast radius |
o | Open its instance in the web app |
f | Follow its logs across the whole screen. f or esc closes them. |
c | Show its configuration: the message, the bundle version, and the params it changes since the instance's last completed provision, with secrets masked |
y | Approve a deployment awaiting approval |
x | Reject a deployment awaiting approval, with an optional reason |
Confirmation boxโ
Opened by y and d on the map and y on the Deployments tab. It names the instance, its environment, and how many environments and instances depend on it downstream.
| Key | What it does |
|---|---|
y, enter | Go ahead |
c | Show the configuration of the deployment awaiting approval (approve only). esc comes back to the box. |
| Any other key | Cancel |
Rejection boxโ
Opened by x on the Deployments tab.
| Key | What it does |
|---|---|
| Any text | Type a reason, up to 200 characters. It is kept in the deployment's stash under review/rejection. |
backspace | Delete a character |
enter | Reject |
esc | Cancel |
Configuration boxโ
Opened by c on the Deployments tab or in the confirmation box.
| Key | What it does |
|---|---|
โ โ, or j k | Scroll a line |
space, pgdown, f | Scroll down a page |
pgup, b | Scroll up a page |
g, home | Go to the top |
G, end | Go to the bottom |
esc, c, q | Close |
Key bindingsโ
The keys above are the defaults. To change them, list actions and their keys under keys in ~/.config/massdriver/dashboard.yaml ($XDG_CONFIG_HOME/massdriver/dashboard.yaml when XDG_CONFIG_HOME is set), or in the file you name with --keys:
keys:
approve: [y]
follow_logs: [f, L]
quit: [q, ctrl+c]
An action's keys replace its defaults everywhere it works, so rebinding one of these changes more than one place: quit, left, right, select, follow_logs, approve, config, cancel, submit, scroll_up, scroll_down, page_up, page_down, top, bottom, close, save, and force_quit. A single key needs no list, and an empty list turns the action off. ctrl+c always quits, or cancels a rejection, whatever the file says, and cannot be bound to anything else. Keys are named as space, enter, esc, tab, shift+tab, backspace, up, down, left, right, shift+up, pgup, pgdown, home, end, f1 through f20, ctrl+ or alt+ and a key, or a single character; quote punctuation YAML reads as its own, such as "?", "[", and "]". mass dashboard will not start if the file names an action or key it does not know, if it is not valid YAML, or if one key would do two things in the same place. The search box, the rejection reason, and the write-up editor take any character you type, so their actions cannot be bound to one; a named key or an alt+ key works there.
| Action | Where | Default keys |
|---|---|---|
quit | any tab; replay picker; tutorial | q ctrl+c; ctrl+c q; q esc ctrl+c |
constellation, runtimes, alarms, upgrades, deployments | any tab | 1, 2, 3, 4, 5 |
up, down | any tab | up k, down j |
left, right | any tab; replay picker | left h, right l |
next, prev | any tab | tab, shift+tab |
select | any tab; replay picker | enter; enter space |
reload | any tab | r |
open | any tab | o |
write_up | any tab | w |
help | any tab | ? |
dismiss | any tab | esc |
find | map | / |
follow_logs | map; Deployments | f |
pick_next, pick_prev | map | n, N |
approve | map; Deployments | y |
deploy | map | d |
replay | map | t |
theme | map | v |
palette | map | p |
export | map | e |
toggle_blast, toggle_apps, toggle_cost, toggle_projects, toggle_stack | map | b, a, c, g, s |
pause, slower, faster | replay | space, [, ] |
bump_none, bump_patch, bump_minor, bump_major | Runtimes | 0, p, m, M |
config | Deployments; approval | c |
reject | Deployments | x |
logs_page_up, logs_page_down | logs | pgup ctrl+u, pgdown ctrl+d |
logs_up, logs_down | logs | shift+up, shift+down |
logs_top, logs_bottom | logs | home, end G |
confirm | approval and deploy | y enter |
submit | rejection reason; search | enter |
cancel | replay picker; rejection reason; search | esc t; esc ctrl+c; esc |
scroll_up, scroll_down | configuration; write-up | up k, down j |
page_up, page_down | configuration; write-up | pgup b, pgdown space f |
half_page_up, half_page_down | write-up | u ctrl+u, d ctrl+d |
top, bottom | configuration; write-up | home g, end G |
close | configuration; write-up | esc c q; q esc |
edit | write-up | e |
save | write-up and its editor | ctrl+s |
preview | write-up editor | esc |
discard | unsaved write-up | y |
force_quit | configuration; write-up and its editor | ctrl+c |
forward, backward | tutorial | right space enter, left |
Filesโ
| Key | File | Name |
|---|---|---|
ctrl+s in a write-up | Incident write-up, in markdown | incident-<instance>-<alarm>-<YYYYMMDD-HHMM>.md |
ctrl+s in a write-up | Incident recording, for --playback | incident-<instance>-<alarm>-<YYYYMMDD-HHMM>.json |
e on the map | The map, as an SVG | constellation-<organization>-<YYYYMMDD-HHMM>.svg |
Every file goes in the current directory. Incident files are named for the minute the incident started, in UTC, only you can read them, and saving again replaces them. The SVG is named for the minute you saved it.
Output to a file or a pipeโ
When the output is not a terminal, mass dashboard prints three tables instead of drawing the screen: the environments in view, the firing alarms with how much is downstream of each, and the runtimes with how many of their instances run the latest version. --env and --depth choose what is in view.
Large organizationsโ
Massdriver Constellation reads the whole map when it starts, when you refocus or search, when you press r, after you approve or deploy, and when the audit log shows an instance or a connection added, removed, or moved in view, or a remote reference or an environment default set. Between those, --refresh reads only the status, deployments, and alarms of the instances already in view, and skips even that while every environment in view streams and the audit log is followed. A deployment or an alarm in the audit log reads the status at once.
Massdriver Constellation reads one neighborhood at a time, so the size of your organization does not change how much it reads. What it reads grows with --depth and with how many environments share resources with the focus. Search reads the list of environment ids and names once, the first time a search finds nothing in view. With more than 20 environments in view, the stash is read every --stash interval rather than streamed.
Troubleshootingโ
| What you see | Why |
|---|---|
| Notes and pinned widgets are missing | The profile signs in as a service account. Use a profile with your personal access token. |
| Stash changes and logs arrive a few seconds late | The profile signs in as a service account, so the stash is read every --stash interval and logs every 2 seconds. Use a profile with your personal access token to stream them. |
| An environment shows a ๐ญ | It is past --depth. Select it, or raise --depth. |
| A new fork does not show | Forks are not read until the map is. Press r, or refocus. |
mass dashboard will not start and names an action or a key | The key bindings file has an action or key it does not know, is not valid YAML, or binds one key to two things in the same place. |
| An environment shows as no access | You cannot view its project. |
A link says stale | Its traffic has not been reported for 10 minutes. |
| A stash key changes but nothing shows on the ticker or the map | No widget draws that key. Only well-known md/v1/ keys and keys a widget you pinned reads are shown. |
| No widgets show | Nothing in view has a well-known md/ key. See Well-known keys. |
y, x, or d says it is read-only | It was started with --read-only or --playback. Start it again without them. |
y says to pick an instance first | Press n to pick an instance in the side panel. |
| Approving or rejecting says only a proposed deployment can be | The deployment is no longer awaiting approval. |
| A rejection says the reason was not saved | The deployment was rejected, but its stash could not be written. |
| Links in the side panel are not clickable | The terminal does not support hyperlinks. iTerm2, Ghostty, WezTerm, and kitty do. |
No desktop notification with --watch | The terminal does not support OSC 9 notifications. The bell still rings. |