Skip to main content

The command line

stardelt is one command for scripts, CI and your terminal. It does what you may do in Nova, as you: the same permissions, the same catalogs, the same runs.

Install​

pip install "stardelt @ https://github.com/stardelt/stardelt/releases/download/v0.0.4/stardelt-0.0.4-py3-none-any.whl"

The package is not on PyPI: this installs the release v0.0.4 from its release page. A newer release has a newer file.

Use the command from the same release as your Nova: a release ships the client that speaks to it, and a client of another release warns once per command with the install line for the server's version. See the client that goes with a release.

Sign in​

stardelt login # a link and a code; approve it in a browser, on any device
stardelt whoami # who Nova thinks you are
stardelt doctor # can this machine work right now? one line per check, and the fix for each failure
stardelt logout # forget the stored sign-in

Point the command at your Nova with --host or STARDELT_NOVA_URL; login remembers it. In CI, set STARDELT_TOKEN to a bearer access token instead — it wins over the stored sign-in. Results go to standard output and messages to standard error. The exit code is 0 for success, 1 for an error, 2 for wrong usage and 3 when sign-in is needed, so scripts can tell the cases apart.

Commands​

CommandWhat it doesMore
stardelt whoamiwho Nova thinks you are, as JSONSign in
stardelt loginsign in once with a code approved in a browserSign in
stardelt logoutforget the stored sign-inSign in
stardelt doctorcheck the host, Nova, the sign-in, who you are and which model answers the Agent; each failure names its fixSign in
stardelt sqlrun one statement as youLong-running SQL
stardelt samples loadload the generated sample table the guides use, as you, and print its full nameExamples
stardelt runstart a pipeline run now; --wait waits for its endPipelines from the command line
stardelt applycreate or update a pipeline from a JSON or YAML filePipelines from the command line
stardelt exportwrite a pipeline as a file that apply accepts, YAML by defaultPipelines from the command line
stardelt lineagewhere a table comes from and what depends on itTable lineage
stardelt apicall any public operation by its operationIdAPI reference
stardelt mcp serveserve the read-only tools on stdio, for an MCP clientAI assistants (MCP)
stardelt mcp configprint how to register the server in an MCP clientAI assistants (MCP)
stardelt skillprint the agent skill (SKILL.md); with --write DIR install itAI assistants (MCP)
stardelt bundle initwrite a small bundle that passes validateBundle reference
stardelt bundle validatecheck a bundle offline: no host, no sign-inBundle reference
stardelt bundle planask Nova what deploying one target would do; writes nothingBundle reference
stardelt bundle deploydeploy one target: Nova checks every pipeline first, then creates or updates themBundle reference
stardelt bundle approveapprove a migration plan a production deploy needs a second person forBundle reference
stardelt bundle summaryshow what a deploy of one target left on the stageBundle reference
stardelt bundle runstart a deploy's pipelines and wait for each; stops at the first failureBundle reference
stardelt bundle destroyremove what a deploy of one target put on the stage; only with --yesBundle reference
stardelt bundle rollbackapply again the documents one recorded deploy applied; only with --yesGo back
stardelt bundle generatewrite a pipeline made in the interface into the bundle, with its SQL fileBundle reference
stardelt deployments listthe newest recorded deploys, newest first; --bundle and --target narrow itBundle reference
stardelt deployments showone recorded deploy: its pipelines and the documents it appliedBundle reference
stardelt maintenance runoptimize small files, expire snapshots and remove orphan files for one catalog's tables—
stardelt notebook publishpublish a notebook as a new version that a schedule can pinPublish a notebook version
stardelt dashboards exportwrite a dashboard as a folder for a bundle; run it inside the bundleA dashboard folder
stardelt dashboards importimport a bundle's dashboard folder for one targetA dashboard folder
stardelt setup vscodewrite the stardelt kernel for VS Code on your laptopVS Code on your laptop

Run any of them with --help for the values it takes.

Examples​

The examples read warehouse.samples.trips, a table no install ships. Create it once with stardelt samples load trips; the command writes it as you and prints the full name (for example gold.samples.trips when your groups may write gold), so use that name where the examples say warehouse.

