您的当前位置:首页 > 热点 > 1 分钟快速使用 Docker 上手新版 Sentry-CLI - 创建一个版本 正文
时间:2026-11-14 来源:网络整理 编辑:热点
谷歌霸屏外推技术【tg:seogoogle987】
我们可以使用官方 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> # &nb快速sp; The given Sentry API key. # --auth-token <AUTH_TOKEN> # Use the given Sentry auth token. #  使用; -h, --help # Print this help message. # --log-level <LOG_LEVEL> # Set the D log output verbosity. [possible values: trace, debug, info, warn, error] # --url # Fully qualified URL to the Sentry&nbocsp;server. # [defaults to https://sentry.io/] # -V, --version # Print version information. # SUBCOMMANDS:ke # bash-hook Prints out a bash script that does error handling. # difutil Locate or analyze debug&nr bsp;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 &nbs新版p; Authenticate with the Sentry server. # projects Manage projects on Sentry. # react-native Upload&nb Ssp;build artifacts for react-native projects. # releases Manage releases on Sentry. # repos Manage&nbensp;repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information files. #tr upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults] org=seny-try 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/
魔王华为高管是什么梗2026-08-08
报告显示亚马逊送货司机被要求关闭识别危险驾驶软件以提高速度2026-10-07
标签: 天涯社区 追觅俞浩 韩立勇 人文社区2026-07-03
云计算核心技术Docker教程:Docker 插件生命周期2026-10-23
美国防部终止微软百亿美元大单 亚马逊、IBM等云服务公司“虎视眈眈”2026-07-04
标签: 美团 骑手 好人好事 见义勇为2026-08-18
Twitter和亚马逊合作开发云基础架构2026-09-23
Hive 和 Spark的爱恨情仇恩怨交织2026-07-13
Hadoop,大数据离不开它2026-06-12
标签: 黄仁勋 英伟达 CUDA AGI2026-07-20
谷歌母公司Alphabet四季营收569亿美元 净利增43%2026-07-03
腾讯云TokenHub:连续多月翻倍 日Token消耗量跃升至5万亿2026-06-26
Twitter遵守印度政府要求 已关闭境内4个帐号2026-10-11
标签: 追觅芯际穿越 瑶台算力基站 快舟十一号 光学遥感卫星2026-07-14
标签: 思格新能源 SigenStor 许映童 光伏储能2026-06-16
标签: 追觅科技 俞浩 生态链基金2026-09-16
Kafka能有什么坏心思,不过是被Zookeeper害惨了……2026-07-30
云计算核心技术Docker教程:Docker 注册表2026-10-09