CLI

The Compass CLI manages the server, entities, namespaces, and configuration.

Global Flags

-c, --config string   Override config file path

compass config

CommandDescription
config initInitialize a new config file
config listList current configuration

compass entity

Alias: entities

CommandDescription
entity listList entities
entity view <id>View entity by ID or URN
entity upsertCreate or update an entity
entity delete <urn>Delete an entity
entity search <text>Search entities
entity typesList entity types with counts
entity context <urn>Get context subgraph
entity impact <urn>Analyze downstream impact

entity list [flags]

    --types string    Filter by types (comma-separated)
    --source string   Filter by source
-q, --query string    Search query
    --size uint32     Page size (default 20)
    --offset uint32   Page offset (default 0)

entity upsert [flags]

    --urn string           Entity URN (required)
    --type string          Entity type (required)
    --name string          Entity name (required)
    --description string   Description
    --source string        Source system

entity search <text> [flags]

    --types string    Filter by types
    --source string   Filter by source
    --mode string     keyword, semantic, or hybrid (default "keyword")
    --size uint32     Max results (default 10)

entity context <urn> [flags]

    --depth uint32   Traversal depth, 1-5 (default 2)

entity impact <urn> [flags]

    --depth uint32   Traversal depth (default 3)

compass namespace

Alias: ns

CommandDescription
namespace createCreate a namespace
namespace listList namespaces
namespace view <id>View namespace by ID or name

namespace create [flags]

-n, --name string    Namespace name
-s, --state string   shared or dedicated (default "shared")

compass server

Alias: s

CommandDescription
server migrateRun database migrations
server startStart server on port 8080

server migrate [flags]

    --down   Rollback migration one step

compass document

Alias: documents, doc, docs

CommandDescription
document listList documents
document view <id>View document by ID
document upsertCreate or update a document
document delete <id>Delete a document
document entity <urn>List documents for an entity

document list [flags]

    --entity-urn string   Filter by entity URN
    --source string       Filter by source

document upsert [flags]

    --entity-urn string   Entity URN (required)
    --title string        Document title (required)
    --body string         Document body (required)
    --format string       Format: markdown, plaintext
    --source string       Source system (e.g., confluence, github)
    --source-id string    ID in source system

compass embed

Backfill embeddings for existing data.

compass embed --type entity     # Embed all entities
compass embed --type document   # Embed all documents
compass embed --type all        # Embed everything

compass version

Print version information.