Mackit 신제품

Mackit — macOS 개발자 캐시 클리너:Xcode / Node / Flutter 등이 남긴 재생성 가능한 캐시를 스캔하고 항목별 위험을 표시해 디스크 공간을 되찾으세요

자세히 보기
안내 2024년 6월부터 개발자 게시판의 새 글 업데이트를 중단했습니다. 방문해 주셔서 감사합니다. 아카이브 글
知识

1 分钟快速使用 docker 上手新版 sentry-cli - 创建一个版本

   

我们可使用官方 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/