Coelevate Documentation
Connect your agent (Preview)

CLI Reference

Every command and option of `coelevate-context`, generated from the CLI itself.

Preview. The tools this page documents are in preview and may change.

Command-line client for the Coelevate Context Repository public API: read, search, stage changes to assets and inspect releases. Asset changes are stage-only - proposed, never landed - while a kit is written directly with kit. Credentials come from the environment: COELEVATE_CLIENT_ID, COELEVATE_CLIENT_SECRET; the API origin from COELEVATE_API_URL (or --api-url).

This page is generated from the command's own argument parser, so it lists exactly what the installed command accepts.

coelevate-context read

read one kit or one asset by id.

usage: coelevate-context read [-h] [--api-url API_URL] [--token-url TOKEN_URL]
                              [--json] [--expect-project EXPECT_PROJECT]
                              (--kit-id KIT_ID | --asset-id ASSET_ID)
                              [--version VERSION] [--links]

Give exactly one of --kit-id, --asset-id.

OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--kit-idnoread this kit
--asset-idnoread this asset (any asset type)
--versionnoan archived version, else live
--linksnoexpand resolved in/out edges (assets only)

lexical text search over your key's context.

usage: coelevate-context search [-h] [--api-url API_URL]
                                [--token-url TOKEN_URL] [--json]
                                [--expect-project EXPECT_PROJECT]
                                --query QUERY [--asset-type ASSET_TYPE]
                                [--max-results MAX_RESULTS]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--queryyes
--asset-typenorepeatable; omit for every type Repeatable.
--max-resultsno20

coelevate-context whoami

show which project, API, default-token scopes and permitted scopes this key resolves to (never the secret).

usage: coelevate-context whoami [-h] [--api-url API_URL]
                                [--token-url TOKEN_URL] [--json]
                                [--expect-project EXPECT_PROJECT]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)

coelevate-context doctor

check configuration, token, project pin, scopes and one read; exit 0/1/2.

usage: coelevate-context doctor [-h] [--api-url API_URL]
                                [--token-url TOKEN_URL] [--json]
                                [--expect-project EXPECT_PROJECT]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)

coelevate-context assets

list assets from the index (id, type, label).

usage: coelevate-context assets [-h] [--api-url API_URL]
                                [--token-url TOKEN_URL] [--json]
                                [--expect-project EXPECT_PROJECT]
                                [--asset-type ASSET_TYPE] [--label LABEL]
                                [--limit LIMIT] [--offset OFFSET]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--asset-typenorepeatable; omit for every type Repeatable.
--labelnoonly assets with this label
--limitno50
--offsetno0

coelevate-context kits

list the kits (id, title, version).

usage: coelevate-context kits [-h] [--api-url API_URL] [--token-url TOKEN_URL]
                              [--json] [--expect-project EXPECT_PROJECT]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)

coelevate-context asset-types

list the asset types the context accepts.

usage: coelevate-context asset-types [-h] [--api-url API_URL]
                                     [--token-url TOKEN_URL] [--json]
                                     [--expect-project EXPECT_PROJECT]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)

coelevate-context changeset

show the open changeset: revision, base release and staged ops.

usage: coelevate-context changeset [-h] [--api-url API_URL]
                                   [--token-url TOKEN_URL] [--json]
                                   [--expect-project EXPECT_PROJECT]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)

coelevate-context stage

stage ops (or un-stage one) in the open changeset.

usage: coelevate-context stage [-h] [--api-url API_URL]
                               [--token-url TOKEN_URL] [--json]
                               [--expect-project EXPECT_PROJECT] (--op OP |
                               --op-file OP_FILE | --ops-file OPS_FILE |
                               --remove-op REMOVE_OP)
                               [--provenance PROVENANCE]
                               [--idempotency-key IDEMPOTENCY_KEY]
                               [--expected-revision EXPECTED_REVISION]
                               [--expected-release EXPECTED_RELEASE]

Give exactly one of --op, --op-file, --ops-file, --remove-op.

OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--opnoone op as a JSON string
--op-filenoone op as a JSON file
--ops-filenoa JSON array of up to 100 ops, staged in one request
--remove-opnoun-stage this op id instead of staging
--provenancenoa JSON object recording where the ops came from
--idempotency-keynomake a retry of this request safe
--expected-revisionnodefault: read from the changeset just before staging
--expected-releasenodefault: read from the changeset just before staging

coelevate-context tag

look up the release currently holding a tag (read-only).

usage: coelevate-context tag [-h] [--api-url API_URL] [--token-url TOKEN_URL]
                             [--json] [--expect-project EXPECT_PROJECT]
                             --name NAME
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--nameyesthe tag to look up

coelevate-context release

list releases, or read one by number or tag.

usage: coelevate-context release [-h] [--api-url API_URL]
                                 [--token-url TOKEN_URL] [--json]
                                 [--expect-project EXPECT_PROJECT]
                                 [--number NUMBER] [--tag TAG] [--limit LIMIT]
                                 [--offset OFFSET]
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
--numbernoread this one release
--tagnothe release currently holding this tag
--limitno50
--offsetno0

coelevate-context kit

write a kit directly (create, patch, add or remove members, revert, retire) or read its journal.

usage: coelevate-context kit [-h] [--api-url API_URL] [--token-url TOKEN_URL]
                             [--json] [--expect-project EXPECT_PROJECT]
                             [--kit-id KIT_ID] [--asset-id ASSET_ID]
                             [--base-version BASE_VERSION] [--body BODY]
                             [--body-file BODY_FILE]
                             {create,patch,add-members,remove-member,revert,retire,journal}
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
verbyesOne of create, patch, add-members, remove-member, revert, retire, journal.
--kit-idnothe kit (every verb but create)
--asset-idnothe member to take out (remove-member)
--base-versionnothe kit version you read (remove-member, retire)
--bodynocreate, patch, add-members, revert: the request as a JSON string
--body-filenocreate, patch, add-members, revert: the request as a JSON file

coelevate-context gap

list, read, record, edit, close (retire) or revert a gap directly, or read its journal.

usage: coelevate-context gap [-h] [--api-url API_URL] [--token-url TOKEN_URL]
                             [--json] [--expect-project EXPECT_PROJECT]
                             [--gap-id GAP_ID] [--state {open,retired,all}]
                             [--kind KIND] [--opened-release OPENED_RELEASE]
                             [--closed-release CLOSED_RELEASE]
                             [--version VERSION] [--body BODY]
                             [--body-file BODY_FILE]
                             {list,get,journal,create,patch,retire,revert}
OptionRequiredDefaultDescription
--api-urlnothe API origin (default: $COELEVATE_API_URL)
--token-urlnothe token endpoint (default: $COELEVATE_TOKEN_URL, else <API URL>/oauth/token)
--jsonnoprint one compact JSON document on stdout; errors become a JSON object on stderr
--expect-projectnorefuse to act unless the key resolves to this project (default: $COELEVATE_PROJECT_ID)
verbyesOne of list, get, journal, create, patch, retire, revert.
--gap-idnothe gap (every verb but list and create)
--statenoopenlist: which gaps (default open) One of open, retired, all.
--kindnolist: only gaps of this kind
--opened-releasenolist: only gaps opened in this release
--closed-releasenolist: only gaps closed in this release
--versionnoget: an archived version, else live
--bodynocreate, patch, retire, revert: the request as a JSON string
--body-filenocreate, patch, retire, revert: the request as a JSON file