1 分钟快速使用 Docker 上手新版 Sentry-CLI - 创建一个版本

热点 2026-11-14 0433792

 

我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。

安装 Docker 镜像

默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:

# 拉取镜像 docker pull getsentry/sentry-cli # 执行命令 docker run --rm -v $(pwd):/work getsentry/sentry-cli&1 nbsp;--help # sentry-cli 1.68.0  # Command line utility for Sentry.  # This tool helps you manage remote resources on a Sentry server like # sourcemaps, debug symbols or releases.  Use&nb分钟sp;`--help` on the subcommands # to learn more about them.  # USAGE: #     sentry-cli   # OPTIONS: #         --api-key <API_KEY> #       快速      The given Sentry API key.  #         --auth-token <AUTH_TOKEN> #             Use the given Sentry auth token.  # &nbs使用p;   -h, --help #             Print this help message.  #         --log-level <LOG_LEVEL> #             Set D the log output verbosity. [possible values: trace, debug, info, warn, error]  #         --url  #             Fully qualified URL to the Socentry server. #             [defaults to https://sentry.io/] #     -V, --version #             Print version information.   # SUBCOMkeMANDS: #     bash-hook          Prints out a bash script that does error handling. #     difutil            Locate or analyze r ;debug information files. #     help               Prints this message or the help of the given subcommand(s) #     info      &nbs上手p;        Print information about the Sentry server. #     issues             Manage issues in Sentry. #     login     新版;         Authenticate with the Sentry server. #     projects           Manage projects on Sentry. #     react-native      & Snbsp;Upload build artifacts for react-native projects. #     releases           Manage releases on Sentry. #     repos             en Manage repositories on Sentry. #     send-event         Send a manual event to Sentry. #     upload-dif         Upload debugging information&trnbsp;files. #     upload-proguard    Upload ProGuard mapping files to a project.  配置和认证 配置文件

sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。

.sentryclirc

[auth] token=your-auth-token  [defauly-ts] org=sentry project=react-sentry-demo url=https://x.xxx.com 

进入容器内

创建一个新版本:

docker run --rm -it -v $(pwd):/work getsentry/sentry-cli /bin/sh  sentry-cli releases new 1.0.0  Refs

https://docs.sentry.io/product/cli/

 

本文地址:http://soft.zmdinfo.ha.cn/html/1934893871.html
版权声明

本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。

全站热门

云安全日报210625:Ubuntu Ceph分布式存储文件系统发现拒绝服务漏洞,需要尽快升级

标签: 豆包App 豆包导航 字节跳动 高德地图

标签: 快手 周国睿 Meta TikTok

云安全日报210616:红帽云应用平台发现内存损坏和拒绝服务漏洞,需要尽快升级

让数字世界坚定运行 | 华为发布2024数据中心能源十大趋势

字节Seed发放期权津贴,每月可额外获得9/11/13.5万元价值字节期权

标签: 猫箱 人工智能标识 剪映 即梦AI

OpenAI Sora2震撼发布:首日安装量与ChatGPT 上线时一样多

友情链接