Skip to content

Commands ​

This is the shipped surface — captured from hesper --help:

hesper — Hesper management CLI

Usage:
  hesper                          Interactive REPL (TTY)
  hesper console                  Hesper Console — the governed investigation REPL
  hesper login | logout | whoami | status
  hesper practice list | use <id-or-name>
  hesper focus device|ticket|entity|clear …
  hesper agent token create | install [--print-bootstrap] | doctor
  hesper devices list|get <id>
  hesper tickets list|get <id>
  hesper ai -m "<message>"
  hesper completion bash|zsh|powershell

Global flags: --hub <url> --practice <id> --profile <name> --json|--output table|json|tsv

Command notes ​

login ​

bash
hesper login              # interactive OAuth (browser + loopback)
hesper login --device     # device-code flow: prints a user code and URL

practice ​

bash
hesper practice list
hesper practice use <id-or-name>

The practice scope rides every request; the server re-checks it per call.

focus ​

bash
hesper focus device LAB-WIN-07
hesper focus ticket INC-1042
hesper focus entity <customer-id>
hesper focus clear

The focus is re-validated server-side when the turn runs — a stale or out-of-scope target fails the turn with a scoped error.

agent ​

bash
hesper agent token create
hesper agent install [--print-bootstrap]
hesper agent doctor

doctor reports the local agent and engine state for this machine.

devices / tickets ​

bash
hesper devices list
hesper devices get <id>
hesper tickets list
hesper tickets get <id>

Both accept --json for stable machine output.

ai ​

bash
hesper ai -m "Summarise open urgent tickets"

A one-shot turn. With a TTY and no -m, hesper ai (and hesper chat) open the interactive REPL — hesper console is the named Console entry.

completion ​

bash
hesper completion bash
hesper completion zsh
hesper completion powershell

Publish the generated completion into your host shell's completion directory.

Exit codes ​

0 success · 2 usage errors · non-zero for command failures — stdout carries results, stderr carries the CLI's own diagnostics, so pipelines stay clean (see Scripting).

Hesper docs · version v0.1.152