Skip to main content

rawctx CLI scaffold

Project description

rawctx CLI

Python Click-based CLI for rawctx Hub.

Commands

  • rawctx login [--registry URL] [--id-token JWT] [--token-name NAME] [--expires-in-days N] [--no-browser]
  • rawctx logout [--local-only]
  • rawctx publish [TARGET_DIR] [--registry URL]
  • rawctx publish --from-dbt DBT_PROJECT_DIR [--emit-package DIR] [--package-name @scope/name] [--package-version X.Y.Z] [--registry URL]
  • rawctx convert --from metricflow --to osi INPUT_PATH --output DIR [--package-name @scope/name] [--package-version X.Y.Z] [--overwrite]
  • rawctx search [QUERY] [--format F] [--source-format F] [--domain D] [--source S] [--tags CSV] [--page N] [--size N] [--json] [--offline]
  • rawctx install PACKAGE_REF [--dest PATH] [--offline] [--force] [--registry URL]
  • rawctx info PACKAGE_REF [--json] [--offline] [--registry URL]
  • rawctx validate [TARGET] --format auto|manifest|osi
  • rawctx pack [TARGET_DIR] --output-dir dist

Round 6 Convert Workflow

rawctx convert --from metricflow --to osi ./my-dbt-project --output ./dist/pkg
rawctx validate ./dist/pkg
rawctx pack ./dist/pkg

Publish directly from dbt:

rawctx publish --from-dbt ./my-dbt-project --emit-package ./dist/pkg

Auth Flow (Auto + Fallback)

  1. Run rawctx login.
  2. CLI opens (or prints) the OAuth URL from POST /api/auth/login/github.
  3. Complete GitHub login in browser.
  4. CLI automatically polls OAuth session status and captures id_token.
  5. CLI calls POST /api/auth/token and stores API token in ~/.rawctx/config.yaml.

Manual fallback:

  • rawctx login --id-token '<JWT>'

Config and Environment

Config file (default): ~/.rawctx/config.yaml

registry: "https://api.rawctx.dev"
auth:
  token: "rxctx_..."
  token_id: "uuid"
  token_name: "rawctx-cli"
  issued_at: "2026-02-28T00:00:00+00:00"
profile:
  username: "owner"

Environment overrides:

  • RAWCTX_CONFIG (config path)
  • RAWCTX_REGISTRY (registry URL)
  • RAWCTX_TOKEN (auth token)

Priority: CLI option > env var > config > default.

Offline Mode

--offline is supported for:

  • search
  • info
  • install

Cache paths:

  • index: ~/.rawctx/cache/packages.json
  • archives: ~/.rawctx/cache/archives/@scope/name/<version>.rawctx.tar.gz
  • installs: ~/.rawctx/packages/@scope/name/<version>/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rawctx-0.2.5.tar.gz (52.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rawctx-0.2.5-py3-none-any.whl (54.4 kB view details)

Uploaded Python 3

File details

Details for the file rawctx-0.2.5.tar.gz.

File metadata

  • Download URL: rawctx-0.2.5.tar.gz
  • Upload date:
  • Size: 52.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rawctx-0.2.5.tar.gz
Algorithm Hash digest
SHA256 fa48b7a087482cf348e66a1d4b3cd4d09408345749b751834ab0ede3a2606c5d
MD5 433d98bf7974bdc5638548bf0fbdb2d7
BLAKE2b-256 bb823d813827122aaaa242ff0c6169d61f460b18920ea18f3d2020a28e8bad84

See more details on using hashes here.

File details

Details for the file rawctx-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: rawctx-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 54.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for rawctx-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a3ec49a4c177df43c9b1d84bb5c22ea31a3f5cf0377150ac9faee9e30f88fe71
MD5 fa3020120c6e40801bfbdf5118cf3cb1
BLAKE2b-256 05d8414e6dc5f23de61a0e9a7470cdef1042c1ca339646283408d896c845a2c6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page