GitHub - Soul-Brews-Studio/oracle-cli: Oracle CLI — command-line interface for Oracle knowledge base · GitHub
Skip to content

Soul-Brews-Studio/oracle-cli

Folders and files

Repository files navigation

arra-cli

Command-line interface for Oracle knowledge base.

Pure HTTP client — no server internals, no database access. Talks to the Oracle server over localhost.

Usage

No install needed — run directly from GitHub:

bunx github:Soul-Brews-Studio/oracle-cli <command>

Prerequisites

Oracle server must be running. Start it with:

arra server start

This spawns arra-oracle in the background. You need arra-oracle installed or available via bunx.

Commands

Knowledge Base

arra search <query>           # Search (hybrid, fts, or vector)
arra search "patterns" -l 5   # Limit results
arra search "vault" -m fts    # FTS-only mode
arra search "auth" -p myproj  # Filter by project

arra learn -p "lesson text"   # Add a learning
arra learn -p "lesson" -c "tag1,tag2" --origin human

arra list                     # List documents
arra list -t learning -l 20   # Filter by type

arra stats                    # Knowledge base statistics

Threads

arra threads                  # List threads
arra threads -s open          # Open threads only
arra thread <id>              # View thread + messages

Schedule

arra schedule                 # List upcoming events
arra schedule list -d 2026-03-05
arra schedule add -d 2026-03-10 -e "Meeting" -t 14:00

Traces & Inbox

arra traces                   # List discovery traces
arra trace <id>               # View a trace
arra inbox                    # View handoff inbox

Server Management

arra server status            # Check if running
arra server start             # Start arra-oracle server
arra server stop              # Graceful HTTP shutdown

Vault

arra vault status             # Vault config & pending changes
arra vault sync               # Commit + push to GitHub
arra vault pull               # Pull vault files locally
arra vault init owner/repo    # Initialize vault
arra vault migrate --list     # Find repos with psi directories

Global Options

Every command supports --json for machine-readable output:

arra stats --json
arra search "query" --json
arra server status --json

Configuration

Environment Variable Default Description
ORACLE_URL http://localhost:47778 Full server URL (takes priority)
ORACLE_PORT 47778 Server port (used when ORACLE_URL is not set)

Point to a remote Oracle server:

export ORACLE_URL=https://oracle.example.com
arra stats

Architecture

arra ──HTTP──> arra-oracle server (:47778)
                    │
               ┌────┴────┐
               │ SQLite  │
               │ + FTS5  │
               │ + vec   │
               └─────────┘
  • 9 commands are pure HTTP (fetch against /api/*)
  • server start spawns arra-oracle via Bun.spawn(['bunx', 'arra-oracle', '--server'])
  • vault * delegates to execSync('bunx arra-oracle vault ...')

Quick Run (no install)

bunx github:Soul-Brews-Studio/oracle-cli stats
bunx github:Soul-Brews-Studio/oracle-cli search "patterns"

Development

ghq get -p Soul-Brews-Studio/oracle-cli
cd $(ghq root)/github.com/Soul-Brews-Studio/oracle-cli
bun install
bun run src/index.ts --help
bun run build   # type-check

License

MIT

About

Oracle CLI — command-line interface for Oracle knowledge base

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors