ErdenDocs

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

CommandWhat it doesGuide
erden doctorChecks the bundled runtime, reasoner and SHACL engineInstall the CLI
erden upgrade [--channel stable|canary] [--check]Updates a script install to the latest releaseInstall the CLI
erden telemetry status|enable|disableShows or changes anonymous usage telemetryInstall the CLI
erden completions bash|zsh|fish|powershellPrints a shell completion script for erden and denInstall the CLI
erden login [--registry <origin>]Signs the CLI in by approving a code in the browserConnect the CLI
erden logout [--registry <origin>]Revokes and deletes the CLI's credentialConnect the CLI

Write and check

CommandWhat it doesGuide
erden init <dir> [--format json|jsonc|yml|yaml|toml]Creates a project with a manifest, lockfile, and starter ontologyCheck an ontology locally
erden check [dir] [--offline]Runs all six validation stagesCheck an ontology locally
erden pack <version> [dir]Writes the release archive without contacting the registryCheck an ontology locally
ERDEN_REASONER_MAX_WALL_TIME_MS=120000 erden checkChecks with a two-minute reasoner budget instead of 30 secondsWhen a check is refused
"outsideProfile": "report" in the manifestReasons over what it covers and lists the rest instead of refusingMirror an upstream ontology

Publish

CommandWhat it doesGuide
erden publish <version> --create [--visibility public|private] [--yes]Publishes the first release of a new layerPublish your first ontology
erden publish <version>Publishes a new release of an existing layerPublish your first ontology
erden publish <version> --no-waitReturns once the upload is acceptedPublish your first ontology
erden publication <attempt-id> [--wait] [--report]Shows, or waits for, the result of a publicationPublish your first ontology

Depend on other layers

CommandWhat it doesGuide
erden add <alias>@<version>Adds a dependency, pins it in erden.lock, and installs itUse layers as dependencies
erden install [--offline] [--frozen-lockfile]Installs exactly what erden.lock saysUse layers as dependencies
erden remove <alias>Removes a dependencyUse layers as dependencies
erden update [alias]Not working against a registry yet; use erden add with the new versionUse layers as dependencies
erden path <alias>Prints where a dependency is installedUse layers as dependencies
erden store path|status|prune [--dry-run]Inspects or cleans your computer's shared download storeUse layers as dependencies

Query

CommandWhat it doesGuide
erden query <alias>@<version> --file q.rq [--json | --sparql-json]Runs one SELECT or ASK query on an exact releaseQuery a release
erden query <alias>@<version> --stdinThe same, reading the query from standard inputQuery a release

Exit codes

0 passed, 1 a semantic failure in the ontology, 2 a usage mistake, 3 an operational problem.

On this page