appforshare

中文文档
1.10.1发布于 2026/11/03MIT零依赖

Upload iOS and Android builds to AppForShare from your terminal or CI and get an install link.

原始使用文档
文档目录3 节
  1. Commands
  2. Channels (Beta, Live)
  3. Fail the pipeline on store readiness

appforshare

Upload iOS (.ipa) and Android (.apk) builds to AppForShare from your terminal or CI and get an install link and QR code page for your testers.

export APPFORSHARE_TOKEN=afs_...   # Dashboard > Settings > API tokens (Pro and Team)
npx appforshare upload build/MyApp.ipa --notes "Fixes the login crash"

The command prints the install link. --json prints { url, slug, name, version, expiresAt, readiness, findings, channel }. In GitHub Actions the link is also written to the step outputs url, slug, readiness and, with --channel, channel_url.

Large builds upload in 32 MB chunks and resume after a dropped connection.

Commands

CommandWhat it does
appforshare upload <file>Upload a build (.ipa, a zipped .app, .apk or .aab), print its install link and store readiness status. --password, --email <up to 5>, --notes (or --comment), --channel
appforshare buildsList recent builds (--platform ios|android, --app <bundle id>, --project <id>, --limit <n>)
appforshare latestInstall link of the newest build (same filters, plus --channel <name>)
appforshare promote <id|slug> --channel <name>Put a build into a channel (Beta, Live); doing it for an older build rolls the channel back
appforshare feedback-task <feedback id>Add a task from a tester feedback report to its project's task board (Team)
appforshare activity [--project <id>] [--kind <kind>]Workspace activity, newest first: uploads, channels, feedback, tasks, release checklist, link controls (Team)
appforshare send-feedback <feedback id> --to <linear|jira>Make an issue in the workspace's Linear or Jira from a tester feedback report, with its screenshots (Pro and Team)
appforshare checklist <id|slug>Release checklist of a build, open blockers and whether the gated channel (Live) takes it (Team)
appforshare link <id|slug> [--pause|--resume] [--stop <date|off>] [--max-installs <n|off>]Pause an install link, stop it after a date or cap its installs (Pro and Team)
appforshare testflight <url|off> --channel <name> --app <bundle id>TestFlight public link for a channel: iPhone and iPad visitors go to TestFlight, Android visitors get the newest APK (Pro and Team)
appforshare info <id|slug>Version, size, installs, link, why testers' phones may refuse it, and every store readiness finding with its fix
appforshare installs <id|slug>Who installed a build: device, OS, country and the tester when known
appforshare email <id|slug> --to <emails>Email the install link to up to 5 addresses; nobody gets the same build twice (Pro and Team)
appforshare channel-address <address> --channel <name> --app <bundle id>Give a channel its own link, /c/; the old one keeps redirecting for 30 days (Pro and Team)
appforshare delete <id|slug> --yesDelete a build; it can be restored from the dashboard for 7 days
appforshare feedback [id|slug] [--status open|resolved|all]Tester feedback from install pages, newest first, with device and a dashboard link
appforshare whoamiAccount, role and plan of the token

All commands take --json.

Channels (Beta, Live)

npx appforshare upload app-release.apk --channel beta
npx appforshare promote 12345 --channel live

A channel has one link and QR code that never change and always open the newest build put into it, on iPhone or Android. The channel is created the first time you use its name. Pro and Team plans.

Fail the pipeline on store readiness

npx appforshare upload app-release.apk --fail-on blocked

The build is uploaded and its link works either way. With --fail-on blocked the command exits with code 2 when the store readiness check finds a blocker (for example a debuggable build, the debug signing key, an old target API level or iOS SDK). --fail-on review also fails on findings that need a look. The check is guidance about current App Store and Google Play rules, not a promise of approval.

版本与发布记录

appforshare 共发布 13 个版本,首次发布于 2026/10/31;过去 12 个月发布了 13 个版本。

版本发布日期距今
1.10.1latest2026/11/03今天
1.10.02026/11/03今天
1.9.02026/11/03今天
1.8.02026/11/03今天
1.7.02026/11/02今天
1.6.02026/11/02今天

关于 appforshare 的常见问题

appforshare 是什么?

从终端或CI上传iOS和Android版本到AppForShare,并获得安装链接。

如何安装 appforshare?

在项目目录运行 npm install appforshare,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 appforshare,可以用 npx appforshare 直接运行。

appforshare 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/appforshare 是否存在。

appforshare 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

appforshare 可以商用吗?

appforshare 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

appforshare 还在维护吗?

最新版本 1.10.1 发布于 2026/11/03(今天);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/31。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。