sentry-cli 的 windows 安装

项目搭建时,发现在使用高版本 sentry-cli 上传 pdb 文件后会报 404 错误,同事猜测高版本的 sentry-cli 会返回错误的地址,建议我用低版本的试一下

依据教程,我在 windows 上安装 1.72.2 的 sentry-cli

curl -sL https://sentry.io/get-cli/ | SENTRY_CLI_VERSION="1.72.2" bash 

在提示安装完成后,本地会出现一个无法打开的文件,如下

 

 运行 sentry-cli 也会提示没有

实在没辙,就手动下载对应的版本,比如 1.72.2

选择 windows 版本的,

 会下载一个 exe 文件,将其放置默认路径,我这边是

 在命令行输入 sentry-cli 即可


 如果需要上传 pdb 文件,可以输入下面的命令

sentry-cli --url https://sentry.io/ --auth-token xxxxxxxxxxxxxxxxxxxxxxxxxxx upload-dif info --org xxxx --project xxxx --log-level trace xxxx.pdb

只需要关注 token、org、project、path 这四个参数,也就是上面的 xxxx 部分

 

posted @ 2022-06-28 15:54  strive-sun  阅读(937)  评论(0编辑  收藏  举报