您现在的位置是:热点 >>正文
1 分钟快速使用 Docker 上手新版 Sentry-CLI - 创建一个版本
热点85654983人已围观
简介...
我们可以使用官方 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> # &nbs快速p; The given Sentry API key. # --auth-token <AUTH_TOKEN> # Use the given Sentry auth token. # &使用nbsp; -h, --help # Print this help message. # --log-level <LOG_LEVEL> # Set&nbs Dp;the log output verbosity. [possible values: trace, debug, info, warn, error] # --url # Fully qualified URL to the Sentryoc server. # [defaults to https://sentry.io/] # -V, --version # Print version information. # SUBCOMMANDSke: # bash-hook Prints out a bash script that does error handling. # difutil Locate or analyze debur g information files. # help Prints this message or the help of the given subcommand(s) # info &n上手bsp; 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  en;Manage repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information filtres. # upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults] y-;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/
Tags:
相关文章
人工智能和物联网等技术可以在缓解气候变化风险方面发挥巨大作用
热点人工智能旨在提高现有技术和组织活动的效率。但是由于气候变化,人们担心进入绿色环保和可持续发展的数字时代,人工智能可能不是节能的。实际上,2019年6月,马萨诸塞州大学阿默斯特分校发布了一份令人震惊的报...
【热点】
阅读更多壳牌中国与阿里云达成战略合作,数智化助力能源低碳转型
热点2月23日,壳牌中国与阿里云签署战略合作意向书,成为长期战略合作伙伴。双方将基于壳牌在能源转型领域的深厚积累和阿里云在云计算、大数据、人工智能等方面的技术优势,带动壳牌集团的优势资源和阿里巴巴集团在绿...
【热点】
阅读更多标签: 中科宇航 力箭系列 杨毅强 商业航天
热点云梦级1月17日云梦级消息,1月17日,证监会官网IPO辅导公示系统显示,中科宇航技术股份有限公司(中科宇航)及辅导券商国泰海通向广东证监局提交《辅导工作完成报告》。中科宇航于2025年8月12日提交...
【热点】
阅读更多