Read-only mirror of github.com/smbcloudXYZ/smbcloud-ascapi.
Mirrored from https://github.com/smbcloudXYZ/smbcloud-ascapi.git
Synced Nov 25, 09:15 UTC
Distribute asc through Homebrew and slim the README
The release workflow now packages a macOS tarball per architecture and, once the release exists, dispatches release-homebrew.yml, which writes Formula/ascapi.rb into smbcloudXYZ/homebrew-tap. The formula is named ascapi because cli is taken in the tap; the binary is still asc. README.md follows the smbcloud-cli layout. The crate table, credentials and AppGallery reference moved into docs/ unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Seto Elkahfi committed
Nov 3, 2026 at 14:47 UTC
0e7629f5c7fc76c060f85aa03a14671a3266cc05
10 files changed
+362
-71
.agents/AGENTS.md
+5
@@ -154,6 +154,11 @@ cargo install --path crates/cli --locked
154
`unrecognized subcommand` on a command that's been merged is the symptom;
155
the cure is a rebuild, not a workaround.
156
157
+The Homebrew build (`brew install ascapi`) can lag too: the formula only
158
+moves when a tagged release runs `release-homebrew.yml`. Check
159
+`asc --version` against the latest tag, and use a local build for anything
160
+merged since.
161
+
162
## Architecture notes
163
164
- Layering is `core` → `aso`/`pricing`/`signing`/`reports` → `frontend` →
.github/workflows/release-github.yml
+63
@@ -15,6 +15,8 @@ concurrency:
15
16
permissions:
17
contents: write
18
+ # Lets the release job dispatch release-homebrew.yml.
19
+ actions: write
20
21
env:
22
PROJECT_NAME: asc
@@ -95,6 +97,23 @@ jobs:
97
mkdir -p ./release
98
mv "${BIN_OUTPUT}" "./release/${BIN_RELEASE}"
99
100
+ - name: Package macOS tarball for Homebrew
101
+ if: contains(matrix.target, 'apple-darwin')
102
+ shell: bash
103
+ run: |
104
+ ARCHIVE_NAME="${PROJECT_NAME}-${{ matrix.name }}.tar.gz"
105
+
106
+ mkdir -p staging-brew
107
+ cp "./release/${PROJECT_NAME}-${{ matrix.name }}" "staging-brew/${PROJECT_NAME}"
108
+ strip "staging-brew/${PROJECT_NAME}"
109
+
110
+ tar -C staging-brew -czf "${ARCHIVE_NAME}" "${PROJECT_NAME}"
111
+
112
+ shasum -a 256 "${ARCHIVE_NAME}" | awk '{print $1}' > "${ARCHIVE_NAME}.sha256"
113
+
114
+ echo "Archive: ${ARCHIVE_NAME}"
115
+ echo "SHA256: $(cat "${ARCHIVE_NAME}.sha256")"
116
+
117
# Windows runners use bash from Git for Windows, which has sha256sum;
118
# macOS only has shasum.
119
- name: Checksum release assets
@@ -119,6 +138,15 @@ jobs:
138
name: binary-${{ matrix.name }}
139
path: release/*
140
141
+ - name: Upload macOS Homebrew artifacts
142
+ if: contains(matrix.target, 'apple-darwin')
143
+ uses: actions/upload-artifact@v7
144
+ with:
145
+ name: homebrew-${{ matrix.name }}
146
+ path: |
147
+ ${{ env.PROJECT_NAME }}-${{ matrix.name }}.tar.gz
148
+ ${{ env.PROJECT_NAME }}-${{ matrix.name }}.tar.gz.sha256
149
+
150
release:
151
name: Create GitHub Release
152
needs: build
@@ -143,6 +171,13 @@ jobs:
171
path: release
172
merge-multiple: true
173
174
+ - name: Download Homebrew artifacts
175
+ uses: actions/download-artifact@v7
176
+ with:
177
+ pattern: "homebrew-*"
178
+ path: release
179
+ merge-multiple: true
180
+
181
- name: Release
182
uses: softprops/action-gh-release@v2
183
with:
@@ -151,3 +186,31 @@ jobs:
186
# Build the notes from the PRs since the previous tag, the same
187
# format as the "Generate release notes" button on the web UI.
188
generate_release_notes: true
189
+
190
+ # The tap reads checksums off the release created above, so the
191
+ # dispatch hangs off this job rather than firing on the tag directly.
192
+ - name: Trigger OS package manager releases
193
+ uses: actions/github-script@v8
194
+ with:
195
+ script: |
196
+ const tag = '${{ steps.tag.outputs.tag }}'
197
+ const workflows = [
198
+ 'release-homebrew.yml',
199
+ ]
200
+
201
+ for (const workflow_id of workflows) {
202
+ try {
203
+ await github.rest.actions.createWorkflowDispatch({
204
+ owner: context.repo.owner,
205
+ repo: context.repo.repo,
206
+ workflow_id,
207
+ ref: tag,
208
+ inputs: { tag },
209
+ })
210
+ console.log(`Dispatched ${workflow_id} for tag ${tag}`)
211
+ } catch (error) {
212
+ // One packaging channel being unconfigured (a missing secret)
213
+ // should not fail a release that already published.
214
+ core.warning(`Failed to dispatch ${workflow_id}: ${error.message}`)
215
+ }
216
+ }
.github/workflows/release-homebrew.yml
new
+136
@@ -0,0 +1,136 @@
1
+name: Release Homebrew
2
+
3
+on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ tag:
7
+ description: "Release tag (e.g. v0.2.0)"
8
+ required: true
9
+
10
+concurrency:
11
+ # A re-dispatched tag fires this a second time. Queue the duplicate behind
12
+ # the original instead of cancelling it: cancelling a run mid-push can leave
13
+ # the tap half-updated, whereas a queued duplicate finds nothing to commit
14
+ # and exits clean.
15
+ group: ${{ github.workflow }}-${{ github.event.inputs.tag }}
16
+ cancel-in-progress: false
17
+
18
+permissions:
19
+ contents: read
20
+
21
+env:
22
+ REPO: smbcloudXYZ/smbcloud-ascapi
23
+
24
+jobs:
25
+ update-homebrew-tap:
26
+ name: Update Homebrew tap
27
+ runs-on: ubuntu-latest
28
+
29
+ steps:
30
+ - name: Resolve tag and version
31
+ id: release
32
+ shell: bash
33
+ run: |
34
+ TAG="${{ github.event.inputs.tag }}"
35
+ VERSION="${TAG#v}"
36
+
37
+ echo "tag=${TAG}" >> "$GITHUB_OUTPUT"
38
+ echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
39
+
40
+ - name: Read SHA256 checksums from release
41
+ id: sha
42
+ env:
43
+ GH_TOKEN: ${{ github.token }}
44
+ shell: bash
45
+ run: |
46
+ mkdir -p artifacts
47
+
48
+ for attempt in 1 2 3 4 5; do
49
+ if gh release download "${{ steps.release.outputs.tag }}" \
50
+ --repo "${{ env.REPO }}" \
51
+ --pattern "asc-macos-*.tar.gz.sha256" \
52
+ --dir artifacts/; then
53
+ break
54
+ fi
55
+
56
+ if [ "$attempt" -eq 5 ]; then
57
+ echo "Failed to download Homebrew checksum artifacts from the GitHub release." >&2
58
+ exit 1
59
+ fi
60
+
61
+ echo "Release assets not visible yet. Retrying in 10 seconds..."
62
+ sleep 10
63
+ done
64
+
65
+ ARM64_SHA=$(cat artifacts/asc-macos-arm64.tar.gz.sha256)
66
+ AMD64_SHA=$(cat artifacts/asc-macos-amd64.tar.gz.sha256)
67
+
68
+ echo "arm64=${ARM64_SHA}" >> "$GITHUB_OUTPUT"
69
+ echo "amd64=${AMD64_SHA}" >> "$GITHUB_OUTPUT"
70
+
71
+ echo "ARM64 SHA256: ${ARM64_SHA}"
72
+ echo "AMD64 SHA256: ${AMD64_SHA}"
73
+
74
+ - name: Checkout Homebrew tap
75
+ uses: actions/checkout@v6
76
+ with:
77
+ repository: smbcloudXYZ/homebrew-tap
78
+ token: ${{ secrets.HOMEBREW_TAP_TOKEN }}
79
+ path: homebrew-tap
80
+
81
+ - name: Generate formula
82
+ shell: bash
83
+ run: |
84
+ VERSION="${{ steps.release.outputs.version }}"
85
+ TAG="${{ steps.release.outputs.tag }}"
86
+ ARM64_SHA="${{ steps.sha.outputs.arm64 }}"
87
+ AMD64_SHA="${{ steps.sha.outputs.amd64 }}"
88
+
89
+ mkdir -p homebrew-tap/Formula
90
+
91
+ cat > homebrew-tap/Formula/ascapi.rb <<FORMULA
92
+ # frozen_string_literal: true
93
+
94
+ # Homebrew formula for smbcloud-ascapi (\`asc\` binary).
95
+ class Ascapi < Formula
96
+ desc 'App Store Connect, Google Play, Microsoft Store and AppGallery from the terminal and MCP'
97
+ homepage 'https://github.com/${REPO}'
98
+ version '${VERSION}'
99
+ license 'Apache-2.0'
100
+
101
+ on_macos do
102
+ on_arm do
103
+ url 'https://github.com/${REPO}/releases/download/${TAG}/asc-macos-arm64.tar.gz'
104
+ sha256 '${ARM64_SHA}'
105
+ end
106
+ on_intel do
107
+ url 'https://github.com/${REPO}/releases/download/${TAG}/asc-macos-amd64.tar.gz'
108
+ sha256 '${AMD64_SHA}'
109
+ end
110
+ end
111
+
112
+ def install
113
+ bin.install 'asc'
114
+ end
115
+
116
+ test do
117
+ assert_match version.to_s, shell_output("#{bin}/asc --version")
118
+ end
119
+ end
120
+ FORMULA
121
+
122
+ echo "Generated formula:"
123
+ cat homebrew-tap/Formula/ascapi.rb
124
+
125
+ - name: Commit and push
126
+ shell: bash
127
+ run: |
128
+ VERSION="${{ steps.release.outputs.version }}"
129
+
130
+ cd homebrew-tap
131
+ git config user.name "github-actions[bot]"
132
+ git config user.email "github-actions[bot]@users.noreply.github.com"
133
+ git add Formula/ascapi.rb
134
+ git diff --cached --quiet && echo "No changes to commit" && exit 0
135
+ git commit -m "Update asc to ${VERSION}"
136
+ git push
README.md
+35
-71
@@ -1,86 +1,50 @@
1
-# smbcloud-ascapi
2
-
3
-`smbcloud-ascapi` is the app stores coolest API.
4
-
5
-Nine crates, split by domain and layered so neither front end can drift
6
-from the other:
7
-
8
-| Crate | What it is |
9
-| --- | --- |
10
-| `smbcloud-ascapi-core` | Shared transport: JWT auth, the HTTP client, JSON:API envelopes, error types |
11
-| `smbcloud-ascapi-play` | Google Play (Edits v3): store listings, listing images, track release notes; service-account auth, independent of `core` |
12
-| `smbcloud-ascapi-appgallery` | Huawei AppGallery Connect Publishing API (Android): app info and listings, file and package upload, submit, phased release, release time, GMS flag, package list and status; Service Account auth (PS256 JWT), independent of `core` |
13
-| `smbcloud-ascapi-msstore` | Microsoft Store submission API v1.0: listing text on an MSIX app's pending submission; Entra client-credentials auth, independent of `core` |
14
-| `smbcloud-ascapi-aso` | App Metadata: apps, app infos, versions, builds, pre-release versions, review submissions, bundle IDs, localizations, screenshots |
15
-| `smbcloud-ascapi-pricing` | Pricing: app price schedules, and the per-territory prices joined with their price points and currencies |
16
-| `smbcloud-ascapi-signing` | Code signing: certificates and provisioning profiles, plus local RSA key pair and CSR generation |
17
-| `smbcloud-ascapi-reports` | Sales reports: account-level sales data, as Apple's gzip-compressed TSV |
18
-| `smbcloud-ascapi-frontend` | Operations both surfaces share, so the CLI and the MCP server agree by construction, plus the CLI's `xcrun altool` upload |
19
-| `smbcloud-ascapi-mcp` | The MCP contract and stdio server |
20
-| `smbcloud-ascapi-cli` | The `asc` binary: clap command tree, plus `--mcp` |
21
-
22
-`aso`, `play`, `appgallery`, `msstore`, `pricing`, `signing` and `reports` know nothing about each other, and neither knows
23
-anything about the front ends. Each adds its calls to
24
-`smbcloud_ascapi_core::Client` as **extension traits**, since Rust only
25
-allows inherent impls in the crate that defines a type:
26
-
27
-```rust
28
-use smbcloud_ascapi_core::{ApiKey, Client};
29
-use smbcloud_ascapi_aso::prelude::*; // or pricing::prelude, signing::prelude
30
-```
1
+<p align="center">
2
+ <img src="https://avatars.githubusercontent.com/u/89791739?s=200&v=4" alt="smbCloud Logo" width="96">
3
+</p>
4
+
5
+<h1 align="center">smbcloud-ascapi</h1>
6
+
7
+<p align="center"><strong>App Store Connect, Google Play, Microsoft Store and Huawei AppGallery from your terminal, your scripts and your agents.</strong></p>
8
+
9
+<p align="center">
10
+ <a href="https://crates.io/crates/smbcloud-ascapi-cli"><img alt="Crates.io" src="https://img.shields.io/crates/v/smbcloud-ascapi-cli"></a>
11
+ <a href="https://github.com/smbcloudXYZ/homebrew-tap"><img alt="Homebrew" src="https://img.shields.io/badge/homebrew-tap-orange?logo=homebrew"></a>
12
+ <a href="https://registry.modelcontextprotocol.io/v0.1/servers?search=io.github.smbcloudXYZ/ascapi"><img alt="MCP server" src="https://badge.mcpx.dev?type=server&features=resources,tools" title="MCP server with features"></a>
13
+ <a href="https://github.com/smbcloudXYZ/smbcloud-ascapi/actions/workflows/ci.yml"><img alt="CI" src="https://img.shields.io/github/actions/workflow/status/smbcloudXYZ/smbcloud-ascapi/ci.yml?label=ci"></a>
14
+ <a href="https://github.com/smbcloudXYZ/smbcloud-ascapi/blob/main/LICENSE"><img alt="Apache-2.0 License" src="https://img.shields.io/badge/license-Apache%202.0-blue.svg"></a>
15
+</p>
16
+
17
+`asc` manages your app store listings and releases: App Store Connect, Google Play, the Microsoft Store and Huawei AppGallery. The CLI and the MCP server sit on one shared core, so a person at a terminal, a CI job and an AI agent run the same operations.
18
19
MCP Registry name: `mcp-name: io.github.smbcloudXYZ/ascapi`
20
34
-## Credentials
21
+## Install
22
36
-The CLI signs requests with an App Store Connect API key:
23
+```sh
24
+brew tap smbcloudXYZ/tap && brew trust --tap smbcloudXYZ/tap && brew install ascapi
25
+cargo install smbcloud-ascapi-cli
26
+```
27
38
-| Flag | Environment variable | Notes |
39
-| --- | --- | --- |
40
-| `--key-id` | `ASC_API_KEY` | The key id. There is no `ASC_KEY_ID`. |
41
-| `--issuer-id` | `ASC_ISSUER_ID` | The issuer id from App Store Connect. |
42
-| `--private-key-path` | `ASC_PRIVATE_KEY_PATH` | Defaults to `~/.appstoreconnect/private_keys/AuthKey_<key-id>.p8`. |
28
+Pre-built binaries are on [GitHub Releases](https://github.com/smbcloudXYZ/smbcloud-ascapi/releases). More detail in [docs/install.md](docs/install.md).
29
44
-With `--mcp`, credentials are resolved on each tool call, so the server can
45
-list its tools before they are configured.
30
+## Use it your way
31
47
-## AppGallery credentials
32
+- **In the terminal.** `asc apps ...` lists apps, builds and versions. Credentials are in [docs/credentials.md](docs/credentials.md).
33
+- **In scripts and CI.** Every write takes `--dry-run`, and credentials come from environment variables. See [docs/credentials.md](docs/credentials.md).
34
+- **With AI agents.** `asc --mcp` serves the [Model Context Protocol](https://modelcontextprotocol.io) over stdio. See [docs/architecture.md](docs/architecture.md).
35
49
-`asc appgallery` uses an AppGallery Connect Service Account (developer-level,
50
-with a publishing role), not the App Store Connect key:
36
+## Docs
37
52
-| Flag | Environment variable | Notes |
53
-| --- | --- | --- |
54
-| `--service-account` | `APPGALLERY_SERVICE_ACCOUNT_JSON_PATH` | The `*private.json` file; or its contents in `APPGALLERY_SERVICE_ACCOUNT_JSON`. |
55
-| `--client-id` | `APPGALLERY_CLIENT_ID` | Optional `client_id` header. |
38
+[Install](docs/install.md) · [Credentials](docs/credentials.md) · [AppGallery](docs/appgallery.md) · [Architecture](docs/architecture.md)
39
57
-```sh
58
-asc appgallery app-id xyz.smbcloud.SiGit
59
-asc appgallery listings list <APP> [--lang en-US] # every field the API returns
60
-asc appgallery listings update <APP> --lang en-US --brief "..." --release-notes-file notes.txt
61
-asc appgallery listings delete <APP> --lang id
62
-asc appgallery info update <APP> --privacy-policy URL [--category ID --category-tag ID]
63
- [--publish-country CODES] [--developer-website URL] [--device-types JSON] ...
64
-asc appgallery files upload <APP> --type icon --lang en-US icon-216.png
65
-asc appgallery files upload <APP> --type screenshots --orientation portrait --lang en-US 1.png 2.png
66
-asc appgallery files upload <APP> --type package siGit.apk # chineseMainlandFlag=0 unless --chinese-mainland
67
-asc appgallery packages list <APP>
68
-asc appgallery packages status <APP> <PKG_ID>...
69
-asc appgallery gms <APP> --needs-gms false
70
-asc appgallery submit <APP> [--release-time T] [--remark TEXT] [--phased-start T --phased-end T --phased-percent P --phased-description D]
71
-asc appgallery phased-release <APP> (--to-full | --state SUSPEND|RELEASE | --phased-percent P ...)
72
-asc appgallery release-time <APP> (--immediately | --at T)
73
-```
40
+## Contributing
41
+
42
+Open pull requests against `development`.
43
75
-`<APP>` is the numeric app id or the package name. Every write takes
76
-`--dry-run`. Binding an image or video for a language clears that language's
77
-text; `files upload` reads the text first and writes it back if it went
78
-missing. MCP has three read-only tools: `appgallery_app_info_get`,
79
-`appgallery_package_list` and `appgallery_package_status`.
44
+## License
45
81
-Not covered: the "download mode" submit and package calls, which need a
82
-public package URL and a callback server for Huawei to report to.
46
+[Apache-2.0](LICENSE)
47
48
## Copyright
49
86
-© 2026 PT Sigit Mitra Bangun ([smbCloud](https://smbcloud.xyz)).
50
+© 2026 Seto Elkahfi ([smbCloud](https://smbcloud.xyz)). Distributed by [Splitfire AB](https://5mb.app).
crates/cli/README.md
+2
@@ -10,6 +10,8 @@ MCP Registry name: `mcp-name: io.github.smbcloudXYZ/ascapi`
10
## Install
11
12
```bash
13
+brew tap smbcloudXYZ/tap && brew trust --tap smbcloudXYZ/tap && brew install ascapi
14
+# or
15
cargo install smbcloud-ascapi-cli
16
```
17
docs/README.md
new
+3
@@ -0,0 +1,3 @@
1
+# Docs
2
+
3
+[Install](install.md) · [Credentials](credentials.md) · [AppGallery](appgallery.md) · [Architecture](architecture.md)
docs/appgallery.md
new
+36
@@ -0,0 +1,36 @@
1
+# AppGallery
2
+
3
+`asc appgallery` uses an AppGallery Connect Service Account (developer-level,
4
+with a publishing role), not the App Store Connect key:
5
+
6
+| Flag | Environment variable | Notes |
7
+| --- | --- | --- |
8
+| `--service-account` | `APPGALLERY_SERVICE_ACCOUNT_JSON_PATH` | The `*private.json` file; or its contents in `APPGALLERY_SERVICE_ACCOUNT_JSON`. |
9
+| `--client-id` | `APPGALLERY_CLIENT_ID` | Optional `client_id` header. |
10
+
11
+```sh
12
+asc appgallery app-id xyz.smbcloud.SiGit
13
+asc appgallery listings list <APP> [--lang en-US] # every field the API returns
14
+asc appgallery listings update <APP> --lang en-US --brief "..." --release-notes-file notes.txt
15
+asc appgallery listings delete <APP> --lang id
16
+asc appgallery info update <APP> --privacy-policy URL [--category ID --category-tag ID]
17
+ [--publish-country CODES] [--developer-website URL] [--device-types JSON] ...
18
+asc appgallery files upload <APP> --type icon --lang en-US icon-216.png
19
+asc appgallery files upload <APP> --type screenshots --orientation portrait --lang en-US 1.png 2.png
20
+asc appgallery files upload <APP> --type package siGit.apk # chineseMainlandFlag=0 unless --chinese-mainland
21
+asc appgallery packages list <APP>
22
+asc appgallery packages status <APP> <PKG_ID>...
23
+asc appgallery gms <APP> --needs-gms false
24
+asc appgallery submit <APP> [--release-time T] [--remark TEXT] [--phased-start T --phased-end T --phased-percent P --phased-description D]
25
+asc appgallery phased-release <APP> (--to-full | --state SUSPEND|RELEASE | --phased-percent P ...)
26
+asc appgallery release-time <APP> (--immediately | --at T)
27
+```
28
+
29
+`<APP>` is the numeric app id or the package name. Every write takes
30
+`--dry-run`. Binding an image or video for a language clears that language's
31
+text; `files upload` reads the text first and writes it back if it went
32
+missing. MCP has three read-only tools: `appgallery_app_info_get`,
33
+`appgallery_package_list` and `appgallery_package_status`.
34
+
35
+Not covered: the "download mode" submit and package calls, which need a
36
+public package URL and a callback server for Huawei to report to.
docs/architecture.md
new
+28
@@ -0,0 +1,28 @@
1
+# Architecture
2
+
3
+Nine crates, split by domain and layered so neither front end can drift
4
+from the other:
5
+
6
+| Crate | What it is |
7
+| --- | --- |
8
+| `smbcloud-ascapi-core` | Shared transport: JWT auth, the HTTP client, JSON:API envelopes, error types |
9
+| `smbcloud-ascapi-play` | Google Play (Edits v3): store listings, listing images, track release notes; service-account auth, independent of `core` |
10
+| `smbcloud-ascapi-appgallery` | Huawei AppGallery Connect Publishing API (Android): app info and listings, file and package upload, submit, phased release, release time, GMS flag, package list and status; Service Account auth (PS256 JWT), independent of `core` |
11
+| `smbcloud-ascapi-msstore` | Microsoft Store submission API v1.0: listing text on an MSIX app's pending submission; Entra client-credentials auth, independent of `core` |
12
+| `smbcloud-ascapi-aso` | App Metadata: apps, app infos, versions, builds, pre-release versions, review submissions, bundle IDs, localizations, screenshots |
13
+| `smbcloud-ascapi-pricing` | Pricing: app price schedules, and the per-territory prices joined with their price points and currencies |
14
+| `smbcloud-ascapi-signing` | Code signing: certificates and provisioning profiles, plus local RSA key pair and CSR generation |
15
+| `smbcloud-ascapi-reports` | Sales reports: account-level sales data, as Apple's gzip-compressed TSV |
16
+| `smbcloud-ascapi-frontend` | Operations both surfaces share, so the CLI and the MCP server agree by construction, plus the CLI's `xcrun altool` upload |
17
+| `smbcloud-ascapi-mcp` | The MCP contract and stdio server |
18
+| `smbcloud-ascapi-cli` | The `asc` binary: clap command tree, plus `--mcp` |
19
+
20
+`aso`, `play`, `appgallery`, `msstore`, `pricing`, `signing` and `reports` know nothing about each other, and neither knows
21
+anything about the front ends. Each adds its calls to
22
+`smbcloud_ascapi_core::Client` as **extension traits**, since Rust only
23
+allows inherent impls in the crate that defines a type:
24
+
25
+```rust
26
+use smbcloud_ascapi_core::{ApiKey, Client};
27
+use smbcloud_ascapi_aso::prelude::*; // or pricing::prelude, signing::prelude
28
+```
docs/credentials.md
new
+12
@@ -0,0 +1,12 @@
1
+# Credentials
2
+
3
+The CLI signs requests with an App Store Connect API key:
4
+
5
+| Flag | Environment variable | Notes |
6
+| --- | --- | --- |
7
+| `--key-id` | `ASC_API_KEY` | The key id. There is no `ASC_KEY_ID`. |
8
+| `--issuer-id` | `ASC_ISSUER_ID` | The issuer id from App Store Connect. |
9
+| `--private-key-path` | `ASC_PRIVATE_KEY_PATH` | Defaults to `~/.appstoreconnect/private_keys/AuthKey_<key-id>.p8`. |
10
+
11
+With `--mcp`, credentials are resolved on each tool call, so the server can
12
+list its tools before they are configured.
docs/install.md
new
+42
@@ -0,0 +1,42 @@
1
+# Install
2
+
3
+## Homebrew
4
+
5
+```sh
6
+brew tap smbcloudXYZ/tap && brew trust --tap smbcloudXYZ/tap
7
+brew install ascapi
8
+```
9
+
10
+The formula is named `ascapi`; the binary it installs is `asc`.
11
+
12
+```sh
13
+asc --version
14
+```
15
+
16
+Upgrade:
17
+
18
+```sh
19
+brew upgrade ascapi
20
+```
21
+
22
+Uninstall:
23
+
24
+```sh
25
+brew uninstall ascapi
26
+brew untap smbcloudXYZ/tap
27
+```
28
+
29
+Homebrew installs a pre-built binary for macOS (Apple silicon and Intel), so
30
+no compiler is needed.
31
+
32
+## Cargo
33
+
34
+```sh
35
+cargo install smbcloud-ascapi-cli
36
+```
37
+
38
+## Release binaries
39
+
40
+Pre-built binaries for macOS, Linux and Windows are attached to each release:
41
+
42
+https://github.com/smbcloudXYZ/smbcloud-ascapi/releases