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

Dependency management

Tooling

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=unstable also lists the --unstable-* flags.
  • --help=full lists 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-color or ENDE_NO_COLOR turns color off, even with FORCE_COLOR set.
  • FORCE_COLOR turns color on, even when the output isn't a terminal and even with NO_COLOR or TERM=dumb set. FORCE_COLOR=0 turns it off.
  • NO_COLOR turns 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+):

  • --json prints one JSON document on stdout, with a version field. It's on check, grants, list, outdated, task (the task list), test and why, as well as on info, lint, doc and bench, which had it before.
  • --plain prints one record per line, tab-separated, with no table and no color. It's on list, outdated, task and why.

Other