Skip to content

Installation

The BetterPrompt CLI is available as betterprompt (with a shorter alias bp). Choose one of the installation methods below.

npm

Requires Node.js 18+.

bash
npm install -g betterprompt

Standalone binary (macOS / Linux)

No Node.js required. The install script detects your OS and architecture automatically.

bash
curl -fsSL https://raw.githubusercontent.com/BetterPromptme/betterprompt/main/install.sh | bash

Supported platforms: macOS (x64, arm64), Linux (x64, arm64).

Verify

bash
betterprompt --version
betterprompt --help

Global flags

These flags are available on all commands:

FlagDescription
--projectUse project-local scope.
--globalUse global scope.
--dir <path>Override working directory.
--registry <url>Override API registry endpoint.
--jsonMachine-readable JSON output.
--quietSuppress non-essential output.
--verboseEnable verbose/debug output.
--no-colorDisable ANSI colors.
--yesSkip confirmation prompts.
-h, --helpShow help.
-V, --versionShow CLI version.