Skip to main content

Massdriver Constellation Reference

Alpha

This feature is alpha. Names, fields, and behavior can change or be removed at any time without notice.

Commandโ€‹

mass dashboard [flags]

Flagsโ€‹

FlagDefaultWhat it does
--envThe environment of the most recent deploymentThe environment to center on, by id
--depth1How many hops from the focus to read
--refresh30sHow 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.
--events5sHow often to read new audit log events. 0 turns the ticker off.
--stash3sHow 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.
--watchOffJump to any alarm that starts firing in view, and send a desktop notification
--themeconstellationHow the map is drawn: constellation, metro, radar, or plain
--palettenightColors and backdrop: night, rain, or blueprint
--flashesemojiWhat rises over an environment where something happens: emoji, words, or off. See Flashes.
--renderbrailleHow the map's dots are drawn: braille dots, or solid blocks for terminals that draw block characters themselves, such as Ghostty
--read-onlyOffTurn off approving, rejecting, and deploying
--playbackNoneReplay an incident recording written with w, offline. Takes the path to the .json file.
--tutorialOffWalk through what the map shows, offline, on a made-up organization. Needs no profile.
--keys~/.config/massdriver/dashboard.yamlA key bindings file. See Key bindings.
--profileThe active profileThe 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โ€‹

KeyWhat it does
1 to 5Switch tabs: Constellation, Runtimes, Alarms, Upgrades, Deployments
โ† โ†‘ โ†“ โ†’, or h j k lMove the selection
tab, shift+tabStep through the list
oOpen the selection in the Massdriver web app: the environment on the map, the runtime on Runtimes, and the instance on Alarms, Upgrades, and Deployments
wOpen the write-up of an incident: the one behind the selected alarm or environment, or else the most recent
rRead the organization again now
?Show or hide the help for the tab, with every key
escClear 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+cQuit

Constellationโ€‹

KeyWhat it does
enterMove the focus to the selection now
/Find an environment, in view or anywhere in the organization
fFollow the selected environment's deployment logs: the one running, or else the most recent. f again closes them.
n, NPick the next or previous instance in the side panel
yApprove the picked instance's deployment awaiting approval
dDeploy the picked instance again with its current configuration
tReplay the audit log
eSave the map as an SVG in the current directory
b a c g sToggles. Each shows all five on the key line for a few seconds. See Reading the map.
vThe next theme
pThe next palette

Logsโ€‹

While you follow a deployment's logs with f, on the map or the Deployments tab:

KeyWhat it does
pgup, ctrl+uBack a page
pgdown, ctrl+dForward a page
shift+โ†‘, shift+โ†“Back or forward a line
homeShow the logs from the first line
end, GGo to the newest line and follow it again
f, escClose 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:

KeyWhat it does
โ†‘ โ†“, j k, pgup, pgdownScroll
g, homeGo to the top
G, endGo to the bottom
eEdit the markdown
ctrl+sSave the .md and .json files, replacing any saved before
q, escClose. With unsaved changes, asks first.

While editing:

KeyWhat it does
Any textEdit the markdown
ctrl+sSave
escGo 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:

KeyWhat it does
โ†’, space, enterNext step. After the last step, explore the made-up organization with every other key.
โ†Previous step
q, escQuit
KeyWhat it does
Any textSelect the first environment in view that matches
backspaceDelete a character
enterMove the focus to the match, or search the whole organization when nothing in view matches
escCancel the search and go back to the earlier selection

Replayโ€‹

KeyWhat it does
โ† โ†’Choose how far back, from 5 minutes to 24 hours
enter, spaceStart the replay
escCancel before it starts
spacePause or resume. At the end, start over.
[ ]Slower or faster, from 1 to 16 events a step
tStop

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โ€‹

KeyWhat it does
โ†‘ โ†“Choose a runtime
p m MShow what a patch, minor, or major release would leave behind
0Show the runtime as it is
oOpen the runtime in the web app

Alarms and Upgradesโ€‹

KeyWhat it does
โ†‘ โ†“Choose a row
enterShow it on the map, with its blast radius
oOpen its instance in the web app
wOpen the write-up of the selected alarm's incident (Alarms only)

Deploymentsโ€‹

