CLI cheat sheet
Every erden command on one page, grouped by what you are doing, with the guide that explains it.
Run erden help for the same list in your terminal. Add --json to most commands for machine-readable output.
Set up
| Command | What it does | Guide |
|---|---|---|
erden doctor | Checks the bundled runtime, reasoner and SHACL engine | Install the CLI |
erden upgrade [--channel stable|canary] [--check] | Updates a script install to the latest release | Install the CLI |
erden telemetry status|enable|disable | Shows or changes anonymous usage telemetry | Install the CLI |
erden completions bash|zsh|fish|powershell | Prints a shell completion script for erden and den | Install the CLI |
erden login [--registry <origin>] | Signs the CLI in by approving a code in the browser | Connect the CLI |
erden logout [--registry <origin>] | Revokes and deletes the CLI's credential | Connect the CLI |
Write and check
| Command | What it does | Guide |
|---|---|---|
erden init <dir> [--format json|jsonc|yml|yaml|toml] | Creates a project with a manifest, lockfile, and starter ontology | Check an ontology locally |
erden check [dir] [--offline] | Runs all six validation stages | Check an ontology locally |
erden pack <version> [dir] | Writes the release archive without contacting the registry | Check an ontology locally |
ERDEN_REASONER_MAX_WALL_TIME_MS=120000 erden check | Checks with a two-minute reasoner budget instead of 30 seconds | When a check is refused |
"outsideProfile": "report" in the manifest | Reasons over what it covers and lists the rest instead of refusing | Mirror an upstream ontology |
Publish
| Command | What it does | Guide |
|---|---|---|
erden publish <version> --create [--visibility public|private] [--yes] | Publishes the first release of a new layer | Publish your first ontology |
erden publish <version> | Publishes a new release of an existing layer | Publish your first ontology |
erden publish <version> --no-wait | Returns once the upload is accepted | Publish your first ontology |
erden publication <attempt-id> [--wait] [--report] | Shows, or waits for, the result of a publication | Publish your first ontology |
Depend on other layers
| Command | What it does | Guide |
|---|---|---|
erden add <alias>@<version> | Adds a dependency, pins it in erden.lock, and installs it | Use layers as dependencies |
erden install [--offline] [--frozen-lockfile] | Installs exactly what erden.lock says | Use layers as dependencies |
erden remove <alias> | Removes a dependency | Use layers as dependencies |
erden update [alias] | Not working against a registry yet; use erden add with the new version | Use layers as dependencies |
erden path <alias> | Prints where a dependency is installed | Use layers as dependencies |
erden store path|status|prune [--dry-run] | Inspects or cleans your computer's shared download store | Use layers as dependencies |
Query
| Command | What it does | Guide |
|---|---|---|
erden query <alias>@<version> --file q.rq [--json | --sparql-json] | Runs one SELECT or ASK query on an exact release | Query a release |
erden query <alias>@<version> --stdin | The same, reading the query from standard input | Query a release |
Exit codes
0 passed, 1 a semantic failure in the ontology, 2 a usage mistake, 3 an operational problem.