Pgyer internal test distribution service is a leading mobile application internal test distribution platform in China, dedicated to providing easy-to-use App internal test distribution services for mobile developers and test users.
Pgyer Developer Service Platform is committed to providing excellent upstream and downstream services for developers, addressing the various needs of developers throughout the developer life cycle.
Scan QR code to follow
Pgyer WeChat Official Account
Get the latest news, official benefits, promotions and other information
Pgyer document center
@pgyer/cli 是蒲公英应用分发平台官方提供的命令行工具,支持:
通过 CLI,开发者可以在本地、脚本或 CI/CD 环境中,快速完成应用发布流程,无需打开浏览器。
相比传统网页操作,CLI 工具有几个明显优势:
CLI 原生支持结构化 JSON 输出,适合:
根据运行环境自动切换:
无需手动判断环境。
npm install -g @pgyer/cli
npx @pgyer/cli
pgyer auth login
将自动打开浏览器完成授权。
pgyer upload ./app-release.apk
支持格式:
.apk.ipa.happgyer apps list
CLI 提供两种输出模式,适配不同使用场景。
工具会自动判断运行环境:
示例:
# 终端运行(人类可读)
pgyer apps list
# 管道运行(JSON)
pgyer apps list | jq '.apps[0].name'
--human / -H)适合人工查看:
pgyer apps list --human
--json)适合程序调用:
pgyer apps list --json
--human > --json > 自动判断
pgyer auth login
export PGYER_API_KEY=your-api-key
无需登录即可使用 CLI。
pgyer auth status
pgyer auth token
pgyer auth logout
pgyer apps list
pgyer apps info <appKey>
pgyer apps delete <appKey>
强制删除:
pgyer apps delete <appKey> --force
pgyer upload <file>
| 参数 | 说明 |
|---|---|
--app-key |
指定应用 |
--build-update-description |
更新说明 |
--password |
设置安装密码 |
--invite-install |
邀请安装 |
--pubstart |
开始日期 |
--pubend |
结束日期 |
--short |
短链接 |
pgyer upload app.apk --password 123456
pgyer upload app.ipa \
--pubstart 2024-01-01 \
--pubend 2024-12-31
pgyer upload app.apk \
--build-update-description "修复已知问题"
CLI 参数 > 环境变量 > 配置文件
| 变量 | 说明 |
|---|---|
PGYER_API_KEY |
API Key |
PGYER_OUTPUT_FORMAT |
输出格式 |
路径:
~/.config/pgyer/config.json
示例:
{
"apiKey": "xxx",
"apiUrl": "https://api.pgyer.com",
"outputFormat": "json"
}
npm install -g @pgyer/cli
export PGYER_API_KEY=your-api-key
pgyer upload ./app.apk
避免在 CI 中使用登录流程。
pgyer upload app.apk --json
方便脚本解析。
上传完成后推送:
推荐在以下场景中使用 CLI:
CLI 的 JSON 输出非常适合:
? LLM / Agent 直接解析结果 ? 自动获取下载地址 / appKey ? 构建完整发布流水线
蒲公英 CLI 的核心价值:
About Us
Product Services
Your account information is under review and can not be used temporarily; you can:
Check out the help documentation for common ways to work on the Pgyer's platform;
Check Pgyer's App Auditing , which must be viewed before uploading.
Currently, the real-name authentication has not been completed, and the number of downloads for each version is limited to 0 times/day, After real-name authentication, it can be extended to 500 times/day
TestFlight is only available to Professional users.(Click understand pgyer's price plan)
支付成功
Pgyer VIP User Group
(Please open WeChat - Sweep and join the group chat)