达到数据和人工智能成熟度是释放业务价值的关键
我们可以使用官方 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 --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. # -h, --help # Print this help message. # --log-level <LOG_LEVEL> # Set the log output verbosity. [possible values: trace, debug, info, warn, error] # --url # Fully qualified URL to the Sentry server. # [defaults to https://sentry.io/] # -V, --version # Print version information. # SUBCOMMANDS: # bash-hook Prints out a bash script that does error handling. # difutil Locate or analyze debug 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 Upload build artifacts for react-native projects. # releases Manage releases on Sentry. # repos Manage repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information files. # upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults] 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/
(责任编辑:口碑排行)
- 标签: AMD 财报 2025年Q4 半导体
- 标签: 灵光App 闪应用 灵光圈 创作激励计划
- 通义千问宣布正式推出 Qwen Chat Memory 功能
- 标签: 高鑫零售 李卫平 华裕能 盒马
- IDC:2020第二季度中国可穿戴设备市场出货量3293万台 同比增15.3%
- 鑻规灉楂樼�瑙h�璐㈡姤锛氶�璁′笁瀛e害渚涜揣缂哄彛浼氭洿涓ラ噸
- 标签: 领克 极氪 小鹏 深蓝
- 标签: 新能源汽车
- Anthropic重磅升级:Claude Code企业版正式上线,命令行编程工具迎来变革时刻
- 你写的ML代码占多少内存?这件事很重要,但很多人还不懂
- 谷歌Gemini火速登顶:iPhone用户的免费应用新宠
- DNA机器人进化!这款软件能用几分钟造出复杂结构纳米设备,进入你的身体执行任务
- 标签: 户晨风 郭美May 张雪峰 小影夫妇
- 云计算开发:Python练习实例-输出 9*9 乘法口诀表
