Skip to content

The CLI (the engine)

The Prevail CLI is the engine. The desktop app bundles it as a sidecar and drives it under the hood — so everything the app does, the engine does. You can also run it standalone from a terminal.

  • A terminal cockpit — a keyboard-first TUI with a domain sidebar, per-domain workspace, and a ConfigBar of per-turn dials. → The terminal cockpit
  • Scriptable commands — every interactive action has a prevail … subcommand for shells and cron. → CLI command reference
  • A --json engine API — a stable NDJSON contract that any front-end (including the desktop app) can drive. → The engine —json API
  • An MCP server — expose Prevail to other agents. → The MCP server
Terminal window
curl -fsSL https://prevail.sh/install | bash
prevail # launch the terminal cockpit
prevail demo # explore the synthetic demo vault first
prevail doctor # check your vault and which models it can see

Homebrew and from-source options are on the install page.

The CLI and the desktop app read the same vault format and run the same engine. Use the app on your laptop and the CLI on a server, both pointed at one synced vault — they’re interchangeable surfaces over the same files.