Manage Cairn from your terminal. Datasets, backups and webhooks — every part of the platform that fits a script.
Built for automation
Branching and schema modelling stay in the Dashboard — that's where they belong. The CLI covers everything else: generating typed code, managing datasets and backups, wiring webhooks into CI, and validating a schema before it ships.
$ cairn --help
typegen generate typed code from your schema
dataset list and switch datasets
backups list, create, restore
webhooks manage endpoints
schema check schema before you mergeFits your pipeline
Add a single CLI call to CI to validate a branch's schema changes against existing content — read-only, the same check the Dashboard runs, available anywhere a shell script can run.
- name: Validate schema
run: npx cairn schema check --branch ${{ github.head_ref }}Command groups
Generate real TypeScript types from your schema, on demand — by hand, in CI, or as a predev script.
List and switch datasets for any environment or locale.
List, create and restore snapshots on demand or on a schedule.
It ships with every project created via npm create cairn.