Skip to content

Other ways in

Work from the terminal

The kiyesi command does everything the dashboard does, with the same words. On Linux, macOS and Windows.

An incident is found, read, acknowledged and marked fixed with the kiyesi command alone, against a real API, worker and database, in the build pipeline for every change.

While a command waits on the service, a small mark (an accent over an amber dot) moves beside a few words on what it is doing, such as Reading incidents…. After three seconds it also shows how long it has waited. It never appears when the output goes to a file or another program, with --json, or when KIYESI_NO_SPINNER=1 is set. With NO_COLOR set, it appears without colour.

Terminal window
kiyesi

Alone, kiyesi lists what needs you, most urgent first, each with the command to run next: open incidents (a critical one nobody has acknowledged comes first), work given to you, sites not answering, servers that stopped reporting, and servers with critical findings. The last line is the one command to run now.

NEEDS YOU NOW
INC-6 is open: staging-1 stopped reporting. Nobody has acknowledged it.
kiyesi incident INC-6
INC-5 is open: worker-prod stopped reporting. Nobody has acknowledged it.
kiyesi incident INC-5
INC-4 is open: checkout-api-prod answering with server errors.
kiyesi incident INC-4
staging-1 has 2 critical findings.
kiyesi findings staging-1
worker-prod has 2 critical findings.
kiyesi findings worker-prod
checkout-api-prod has a critical finding.
kiyesi findings checkout-api-prod
Next: kiyesi incident INC-6
Terminal window
kiyesi watch

What needs you, open incidents and every server with its grade, CPU, memory, disk and last report, refreshed in place every 15 seconds. Move with the arrow keys, press enter for an incident’s evidence or a server’s findings, o to open it in the browser, r to refresh now and q to quit. Piped into a file or another command, it prints the view once and stops.

Terminal window
kiyesi incidents # what is open, with the likely source
kiyesi incident INC-4 # the evidence, the timeline and the suggested fix
kiyesi assign INC-4 Amara # give it to someone, or to yourself with "me"
kiyesi ack INC-4 # your team sees someone is on it
kiyesi resolve INC-4 --note "Rolled back to 2.13.4"

The note is shown first next time the same failure happens. For more on how the source is named, see Handle an incident.

Terminal window
kiyesi findings # every server, worst first
kiyesi findings checkout-api-prod --severity critical

Each finding is one sentence, why it matters, and the command that fixes it. Review it and run it yourself: Kiyesi never changes the server. On the server, sudo kiyesi fix lists them all, with why each matters.

--project and --env work on every list:

Terminal window
kiyesi servers --project Checkout --env production
kiyesi incidents --env staging
kiyesi --project "Demo client"

They only narrow what your access already shows. A project name that does not exist says so, and kiyesi projects lists them.

Every command that prints data takes --json. The shape is version 1: later versions only add fields, so scripts keep working. Exit codes: 0 fine, 1 a finding at the level given to kiyesi scan --fail-on, or a “wait” from kiyesi preflight, 2 a mistake in the command, 3 the service cannot be reached or does not allow it.

Terminal window
kiyesi findings --severity critical --json | jq length
Terminal window
kiyesi preflight checkout-api-prod # safe to deploy? go or wait, with the reasons
kiyesi explain INC-4 # a plain paragraph for a client
kiyesi passport checkout-api-prod # what runs on it, ports, jobs, people and how-to
kiyesi drill # a practice incident through the escalation steps
kiyesi costs --currency EUR # costs in any currency
Terminal window
kiyesi open INC-4
kiyesi open checkout-api-prod
kiyesi open credit

It prints the address too, for a server with no browser.

The installer adds completion for bash, zsh and fish when they are installed. Press Tab after a command to complete server names, incident numbers, teammates and projects. For a shell set up another way:

Terminal window
kiyesi completion zsh > "${fpath[1]}/_kiyesi"
kiyesi completion bash | sudo tee /usr/share/bash-completion/completions/kiyesi
kiyesi completion fish > ~/.config/fish/completions/kiyesi.fish
Terminal window
kiyesi update --check
sudo kiyesi update
sudo kiyesi update --back

It downloads the newest release, checks its signature with the key built into kiyesi and the file’s checksum, replaces the program in one step, and restarts the agent if it runs. Nothing changes if any check fails, and nothing ever updates by itself.

Each update keeps the version it replaces beside the program. sudo kiyesi update --back puts it back in one step and restarts the agent on it; running it again goes forward once more.

  • In the terminal. At most once a day, a command you run ends with one line, such as “kiyesi 0.44.1 is out: run sudo kiyesi update”, once the release has been out three days, or “… is out and fixes a security problem …” for a security release, at once. kiyesi asks get.kiyesi.dev at most once a day, believes only the release’s signed list, and never waits more than 3 seconds for it. The line goes to the error stream, so scripts reading the output never see it, and it never follows --json, the agent’s own service or kiyesi update. To turn it off: KIYESI_NO_UPDATE_NOTICE=1.
  • On the dashboard. The Servers list marks a server whose agent is behind, and its page says, for example, “Agent 0.43.0 · 0.44.0 is out”, with sudo kiyesi update to copy. A new version is shown in stages, so a bad one reaches few servers: first on Kiyesi’s own servers for a day, then to some teams, then to all by the third day. A security release is shown to everyone at once.
  • By email, for a security release only. When a release fixes a security problem, the owners of each team with a server on an older kiyesi get one email, naming those servers. Ordinary releases send no email.
  • “You are signed out”: run kiyesi login.
  • “There is no project …”: check the name with kiyesi projects; any case works.
  • Tab completion offers nothing: sign in first; names come from your account, and completion gives up after two seconds rather than make you wait.
  • “Cannot change /usr/local/bin/kiyesi as this user”: run sudo kiyesi update.