ErdenDocs
Getting started

Install the CLI

Install the erden command-line tool with one command or a package manager, and confirm it works with erden doctor.

Who needs this, and when

Who: anyone who writes, checks, publishes, or depends on ontologies, or queries releases from a terminal. Readers who only browse the registry don't need it. When: once per computer. Status: always available.

The erden CLI (also den) and its local checking tools are open source under Apache-2.0, in the public repository erden-sh/erden. Each release is one download per platform from GitHub Releases: a single erden program with its own Node.js runtime, the den command beside it, the reasoner and the SHACL engine. You don't need Node.js, pnpm, Rust or a copy of the source. The closed hosted registry is not part of that repository.

What you need

  • A computer running Linux (x64 or arm64, with glibc or musl), macOS on Apple silicon (arm64) or Windows (x64). There is no build for Intel Macs; on one, use a Linux virtual machine.
  • On Alpine and other musl-based Linux systems, the C++ runtime: apk add libstdc++ libgcc. The install script checks for it and names that command before it downloads anything.
  • No administrator rights. Erden installs for your user only.

Install

Run the install command

curl -fsSL https://erden.sh/install | sh

https://erden.sh/install and https://erden.sh/install.ps1 lead to the latest release's install.sh and install.ps1 on GitHub. Each script carries the SHA-256 of its release's archives and refuses any other file.

What you should see on Linux or macOS:

Installed Erden 0.2.0 to ~/.local/share/erden/0.2.0, with erden and den in ~/.local/bin
Added ~/.local/bin to your PATH in: ~/.profile ~/.bashrc
New shells will find erden. To use it in this shell now, run:
    . "/home/you/.local/share/erden/env"

The version is the latest release's, and the list of files depends on the shells you use. On Windows the script prints Installed Erden <version> to ...\AppData\Local\Programs\Erden\<version>, with erden and den in ...\AppData\Local\Programs\Erden\bin and Added ...\Programs\Erden\bin to your user PATH. New terminals will find erden.

Put erden on your PATH

The script does this for you:

  • Linux and macOS: it links erden and den into ~/.local/bin. Unless that folder is already on your PATH, it adds one line to ~/.profile, to the bash files you have (~/.bashrc, ~/.bash_profile, ~/.bash_login), to ~/.zshenv when you use zsh, and a file in ~/.config/fish/conf.d/ when you use fish. Each line loads ~/.local/share/erden/env, which adds the folder once. Running the script again adds nothing twice.
  • Windows: it puts erden and den launchers in %LOCALAPPDATA%\Programs\Erden\bin and adds that folder to your user PATH once.

New terminals find erden and den. To use them in the terminal you installed from, run the line the script printed, or open a new terminal. Homebrew and Scoop put the commands on your PATH themselves.

Leave your shell profiles alone

