@superwall/cli 2.6.0-beta.2 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -16
- package/dist/{apple-Dc5pOPms.js → apple-D-rfsuDA.js} +17 -19
- package/dist/{approve-BSbdmOez.js → approve-aPc5RoXB.js} +9 -11
- package/dist/{assets-C_RjojkK.js → assets-PyuXe45Y.js} +3 -3
- package/dist/auth.d.ts +11 -4
- package/dist/auth.js +4 -5
- package/dist/base-CAU0hWoI.js +82 -0
- package/dist/{billing-B6HK-F_a.js → billing-Dt6L_l9R.js} +3 -3
- package/dist/{build-DK88pTMW.js → build-CY5FnMNY.js} +35 -16
- package/dist/{client-x08fpvay.js → config-DOp5oChe.js} +162 -15
- package/dist/{create-B6-Dr3GZ.js → create-BZL5VH4L.js} +41 -41
- package/dist/{create-kpqEhqkk.js → create-D6w3UL0m.js} +9 -9
- package/dist/create-DM5Y1Pyk.js +18 -0
- package/dist/{doctor-DYbm8IKQ.js → doctor-C9FR0qw3.js} +50 -10
- package/dist/entry.js +45 -40
- package/dist/{environment-BFNzLLPN.js → environment-sE2wZYdg.js} +1 -1
- package/dist/{drivers-Dyi-y9Jn.js → existing--peXpOZj.js} +305 -8
- package/dist/framework-DW5fqjh4.js +65 -0
- package/dist/{source-BccdO4aL.js → git-Hf9Wc7Hp.js} +34 -92
- package/dist/{held-sKq3xrsT.js → held-CUBCOCGP.js} +8 -8
- package/dist/held-DVxvPMSG.js +15 -0
- package/dist/{install-DsIsif39.js → install-C5d82gZF.js} +15 -17
- package/dist/{integrate-B8eA676b.js → integrate-D8J_X1bj.js} +33 -38
- package/dist/{login-Blhxi20A.js → login-C6X7JrhM.js} +8 -9
- package/dist/{login-BlpfYapG.js → login-DXhm9L0F.js} +3 -3
- package/dist/login-et319ESO.js +13 -0
- package/dist/{lookup-Dg55W9S7.js → lookup-DqmIbUkv.js} +28 -4
- package/dist/{migrate-DoRb9jmA.js → migrate-BYF6hKZ2.js} +66 -45
- package/dist/{notification-url-D82msWF5.js → notification-url-Bo54nkXv.js} +4 -4
- package/dist/{open-BAqLpTSI.js → open-xdgXUzaF.js} +2 -2
- package/dist/{org-C4G7WjTV.js → org-BD8U3D1_.js} +4 -4
- package/dist/{organization-CmuQwcKN.js → organization-D-ZlB3qU.js} +4 -4
- package/dist/{orgs-1OzwUtpT.js → orgs-DQQJ3sw_.js} +1 -2
- package/dist/{paths-gBbqgkS7.js → paths-CIlyzF2I.js} +1 -1
- package/dist/{playbook-BKqlv77S.js → playbook-ecggWGFi.js} +10 -14
- package/dist/{products-Cqq59DBQ.js → products-CJq_iXv5.js} +1 -1
- package/dist/{promote-D0i8A0CO.js → promote-QVMLGYlU.js} +27 -28
- package/dist/{pull-DgQ_UmGv.js → pull-CCXhb2a7.js} +72 -26
- package/dist/{pull-CiIrJ5ik.js → pull-CrdsfsAl.js} +33 -39
- package/dist/pull-h71pL3r_.js +30 -0
- package/dist/push-BIq6R8Ro.js +29 -0
- package/dist/push-D6pJM_vv.js +21 -0
- package/dist/{push-7N4XIVtg.js → push-DJMGG7zW.js} +23 -12
- package/dist/{push-BWsXO7FN.js → push-DiMDwGfe.js} +8 -7
- package/dist/{registry-aAR_8VOw.js → registry-BSnQXft4.js} +1286 -901
- package/dist/registry-YwzTfCNc.js +22 -0
- package/dist/{resolve-CcOpO_5s.js → resolve-DO7bPota.js} +4 -4
- package/dist/{resources-DNwvf8rg.js → resources-XwvXA20E.js} +15 -2
- package/dist/{run-tVYJ3V5j.js → run-B-YvxfRc.js} +15 -17
- package/dist/scan-B36wkZmI.js +4 -0
- package/dist/{scan-dv0rrY4C.js → scan-ViBhmrB7.js} +1 -1
- package/dist/{scope-BXoQo30_.js → scope-BLLUxbrA.js} +24 -18
- package/dist/{scope-ehZ7L1nj.js → scope-Cg1AdAfO.js} +33 -3
- package/dist/screenshot-file-Dix2Qynm.js +127 -0
- package/dist/{sdk-DEfQttek.js → sdk-BFunw4Hc.js} +1 -1
- package/dist/{framework-JFLjmD5Y.js → selection-C07e_GGY.js} +4 -54
- package/dist/{series-D2ZpZ8cx.js → series-B8NJK4yS.js} +1 -1
- package/dist/{server-CcZGdYjE.js → server-CBtHzl9y.js} +40 -18
- package/dist/server-CZwSfzKe.js +33 -0
- package/dist/{base-83ZTv6up.js → session-BfVx50iA.js} +8 -83
- package/dist/{session-dHBtgSN0.js → session-BlrwAdGN.js} +1 -1
- package/dist/session-Cip4j99n.js +5 -0
- package/dist/{migration-BUedsREQ.js → setup-a4B72xJ8.js} +290 -28
- package/dist/skills/superwall/SKILL.md +37 -10
- package/dist/skills/superwall/references/api.md +66 -21
- package/dist/skills/superwall/references/asa.md +109 -64
- package/dist/skills/superwall/references/dashboard-links.md +65 -28
- package/dist/skills/superwall/references/data-analytics.md +1 -1
- package/dist/skills/superwall/workflows/dashboard/setup.md +15 -5
- package/dist/skills/superwall/workflows/integrate/flutter.md +9 -7
- package/dist/skills/superwall-framework/SKILL.md +197 -14
- package/dist/skills/superwall-framework/references/cli.md +98 -7
- package/dist/skills/superwall-framework/references/examples.md +2 -2
- package/dist/skills/superwall-framework/references/migrate-from-editor.md +5 -0
- package/dist/skills/superwall-framework/references/migrate-from-native.md +5 -0
- package/dist/{skills-Q7xB784d.js → skills-BB1uIt8t.js} +139 -9
- package/dist/{skills-Bqz2l_bx.js → skills-SnxFa2in.js} +8 -12
- package/dist/source-DQs6iLtC.js +82 -0
- package/dist/{source-push-CG948HrX.js → source-push-w7miTr6m.js} +38 -14
- package/dist/{spinner-IA6hV8nI.js → spinner-BQp7fQvK.js} +7 -5
- package/dist/{starter-BtUUQWhd.js → starter-BlJ_InZJ.js} +2 -2
- package/dist/{status-CB_MrFu5.js → status-DxsIw9zq.js} +9 -11
- package/dist/{output-Ggzq5_-t.js → storage-BR6imSqm.js} +40 -1
- package/dist/storekit-BqyujKQ_.js +203 -0
- package/dist/storekit-ELVCMF0X.js +15 -0
- package/dist/{bind-DcWIIPgk.js → theme-Ed0gz6hr.js} +29 -6
- package/dist/token-CWQ6tdva.js +100 -0
- package/dist/tools-skills/animate-onboarding/SKILL.md +1 -1
- package/dist/tools-skills/mobile-design/SKILL.md +1 -1
- package/dist/tools-skills/onboarding-questions/SKILL.md +1 -1
- package/dist/tools-skills/superwall/SKILL.md +43 -17
- package/dist/tools-skills/superwall/references/api.md +74 -24
- package/dist/tools-skills/superwall/references/asa.md +109 -64
- package/dist/tools-skills/superwall/references/dashboard-links.md +65 -28
- package/dist/tools-skills/superwall/references/data-analytics.md +1 -1
- package/dist/tools-skills/superwall/workflows/dashboard/playbook.md +4 -3
- package/dist/tools-skills/superwall/workflows/dashboard/setup.md +21 -8
- package/dist/tools-skills/superwall/workflows/integrate/flutter.md +9 -7
- package/dist/tools-skills/superwall/workflows/migrate/adapty.md +4 -3
- package/dist/tools-skills/superwall/workflows/migrate/playbook.md +2 -2
- package/dist/tools-skills/superwall/workflows/migrate/qonversion.md +4 -3
- package/dist/tools-skills/superwall/workflows/migrate/revenuecat.md +4 -3
- package/dist/tools-skills/superwall-editor/SKILL.md +2 -3
- package/dist/tools.d.ts +1 -1
- package/dist/tools.js +1230 -745
- package/dist/{try-CS3jLyoP.js → try-C3HW3hPZ.js} +17 -19
- package/dist/{lock-DgSx-p8Y.js → types-Dc9U_4kp.js} +86 -80
- package/dist/upgrade-Cw9jVt-r.js +348 -0
- package/dist/upgrade-DVsonzDF.js +27 -0
- package/package.json +11 -3
- package/dist/config-CGcG7GOt.js +0 -113
- package/dist/create-Du8Fx7W5.js +0 -20
- package/dist/existing-WQ3pz94o.js +0 -97
- package/dist/held-DmOhszHR.js +0 -17
- package/dist/log-C0MDCfA2.js +0 -62
- package/dist/login-D9jfRO8w.js +0 -17
- package/dist/pull-CO5HlqBe.js +0 -36
- package/dist/push-BIhGDNpL.js +0 -30
- package/dist/push-BgqTddLA.js +0 -22
- package/dist/run-B-YoyB-a.js +0 -100
- package/dist/scan-BU41gcQY.js +0 -4
- package/dist/screenshot-file-XAS0Xy0e.js +0 -16
- package/dist/server-BemmM1FV.js +0 -29
- package/dist/session-4aITGsF1.js +0 -6
- package/dist/setup-m94dpT3t.js +0 -217
- package/dist/spawn-DmmmHIP-.js +0 -71
- package/dist/storage-pR0Wb0d9.js +0 -41
- package/dist/storekit-BMxyYAHj.js +0 -17
- package/dist/storekit-CQnwlpKV.js +0 -47
- package/dist/telemetry-DU56L7Cy.js +0 -56
- package/dist/theme-DUsCh-Vd.js +0 -25
- package/dist/token-BbUeExGJ.js +0 -70
- package/dist/upgrade-CKn88PZD.js +0 -206
- package/dist/upgrade-DfD3-ClG.js +0 -7
- /package/dist/{browser-Bp3yRKlU.js → browser-BVjaf98V.js} +0 -0
- /package/dist/{client-BJQXl62Q.js → client-BwYhzITp.js} +0 -0
- /package/dist/{design-lint-CiFc78aM.js → design-lint-mgO-2SGS.js} +0 -0
- /package/dist/{devtools-ByZ6XYnn.js → devtools-B6Vp6HMy.js} +0 -0
- /package/dist/{input-MDd67UIp.js → input-DOT_2Zvb.js} +0 -0
- /package/dist/{project-NoMtbMyl.js → project-BomArwSj.js} +0 -0
- /package/dist/{reports-HYVp169R.js → reports-hbxsd3Zo.js} +0 -0
- /package/dist/{storage-Bdz5AmqS.d.ts → storage-Bh3wT1Rn.d.ts} +0 -0
- /package/dist/{timing-Ca0TXY-A.js → timing-BKEEIBij.js} +0 -0
- /package/dist/{ui-D_qf3Gvw.js → ui-hFgji1e8.js} +0 -0
|
@@ -26,7 +26,7 @@ superwall products create --identifier <identifier> \
|
|
|
26
26
|
--trial-days 7 \ # optional free-trial length
|
|
27
27
|
--entitlement pro \ # entitlement(s) to grant; repeat --entitlement for more
|
|
28
28
|
--name "Pro Yearly" \ # optional display name
|
|
29
|
-
--
|
|
29
|
+
--app <id> --json # the app the entitlement is on
|
|
30
30
|
```
|
|
31
31
|
|
|
32
32
|
Use the **real store product identifiers** (the ones in App Store Connect / Google Play), e.g.
|
|
@@ -52,12 +52,16 @@ superwall asc iaps list com.app.bundle --json # one-time / non-renew
|
|
|
52
52
|
superwall asc products com.app.bundle --json # everything
|
|
53
53
|
superwall asc apps --json # list ASC apps if unsure of the id
|
|
54
54
|
|
|
55
|
-
# create each returned productId, granting your entitlement
|
|
56
|
-
superwall products create --identifier com.app.pro.yearly --
|
|
55
|
+
# create each returned productId with its price, period and trial, granting your entitlement
|
|
56
|
+
superwall products create --identifier com.app.pro.yearly --price 24.99 --period year \
|
|
57
|
+
--trial-days 7 --entitlement pro --app <id> --json
|
|
57
58
|
```
|
|
58
59
|
|
|
59
|
-
|
|
60
|
-
|
|
60
|
+
Take the price, period and trial from the ASC listing. `--price` is in major units (24.99),
|
|
61
|
+
`--currency` defaults to USD, `--period` is `day`, `week`, `month` or `year`, and
|
|
62
|
+
`--period-count` defaults to 1; leave out `--period` and `--trial-days` for a one-time product.
|
|
63
|
+
A product created without `--price` is left out of the `.storekit` export below, which writes
|
|
64
|
+
what Superwall holds.
|
|
61
65
|
|
|
62
66
|
### Generate a local `.storekit` file (for Xcode testing without sandbox)
|
|
63
67
|
|
|
@@ -65,17 +69,26 @@ the stores remain the source of truth for pricing.
|
|
|
65
69
|
superwall products storekit --project <id> --out Superwall.storekit --json
|
|
66
70
|
```
|
|
67
71
|
|
|
68
|
-
|
|
72
|
+
Writes each App Store product with its Superwall price, read in its currency's minor units
|
|
73
|
+
(399 USD is 3.99). Auto-renewable subscriptions go in one `Subscriptions` group with their
|
|
74
|
+
period, and their free or paid trial as the introductory offer; one-time products are written
|
|
75
|
+
as NonConsumable. Products of another store (Play, Stripe, custom), with no price, or with no
|
|
76
|
+
identifier are left out and named in a warning. Price one with
|
|
77
|
+
`superwall products update <id> --price '{"amount":<minor units>,"currency":"USD"}'`, where
|
|
78
|
+
`<id>` is its Superwall product id, then export again.
|
|
69
79
|
|
|
70
80
|
## Entitlements
|
|
71
81
|
|
|
72
82
|
```bash
|
|
73
83
|
superwall entitlements list --project <id> --json
|
|
74
|
-
superwall entitlements create --identifier pro --
|
|
84
|
+
superwall entitlements create --identifier pro --app <id> --json
|
|
75
85
|
```
|
|
76
86
|
|
|
77
87
|
Default to a single coarse `pro` entitlement. Add more only for genuine tiers (e.g. `pro`,
|
|
78
|
-
`team`). Products grant entitlements via `--entitlement` at create time.
|
|
88
|
+
`team`). Products grant entitlements via `--entitlement` (id or identifier) at create time.
|
|
89
|
+
Pass the same `--app <id>` to the entitlement and the product: a native product only grants
|
|
90
|
+
entitlements on its own app. CLI 2.2.1 and older take only the numeric id from
|
|
91
|
+
`superwall entitlements list --json`; run `superwall upgrade` once a newer CLI is out.
|
|
79
92
|
|
|
80
93
|
## Campaigns + placements
|
|
81
94
|
|
|
@@ -104,15 +104,17 @@ plugins { id 'com.android.application' version '8.4.1' apply false }
|
|
|
104
104
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
> **Important:**
|
|
108
|
-
> `
|
|
107
|
+
> **Important:** Do not declare `SuperwallPaywallActivity` in the app's
|
|
108
|
+
> `AndroidManifest.xml`. The `superwallkit_flutter` plugin's manifest already
|
|
109
|
+
> declares it, and a second declaration with a different theme fails the
|
|
110
|
+
> manifest merge (`Attribute activity#...SuperwallPaywallActivity@theme ... is
|
|
111
|
+
> also present at [:superwallkit_flutter]`). If the app already has one, remove
|
|
112
|
+
> it, or keep it only with `tools:replace="android:theme"`.
|
|
113
|
+
|
|
114
|
+
Optionally, add the debug activities inside the `<application>` tag of
|
|
115
|
+
`android/app/src/main/AndroidManifest.xml`:
|
|
109
116
|
|
|
110
117
|
```xml
|
|
111
|
-
<activity
|
|
112
|
-
android:name="com.superwall.sdk.paywall.view.SuperwallPaywallActivity"
|
|
113
|
-
android:theme="@style/Theme.MaterialComponents.DayNight.NoActionBar"
|
|
114
|
-
android:configChanges="orientation|screenSize|keyboardHidden">
|
|
115
|
-
</activity>
|
|
116
118
|
<activity android:name="com.superwall.sdk.debug.DebugViewActivity" />
|
|
117
119
|
<activity android:name="com.superwall.sdk.debug.localizations.SWLocalizationActivity" />
|
|
118
120
|
<activity android:name="com.superwall.sdk.debug.SWConsoleActivity" />
|
|
@@ -119,13 +119,14 @@ Produce: product ids, access-level ids (→ entitlements), and one row per `getP
|
|
|
119
119
|
## 4. Dashboard-side re-creation (CLI)
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
superwall entitlements create --identifier premium --
|
|
123
|
-
superwall products create --identifier com.app.premium_monthly --name "Premium Monthly" --
|
|
124
|
-
superwall products create --identifier com.app.premium_yearly --name "Premium Yearly" --
|
|
122
|
+
superwall entitlements create --identifier premium --app <appId> --json
|
|
123
|
+
superwall products create --identifier com.app.premium_monthly --name "Premium Monthly" --entitlement premium --app <appId> --json
|
|
124
|
+
superwall products create --identifier com.app.premium_yearly --name "Premium Yearly" --entitlement premium --app <appId> --json
|
|
125
125
|
superwall campaigns create --description "Main paywall" --placement main --project <projectId> --app <appId> --json
|
|
126
126
|
superwall campaigns placements create <campaignId> --event-name onboarding --project <projectId> --app <appId> --json
|
|
127
127
|
```
|
|
128
128
|
|
|
129
|
+
Each product MUST grant the entitlements it unlocked in the old provider (`--entitlement <identifier>`, repeat for several); a product with none unlocks nothing. CLI 2.2.1 and older take only the numeric id from `superwall entitlements list --json`.
|
|
129
130
|
Product ids MUST equal existing App Store / Play SKUs (import from ASC via `superwall asc keys create --help`).
|
|
130
131
|
Verify with the same explicit ids: `superwall entitlements list --project <projectId> --json`,
|
|
131
132
|
`superwall products list --project <projectId> --json`, and `superwall campaigns list --project <projectId> --app <appId> --json`.
|
|
@@ -69,9 +69,9 @@ Agents always use `--json` and explicit scope:
|
|
|
69
69
|
superwall whoami --json
|
|
70
70
|
superwall apps list --json
|
|
71
71
|
superwall entitlements list --project <projectId> --json
|
|
72
|
-
superwall entitlements create --identifier <id> --
|
|
72
|
+
superwall entitlements create --identifier <id> --app <appId> --json
|
|
73
73
|
superwall products list --project <projectId> --json
|
|
74
|
-
superwall products create --identifier <storeId> --
|
|
74
|
+
superwall products create --identifier <storeId> --entitlement <id> --app <appId> --json
|
|
75
75
|
superwall campaigns list --project <projectId> --app <appId> --json
|
|
76
76
|
superwall campaigns create --description "<description>" --placement <placement> --project <projectId> --app <appId> --json
|
|
77
77
|
superwall campaigns placements create <campaignId> --event-name <placement> --project <projectId> --app <appId> --json
|
|
@@ -116,12 +116,13 @@ Produce: product ids, entitlement/permission ids (→ entitlements), and one row
|
|
|
116
116
|
## 4. Dashboard-side re-creation (CLI)
|
|
117
117
|
|
|
118
118
|
```bash
|
|
119
|
-
superwall entitlements create --identifier premium --
|
|
120
|
-
superwall products create --identifier com.app.premium_monthly --name "Premium Monthly" --
|
|
121
|
-
superwall products create --identifier com.app.premium_yearly --name "Premium Yearly" --
|
|
119
|
+
superwall entitlements create --identifier premium --app <appId> --json
|
|
120
|
+
superwall products create --identifier com.app.premium_monthly --name "Premium Monthly" --entitlement premium --app <appId> --json
|
|
121
|
+
superwall products create --identifier com.app.premium_yearly --name "Premium Yearly" --entitlement premium --app <appId> --json
|
|
122
122
|
superwall campaigns create --description "Main paywall" --placement paywall_main --project <projectId> --app <appId> --json
|
|
123
123
|
```
|
|
124
124
|
|
|
125
|
+
Each product MUST grant the entitlements it unlocked in the old provider (`--entitlement <identifier>`, repeat for several); a product with none unlocks nothing. CLI 2.2.1 and older take only the numeric id from `superwall entitlements list --json`.
|
|
125
126
|
Product ids MUST equal existing App Store / Play SKUs (import from ASC via `superwall asc keys create --help`).
|
|
126
127
|
Verify with the same explicit ids: `superwall entitlements list --project <projectId> --json`,
|
|
127
128
|
`superwall products list --project <projectId> --json`, and `superwall campaigns list --project <projectId> --app <appId> --json`.
|
|
@@ -203,11 +203,12 @@ call the migration complete with dashboard work silently skipped.
|
|
|
203
203
|
For each entitlement and product found, use the project/app ids from the account gate:
|
|
204
204
|
|
|
205
205
|
```bash
|
|
206
|
-
superwall entitlements create --identifier pro --
|
|
207
|
-
superwall products create --identifier com.app.pro_monthly --name "Pro Monthly" --
|
|
208
|
-
superwall products create --identifier com.app.pro_yearly --name "Pro Yearly" --
|
|
206
|
+
superwall entitlements create --identifier pro --app <appId> --json
|
|
207
|
+
superwall products create --identifier com.app.pro_monthly --name "Pro Monthly" --entitlement pro --app <appId> --json
|
|
208
|
+
superwall products create --identifier com.app.pro_yearly --name "Pro Yearly" --entitlement pro --app <appId> --json
|
|
209
209
|
```
|
|
210
210
|
|
|
211
|
+
Each product MUST grant the entitlements it unlocked in the old provider (`--entitlement <identifier>`, repeat for several); a product with none unlocks nothing. CLI 2.2.1 and older take only the numeric id from `superwall entitlements list --json`.
|
|
211
212
|
Product ids MUST equal the existing App Store / Play SKUs (import via ASC connection instead of
|
|
212
213
|
manual create when possible - `superwall asc keys create --help`). Then one campaign with
|
|
213
214
|
a placement per call site:
|
|
@@ -18,9 +18,8 @@ description: LEGACY — drives the browser (visual) paywall editor over a pairin
|
|
|
18
18
|
> npx skills add https://github.com/superwall/skills --skill superwall-framework --global --yes --agent claude-code universal --full-depth
|
|
19
19
|
> ```
|
|
20
20
|
>
|
|
21
|
-
> The framework is in public beta
|
|
22
|
-
>
|
|
23
|
-
> it is missing; ask the user to set it in their shell rc and relaunch).
|
|
21
|
+
> The framework is in public beta and the CLI has its commands by default
|
|
22
|
+
> (an `Unknown command: create` means an older CLI: ask the user to run `superwall upgrade`).
|
|
24
23
|
>
|
|
25
24
|
> **An editor paywall moves over in one command:**
|
|
26
25
|
>
|
package/dist/tools.d.ts
CHANGED