Skip to main content

Architecture overview

The CLI is a Node.js + TypeScript application that compiles to dist/ and exposes a single binary entrypoint.

Key areas

  • src/cli.ts: entrypoint wiring, option parsing, and command registration
  • src/commands/: command implementations grouped by domain (auth, context, tasks, etc.)
  • src/lib/: shared utilities (config, paths, HTTP client helpers, formatting)
  • tests/: unit tests

Runtime model

  1. Load local config from config.json.
  2. Merge CLI flags and environment variable overrides.
  3. Perform an authenticated request to the configured base URL.
  4. Render results as JSON or Markdown depending on output mode.