如何从Firebase App Distribution CLI输出中捕获testing_uri
Firebase App Distribution CLI:提取测试分享URI的方式
- Firebase App Distribution的
firebase appdistribution:distribute命令不会将测试分享URI(你提到的testing_uri)作为环境变量暴露。 - 必须通过自定义正则表达式解析CLI输出来提取该URI。
实用解析示例(Shell环境)
可以用grep结合正则快速提取目标链接:
firebase appdistribution:distribute <你的分发参数> | grep -Eo 'Share this release with testers who have access: \Khttps://appdistribution\.firebase\.google\.com/testerapps/.*'
CLI输出参考格式
View this release in the Firebase console: https://console.firebase.google.com/project.....
Share this release with testers who have access: https://appdistribution.firebase.google.com/testerapps/.....
Download the release binary (link expires in 1 hour): uri....
内容的提问来源于stack exchange,提问作者KingKongCoder
相关产品推荐
相关产品推荐

