Loading...
Loading...
Compare original and translation side by side
npm install -g adaptynpx adapty@latestnpm install -g adaptynpx adapty@latest| Platform | Glob pattern |
|---|---|
| iOS/Swift | |
| Android/Kotlin | |
| Flutter | |
| React Native | |
| Unity | |
| Capacitor | |
| KMP | |
App name: [suggest from package.json, Info.plist, or AndroidManifest] Bundle ID: [suggest from detected config files] Platforms: 1. iOS only / 2. Android only / 3. BothProducts: 1. Monthly () / 2. Annual (monthly) / 3. Monthly + Annual / 4. Weekly (annual) / 5. Lifetime (weekly) / 6. CustomlifetimeValidvalues:--period,weekly,monthly,two_months,trimonthly,semiannual,annual. Do NOT uselifetime,month,year, or any other aliases — use these exact API values. Product name prefix: [suggest based on app name, e.g. "Premium"]yearly
<bundle_id>.<prefix>.<period>Store product IDs — these MUST match the IDs you create (or will create) in App Store Connect / Google Play Console. Confirm or edit the suggested IDs:
- iOS:
/com.example.app.premium.monthlycom.example.app.premium.annual- Android product ID:
/ base plan:premium_monthly(if Android)monthly-baseIf your iOS and Android IDs differ, enter them separately (e.g. "iOS: com.app.monthly, Android: monthly_sub / base plan: monthly-bp"). If you haven't created store products yet, these suggestions work — just use the same IDs when you set them up in App Store Connect / Google Play Console later.Placements: 1. Onboarding () / 2. Settings (onboarding) / 3. Feature gate (settings) / 4. All of the above / 5. Customfeature_gatePaywall UI: 1. Paywall Builder (visual editor, no UI code) / 2. Custom (your own UI)
| 平台 | Glob 匹配模式 |
|---|---|
| iOS/Swift | |
| Android/Kotlin | |
| Flutter | |
| React Native | |
| Unity | |
| Capacitor | |
| KMP | |
应用名称:[从package.json、Info.plist或AndroidManifest中建议默认值] Bundle ID:[从检测到的配置文件中建议默认值] 平台:1. 仅iOS / 2. 仅Android / 3. 两者都选产品类型:1. 月度() / 2. 年度(monthly) / 3. 月度+年度 / 4. 周度(annual) / 5. 终身(weekly) / 6. 自定义lifetime有效的参数值:--period,weekly,monthly,two_months,trimonthly,semiannual,annual。请勿使用lifetime、month、year或其他别名 —— 请严格使用这些标准API值。 产品名称前缀:[基于应用名称建议,例如“Premium”]yearly
<bundle_id>.<prefix>.<period>商店产品ID —— 这些ID必须与你在App Store Connect / Google Play Console中创建(或将要创建)的ID完全匹配。 确认或编辑建议的ID:
- iOS:
/com.example.app.premium.monthlycom.example.app.premium.annual- Android产品ID:
/ 基础套餐:premium_monthly(如果是Android平台)monthly-base如果你的iOS和Android ID不同,请分别输入(例如:“iOS: com.app.monthly, Android: monthly_sub / 基础套餐: monthly-bp”)。 如果你还未在商店中创建产品,这些建议值完全可用 —— 后续在App Store Connect / Google Play Console中设置时使用相同ID即可。展示位置:1. 新手引导() / 2. 设置页面(onboarding) / 3. 功能入口(settings) / 4. 全部选上 / 5. 自定义feature_gate付费墙UI:1. Paywall Builder(可视化编辑器,无需编写UI代码) / 2. 自定义(使用你自己的UI)
adapty auth loginadapty auth whoamiadapty apps create --title "..." --platform ... --apple-bundle-id/--google-bundle-id ...id--appsdk_keyidsdk_idadapty products create --app <APP_ID> --title "..." --period ... --access-level-id <DEFAULT_AL_ID> --ios-product-id/--android-product-id ... [--android-base-plan-id ...]--android-base-plan-idadapty paywalls create --app <APP_ID> --title "..." --product-id <ID1> --product-id <ID2> ...adapty placements create --app <APP_ID> --title "..." --developer-id ... --paywall-id <PAYWALL_ID>adapty auth loginadapty auth whoamiadapty apps create --title "..." --platform ... --apple-bundle-id/--google-bundle-id ...id--appsdk_keyidsdk_idadapty products create --app <APP_ID> --title "..." --period ... --access-level-id <DEFAULT_AL_ID> --ios-product-id/--android-product-id ... [--android-base-plan-id ...]--android-base-plan-idadapty paywalls create --app <APP_ID> --title "..." --product-id <ID1> --product-id <ID2> ...adapty placements create --app <APP_ID> --title "..." --developer-id ... --paywall-id <PAYWALL_ID>Dashboard: https://app.adapty.io
Your SDK key: <sdk_key from apps create>
Placement developer IDs: <list of developer_ids>
Access level SDK ID: <sdk_id from access level, e.g. "premium">What do you want to do next?
- Integrate SDK into the codebase
- Configure app/products on Apple side (only if iOS)
- Configure app/products on Google side (only if Android)
- Design paywall in Paywall Builder (only if they chose Paywall Builder)
- I'm done for now
resolve-library-id: "adaptyteam/adapty-docs"
query-docs: topic="<platform> <feature>"https://adapty.io/docs/ios-quickstart-paywalls.mdhttps://adapty.io/docs/android-quickstart-paywalls.mdhttps://adapty.io/docs/flutter-quickstart-paywalls.mdhttps://adapty.io/docs/react-native-quickstart-paywalls.mdhttps://adapty.io/docs/ios-quickstart-manual.mdhttps://adapty.io/docs/android-quickstart-manual.mdhttps://adapty.io/docs/flutter-quickstart-manual.mdhttps://adapty.io/docs/react-native-quickstart-manual.md<list ios_product_ids>https://adapty.io/docs/app-store-connection-configuration.mdhttps://adapty.io/docs/enable-app-store-server-notifications.md<list android_product_ids><list base_plan_ids>https://adapty.io/docs/google-play-store-connection-configuration.mdhttps://adapty.io/docs/enable-real-time-developer-notifications-rtdn.mdhttps://adapty.io/docs/adapty-paywall-builder.md控制台地址: https://app.adapty.io
你的SDK密钥: <sdk_key from apps create>
展示位置开发者ID: <list of developer_ids>
访问级别SDK ID: <sdk_id from access level, e.g. "premium">你接下来想做什么?
- 将SDK集成到代码库中
- 在Apple端配置应用/产品 (仅当选择iOS平台时显示)
- 在Google端配置应用/产品 (仅当选择Android平台时显示)
- 使用Paywall Builder设计付费墙 (仅当选择Paywall Builder时显示)
- 我已完成当前操作
resolve-library-id: "adaptyteam/adapty-docs"
query-docs: topic="<platform> <feature>"https://adapty.io/docs/ios-quickstart-paywalls.mdhttps://adapty.io/docs/android-quickstart-paywalls.mdhttps://adapty.io/docs/flutter-quickstart-paywalls.mdhttps://adapty.io/docs/react-native-quickstart-paywalls.mdhttps://adapty.io/docs/ios-quickstart-manual.mdhttps://adapty.io/docs/android-quickstart-manual.mdhttps://adapty.io/docs/flutter-quickstart-manual.mdhttps://adapty.io/docs/react-native-quickstart-manual.md<list ios_product_ids>https://adapty.io/docs/app-store-connection-configuration.mdhttps://adapty.io/docs/enable-app-store-server-notifications.md<list android_product_ids><list base_plan_ids>https://adapty.io/docs/google-play-store-connection-configuration.mdhttps://adapty.io/docs/enable-real-time-developer-notifications-rtdn.mdhttps://adapty.io/docs/adapty-paywall-builder.mdreferences/cli-commands.mdapps--app <APP_ID>apps get <app_id>apps update <app_id>--appgetupdate--applist--page--page-size--json--title--name--apple-bundle-id--google-bundle-idreferences/cli-commands.mdapps--app <APP_ID>apps get <app_id>apps update <app_id>--appgetupdate--applist--page--page-size--json--title--name--apple-bundle-id--google-bundle-iddeveloper_idsdk_iddeveloper_idsdk_idhttps://adapty.io/docs/llms.txthttps://adapty.io/docs/<slug>.mdadaptyteam/adapty-docshttps://adapty.io/docs/llms.txthttps://adapty.io/docs/<slug>.mdadaptyteam/adapty-docs