微软警告数千名云服务客户:数据库或被暴露
我们可以使用官方 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/
(责任编辑:职业教育)
- ·YouTube 音乐推出 AI 主播,打破音乐聆听的沉默
- ·微软第二财季营收517亿美元 云相关业务贡献超过三分之一
- ·标签: 沪鸽口腔 弹性体印模材料 合成树脂牙 隐形正畸矫治器
- ·云计算核心技术Docker教程:Docker 守护进程dockerd默认的CGROUP父级
- ·为遵守印度IT新规 Twitter印度任命一名首席合规官
- ·Paycom 裁员500余人,用 AI 取代员工岗位
- ·OpenAI加速亚洲扩张,实惠套餐“ChatGPT Go”登陆16国,与谷歌争夺市场
- ·远景科技张雷提出"物理人工智能"概念:预测未来能源系统将以智能资产为核心
- ·标签: 美宜佳 烟草专卖 假烟事件 广东3·15晚会
- ·Synthesia3.0重磅升级:推出“视频代理”可与观众实时互动、对话和问答
- ·标签: 小米 MiMo-V2-Flash 开源模型 混合滑动窗口
- ·盲人也能“看见”街景?Google新AI系统让虚拟探索无障碍,科技向善迈出关键一步
- ·寰�蒋涓�浗瀹e竷鍛ㄧぜ鏍嬪崌浠诲井杞�簹娲茬爺绌堕櫌闄㈤暱
- ·标签: 铂科电子 港交所上市 AI算力 储能系统
- ·云安全日报210624:思科企业网络SD-WAN解决方案发现特权提升漏洞,需要尽快升级
- ·GPT-5震撼突破:首次通过哥德尔测试,破解三大数学猜想!
- ·标签: 埃斯顿 港股上市 工业自动化 机器人
- ·云计算开发实例:Python3 希尔排序
- ·大数据公司Palantir获得美国陆军一份价值1.14亿美元合同
- ·谷歌推新AI学习工具Learn Your Way,用 AI 打造个性化教科书




