Skip to content

CLI Reference

The errpulse CLI starts the ErrPulse server and manages its lifecycle.

Installation

The CLI is available as the errpulse npm package. You can run it directly with npx:

bash
npx errpulse

Or install it globally:

bash
npm install -g errpulse

Commands

errpulse / errpulse start

Start the ErrPulse server.

bash
npx errpulse
npx errpulse start
npx errpulse start --port 4000

Options:

FlagDescriptionDefault
--port <number>Port to run the server on3800

This starts:

  • The REST API server
  • The SQLite database (created at ~/.errpulse/errpulse.db if it doesn't exist)
  • The WebSocket server for real-time updates
  • The dashboard (served at the root URL)

errpulse status

Check if the ErrPulse server is running.

bash
npx errpulse status

Output when running:

ErrPulse is running
Uptime: 1h 23m 45s

Output when not running:

ErrPulse is not running

Uses a 3-second timeout to check the GET /api/health endpoint.

errpulse clear

Clear all stored data (errors, events, requests, projects).

bash
npx errpulse clear

This sends a POST /api/clear request to the running server. The server must be running for this command to work.

errpulse help

Show usage information.

bash
npx errpulse help
npx errpulse -h
npx errpulse --help

Environment Variables

VariableDescriptionDefault
ERRPULSE_PORTPort to run the server on3800
ERRPULSE_HOSTHost to bind the server to0.0.0.0

Environment variables are overridden by CLI flags. For example:

bash
ERRPULSE_PORT=4000 npx errpulse          # Uses port 4000
npx errpulse start --port 5000            # Uses port 5000
ERRPULSE_PORT=4000 npx errpulse --port 5000  # Uses port 5000 (flag wins)

Exit Codes

CodeMeaning
0Success
1Error (server not running, connection failed, etc.)

Released under the MIT License.