stardelt samples load trips # once: 10,000 generated rows, as you
stardelt sql "select * from warehouse.samples.trips limit 5" # a table; --format json or csv
stardelt sql -f report.sql --format csv # from a file; -f - reads standard input
stardelt run etl nyc_taxi --wait # exit 0 only when the run succeeded
stardelt apply -f pipeline.yaml --dry-run # say what would happen, write nothing
stardelt export etl nyc_taxi # the deployed pipeline as a YAML file
stardelt lineage warehouse.samples.trips --downstream # who depends on it
stardelt bundle validate # offline, in Git hooks and CI
stardelt bundle plan -t dev # what a deploy would change
stardelt bundle deploy -t dev # checks every pipeline, then deploys
stardelt mcp config # the line an MCP client needs

Pipelines from the command line​

Deploy a pipeline from a file​

stardelt apply -f pipeline.json takes one JSON or YAML object shaped like the body of the create-pipeline operation (pipelines_create in the API reference): name, ownerGroup, a sql statement (or a notebook) — or a tasks list, one statement per task — and optionally schedule, params and options. A tasks list is passed through unchanged and Nova checks the per-task rules and the dependency graph; the shape is the one in A pipeline with several tasks.

cat > pipeline.json <<'JSON'
{"name": "daily", "ownerGroup": "etl", "sql": "select 1", "schedule": {"cron": "0 3 * * *", "timezone": "Europe/Berlin"}}
JSON
stardelt apply -f pipeline.json --dry-run # checks the file, writes nothing
stardelt apply -f pipeline.json # creates it, or updates it on the next run

The same pipeline as YAML (pipeline.yaml; quote a value that YAML would read as a date or a number if you mean text):

name: daily
ownerGroup: etl
sql: select 1
schedule:
cron: "0 3 * * *"
timezone: Europe/Berlin

A schedule needs both cron and timezone (an IANA zone name such as Europe/Berlin). -f - reads standard input. The answer on standard output is {"action": "created", "name": "daily"}, with updated, would-create or would-update as the other actions. An update replaces what the file says: params and options left out of the file go back to their defaults. The group of an existing pipeline cannot change, and you can only apply to a group you belong to.

With --dry-run Nova checks the file with every rule a create runs (the name, your group, the group's pipeline principal, the statement or notebook, the options and the schedule) and then looks at the name; nothing is written. The answer says what a real run would do and what it would change:

{"action": "would-update", "name": "daily", "changes": ["schedule"], "nextRuns": ["2026-11-02T03:00:00+01:00", "2026-11-03T03:00:00+01:00"]}

changes appears for an update and lists which of statement (or notebook), schedule, params and options the file would change; an empty list means nothing would change. nextRuns lists the next fire times of a file with a schedule. A rule that refuses ends the command with Nova's own sentence, so a check on a pull request can run stardelt apply -f pipelines/ --dry-run and fail on a file that a real run would refuse.

To start from a pipeline that was made in the interface, export it: stardelt export NAMESPACE NAME > pipeline.yaml writes its document (the same one Show definition shows) as a file stardelt apply -f accepts; --format json writes JSON. A pipeline that was written outside Nova, or has a shape the form does not edit, is still exported, with a note that apply cannot change it.

-f can also name a directory: every .json, .yaml and .yml file directly inside it is applied in name order, one answer line per file, so a folder of pipelines in your repository deploys with one command (stardelt apply -f pipelines/). All files are read before anything is applied: a file that is not a pipeline (the message names it), a folder without any pipeline file, or two files with one pipeline name write nothing.

Publish a bundle from Git​

stardelt bundle init, validate, plan and deploy publish a directory of pipeline files to a stage, the way a team ships code, and stamp each pipeline with the commit it came from. The whole path, with an example, is its own guide: Publish pipelines from Git.

Run a pipeline and wait for it​

stardelt run NAMESPACE NAME starts a run now and prints it. With --wait it looks at the run until it is no longer queued or running, prints the run with its tasks and exits 0 only when the run succeeded, so a CI job can use it as a step:

stardelt run etl nyc_taxi --wait --timeout 3600 # exit 0: the run succeeded; exit 1: it failed, was refused, or the time ran out

To run it for another date, after an outage or a fix, add --date; --param NAME=VALUE sets one of the schedule's parameters for this run. Both apply to that run only; the schedule does not change:

stardelt run etl nyc_taxi --date 2026-11-20 --param region=eu --wait

For a range of days, start a backfill. Nova runs it through the scheduler's own backfill, one run per UTC day from fromDate to toDate (both included, at most 31 days); days that already ran are skipped unless reprocess says otherwise. Only the owner group may start one, and a paused pipeline is refused:

stardelt pipelines backfill-start etl nyc_taxi --body '{"fromDate": "2026-11-01", "toDate": "2026-11-07"}'
stardelt pipelines backfill-state etl nyc_taxi BACKFILL_ID # the backfill and its runs
stardelt pipelines backfill-cancel etl nyc_taxi BACKFILL_ID # stop it

A failed run names its failed tasks on standard error. --interval sets the seconds between two looks (5 unless you change it). When --timeout runs out the run is NOT stopped and keeps going; stardelt pipelines run-stop etl nyc_taxi RUN_ID marks it failed, but work already in flight can still finish. Nova refuses to start a run of a paused pipeline, or of a Forbid or Replace pipeline that already has an active run, and allows ten starts per person per minute; the refusal is exit 1 with Nova's sentence. In Python:

from stardelt import runs

run, tasks = runs.start(nova, "etl", "nyc_taxi", wait=True) # run["state"] is "success" or the state it ended in

Commands from the API​

Every public API operation is also a command: stardelt <resource> <verb>, with the options of stardelt api, or stardelt api <operationId> by its id. stardelt --help prints this list, and stardelt <resource> the verbs and the values each one takes.

ResourceVerbs
accessrequests-create, requests-list, requests-read, requests-withdraw
askanswer, feedback, history
authconfig
cataloghealth-list, metrics-get, metrics-refresh, search
catalogslist
columndescription-update
computeensure, list, start, stop
connectionsbreak-glass-log, create, group-break-glass, group-delete, group-rotate, list, managed-break-glass, managed-delete, managed-rotate, personal-break-glass, personal-delete, personal-rotate
deploymentsget, list, plan, record, rollback
destinationscreate, list, remove, test
health—
lineagecolumns, graph, read-tables, run-detail
me—
migrationsapply, approve, plan
modelendpoints-list
namespaceslist
notebookscontent, delete, list, parameters, publish, usage, versions
novaversion
openapidocument
pipelinescheck, create, delete, get, list, pause, preview-schedule, principals, resume, run-checks, run-get, run-queries, run-retry, run-stop, run-task-logs, run-task-notebook, run-trigger, spec, update, validate
querylog-detail, log-history, log-list, log-profile, log-usage, run
runslist
savedqueries-create, queries-list, queries-remove, queries-share, queries-unshare
serviceprincipals-list
stagescompare
statementscancel, chunk-get, get, list, submit
streamsdelete, list, patch, put, validate
tabledocumentation-get, documentation-update, freshness-get, freshness-update, history, metadata, rollback
tableslist
verifiedqueries-check, queries-check-all, queries-create, queries-delete, queries-list
warehouseinfo
warehouseslist, start
workspaceget, start, stop

catalog search matches words in a table's namespace.table, its description and its tags: a table matches when one of them contains every word you give, in any case. -q tag=finance, -q owner=team-mobility, -q domain=retail and -q catalog=finance narrow the answer; the three label filters need Nova's state store.

lineage prints a table's upstream and downstream tables with the job that wrote each one, its last write and its readers. --upstream or --downstream keeps one side, --depth (1–5) and --days (1–365) set the reach and the window.

Output and scripting​

Results go to standard output and messages to standard error, so a pipeline of commands reads only the answer. sql takes --format table|json|csv (a table by default), api and lineage take json|table (JSON by default for api), and export takes yaml|json. The exit code is 0 for success, 1 for an error, 2 for wrong usage and 3 when sign-in is needed.