CLI Reference

CLI reference

Complete command index for the deterministic ctxindex CLI.

The CLI is the integration surface for ctxindex. Installed builds use ctxindex; from the repository root, use bun cli instead.

ctxindex --help
# Development checkout
bun cli --help

Discover registry-defined options

Profiles, kinds, fields, export formats, Actions, and Adapter configuration come from the loaded registry. Use ctxindex describe for the current vocabulary instead of assuming provider-specific values.

Commands

CommandPurpose--json
ctxindex initInitialize config, data, state, cache, logs, and SQLite.No
ctxindex account addAuthorize a provider Account.No
ctxindex account listList Accounts with authorization health and bound Sources.Yes
ctxindex account removeRemove an Account and its Grant.No
ctxindex oauth-app addPersist a local OAuth App from Provider-declared environment variables.No
ctxindex oauth-app listList available Extension and local OAuth Apps safely.Yes
ctxindex oauth-app removeRemove a local OAuth App.No
ctxindex describeInspect loaded Profiles, Adapters, and Actions.Yes
ctxindex extensions listList loaded Extensions.Yes
ctxindex extensions catalog addTrust and add a pinned Git Catalog.Yes
ctxindex extensions catalog listRefresh and list merged local Catalog entries.Yes
ctxindex extensions catalog showRefresh and inspect a Catalog or exact Extension entry.Yes
ctxindex extensions catalog refreshRefresh one Catalog snapshot.Yes
ctxindex extensions catalog removeRemove an unused Catalog.Yes
ctxindex extensions installTrust and install an exact Catalog Extension.Yes
ctxindex extensions uninstallUninstall an exact Catalog Extension.Yes
ctxindex action describeInspect a typed Action and Source availability.Yes
ctxindex action runValidate and run a typed Action through one Source.Yes
ctxindex artifact listList Artifact descriptors for a Resource.Yes
ctxindex artifact downloadDownload Artifact bytes into the managed cache.Yes
ctxindex purge artifactsRemove managed Artifact cache state.Yes
ctxindex realm addCreate a Realm.No
ctxindex realm listList Realms.Yes
ctxindex source addConfigure a Source in a Realm.No
ctxindex source listList Sources.Yes
ctxindex source removeRemove a Source.No
ctxindex syncSynchronize one or all Sources.Yes
ctxindex getRetrieve a Resource by exact Ref.Yes
ctxindex exportStream a Profile export.Use --format json
ctxindex thread getTraverse a local Resource thread.Yes
ctxindex searchSearch Resources across selected Sources.Yes
ctxindex statusShow last sync status.Yes
ctxindex secrets statusInspect safe secret-backend status.Yes
ctxindex secrets backend setMove secrets to the selected backend.No
ctxindex skills listList bundled skills.Yes
ctxindex skills getPrint one bundled skill.Yes
ctxindex skills pathPrint the bundled-skills location.No

Machine-readable output

Commands that expose --json write JSON to stdout and diagnostics to stderr. Prefer it in scripts and agent calls. export is a byte-stream command: select its always-available JSON representation with --format json rather than --json.

Exit codes

Exit codes are a stable API. Callers should branch on the code instead of parsing diagnostic text.

ExitMeaning
0Success
2Invalid usage
10needs_auth
20Rate limited
30Network or provider failure
40Permission denied
50Other sync failure
130Cancelled by SIGINT

On this page