KeyWhat it does
โ†‘ โ†“Choose a deployment
enterShow its environment on the map, with its blast radius
oOpen its instance in the web app
fFollow its logs across the whole screen. f or esc closes them.
cShow its configuration: the message, the bundle version, and the params it changes since the instance's last completed provision, with secrets masked
yApprove a deployment awaiting approval
xReject 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.

KeyWhat it does
y, enterGo ahead
cShow the configuration of the deployment awaiting approval (approve only). esc comes back to the box.
Any other keyCancel

Rejection boxโ€‹

Opened by x on the Deployments tab.

KeyWhat it does
Any textType a reason, up to 200 characters. It is kept in the deployment's stash under review/rejection.
backspaceDelete a character
enterReject
escCancel

Configuration boxโ€‹

Opened by c on the Deployments tab or in the confirmation box.

KeyWhat it does
โ†‘ โ†“, or j kScroll a line
space, pgdown, fScroll down a page
pgup, bScroll up a page
g, homeGo to the top
G, endGo to the bottom
esc, c, qClose

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.

ActionWhereDefault keys
quitany tab; replay picker; tutorialq ctrl+c; ctrl+c q; q esc ctrl+c
constellation, runtimes, alarms, upgrades, deploymentsany tab1, 2, 3, 4, 5
up, downany tabup k, down j
left, rightany tab; replay pickerleft h, right l
next, prevany tabtab, shift+tab
selectany tab; replay pickerenter; enter space
reloadany tabr
openany tabo
write_upany tabw
helpany tab?
dismissany tabesc
findmap/
follow_logsmap; Deploymentsf
pick_next, pick_prevmapn, N
approvemap; Deploymentsy
deploymapd
replaymapt
thememapv
palettemapp
exportmape
toggle_blast, toggle_apps, toggle_cost, toggle_projects, toggle_stackmapb, a, c, g, s
pause, slower, fasterreplayspace, [, ]
bump_none, bump_patch, bump_minor, bump_majorRuntimes0, p, m, M
configDeployments; approvalc
rejectDeploymentsx
logs_page_up, logs_page_downlogspgup ctrl+u, pgdown ctrl+d
logs_up, logs_downlogsshift+up, shift+down
logs_top, logs_bottomlogshome, end G
confirmapproval and deployy enter
submitrejection reason; searchenter
cancelreplay picker; rejection reason; searchesc t; esc ctrl+c; esc
scroll_up, scroll_downconfiguration; write-upup k, down j
page_up, page_downconfiguration; write-uppgup b, pgdown space f
half_page_up, half_page_downwrite-upu ctrl+u, d ctrl+d
top, bottomconfiguration; write-uphome g, end G
closeconfiguration; write-upesc c q; q esc
editwrite-upe
savewrite-up and its editorctrl+s
previewwrite-up editoresc
discardunsaved write-upy
force_quitconfiguration; write-up and its editorctrl+c
forward, backwardtutorialright space enter, left

Filesโ€‹

KeyFileName
ctrl+s in a write-upIncident write-up, in markdownincident-<instance>-<alarm>-<YYYYMMDD-HHMM>.md
ctrl+s in a write-upIncident recording, for --playbackincident-<instance>-<alarm>-<YYYYMMDD-HHMM>.json
e on the mapThe map, as an SVGconstellation-<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 seeWhy
Notes and pinned widgets are missingThe profile signs in as a service account. Use a profile with your personal access token.
Stash changes and logs arrive a few seconds lateThe 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 showForks are not read until the map is. Press r, or refocus.
mass dashboard will not start and names an action or a keyThe 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 accessYou cannot view its project.
A link says staleIts traffic has not been reported for 10 minutes.
A stash key changes but nothing shows on the ticker or the mapNo widget draws that key. Only well-known md/v1/ keys and keys a widget you pinned reads are shown.
No widgets showNothing in view has a well-known md/ key. See Well-known keys.
y, x, or d says it is read-onlyIt was started with --read-only or --playback. Start it again without them.
y says to pick an instance firstPress n to pick an instance in the side panel.
Approving or rejecting says only a proposed deployment can beThe deployment is no longer awaiting approval.
A rejection says the reason was not savedThe deployment was rejected, but its stash could not be written.
Links in the side panel are not clickableThe terminal does not support hyperlinks. iTerm2, Ghostty, WezTerm, and kitty do.
No desktop notification with --watchThe terminal does not support OSC 9 notifications. The bell still rings.