dataspine
Root command for the Dataspine CLI.
Usage
dataspine [OPTIONS] <COMMAND>
Commands
sts: Token exchange utilities. Seedataspine stsartifacts: Configure access to Dataspine artifact registries. Seedataspine artifactscompile: Compile.spinesources into a build artifact. Seedataspine compilecheck: Validate.spinesources and report diagnostics. Seedataspine check
Checking and compiling Spine
Spine is checked and compiled to JSON build artifacts by the Dataspine CLI (dataspine).
| Command | Purpose |
|---|---|
dataspine check | Parse and type-check; emit diagnostics |
dataspine compile | Produce build artifact JSON at --out |
Common flags:
--source-dir— recursive.spinediscovery--in-file— single file--root-namespace— required prefix; must match how your product’s rootnamespaceis declared in.spinesources--lib— additional type libraries (JSON files or directories)-o/--output-type—text,json,yamlfor CLI output- Authentication — see the root options below
Pipeline:
- Parse — Spine source is read into an internal program representation.
- Check and build — types are resolved and a build artifact is produced when you run
compile. - Artifact JSON — consumed by the runtime / control plane as configured by your deployment.
Diagnostics may be parse errors (unexpected character, unbalanced delimiters) or type and build diagnostics after parsing. Use --output-type json for machine-readable output.
Options
These options apply to all subcommands:
-o, --output-type <OUTPUT_TYPE>: Output format- default:
text - possible values:
text,json,yaml
- default:
-a, --auth <AUTH>: Authentication method- default:
env - possible values:
envtoken:<token>token-exchange:<token>aws-sigv4:<principal_id>
- default:
Authentication examples
Use a token from the environment:
export DATASPINE_TOKEN="…"
dataspine -a env check --source-dir ./spine-src --root-namespace my.company
Use a provided token directly:
dataspine -a "token:…" check --source-dir ./spine-src --root-namespace my.company
Exchange an input token:
dataspine -a "token-exchange:…" sts exchange-token "…"