ende install
ende install installs dependencies and caches them for your project. For more
on how Ende handles modules, see
Modules and dependencies.
Examples
ende install
Use this command to install all dependencies defined in
ende.json. They are installed in the
global cache. It also records and approves changes to the extensions and
isolate rules ende.json declares (see
below).
ende install [PACKAGES]
Use this command to install particular packages and add them to ende.json.
ende install jsr:@ende/testing jsr:@ende/path
Tip
You can also use ende add which is an alias to ende install [PACKAGES]
ende install --entrypoint [FILES]
Use this command to install all dependencies that are used in the provided files and their dependencies.
This is particularly useful if you use jsr:, http: or https: specifiers in
your code and want to cache all the dependencies before deploying your project.
import * as colors from "jsr:@ende/fmt/colors";
import { join } from "jsr:@ende/path";ende install -e main.js
Download jsr:@ende/fmt
Download jsr:@ende/path
Approving extensions and isolate rules
Ende 2026.12.01
Approvals and --yes (-y) are new in this release.
ende.lock records what each extension
and each isolate rule was
approved to run with. When one changes, ende run and the other commands stop
and point you here. ende install records new extensions, and with
--entrypoint new isolate rules, then shows each change and asks before
recording it:
$ ende install
Extension "@acme/greet" changed:
grant (ende.json):
- {"read":["./data"]}
+ {"read":["./data"],"net":["api.example.com"]}
it will run with: read /Users/me/app/data
Approve these extension changes? [y/N] y
Recorded the approved changes to extension "@acme/greet" in ende.lock.
Answering no, or pressing Enter, leaves the lockfile as it was and exits with
an error. The question needs stdin and stderr on a terminal. Without one,
ende install prints the changes and refuses:
$ ende install </dev/null
Extension "@acme/greet" changed:
grant (ende.json):
- {"read":["./data"]}
+ {"read":["./data"],"net":["api.example.com"]}
it will run with: read /Users/me/app/data
error: Extension changes need approval: run `ende install` where Ende can ask (stdin and stderr on a terminal) to review them, or `ende install --yes` to approve them. No changes were approved.
--yes (-y) approves every change without asking. --no-prompt or
ENDE_NO_PROMPT turns the question off, so only --yes approves. A frozen
lockfile (--frozen, or "lock": { "frozen": true }) can't take an approval,
so the command fails; pass --frozen=false to approve.
ende ci never approves: it names the
ende install command to run locally instead.
isolate rules are recorded per entry point. Plain ende install records
none, and it and ende install --entrypoint warn about each rule still
unrecorded:
$ ende install
Warning ende.lock has no record of these isolate rules yet, so `ende ci` fails and the first run that imports them records them:
isolate["./vendor/csv/"]
Run `ende install --entrypoint <entry>` 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.
Pass the entry points that import the rule, or, for a rule only a computed
import() reaches, the sandboxed module itself:
$ ende install --entrypoint main.ts
Recorded isolate["./vendor/csv/"] in ende.lock; it will run with: no permissions
A run that would give a sandbox more than any approved run is also approved per entry point. The error names the command:
$ ende install --entrypoint main.ts --yes
isolate["./vendor/csv/"] changed:
grant (ende.json):
- []
+ {"read":["./data"]}
new run from main.ts (asks for: no manifest): read /Users/me/app/data
(never more than the app)
Recorded the approved changes to isolate["./vendor/csv/"] in ende.lock.
Only the workspace root's extensions and isolate apply. In a workspace
member's ende.json, either field makes ende install fail, with an error that
says to move it to the root.
ende install --global [PACKAGE_OR_URL]
Use this command to install the provided package or script as a globally available binary on your system.
This command creates a thin, executable shell script which invokes ende using
the specified CLI flags and main module. It is placed in the installation root.
Example:
ende install --global --allow-net --allow-read jsr:@ende/http/file-server
Successfully installed file-server
/Users/ende/.ende/bin/file-server
To change the executable name, use --name:
ende install -g -N -R --name serve jsr:@ende/http/file-server
Ende 2026.12.01
--name no longer has the short form -n, which other commands use for
--dry-run. -n still works here for now, with a warning, and will stop
working in a later release.
The executable name is inferred by default:
- Attempt to take the file stem of the URL path. The above example would become 'file-server'.
- If the file stem is something generic like 'main', 'mod', 'index' or 'cli', and the path has no parent, take the file name of the parent path. Otherwise settle with the generic name.
- If the resulting name has an '@...' suffix, strip it.
To change the installation root, use --root:
ende install -g -N -R --root /usr/local/bin jsr:@ende/http/file-server
The installation root is determined, in order of precedence:
--rootoptionENDE_INSTALL_ROOTenvironment variable$HOME/.ende
Executables are placed in the bin subdirectory of the installation root,
unless the root path already ends with bin, in which case it is used directly.
The resulting directory must be added to the path manually if required.
echo 'export PATH="$HOME/.ende/bin:$PATH"' >> ~/.bashrc
You must specify permissions that will be used to run the script at installation time.
ende install -g -N -R jsr:@ende/http/file-server -- -p 8080
The above command creates an executable called file_server that runs with
network and read permissions and binds to port 8080.
For good practice, use the
import.meta.main idiom to specify the
entry point in an executable script.
Example:
// https://example.com/awesome/cli.ts
async function myAwesomeCli(): Promise<void> {
// -- snip --
}
if (import.meta.main) {
myAwesomeCli();
}
When you create an executable script make sure to let users know by adding an example installation command to your repository:
# Install using ende install
ende install -g --name awesome_cli https://example.com/awesome/cli.ts
ende install --global --compile [PACKAGE_OR_URL]
Use this command to compile a package or script into a standalone, self-contained binary. The resulting executable can be distributed and run without requiring Ende to be installed on the target system.
ende install --global --compile -A --name satz jsr:@ende/satz/cli
This combines the behavior of ende compile
with global installation — producing a native binary placed in the installation
root (same as --global without --compile).
--quiet flag
The --quiet flag suppresses diagnostic output when installing dependencies.
When used with ende install, it will hide progress indicators, download
information, and success messages.
ende install --quiet jsr:@ende/http/file-server
This is useful for scripting environments or when you want cleaner output in CI pipelines.
Uninstall
You can uninstall dependencies or binary script with ende uninstall command:
ende uninstall express
Removed express
ende uninstall -g file-server
deleted /Users/ende/.ende/bin/file-server
deleted /Users/ende/.ende/bin/.file-server
Successfully uninstalled file-server
See ende uninstall page for more details.
Command line usage:
installInstalls dependencies either in the local project or globally to a bin directory
Options
--cached-only
Require that remote dependencies are already cached.
--cert
Load certificate authority from PEM encoded file.
--check
Set type-checking behavior. This subcommand type-checks local modules by default, so passing --check is redundant; pass --check=all to also type-check remote modules. Alternatively, use the 'ende check' subcommand.
--compile
Install the script as a compiled executable.
--config, -c
Configure different aspects of ende including TypeScript, linting, and code formatting.
Typically the configuration file will be called ende.json or ende.jsonc and automatically detected; in that case this flag is not necessary.
--entrypoint, -e
Install dependents of the specified entrypoint(s).
--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.
--force, -f
Forcefully overwrite existing installation.
--frozen-lockfile
Error out if lockfile is out of date.
--global, -g
Install a package or script as a globally available executable.
--import-map
Load import map file from local file or remote URL.
--inspect
Activate inspector on host:port [default: 127.0.0.1:9229]. Host and port are optional. Using port 0 will assign a random free port.
--inspect-brk
Activate inspector on host:port, wait for debugger to connect and break at the start of user script.
--inspect-publish-uid
--inspect-wait
Activate inspector on host:port and wait for debugger to connect before running user code.
--location
Value of globalThis.location used by some web APIs.
--lock
Check the specified lock file. (If value is not provided, defaults to "./ende.lock").
--lockfile-only
Install only updating the lockfile.
--min-dep-age
(Unstable) The age in minutes, ISO-8601 duration or RFC3339 absolute timestamp (e.g. '120' for two hours, 'P2D' for two days, '2025-09-16' for cutoff date, '2025-09-16T12:00:00+00:00' for cutoff time, '0' to disable).
--name
Executable file name.
--no-check
Skip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored.
--no-config
Disable automatic loading of the configuration file.
--no-lock
Disable auto discovery of the lock file.
--no-remote
Do not resolve remote modules.
--no-save
Install the package(s) without adding them to the configuration file.
--preload
A list of files that will be executed before the main module.
--reload, -r
Reload source code cache (recompile TypeScript). With no value, reloads everything. Pass a comma-separated list of specifiers to reload only those modules; jsr:@ende/http/file-server,jsr:@ende/assert/equals reloads specific modules.
--root
Installation root.
--save-exact
Save exact version without the caret (^).
--seed
Set the random number generator seed.
--unsafely-ignore-certificate-errors
DANGER: Disables verification of TLS certificates.
--unscoped
Use the package name without its scope as the alias (ex. jsr:@david/jsonc-morph is added as jsonc-morph). Packages given an explicit alias are unaffected.
--v8-flags
To see a list of all available flags use --v8-flags=--help
Flags can also be set via the ENDE_V8_FLAGS environment variable.
Any flags set with this flag are appended after the ENDE_V8_FLAGS environment variable.
--vendor
Toggles local vendor folder usage for remote modules.
--yes, -y
Approve changes to the extensions and isolate rules declared in ende.json (their source, manifest or grant) without asking. With --entrypoint, also the isolate entries the entrypoints import.