Skip to content

CLI: implement list, read, search, create, update, delete, validate, export, stats subcommands #6

Description

@fuseraft

docs/guide/cli.md documents these as "Additional CLI Commands Planned":

Commands for list, read, search, create, update, delete, validate, export, and stats are planned for future releases.

Today these operations are only reachable through the chat interface (compendium chat), the Web UI, the REST API, or direct file editing. Add first-class CLI subcommands so a catalog can be scripted/automated without spinning up the web server or going through the agent.

Scope:

  • compendium list — list concepts (with filters: type, tag, status)
  • compendium read — print a concept by id
  • compendium search — search concepts by text/tag/type
  • compendium create / update — non-interactive concept creation/edits
  • compendium delete — remove a concept
  • compendium validate — validate a bundle/concept against the OKF spec
  • compendium export — export filtered concepts (JSON/CSV)
  • compendium stats — bundle statistics (concept counts by type/status, staleness, etc.)

Each subcommand should mirror the semantics of its Web UI / REST API equivalent (see docs/reference/api.md) rather than introducing a divergent behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions