Simplify the process of creating releases on the BugSnag dashboard and uploading files to improve the stacktraces in your errors with our command line tool.
Installation
The binaries are available on our GitHub releases page for macOS, Linux and Windows.
cURL / Wget
To install or upgrade to the latest binary for your architecture, you can also run the following cURL or Wget commands:
See the upload android-ndk command reference for full usage information.
Android Proguard mapping flies
If you are using ProGuard, DexGuard, or R8 to minify and optimize your app, this command uploads the mapping file along with version information from your project directory:
To get unminified stack traces for JavaScript code in your React Native app built for Android, source maps must be generated and can be uploaded to BugSnag using the following command from the root of your project:
If you are stripping debug symbols from your Dart code when building your Flutter apps, you will need to upload symbol files in order to see full stacktraces using the following command:
If you are using BugSnag On-premise, you should use the --build-api-root-url and --upload-api-root-url options to set the URL of your build and upload servers, for example:
bugsnag-cli upload \
--upload-api-root-url https://bugsnag.my-company.com/
# ... other options
Most updates to this repo will be made by Bugsnag employees. We are unable to accommodate significant external PRs such as features additions or any large refactoring, however minor fixes are welcome. See contributing for more information.
License
This package is free software released under the MIT License. See license for details.
Add --version flag to the command to retrieve the version of the installed CLI. 51
Add --dry-run flag to all upload commands to validate but not upload source maps. 54
Automatically generate a unique value for the buildUUID parameter from .aab files when not specified in the AndroidManifest or --build-uuid option. 54
Add --dex-files flag to upload android-proguard to generate a unique value for the buildUUID from classes.dex files when uploading a mapping.txt61
FAQs
BugSnag CLI
The npm package @bugsnag/cli receives a total of 5,712 weekly downloads. As such, @bugsnag/cli popularity was classified as popular.
We found that @bugsnag/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 9 open source maintainers collaborating on the project.
Package last updated on 17 Oct 2023
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
By Kirill Boychenko, Peter van der Zee - Jan 29, 2025
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.