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|osirawctx 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)
- Run
rawctx login. - CLI opens (or prints) the OAuth URL from
POST /api/auth/login/github. - Complete GitHub login in browser.
- CLI automatically polls OAuth session status and captures
id_token. - CLI calls
POST /api/auth/tokenand 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:
searchinfoinstall
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
Release history Release notifications | RSS feed
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.0.tar.gz
(45.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rawctx-0.2.0-py3-none-any.whl
(46.9 kB
view details)
File details
Details for the file rawctx-0.2.0.tar.gz.
File metadata
- Download URL: rawctx-0.2.0.tar.gz
- Upload date:
- Size: 45.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2488cb60b3c5240e0f4f9e657d24e99b9adfa2e100012e6ba2b958a37b0f187
|
|
| MD5 |
d40122d63a51e8b4287c3933c92a1a6a
|
|
| BLAKE2b-256 |
e6d07002011e9896fd144344eebf3f7c8cb945582ff86569d1bd18205c8d12d6
|
File details
Details for the file rawctx-0.2.0-py3-none-any.whl.
File metadata
- Download URL: rawctx-0.2.0-py3-none-any.whl
- Upload date:
- Size: 46.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9663b5c3577605ae78a58947a60fb3ab403b3c1f93c08d438355e2f54631f9d8
|
|
| MD5 |
f34f53239dda89d398902f2216738a45
|
|
| BLAKE2b-256 |
a45a68b0c1ad613df17d83be2af20a44af367014c64289aac98b3b60dc76fee1
|