您现在的位置是:热点 >>正文
1 分钟快速使用 Docker 上手新版 Sentry-CLI - 创建一个版本
热点60535人已围观
简介...
我们可以使用官方 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. # &nb使用sp; -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. # SUBCOMMAkeNDS: # 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  上手; Print information about the Sentry server. # issues Manage issues in Sentry. # login  新版; Authenticate with the Sentry server. # projects Manage projects on Sentry. # react-native &nbs Sp;Upload build artifacts for react-native projects. # releases Manage releases on Sentry. # repos &nenbsp;Manage repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information&nbstrp;files. # upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults]&y-nbsp;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:
相关文章
为什么Python是机器学习的理想选择?
热点Python 人工智能项目在各种形式和规模的公司中变得非常流行。以下是 Python 语言非常适合 ML 开发的原因。 如今,大多数公司都在使用 Python 进行 AI 和机器学习。随着预测分析和模...
【热点】
阅读更多2021年值得关注的5个RPA趋势
热点RPA工具在过去的几年中的使用量激增。今年发生的疫情给组织带来加快实现自动化的动力,尤其是RPA最擅长处理的日常任务。 根据调研机构Gartner公司最近发布的一份报告,今年全球在RPA软件上的支出将...
【热点】
阅读更多标签: OpenAI Preventive 基因编辑 山姆・奥尔特曼
热点云梦级11月10日云梦级消息,据华尔街日报报道,由 OpenAI 首席执行官山姆・奥尔特曼及 Coinbase 首席执行官布莱恩・阿姆斯特朗等科技巨头投资的初创公司 Preventive,正秘密推进一...
【热点】
阅读更多