Command line overview
Every part of cheshmhayash is a subcommand of one binary:
cheshmhayash serve the dashboard (API, SPA, notifier)cheshmhayash mcp the MCP servercheshmhayash sub | pub protobuf-aware subscribe and publishcheshmhayash schema ... inspect schemas and subject rulescheshmhayash consumer scan|apply|ownercheshmhayash peer checkcheshmhayash stream reportcheshmhayash bot serve the operations botRun any command with --help for its flags.
Global flags
Section titled “Global flags”| Flag | Env | Default | Meaning |
|---|---|---|---|
--log-level |
LOG_LEVEL |
info |
debug, info, warn or error. An unknown value is fatal. |
--config, -c |
CHESHMHAYASH_CONFIG |
settings.toml |
The settings file (TOML) of serve, mcp, sub, pub and schema. |
--ops-config |
CHESHMHAYASH_OPS_CONFIG |
~/.config/cheshmhayash/ops.yaml |
The YAML file of the operations commands (consumer, peer, stream, bot). |
Two ways to connect
Section titled “Two ways to connect”The commands come in two families, and they connect in different ways.
Client commands (sub, pub, schema) use a cluster from settings.toml, or a URL on the command line, so they work with no settings file:
| Flag | Env | Meaning |
|---|---|---|
--cluster, -C |
CHESHMHAYASH_CLUSTER |
A cluster name from the settings file. Optional when only one is configured. |
--server, -s |
NATS_URL |
A NATS URL. It overrides --cluster. |
--user |
NATS_USER |
The user name. |
--password |
NATS_PASSWORD |
The password. |
--creds |
NATS_CREDS |
A credentials file. |
--schemas |
CHESHMHAYASH_SCHEMAS |
An extra schemas file. Repeat it for more. |
Operations commands (consumer, peer, stream, bot) use NATS contexts: the ~/.config/nats/context/*.json files that nats context writes. You pass --context prod-a, and the credentials come from that file. They need no separate credential handling.
The pages here
Section titled “The pages here”- sub and pub: subscribe and publish with protobuf.
- schema: inspect sources, messages and subject rules.
- consumer: find stale consumers and clean them up safely.
- peer and stream: ghost peers and stream reports.
- The
serve,mcpandbot servecommands are in the deploy, MCP and bot guides.