Twitter Follow Version Swift Package Manager Compatible Swift Versions Platforms Xcode 16+ Codebeat License Donate

App Store Connect API • 命令行界面

使用您的私有 API 密钥访问 App Store Connect API。这个工具的强大之处在于它可以操作一个或多个团队的所有应用程序(如果您愿意),例如,它可以非常容易地打印出您所有应用程序的线上版本,甚至跨多个团队。

asc app-store-versions list -k <key_id_1> \
asc app-store-versions list -k <key_id_2> \
asc app-store-versions list -k <key_id_3>

安装

通过 Homebrew 安装

brew tap Blackjacx/asc
brew install asc

通过 Mint 安装

只需使用 Homebrew 通过 brew install mint 安装 Mint 即可。

mint install Blackjacx/Assist

您也可以在不事先安装的情况下使用 Mint 运行命令行工具。 Mint 将自动克隆并安装它。

mint run git@github.com:Blackjacx/Assist.git asc apps

通过命令行安装

git clone https://github.com/blackjacx/assist.git AppStoreConnect
cd AppStoreConnect
swift run asc -h

身份验证

身份验证由工具本身处理。唯一需要的是您的私有 API 密钥。在 App Store Connect 帐户 生成一个,然后执行以下命令,该命令会将您提供的确切参数存储在用户默认设置中。

asc api-keys register -n "name" -k "key-id" -i "issuer-id" -p "path-to-private-key-file"

⚠️这里不执行密钥生成。JWT 仅在使用此工具时按需生成。如果您注册了多个密钥,该工具将询问您要使用哪个密钥。

子命令

执行以下子命令之一就像将它及其参数附加到基本命令一样简单

# list all registered API keys
asc api-keys list

# register API key for specific team
asc api-keys register -n "name" -k "key-id" -i "issuer-id" -p "path-to-private-key-file"

# delete API key for specific team
asc api-keys delete -k "key-id"



# list is the default
asc beta-groups

# list only beta groups with a specific name
asc beta-groups -g "group-name"



# list apps of your team
asc apps



# add beta tester to all groups matching `group-name`
asc beta-testers add -e "john@doe.com" -n "John" -l "Doe" -g "group-name"

# add beta tester to all groups matching all specified group names
asc beta-testers add -e "john@doe.com" -n "John" -l "Doe" -g "group-name-1" -g "group-name-2"



# delete beta tester from all groups found
asc beta-testers delete -e "john@doe.com"



# lists all your teams apps with their live version or if not live with their current status
asc app-store-versions

api-keys

OVERVIEW: Lists, registers and deletes App Store Connect API keys on your Mac.

USAGE: asc api-keys <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          List locally stored App Store Connect API keys keys.
register                Registers App Store Connect API keys locally.
delete                  Delete locally stored App Store Connect API keys.

See 'asc help api-keys <subcommand>' for detailed help.

beta-groups

OVERVIEW: Manage groups of beta testers that have access to one or more builds.

USAGE: asc beta-groups <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          Find and list beta testers for all apps, builds, and beta groups.

See 'asc help beta-groups <subcommand>' for detailed help.

beta-testers

OVERVIEW: Manage people who can install and test prerelease builds.

USAGE: asc beta-testers <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          Find and list beta testers for all apps, builds, and
beta groups.
invite                  Send or resend an invitation to a beta tester to test
specified apps.
add                     Create a beta tester assigned to a group, a build, or
an app.
delete                  Remove a beta tester's ability to test all or
specific apps.

See 'asc help beta-testers <subcommand>' for detailed help.

apps

OVERVIEW: Manage your apps in App Store Connect.

USAGE: asc apps <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          Find and list apps added in App Store Connect.

See 'asc help apps <subcommand>' for detailed help.

app-store-versions

OVERVIEW: Manage versions of your app that are available in App Store.

USAGE: asc app-store-versions <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          Get a list of all App Store versions of an app across
all platforms.

See 'asc help app-store-versions <subcommand>' for detailed help.

builds

OVERVIEW: Manage builds for testers and submit builds for review.

USAGE: asc builds <subcommand>

OPTIONS:
--version               Show the version.
-h, --help              Show help information.

SUBCOMMANDS:
list (default)          Find and list builds for all apps in App Store Connect.

See 'asc help builds <subcommand>' for detailed help.

bundle-ids

OVERVIEW: Manage the bundle IDs that uniquely identify your apps.

USAGE: asc bundle-ids <subcommand>

OPTIONS:
  --version               Show the version.
  -h, --help              Show help information.

SUBCOMMANDS:
  list (default)          Find and list bundle IDs that are registered to your
                          team.
  register                Register a new bundle ID for app development.

  See 'asc help bundle-ids <subcommand>' for detailed help.

代码文档

ASCPushSnap 的代码文档由 Swift Package Index 生成和托管(由 DocC 提供支持)

发布

要发布此 Swift 包,必须执行以下步骤

Release version `x.y.z`

贡献

作者

Stefan Herold • 🐦 @Blackjacxxx

贡献者

感谢所有参与者

许可证

ASC 在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。

Star 历史

Star History Chart