Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

BugSnag CLI

$ bugsnag-cli Official Med Risk
SmartBear · Workspace & SaaS · MIT · macos / linux / windows

BugSnag 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.

FCRS-1.0 Score
83 /100
Good
Medium Confidence
Zero-Friction Install
npm install -g @bugsnag/cli
CLI vs MCP Decision CLI Preferred vs MCP

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

— JSON Output
— Field Filtering
✓ Non-Interactive
✓ Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 19 / 25

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 upload and create-build subcommands
  • No global --json flag; emits human-readable log lines
Trust & Safety 22 / 25

Built-in --dry-run support on uploads and build notifications plus project-scoped BUGSNAG_API_KEY isolation prevent accidental symbol overwrites.

  • Supports --dry-run before mutating BugSnag servers
  • Scoped per-project API key limits blast radius
Setup & Portability 13 / 15

Published on npm (@bugsnag/cli) with prebuilt native binaries for macOS, Linux, and Windows.

  • Single-command install via npm install -g @bugsnag/cli or npx @bugsnag/cli
Utility & Efficiency 12 / 15

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-build release markers
Maintenance & Lineage 9 / 10

Official SmartBear/BugSnag repository (bugsnag/bugsnag-cli) under MIT license with active releases.

  • First-party bugsnag/bugsnag-cli repository
Docs & Verifiability 8 / 10

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

Auth Modes
Env API Key Config File
Credential Storage

Reads BUGSNAG_API_KEY from the environment, the --api-key flag, or project build manifests (Info.plist, AndroidManifest.xml, package.json).

Side Effects
Read-Only Remote Write
Cost & Quotas

MIT open-source CLI; requires a BugSnag project API key and BugSnag plan (free tier available).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Dry-run a JavaScript source map upload
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.

Preview a release build notification
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

Upload production JS source maps
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-run flag 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 --json output, so agents must rely on exit codes and log parsing.
  • ! Only handles artifact upload and release creation; querying error events requires the BugSnag API.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI