DebugBundle
CLI

CLI

Install and authenticate the DebugBundle CLI. Manage incidents, bundles, tokens, webhooks, alerts, and health checks from the terminal.

What the CLI Does

The DebugBundle CLI is your primary interface for:

  • Local-first debugging — Setup, capture, process, inspect, and resolve incidents without any cloud account
  • Cloud management — Connect a project, verify ingestion, manage tokens and webhooks
  • Agent integration — Every command outputs structured --json for AI-agent consumption via MCP or direct invocation
  • Log ingestion — Ingest and tail-watch log files with first-party parsers

Installation

Supported Node.js versions: 22.x through 26.x.

npm install -g @debugbundle/cli

Or as a project dev dependency:

npm install --save-dev @debugbundle/cli

Verify installation:

debugbundle --version
debugbundle --help

Update the CLI

To update a global CLI install to the latest version:

npm install -g @debugbundle/cli@latest

Authentication

The CLI uses two authentication modes:

ModeToken PrefixUse Case
Local-onlyNo token neededsetup, process, inspect, doctor — everything local
Connecteddbundle_mem_*Cloud retrieval, token management, webhook CRUD, billing

Login

debugbundle login
debugbundle login dbundle_mem_xxxxxxxxxxxx
debugbundle login --github

This saves a normal member token to ~/.debugbundle/auth.json. All subsequent cloud commands use this token automatically. Running debugbundle login with no explicit auth mode opens an interactive chooser in the terminal:

  • GitHub auto mode: try gh auth token, then fall back to device flow
  • GitHub device flow: show a GitHub URL plus short code
  • Existing member token: paste a dbundle_mem_* token created from the web app

--github first tries an existing gh auth token, then falls back to GitHub device flow if needed. Users who prefer the manual path, or who do not have GitHub, can still sign in with email in the web app and paste the resulting dbundle_mem_* token into debugbundle login.

Customize the API base URL:

debugbundle login dbundle_mem_xxxxxxxxxxxx --base-url https://api.self-hosted.example.com

Verify Identity

debugbundle whoami

Global Flags

Every command supports these flags:

FlagDescription
--jsonOutput machine-readable JSON instead of human-readable text
--auth-file <path>Override the default auth file location (cloud commands only)

Exit Codes

CodeMeaning
0Success
1Internal error
2Authentication error
3Resource not found
4Input validation error

Command Index

Local Workflow

CommandDescription
setupInitialize the DebugBundle scaffold in your project
doctorHealth check: profile, connection, auth, local state
processProcess local events into incidents and bundles
validateCheck scaffold files exist and are valid
cleanRemove local events, bundles, or both
analyzeRun analysis recipes on local incidents

Incident Management

CommandDescription
incidentsList incidents (local, cloud, or both)
inspect <id>View full incident detail
resolve <id> [id ...]Mark one or more incidents as resolved
reopen <id> [id ...]Reopen one or more resolved incidents
bundle <id>Retrieve the debug bundle for an incident
reproduce <id>Get reproduction artifacts (curl, httpie, JSON spec)
logs <id>View event logs for an incident

Ingestion

CommandDescription
ingest <file>Ingest a log file as events
watchTail-watch a log file and continuously ingest

Cloud Operations

CommandDescription
login / login <token> / login --githubAuthenticate with the interactive chooser, a member token, or GitHub bootstrap
whoamiShow current auth identity
connectLink local project to a cloud project
verify localVerify the local scaffold is healthy
verify cloudVerify cloud ingestion, synthetic trigger proofs, and app-event proof paths
smokeEnd-to-end smoke test for cloud ingestion

Resource Management

CommandDescription
servicesList services for a project
token project list/create/revokeManage project tokens (SDK write-only)
token member list/create/revokeManage member tokens (CLI/API/MCP)
webhook list/create/update/delete/testManage webhooks
webhook deliveries/retryView and retry webhook deliveries
alert list/create/update/deleteManage alert rules
health checks list/get/create/update/delete/test/results/daily-rollupsManage hosted availability checks
billing getView billing summary
billing trial startStart an eligible no-card trial
billing capacity increase/schedule-reduction/cancel-reductionManage billing capacity
weekly-report list/create/update/deleteManage weekly reports
capture-policy get/setView and update capture policy
capture-rule list/create/update/delete/suggest/create-from-suggestionManage project capture rules and create rules from noisy incidents
project list/create/update/deleteManage projects
probe activate/list/deactivateManage debug probes
project members list/invites/invite/cancel-invite/update-role/removeManage project collaborators
profile validateValidate the local project profile

Next Steps

On this page