摘要:我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(
我们可以使用官方 sentry-cli 工具操作 Sentry API,从而来为你的项目管理一些数据。它主要用于管理 iOS、Android 的调试信息文件,以及其他平台的版本(release)和源代码映射(source maps)管理。
安装 Docker 镜像
默认情况下,该命令在 /work 目录中运行。挂载相关的你的项目文件夹并在那里构建输出以允许 sentry-cli 扫描资源:
#拉取镜像dockerpullgetsentry/sentry-cli#执行命令dockerrun--rm-v$(pwd):/workgetsentry/sentry-cli--help#sentry-cli1.68.0#CommandlineutilityforSentry.#ThistoolhelpsyoumanageremoteresourcesonaSentryserverlike#sourcemaps,debugsymbolsorreleases.Use`--help`onthesubcommands#tolearnmoreaboutthem.#USAGE:#sentry-cli#OPTIONS:#--api-key<API_KEY>#ThegivenSentryAPIkey.#--auth-token<AUTH_TOKEN>#UsethegivenSentryauthtoken.#-h,--help#Printthishelpmessage.#--log-level<LOG_LEVEL>#Setthelogoutputverbosity.[possiblevalues:trace,debug,info,warn,error]#--url#FullyqualifiedURLtotheSentryserver.#[defaultstohttps://sentry.io/]#-V,--version#Printversioninformation.#SUBCOMMANDS:#bash-hookPrintsoutabashscriptthatdoeserrorhandling.#difutilLocateoranalyzedebuginformationfiles.#helpPrintsthismessageorthehelpofthegivensubcommand(s)#infoPrintinformationabouttheSentryserver.#issuesManageissuesinSentry.#loginAuthenticatewiththeSentryserver.#projectsManageprojectsonSentry.#react-nativeUploadbuildartifactsforreact-nativeprojects.#releasesManagereleasesonSentry.#reposManagerepositoriesonSentry.#send-eventSendamanualeventtoSentry.#upload-difUploaddebugginginformationfiles.#upload-proguardUploadProGuardmappingfilestoaproject. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth]token=your-auth-token[defaults]org=sentryproject=react-sentry-demourl=https://x.xxx.com
进入容器内
创建一个新版本:
dockerrun--rm-it-v$(pwd):/workgetsentry/sentry-cli/bin/shsentry-clireleasesnew1.0.0 Refs
https://docs.sentry.io/product/cli/
相关文章推荐
智能手机建站的优点是什么?网站页面布局有哪些关键点? 2022-01-10
2022年中国云计算面临的问题及发展前景预测分析2021-12-28
绿色智能基础设施连接可持续未来-IDCC2021万国数据第一代Smart DC发布会议程揭晓2021-12-27
阿里云:早期未意识到Apache log4j2漏洞情况的严重性 将强化漏洞管理2021-12-27
云计算开发:Python3-replace()方法详解2021-12-27