Ende CLI Subcommands
The Ende CLI (Command Line Interface) allows you to interact with the Ende runtime environment from your terminal or command prompt. The CLI has a number of subcommands that can be used to perform different tasks, check the links below for more information on each subcommand.
Execution
- ende run - run a script
- ende serve - run a web server
- ende task - run a task
- ende repl - starts a read-eval-print-loop
- ende eval - evaluate provided script
- ende watch - run a program, hot-replacing modules on change
Dependency management
- ende add - add dependencies
- ende bump-version - bump the project
version in
ende.json - ende ci - install dependencies strictly from the lockfile
- ende cache - download and compile what a file imports, without running it.
It has no page of its own;
ende install --entrypointalso caches what a file imports - ende grants - show which dependencies run sandboxed and what each may do
- ende install - install a dependency or a script
- ende link - link a local JSR package into the project
- ende list - list the project's dependencies
- ende uninstall - uninstall a dependency or a script
- ende remove - Remove dependencies
- ende outdated - view or update outdated dependencies
- ende unlink - remove a linked package
- ende update - update dependencies
- ende why - explain why a package is in the dependency tree
Tooling
- ende bench - benchmarking tool
- ende check - type check your program without running it
- ende clean - remove the cache directory
- ende compile - compile a program into a standalone executable
- ende completions - generate shell completions
- ende coverage - generate test coverage reports
- ende create - scaffold a new project from a template
- ende doc - generate documentation for a module
- ende desktop - build a desktop app from the current Ende project
- ende fmt - format your code
- ende info - inspect an ES module and all of its dependencies
- ende init - create a new project
- ende lint - lint your code
- ende lsp - language server protocol integration
- ende publish - publish a module to JSR
- ende test - run your tests
- ende transpile - transpile TypeScript, JSX, or TSX to JavaScript
- ende types - print runtime types
- ende upgrade - upgrade Ende to the latest version
- ende x - run a JSR package or a script URL
Getting help
ende --help lists the commands, the global options, the environment variables
Ende reads and its exit codes (Ende 2026.12.01+). ende <command> --help (or
ende help <command>) shows a command's examples (Ende 2026.12.01+), usage
and options.
Two help contexts show more (Ende 2026.12.01+):
--help=unstablealso lists the--unstable-*flags.--help=fulllists every flag, including ones the normal help leaves out.
ende run --help=unstable
Any other context is a usage error.
Running a file
ende <file> is short for ende run <file>. A word counts as a file only if it
has an extension, a / (or \ on Windows), or a URL scheme. Any other word
is a command, and an unknown one is an error (Ende 2026.12.01+):
$ ende format
error: unknown command 'format'
tip: a similar command exists: 'fmt'
tip: to run a file named 'format', use `ende ./format` or `ende run format`
See ende run
for running a file with no extension.
Exit codes
Ende 2026.12.01
Usage errors exit with code 2. They used to exit with code 1.
| Code | Meaning |
|---|---|
0 |
Success. |
1 |
A failure while running: an uncaught error, failed tests, lint or format problems, type errors. |
2 |
A usage error: an unknown command or flag, or a missing or bad value. |
70 |
An unstable API was used without its --unstable-* flag. |
130 |
Interrupted (Ctrl-C). |
A program's own exit code (Ende.exit(n)) and a task's exit code pass through
unchanged.
Color
Ende 2026.12.01
Ende no longer colors its output in pipes, and --no-color and
ENDE_NO_COLOR are new.
Ende colors its own output (progress, errors, reports) only when both stdout and
stderr are terminals, and TERM isn't dumb. So ende test 2>log prints no
color on the terminal either. In a program, console.log and console.error
decide for their own stream, and Ende.noColor follows stdout.
These settings change that, strongest first:
--no-colororENDE_NO_COLORturns color off, even withFORCE_COLORset.FORCE_COLORturns color on, even when the output isn't a terminal and even withNO_COLORorTERM=dumbset.FORCE_COLOR=0turns it off.NO_COLORturns color off.
With TERM=dumb, Ende also sends no cursor movement codes, and asks its
questions as plain lines.
Output for scripts
Commands that print a report can print it in a form other programs can read (Ende 2026.12.01+):
--jsonprints one JSON document on stdout, with aversionfield. It's oncheck,grants,list,outdated,task(the task list),testandwhy, as well as oninfo,lint,docandbench, which had it before.--plainprints one record per line, tab-separated, with no table and no color. It's onlist,outdated,taskandwhy.