BugSnag CLI
$ bugsnag-cli Official Med RiskBugSnag CLI (bugsnag-cli) uploads JavaScript source maps, Apple dSYMs, Android ProGuard/NDK mappings, and Dart symbols, and notifies BugSnag of new builds and releases (create-build). Supports --api-key, --app-version, and --dry-run for predictable, non-interactive CI pipelines.
npm install -g @bugsnag/cli bugsnag-cli streams local build artifacts, source maps, and native dSYM/NDK symbol bundles straight from CI build directories, which an MCP server cannot perform.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Designed for non-interactive CI execution with explicit flags (--api-key, --app-version) and clean exit codes, though it lacks a native --json output mode.
- Non-interactive flags across
uploadandcreate-buildsubcommands - No global
--jsonflag; emits human-readable log lines
Built-in --dry-run support on uploads and build notifications plus project-scoped BUGSNAG_API_KEY isolation prevent accidental symbol overwrites.
- Supports
--dry-runbefore mutating BugSnag servers - Scoped per-project API key limits blast radius
Published on npm (@bugsnag/cli) with prebuilt native binaries for macOS, Linux, and Windows.
- Single-command install via
npm install -g @bugsnag/cliornpx @bugsnag/cli
Unifies JS, Apple dSYM, Android ProGuard/NDK, Dart, and React Native symbol uploads plus release tracking in one tool.
- Covers multi-platform symbolication and
create-buildrelease markers
Official SmartBear/BugSnag repository (bugsnag/bugsnag-cli) under MIT license with active releases.
- First-party
bugsnag/bugsnag-clirepository
Clear documentation per platform (upload js, upload apple, upload android) and concise --help flags.
- Official docs at docs.bugsnag.com/build-integrations/bugsnag-cli/
Security, Auth & Guardrails
Reads BUGSNAG_API_KEY from the environment, the --api-key flag, or project build manifests (Info.plist, AndroidManifest.xml, package.json).
MIT open-source CLI; requires a BugSnag project API key and BugSnag plan (free tier available).
# BugSnag CLI (bugsnag-cli) Agent Rules - Always run `upload` or `create-build` with `--dry-run` first to verify matched symbol files. - Pass `BUGSNAG_API_KEY` via env or `--api-key` and set `--app-version` explicitly in CI.
Agent-Ready Command Recipes
Safe Read-Only Queries
bugsnag-cli upload js --dry-run --api-key "$BUGSNAG_API_KEY" --app-version 1.2.3 ./dist
Validates source map discovery, bundle pairing, and --api-key settings with --dry-run without uploading files.
bugsnag-cli create-build --dry-run --api-key "$BUGSNAG_API_KEY" --app-version 1.2.3 --release-stage production
Checks release metadata and Git revision auto-detection locally without mutating BugSnag release records.
Controlled Writes & Previews
bugsnag-cli upload js --api-key "$BUGSNAG_API_KEY" --app-version 1.2.3 --base-url https://app.example.com/assets ./dist
Uploads compiled .js.map files to BugSnag so stack traces de-minify for version 1.2.3.
Strengths for Agents
- + First-class
--dry-runflag lets agents verify matched source maps and symbol bundles safely. - + Auto-detects build metadata from native manifests (
Info.plist,AndroidManifest.xml) and Git.
Caveats & Pitfalls
- ! Lacks structured
--jsonoutput, so agents must rely on exit codes and log parsing. - ! Only handles artifact upload and release creation; querying error events requires the BugSnag API.