热点

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

字号+ 作者:牛骥同槽网 来源:茶叶冲饮 2026-11-23 我要评论(0)

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

 

我们可以使用官方 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 分钟`--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 the& Dnbsp;log output verbosity. [possible values: trace, debug, info, warn, error]  #         --url  #             Fully qualified URL to the Sentry oc;server. #             [defaults to https://sentry.io/] #     -V, --version #             Print version information.   # SUBCOMMANDS:&nbskep;#     bash-hook          Prints out a bash script that does error handling. #     difutil            Locate or analyze debug&nbr sp;information files. #     help               Prints this message or the help of the given subcommand(s) #     info        上手;       Print information about the Sentry server. #     issues             Manage issues in Sentry. #     login      新版;        Authenticate with the Sentry server. #     projects           Manage projects on Sentry. #     react-native       U Spload build artifacts for react-native projects. #     releases           Manage releases on Sentry. #     repos              enManage repositories on Sentry. #     send-event         Send a manual event to Sentry. #     upload-dif         Upload debugging information filetrs. #     upload-proguard    Upload ProGuard mapping files to a project.  配置和认证 配置文件

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

.sentryclirc

[auth] token=your-auth-token  [defaults] orgy-=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/

 

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

相关文章
  • 潞晨科技自研Open-Sora 2.0 被收录进《State of AI Report 2025》

    潞晨科技自研Open-Sora 2.0 被收录进《State of AI Report 2025》

    2026-07-05

  • 美国讨论新假冒产品法案:亚马逊、eBay将承担更多责任

    美国讨论新假冒产品法案:亚马逊、eBay将承担更多责任

    2026-10-18

  • 标签: 谷歌 DeepMind 字节跳动 DeepSeek

    标签: 谷歌 DeepMind 字节跳动 DeepSeek

    2026-11-15

  • 云计算核心技术Docker教程:启用IPv6支持

    云计算核心技术Docker教程:启用IPv6支持

    2026-08-15

网友点评