您现在的位置是:晨间快报 >>正文
微软警告数千名云服务客户:数据库或被暴露
晨间快报0271631人已围观
简介...
我们可以使用官方 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 --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. # -h, --help # Print this help message. # --log-level <LOG_LEVEL> # Set the log output verbosity. [possible values: trace, debug, info, warn, error] # --url # Fully qualified URL to the Sentry server. # [defaults to https://sentry.io/] # -V, --version # Print version information. # SUBCOMMANDS: # bash-hook Prints out a bash script that does error handling. # difutil Locate or analyze 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 Upload build artifacts for react-native projects. # releases Manage releases on Sentry. # repos Manage repositories on Sentry. # send-event Send a manual event to Sentry. # upload-dif Upload debugging information files. # upload-proguard Upload ProGuard mapping files to a project. 配置和认证 配置文件
sentry-cli 工具可以使用名为 .sentryclirc 的配置文件以及环境变量和 .env 文件进行配置。从当前路径向上查找配置文件,并且始终加载 ~/.sentryclirc 中的默认值。您还可以从命令行参数覆盖这些设置。
.sentryclirc
[auth] token=your-auth-token [defaults] 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:
相关文章
机器学习隐私研究新进展:数据增强风险被低估,新算法“降服”维数依赖
晨间快报编者按:如今,数据是推动人工智能创新的核心要素。但数据的安全和隐私问题限制了数据充分释放其潜能。一直以来,微软都倡导打造负责任的人工智能,并正在开发和利用多种技术以提供更强大的隐私保护、确保数据安全。...
【晨间快报】
阅读更多X-SAM:打破图像分割的界限,实现任意分割的新突破
晨间快报近日,中山大学、鹏城实验室与美团联合发布了一项名为 X-SAM 的新型图像分割多模态大模型,标志着图像分割技术的一次重要进步。该模型的出现,不仅提高了图像分割的精度,还实现了从 “分割万物” 到 “任...
【晨间快报】
阅读更多标签: 美团Tabbit 陪读蛙 read-frog GPLv3
晨间快报云梦级3月3日云梦级消息,网友“梦溪睡了吗”在社交平台上发帖称美团的AI浏览器Tabbit抄袭其个人产品陪读蛙的代码,并放出一系列证据。曝美团AI浏览器Tabbit涉嫌代码抄袭 针对此事,Tabbit...
【晨间快报】
阅读更多