Add --no-modify-path (curl -fsSL https://erden.sh/install | sh -s -- --no-modify-path) or, on Windows, set $env:ERDEN_NO_MODIFY_PATH = '1' before the install command. The script then only tells you which folder to add to your PATH.

Check the installation

erden doctor

What you should see:

$ erden doctor
Erden doctor: PASSED
Node: 24.17.0 (required 24.17.0) — passed
Runtime: linux/x64/glibc
Reasoner: 0.3.0+purrdf.0.12.0.dfb1df7 x86_64-unknown-linux-gnu sha256:<digest> — known-answer passed (expected @erden/reasoner-linux-x64-gnu)
SHACL engine: 0.1.0+purrdf.3.0.1 x86_64-unknown-linux-gnu sha256:<digest> — known-answer passed (expected @erden/shacl-linux-x64-gnu)

erden doctor checks the Node.js runtime built into erden, then runs the bundled reasoner and the bundled SHACL engine, each on a question with a known answer. The CLI also checks each engine against its pinned size and SHA-256 before every use. On another computer the runtime and engine lines name it instead, for example darwin/arm64 and @erden/shacl-darwin-arm64 on a Mac with Apple silicon, or linux/x64/musl on Alpine.

Shell completions

erden completions <bash|zsh|fish|powershell> prints a completion script for erden and den. Homebrew installs them for you. Otherwise, add the line for your shell to its startup file:

source <(erden completions bash)                                # ~/.bashrc
source <(erden completions zsh)                                 # ~/.zshrc, after compinit
erden completions fish | source                                 # ~/.config/fish/config.fish
erden completions powershell | Out-String | Invoke-Expression   # $PROFILE

Telemetry

Release builds send anonymous usage data: each command's name, outcome and duration, the Erden version, release channel, OS, CPU architecture and a random install ID. They never send file paths, project names, IRIs, arguments or error messages. The first time you run erden, it says so and sends nothing:

Erden collects anonymous usage data to improve the CLI: the command's name, whether it worked, how long it took,
the Erden version, release channel, OS and CPU architecture, and a random install ID. It never collects file paths,
project names, IRIs, arguments or error messages. Nothing was sent from this run.
Turn it off with `erden telemetry disable`, ERDEN_TELEMETRY_DISABLED=1 or DO_NOT_TRACK=1.
Learn more: https://github.com/erden-sh/erden/blob/main/docs/telemetry.md

Turn it off with any one of these:

erden telemetry disable          # from now on, on this computer
export ERDEN_TELEMETRY_DISABLED=1
export DO_NOT_TRACK=1            # also turns off the daily update check

erden telemetry status says whether it is on, and why. Telemetry is always off in CI. Once a day, in a terminal, the CLI also checks for a newer release and prints one line when there is one; ERDEN_NO_UPDATE_NOTIFIER=1 turns that off. What telemetry collects lists exactly what is sent and stored.

Upgrade

erden upgrade

It finds the latest release, checks its install script and archive against the release's SHA256SUMS, and runs that script. What you should see: Upgraded Erden from 0.1.0 to 0.2.0. followed by where the old version stays; remove that folder to free the space. Installed with Homebrew or Scoop, update with brew upgrade erden or scoop update erden instead; erden upgrade says so.

To install one exact version instead of the latest, set ERDEN_VERSION, or pass --version to install.sh:

curl -fsSL https://erden.sh/install | sh -s -- --version 0.2.0

Uninstall

curl -fsSL https://erden.sh/install | sh -s -- --uninstall

What you should see: a Removed ... line for each link, PATH line and installed version, then Erden is uninstalled. Your projects, its package store and its settings are left as they were. Saved registry sign-ins stay too; erden logout removes them. Installed with Homebrew or Scoop, run brew uninstall erden or scoop uninstall erden instead.

Check where a release came from

Every release file has a build provenance attestation, signed by the GitHub Actions run that built it. With the GitHub CLI:

gh attestation verify erden-<version>-<platform>.tar.gz --repo erden-sh/erden

Erden 0.1.0 has no attestations; check its files against the release's SHA256SUMS. To install on a computer without network access, see Installing without network access in the repository's README.

Build from source

You don't need to build Erden to use it. To work on the tools themselves, see CONTRIBUTING.md and Building from source in the public repository. A CLI built from source never sends telemetry.

If it looks different

erden: command not found

The terminal you installed from doesn't have the new PATH yet. Run the . "…/.local/share/erden/env" line the script printed, or open a new terminal. If you installed with --no-modify-path, add ~/.local/bin (Windows: %LOCALAPPDATA%\Programs\Erden\bin) to your PATH yourself.

The install script says Erden needs libstdc++.so.6 or libgcc_s.so.1

You are on Alpine or another musl-based Linux system. Run apk add libstdc++ libgcc (as root, or with sudo), then the install command again.

The install script says unsupported platform

Erden runs on Linux x64 and arm64 (glibc or musl), macOS on Apple silicon and Windows x64. On an Intel Mac or Windows on arm64, run it in a Linux virtual machine or container.

erden doctor says the reasoner or SHACL engine failed

The installed files no longer match the release, for example after a partial copy. Run the install command again; it replaces that version's files.

Commands that talk to the registry fail with a certificate error

If your corporate network intercepts TLS, ask your network administrator for the proxy's CA certificate and point Erden's Node.js runtime at it before running erden or den:

export NODE_EXTRA_CA_CERTS=/path/to/corporate-proxy-ca.pem

Next

On this page