Skip to content

docs(cli): document the three environment-only settings - #4

Merged
AdamXweb merged 1 commit into
mainfrom
docs/env-var-gaps
Aug 9, 2026
Merged

docs(cli): document the three environment-only settings#4
AdamXweb merged 1 commit into
mainfrom
docs/env-var-gaps

Conversation

@adamXbot

@adamXbot adamXbot commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

Part of a sweep across the privacykey docs repos, checking documented claims against the product source.

docs-mantis came out well: all 28 nav pages resolve, the CLI reference covers every command in cli/src/commands/, and every feature in the mantis README (file keys, .pkpass, host events, NFC/QR, Home Assistant, Scrypted, Uptime Kuma, all five notification channels) has prose somewhere. The version pins in the README — CLI v0.1.6, server v0.1.1, edge v0.1.3 — match the tags.

The one real gap: comparing every process.env.* read in src/, cli/src/ and mantis-edge/ against the docs left three product variables documented nowhere.

Variable Where it's read
MANTIS_ASCII cli/src/lib/out.ts
MANTIS_QUIET cli/src/lib/keychain-notice.ts
MANTIS_BULK_CREATE_MAX_BYTES cli/src/commands/bulk-create.ts

None has a flag equivalent, so they were undiscoverable without reading the source. Added as an "Environment-only settings" subsection under Global flags.

MANTIS_QUIET gets an explicit disambiguation — it silences the keychain advisory on stderr, and is not the environment form of -q/--quiet, which suppresses stdout. The names invite conflation.

The 64 MiB bulk-create cap also now appears under the command. The error message names the override when you hit it, but nothing warned you beforehand.

Everything else checked clean:

  • MANTIS_BACKUP_PASS in cli-backup.md is an example name passed to --passphrase-env, not a hardcoded variable. Correct as written.
  • deployment/README.md duplicating deployment/index.mdx is deliberate — .mintignore keeps the GitHub-facing copy off the site. Left alone. (Minor: the README version's comparison table has five rows the site version dropped — DDoS protection, edge regions, privacy posture, free tier, best-for. Worth a look if that trim wasn't intentional.)

MANTIS_ASCII, MANTIS_QUIET and MANTIS_BULK_CREATE_MAX_BYTES are read by the
CLI but appeared nowhere in the docs. They have no flag equivalent, so there
was no way to discover them short of reading the source.

MANTIS_QUIET is worth calling out explicitly: it silences the keychain
advisory on stderr and is NOT the environment form of -q/--quiet, which
suppresses stdout. Easy to conflate.

Also note the 64 MiB bulk-create input cap under the command itself — hitting
it produces an error naming the override, but nothing documented the limit
before you hit it.

Verified against cli/src/lib/out.ts, cli/src/lib/keychain-notice.ts and
cli/src/commands/bulk-create.ts at mantis@origin/main.
@AdamXweb
AdamXweb merged commit c9839d9 into main Aug 9, 2026
1 check passed
@AdamXweb
AdamXweb deleted the docs/env-var-gaps branch August 9, 2026 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants