ende ci

ende ci performs a reproducible install for CI environments. Use it in CI scripts when you want a single, greppable command that's guaranteed to install exactly what the lockfile records — no drift, no surprises.

ende ci

What it does

ende ci is roughly equivalent to ende install --frozen-lockfile, but with stricter error handling and clearer failure modes:

  1. Requires a lockfile. If ende.lock is missing or unreadable, ende ci never generates one: it fails as soon as there is anything to record. This guarantees that two runs of the same commit install the same versions.
  2. Locks resolution. If ende.json has been edited without re-running ende install to refresh the lockfile, the command fails. This catches "I bumped a version but forgot to commit the lockfile" mistakes before they reach production.

If either check fails, the install does not proceed.

Extensions and isolate rules

ende ci never approves a change to an extension or an isolate rule (Ende 2026.12.01+). It never writes the lockfile, so it can't record an approval, and it doesn't take --yes. A change it finds is printed, then refused with the command to run locally:

$ ende ci
isolate["./vendor/tool/"] changed:
  grant (ende.json):
    - {"env":["MODE"],"run":["git"]}
    + {"env":["MODE"]}
  (never more than the app)
error: Isolate rule changes need approval, which writes ende.lock, and `ende ci` never writes it. Run `ende install --entrypoint <entry>` locally to review and approve them, then commit ende.lock. No changes were approved.

For an extension, or a rule removed from ende.json, the command is ende install. When ende.json sets "lock": { "frozen": true }, it comes with --frozen=false.

A new extension that ende.lock doesn't record yet fails with The lockfile is out of date, like any other missing entry. A declared isolate rule that ende.lock has no record of fails too, since the first run that imports it would record it unreviewed:

$ ende ci
error: The lockfile has no record of these isolate rules, so the first run that imports them would record them unreviewed:
  isolate["./vendor/csv/"]
Run `ende install --entrypoint <entry>` locally with the entry points that import them (or, for a rule only a computed import() reaches, its sandboxed module), and commit ende.lock. Remove rules nothing imports.

Record rules locally with ende install --entrypoint <entry>, approve changes with ende install, and commit ende.lock. Remove rules that nothing imports, or they keep ende ci failing.

An extensions or isolate field in a workspace member's ende.json makes ende ci fail too: only the workspace root's apply.

When to use it

Scenario Use
CI build / test / lint pipeline ende ci
Local development (frequent edits) ende install
Adding or removing a package ende add / ende remove
First-time bootstrap (no lockfile yet) ende install

The rule of thumb: pick ende ci whenever the install must be reproducible and there is no expectation that the lockfile should change. Pick ende install whenever you're iterating on dependencies.

Example: GitHub Actions

.github/workflows/test.yml
name: Test

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Ende
        run: |
          curl -fsSL https://ende.sh/install.sh | sh
          echo "$HOME/.ende/bin" >> "$GITHUB_PATH"
      - run: ende ci
      - run: ende test
      - run: ende lint
      - run: ende fmt --check

Common failure modes

When ende.lock doesn't match ende.json, ende ci fails with The lockfile is out of date and prints the changes a fresh install would make. Run ende install locally and commit the resulting ende.lock.

When ende.lock is missing, ende ci fails as soon as there is anything to record, and says the lockfile is missing rather than out of date (Ende 2026.12.01+):

$ ende ci
error: ende.lock doesn't exist, and a frozen lockfile (`ende ci`, --frozen, or lock.frozen in ende.json) requires one. Rerun this command with --frozen=false to create it (for `ende ci`, run `ende install`), then commit it.

If ende.json sets lock.frozen, plain ende install is frozen too, so the error says to run ende install --frozen=false instead.

Ende keeps a lockfile only beside an ende.json, and ende ci fails without one too (Ende 2026.12.01+):

$ ende ci
error: ende.lock doesn't exist, and `ende ci` requires one, which Ende keeps only beside an ende.json. Add an ende.json, run `ende install`, and commit what it writes.

"lock": false in ende.json turns the lockfile off, which ende ci refuses (Ende 2026.12.01+):

$ ende ci
error: "lock": false in /Users/me/app/ende.json turns the lockfile off, and `ende ci` requires one. Remove it, run `ende install`, and commit what it writes.

See also

Command line usage:

ci

Install dependencies from a lockfile in a frozen state

Options

--env-file

Load environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten, so if variables with the same names already exist in the environment, their values will be preserved. Where multiple declarations for the same environment variable exist in your .env file, the first one encountered is applied. This is determined by the order of the files you pass as arguments.