Guide Reference Generated from the app’s code
The gridkiln command
gridkiln runs pipelines and workflows, evaluates checks and tests, lists what a project holds, manages its secrets and reads data files, all without the app open. It uses the same engine as the app, so a run started here is recorded in the project’s Runs view like any other. For when to use it, and how to install it on a computer that is always on, see Workflows and the background agent.
The command comes with the app; nothing else needs installing. To put it on your PATH:
- macOS: Help › Install Command Line Tool… (it asks for an administrator’s password to link it into
/usr/local/bin, or links it into~/.local/bin). - Windows: the installer adds it to your PATH.
- Linux: the .deb package installs
/usr/bin/gridkiln; with the AppImage, use Help › Install Command Line Tool…, which writes~/.local/bin/gridkiln.
From a copy of the source code, npm run gridkiln -- <command> runs the same program.
Overview#
What gridkiln --help prints:
Usage: gridkiln [options] [command]
Gridkiln on the command line: run pipelines with parameters from any scheduler,
evaluate their checks, list what a project holds, manage its secrets, and read
any data file the way the app does.
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
run [options] <project> [pipeline] run a pipeline: checks first, then its outputs; exits with a code a scheduler can act on
run-workflow [options] <project> [workflow] run a workflow now, with parameters; exits with a code a scheduler can act on
approve [options] [first] [second] approve or reject a run waiting at a review gate; --list shows what waits
due [options] <project> [workflow] is a workflow scheduled now? exit 0 if so, 7 if not (the check in exported OS-scheduler entries)
check [options] <project> [pipeline] evaluate a pipeline's checks without writing its outputs
list [options] [project] [pipeline] list a project's pipelines, their parameters and sets, and recent runs
test [options] [project] [pipeline] run pipeline tests and report differences (exit 8 when there are any)
export [options] [project] [pipeline] export a pipeline (SQL, Python, a document, a bundle) or the run records
agent [options] run the background agent in this terminal: schedules, missed runs, the queue (Ctrl+C stops it)
secrets manage the keychain entries a project uses, by name (values are never shown)
open [options] [project] open a project in the Gridkiln app, or say how
inspect [options] <file> show how a file is read, its schema and its first rows
merge-driver [options] [files...] merge project files by id when git merges branches (set up with --setup)
sql [options] <file> <query> run SQL against a file, available as table t
licence the licence on this computer: status, add a file or key, refresh, deactivate, remove
help [command] display help for command
A project is named by its folder (default: this folder or the one above it that is a project); a pipeline by its
name, id or file name. `gridkiln <command> --help` describes each command.
Exit codes (gridkiln run, check, test and the rest):
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
Logs: `--log-format ndjson` prints one JSON object per line, ending with a run.finished object that holds the
status, the exit code and the path of the sealed run record. Logs hold counts, names and messages, never row values.
Commands#
gridkiln rungridkiln run-workflowgridkiln approvegridkiln duegridkiln checkgridkiln listgridkiln testgridkiln exportgridkiln agentgridkiln secretsgridkiln opengridkiln inspectgridkiln merge-drivergridkiln sqlgridkiln licence
gridkiln run#
Usage: gridkiln run [project] <pipeline> [options]
Run a pipeline: parameters, inputs, drift, steps, checks, then outputs (only
when no failing check stops it). The run is recorded in the project like a run
from the app, started by the command line.
Arguments:
project the project folder (with one argument: the pipeline,
in --project or this folder)
pipeline the pipeline: its name, id or file name
Options:
--project <dir> the project folder, when only the pipeline is given
-p, --param <name=value> a parameter value (repeat for more; repeat a name
for a list)
-s, --set <name> a named parameter set, e.g. "EU run" (given --param
values win)
--dry-run everything except writing: outputs are prepared but
not delivered
--to-step <id> run only up to this step (and what it needs); writes
no outputs
--fresh recompute every step instead of using cached results
--allow-live-ai allow AI steps to ask the model for values it has
not stored
--log-format <format> text for people, ndjson for machines (one JSON
object per line) (choices: "text", "ndjson",
default: "text")
--warnings-as-exit-1 exit with 1 (not 0) when the run succeeds with
warnings
--verbose the engine's own log lines on stderr (never row
values)
-h, --help display help for command
Examples:
gridkiln run ~/sales "Monthly sales" --param month=2026-10
gridkiln run ~/sales monthly-sales --set "EU run" --log-format ndjson
cd ~/sales && gridkiln run "Monthly sales" --dry-run
Ctrl+C (or SIGTERM) cancels cleanly: the run stops between statements, outputs already being written finish,
nothing is half-written, and the record says what was written. Press it again to stop at once.
Exit codes:
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
gridkiln run-workflow#
Usage: gridkiln run-workflow [project] <workflow> [options]
Run a workflow now: its steps (pipelines, branches, review gates, delivery,
housekeeping) as when its trigger fires. The run is recorded in the project,
started by the command line.
Arguments:
project the project folder (with one argument: the workflow,
in --project or this folder)
workflow the workflow: its name or id
Options:
--project <dir> the project folder, when only the workflow is given
-p, --param <name=value> a parameter value (repeat for more; repeat a name
for a list)
--dry-run everything except delivery: outputs go to the
sandbox, messages only to you
--log-format <format> text for people, ndjson for machines (one JSON
object per line) (choices: "text", "ndjson",
default: "text")
--warnings-as-exit-1 exit with 1 (not 0) when the run succeeds with
warnings
--verbose the engine's own log lines on stderr (never row
values)
-h, --help display help for command
Examples:
gridkiln run-workflow "Daily orders" --param month=2026-10
gridkiln run-workflow ~/sales daily-orders --log-format ndjson
Ctrl+C (or SIGTERM) cancels cleanly: nothing is half-written, and the record says what was written.
Exit codes:
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
gridkiln approve#
Usage: gridkiln approve [project] <run> [options] | [project] --list
Approve (or with --reject, reject) a workflow run waiting at a review gate.
Approving lets the workflow carry on to delivery; rejecting stops it with
nothing delivered, and records who and why.
Arguments:
first the run id (or the project folder, followed by the run id)
second the run id, when the first argument is the project folder
Options:
--project <dir> the project folder (default: the one at or above this
folder)
--list list the runs waiting for a review, and how to answer each
--node <id> the review gate, when the run waits at more than one
--reject reject instead of approve (needs --reason)
--reason <text> why: recorded in the run (needed to reject)
--as <reviewer> decide as this reviewer the gate names (default: you,
matched to its reviewers)
--format <format> text for people, json for machines (choices: "text",
"json", default: "text")
--verbose the engine's own log lines on stderr (never row values)
-h, --help display help for command
Examples:
gridkiln approve --list
gridkiln approve run_8k2m0q1x7d
gridkiln approve run_8k2m0q1x7d --reject --reason "Revenue is half of last month"
gridkiln approve ~/sales run_8k2m0q1x7d --as "Dana Okafor"
Exit codes: 0 recorded (or queued for the background agent); when this command carried the run on because nothing
else ran it, how the run ended (5 rejected); 4 no such run, not waiting, or not a reviewer of the gate; 64 usage.
gridkiln due#
Usage: gridkiln due [project] <workflow> [options]
Says whether one of the workflow’s scheduled times, by its calendar, holidays
and time zone, falls within the last few minutes. Exported entries for cron,
launchd, systemd or Task Scheduler run it before `gridkiln run-workflow` when
the scheduler cannot say the schedule exactly.
Arguments:
project the project folder (with one argument: the workflow, in
--project or this folder)
workflow the workflow: its name or id
Options:
--project <dir> the project folder, when only the workflow is given
--trigger <id> only this schedule of the workflow
--within <minutes> how late a start may be (default 15)
--at <time> check this instant instead of now (ISO, e.g.
2026-12-02T07:00:00Z)
--json print the answer as one JSON object
-h, --help display help for command
Exit codes: 0 due now · 7 not due · 4 no such project or workflow.
Example (crontab):
0 7 * * * gridkiln due --project ~/sales daily-orders && gridkiln run-workflow --project ~/sales daily-orders
gridkiln check#
Usage: gridkiln check [project] <pipeline> [options]
Evaluate a pipeline's checks on today's data, writing no outputs: a dry run that
reports every check. Exits 2 when a failing check would stop the run.
Arguments:
project the project folder (with one argument: the pipeline,
in --project or this folder)
pipeline the pipeline: its name, id or file name
Options:
--project <dir> the project folder, when only the pipeline is given
-p, --param <name=value> a parameter value (repeat for more; repeat a name
for a list)
-s, --set <name> a named parameter set, e.g. "EU run" (given --param
values win)
--log-format <format> text for people, ndjson for machines (one JSON
object per line) (choices: "text", "ndjson",
default: "text")
--warnings-as-exit-1 exit with 1 (not 0) when the run succeeds with
warnings
--verbose the engine's own log lines on stderr (never row
values)
-h, --help display help for command
Examples:
gridkiln check ~/sales "Monthly sales" --param month=2026-10
gridkiln check "Monthly sales" --set "EU run" --warnings-as-exit-1
Exit codes:
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
gridkiln list#
Usage: gridkiln list [project] [pipeline] [options]
List a project's pipelines with their parameters (and their defaults), named
parameter sets, checks and outputs, then the most recent runs. Name a pipeline
to see only it and its runs.
Arguments:
project the project folder (default: this folder or the one above
it that is a project)
pipeline only this pipeline: its name, id or file name
Options:
--project <dir> the project folder, when only the pipeline is given
-n, --runs <count> recent runs to show (default: 10)
--json print one JSON document
-h, --help display help for command
gridkiln test#
Usage: gridkiln test [project] [pipeline] [options]
Run pipeline tests: each feeds its small captured inputs through the pipeline
(nothing is delivered and no run is recorded) and compares the result with the
expected output. Exits 8 when a test finds differences.
Arguments:
project the project folder (alone: every pipeline in it; or the
pipeline, in --project or here)
pipeline the pipeline: its name, id or file name (default: every
pipeline with tests)
Options:
--project <dir> the project folder, when only the pipeline is given
-t, --test <name> only this test, by name or id (repeat for more)
--log-format <format> text for people, ndjson for machines (one JSON object
per line) (choices: "text", "ndjson", default: "text")
--values also show examples of the values that differ (from the
test data in the project)
--verbose the engine's own log lines on stderr
-h, --help display help for command
Examples:
gridkiln test every test in the project here
gridkiln test ~/sales "Monthly sales" one pipeline's tests
gridkiln test "Monthly sales" --test "Small month" --values
gridkiln test ~/sales --log-format ndjson for CI: one test.result line per test, then tests.finished
Exit codes:
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
gridkiln export#
Usage: gridkiln export [project] [pipeline] --format <format> --out <path> [options]
Export a pipeline as an SQL script, SQL or dbt models, a Python script, a
document or a shareable bundle; or export the run records (sealed, with the hash
chain verified) for an audit.
Arguments:
project the project folder (default: this folder or the one
above it that is a project)
pipeline the pipeline: its name, id or file name (for
records: only its runs)
Options:
--project <dir> the project folder, when only the pipeline is given
-f, --format <format> what to write (choices: "records", "sql",
"sql-models", "dbt", "python", "markdown", "html",
"pdf", "bundle")
-o, --out <path> the file or folder to write
--from <date> records: runs that started on or after this date
(ISO)
--to <date> records: runs that started before this date (ISO)
-p, --param <name=value> parameter values the export uses (repeatable)
--sample-data <kind> bundle: the data to include (choices: "none",
"real", "safe-sample", default: "none")
--verbose the engine's own log lines on stderr
-h, --help display help for command
Examples:
gridkiln export ~/sales --format records --out audit.ndjson --from 2026-01-01
gridkiln export ~/sales "Monthly sales" --format sql --out monthly-sales.sql
Exit codes:
0 success finished (also with warnings, unless --warnings-as-exit-1)
1 warnings finished with warnings, with --warnings-as-exit-1
2 data failure a failing check, a drift stop or row errors stopped it; nothing was written
3 temporary failure a locked file, a lost connection or a failed delivery; running again may work
4 configuration unknown project, pipeline or set; bad or missing parameter; missing input file or secret
5 rejected rejected at a review gate
6 cancelled cancelled (Ctrl+C, SIGTERM) or interrupted; nothing was half-written
7 precondition a precondition timed out, or the run was skipped
8 test differences `gridkiln test` found differences
9 no licence the command needs a licence or a running trial; nothing was read or written
64 usage unknown command or option, missing or malformed argument
69 not available yet not available in this version yet
70 internal error a bug in Gridkiln
gridkiln agent#
Usage: gridkiln agent [options]
Run the background agent in the foreground: the projects’ workflows run on their
schedules, missed runs are caught up by each schedule’s policy, one workflow
never runs twice at once, and each run gets processor and memory caps. Only one
agent schedules a project at a time; this one waits while another holds it.
Options:
--project <dir> a project folder to run (repeat for more; default: the
project here)
--max-concurrent <n> runs at once across projects (default 2)
--run <workflow> also run this workflow now (its name or id)
--once catch up and run what is due, wait until nothing is
queued, then exit
--service run as the OS service does: the desktop app attaches to
it; wakes the computer for runs where allowed
--serve run as a headless runner: desktops pair with it, push
projects and hand it their schedules
--port <n> with --serve: the port to listen on (default 7443)
--bind <host> with --serve: the address to listen on (default every
address)
--http with --serve: plain HTTP instead of HTTPS (this
computer only, unless --insecure)
--insecure with --serve --http: accept plain HTTP on the network
(the token is readable on the way)
--name <text> with --serve or --pair: the name desktops see (default
this computer’s name)
--pair print a pairing code for a desktop (alone, or with
--serve)
--paired list the desktops paired with this runner
--revoke <desktop> end a paired desktop’s access (its name or pairing id)
--log-format <format> text for people, ndjson for machines (one JSON object
per line) (choices: "text", "ndjson", default: "text")
--verbose the engine's own log lines on stderr (never row values)
-h, --help display help for command
Examples:
gridkiln agent run the project in this folder until Ctrl+C
gridkiln agent --project ~/sales --project ~/ops
gridkiln agent --run "Daily orders" --once run one workflow through the agent and exit
Pause every workflow from the app or the tray; this agent picks the switch up within seconds.
gridkiln secrets#
Usage: gridkiln secrets [options] [command]
Manage the secrets (passwords, tokens) a project uses, by name, in the keychain.
Values are never printed.
Options:
-h, --help display help for command
Commands:
list [options] [project] list secret names: whether each has a value, when it
was saved and what uses it
set [options] <name> save a value: piped on stdin, typed at a hidden
prompt, or --from-env / --from-file
delete [options] <name> remove a value
has [options] <names...> exit 0 when every name has a value, 4 when one is
missing (for scripts and runner setup)
help [command] display help for command
gridkiln secrets list#
Usage: gridkiln secrets list [options] [project]
list secret names: whether each has a value, when it was saved and what uses it
Arguments:
project the project folder
Options:
--json print JSON
--project <dir> the project folder (default: this folder or the one above it
that is a project)
--verbose the engine's own log lines on stderr
-h, --help display help for command
gridkiln secrets set#
Usage: gridkiln secrets set [options] <name>
save a value: piped on stdin, typed at a hidden prompt, or --from-env /
--from-file
Arguments:
name the secret name, e.g. warehouse/password
Options:
--from-env <variable> take the value from this environment variable
--from-file <path> take the value from this file (its last line break is
dropped)
--expires <date> when the value stops working (ISO date), to be reminded
in time
--project <dir> the project folder (default: this folder or the one
above it that is a project)
--verbose the engine's own log lines on stderr
-h, --help display help for command
gridkiln secrets delete#
Usage: gridkiln secrets delete [options] <name>
remove a value
Arguments:
name the secret name
Options:
--project <dir> the project folder (default: this folder or the one above it
that is a project)
--verbose the engine's own log lines on stderr
-h, --help display help for command
gridkiln secrets has#
Usage: gridkiln secrets has [options] <names...>
exit 0 when every name has a value, 4 when one is missing (for scripts and
runner setup)
Arguments:
names secret names
Options:
--project <dir> the project folder (default: this folder or the one above it
that is a project)
--verbose the engine's own log lines on stderr
-h, --help display help for command
gridkiln open#
Usage: gridkiln open [options] [project]
Open a project in the Gridkiln app if it is installed on this machine; otherwise
print how to open it.
Arguments:
project the project folder (default: this folder or the one above it that
is a project)
Options:
--print only print how to open the project; do not start the app
-h, --help display help for command
gridkiln inspect#
Usage: gridkiln inspect [options] <file>
Show how a data file is read (the reading strip), its schema with the type
evidence, and its first rows.
Arguments:
file file, pattern or folder to inspect
Options:
-n, --rows <count> rows to show (default: 20)
--json print machine-readable JSON
--sheet <name> workbook sheet to read
--table <name> table to read from a database file
--delimiter <char> override the detected delimiter (use \t for tab)
--encoding <name> override the detected encoding, e.g. utf-8, windows-1252,
utf-16le
--no-header the first row is data, not column names
-h, --help display help for command
gridkiln merge-driver#
Usage: gridkiln merge-driver [options] [files...]
merge project files by id when git merges branches (set up with --setup)
Arguments:
files git passes <base> <mine> <theirs> [path] (%O %A %B %P);
with --setup, the project folder
Options:
--setup write the project’s .gitattributes and print the one git
config command to run
--marker-size <n> length of conflict markers (git’s %L) (default: "7")
-q, --quiet say nothing on stderr about conflicts
-h, --help display help for command
Set up once per project with `gridkiln merge-driver --setup`, then once per clone:
git config merge.gridkiln.driver "gridkiln merge-driver %O %A %B %P"
Exit codes: 0 merged cleanly; 1 the file holds conflict markers around the fields both sides changed (open the
project in Gridkiln to choose, or edit the file); 4 a file could not be read (git keeps your version).
gridkiln sql#
Usage: gridkiln sql [options] <file> <query>
Run SQL against a data file, available as table t (typed as the app shows it).
Arguments:
file file, pattern or folder to query
query SQL to run, e.g. "SELECT count(*) FROM t"
Options:
-n, --max-rows <count> rows to print at most (default: 100)
--json print machine-readable JSON
--sheet <name> workbook sheet to read
--table <name> table to read from a database file
--delimiter <char> override the detected delimiter (use \t for tab)
--encoding <name> override the detected encoding, e.g. utf-8,
windows-1252, utf-16le
--no-header the first row is data, not column names
-h, --help display help for command
gridkiln licence#
Usage: gridkiln licence [options] [command]
The licence on this computer: its state, adding a licence file or key, fetching
a renewed licence, and moving it to another computer. Works with or without a
licence.
Options:
-h, --help display help for command
Commands:
status [options] print the licence state; exit 0 when everything
works (a licence or a running trial), 9 otherwise
add [options] <file-or-key> add a licence: a .gklicence file (offline), or
the key from the purchase email (online, once)
refresh fetch the newest file of this licence from the
licence server (after renewing)
deactivate free this computer's place on the key (online),
then remove the licence from this computer
remove [options] remove the licence from this computer (offline;
the key keeps its place: see deactivate)
help [command] display help for command
gridkiln licence status#
Usage: gridkiln licence status [options]
print the licence state; exit 0 when everything works (a licence or a running
trial), 9 otherwise
Options:
--json print the entitlement as JSON
-h, --help display help for command
gridkiln licence add#
Usage: gridkiln licence add [options] <file-or-key>
add a licence: a .gklicence file (offline), or the key from the purchase email
(online, once)
Arguments:
file-or-key the path of a .gklicence file, or a licence key
Options:
--name <computer> the name of this computer in the list of computers on the
key (default its name)
--machine keep it in the folder every account on this computer reads
(needs administrator rights)
-h, --help display help for command
gridkiln licence refresh#
Usage: gridkiln licence refresh [options]
fetch the newest file of this licence from the licence server (after renewing)
Options:
-h, --help display help for command
gridkiln licence deactivate#
Usage: gridkiln licence deactivate [options]
free this computer's place on the key (online), then remove the licence from
this computer
Options:
-h, --help display help for command
gridkiln licence remove#
Usage: gridkiln licence remove [options]
remove the licence from this computer (offline; the key keeps its place: see
deactivate)
Options:
--machine remove it from the folder every account on this computer reads
(needs administrator rights)
-h, --help display help for command