Zum Hauptinhalt springen

CLI

npx coback --help     # or: npm install -g coback

Authentifizieren Sie sich einmal mit coback login (speichert den Schlüssel in ~/.config/coback/config.json, Modus 600) oder setzen Sie COBACK_API_KEY in der Umgebung; die Umgebungsvariable hat immer Vorrang, sodass CI und Agenten nie die Festplatte berühren. Ein selbstgehosteter Server ist COBACK_API_URL.

Befehle

coback login [--key K]              Validate and store an API key
coback logout                       Remove the stored key
coback whoami [--json]              Show workspace, key, and API host

coback brain list [--json]          List company-brain knowledge cards
coback brain search <query>         Semantic search over the brain
coback brain get <slug> [--json]    One card with full content
coback brain export [--json] [-o F] The whole brain as markdown (or JSON)

coback laws list [--jurisdiction J] [--since D] [--limit N] [--json]
coback matches list [--json]        Screening results with scores
coback matches feedback <id> --verdict relevant|irrelevant [--note N]

coback tasks list [--status S] [--json]
coback tasks create <title> [--priority P] [--due DATE]
coback tasks update <id> --status <status>

coback compliance products [--json]
coback compliance findings <productId> [--json]
coback upload <file...>             Upload documents into the corpus

coback mcp                          Print the claude mcp add command
coback skill install                Install the Claude skill

Konventionen

  • Jeder Auflistungsbefehl akzeptiert --json für maschinelle Ausgabe; ohne diesen erhalten Sie ausgerichtete Spalten.
  • Fehler geben die Servernachricht an stderr aus und beenden mit Status 1.
  • Schreibbefehle benötigen einen Lese‑und‑Schreib‑Schlüssel; ein Nur‑Lese‑Schlüssel führt zur 403‑Nachricht des Servers.

Beispiel

export COBACK_API_KEY=coback_brain_...
coback whoami
coback matches list --json | jq '.[0]'
coback tasks create "Review CSRD scope change" --priority high --due 2026-09-01