+116
-116
| { | ||
| "commands": { | ||
| "access-levels:create": { | ||
| "apps:create": { | ||
| "aliases": [], | ||
| "args": {}, | ||
| "description": "Create a custom access level", | ||
| "description": "Create a new Adapty app", | ||
| "examples": [ | ||
| "<%= config.bin %> access-levels create --app 550e8400-... --sdk-id vip --title \"VIP Access\"" | ||
| "<%= config.bin %> apps create --title \"My App\" --platform ios --apple-bundle-id com.example.app", | ||
| "<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app" | ||
| ], | ||
@@ -18,6 +19,5 @@ "flags": { | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "apple-bundle-id": { | ||
| "description": "Apple bundle ID (required with --platform ios)", | ||
| "name": "apple-bundle-id", | ||
| "hasDynamicHelp": false, | ||
@@ -27,6 +27,5 @@ "multiple": false, | ||
| }, | ||
| "sdk-id": { | ||
| "description": "Access level SDK identifier", | ||
| "name": "sdk-id", | ||
| "required": true, | ||
| "google-bundle-id": { | ||
| "description": "Google bundle ID (required with --platform android)", | ||
| "name": "google-bundle-id", | ||
| "hasDynamicHelp": false, | ||
@@ -36,4 +35,16 @@ "multiple": false, | ||
| }, | ||
| "platform": { | ||
| "description": "Platform (ios, android). Repeat for multiple.", | ||
| "name": "platform", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": true, | ||
| "options": [ | ||
| "ios", | ||
| "android" | ||
| ], | ||
| "type": "option" | ||
| }, | ||
| "title": { | ||
| "description": "Access level title", | ||
| "description": "App title", | ||
| "name": "title", | ||
@@ -48,3 +59,3 @@ "required": true, | ||
| "hiddenAliases": [], | ||
| "id": "access-levels:create", | ||
| "id": "apps:create", | ||
| "pluginAlias": "adapty", | ||
@@ -59,18 +70,18 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "access-levels", | ||
| "apps", | ||
| "create.js" | ||
| ] | ||
| }, | ||
| "access-levels:get": { | ||
| "apps:get": { | ||
| "aliases": [], | ||
| "args": { | ||
| "access_level_id": { | ||
| "description": "Access Level ID (UUID)", | ||
| "name": "access_level_id", | ||
| "app_id": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app_id", | ||
| "required": true | ||
| } | ||
| }, | ||
| "description": "Get access level details", | ||
| "description": "Get app details", | ||
| "examples": [ | ||
| "<%= config.bin %> access-levels get --app UUID 550e8400-e29b-41d4-a716-446655440000" | ||
| "<%= config.bin %> apps get 550e8400-e29b-41d4-a716-446655440000" | ||
| ], | ||
@@ -84,10 +95,2 @@ "flags": { | ||
| "type": "boolean" | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| } | ||
@@ -97,3 +100,3 @@ }, | ||
| "hiddenAliases": [], | ||
| "id": "access-levels:get", | ||
| "id": "apps:get", | ||
| "pluginAlias": "adapty", | ||
@@ -108,12 +111,13 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "access-levels", | ||
| "apps", | ||
| "get.js" | ||
| ] | ||
| }, | ||
| "access-levels:list": { | ||
| "apps:list": { | ||
| "aliases": [], | ||
| "args": {}, | ||
| "description": "List access levels for an app", | ||
| "description": "List Adapty apps", | ||
| "examples": [ | ||
| "<%= config.bin %> access-levels list --app 550e8400-e29b-41d4-a716-446655440000" | ||
| "<%= config.bin %> apps list", | ||
| "<%= config.bin %> apps list --page 2 --page-size 10" | ||
| ], | ||
@@ -128,10 +132,2 @@ "flags": { | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| }, | ||
| "page": { | ||
@@ -156,3 +152,3 @@ "description": "Page number", | ||
| "hiddenAliases": [], | ||
| "id": "access-levels:list", | ||
| "id": "apps:list", | ||
| "pluginAlias": "adapty", | ||
@@ -167,18 +163,18 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "access-levels", | ||
| "apps", | ||
| "list.js" | ||
| ] | ||
| }, | ||
| "access-levels:update": { | ||
| "apps:update": { | ||
| "aliases": [], | ||
| "args": { | ||
| "access_level_id": { | ||
| "description": "Access Level ID (UUID)", | ||
| "name": "access_level_id", | ||
| "app_id": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app_id", | ||
| "required": true | ||
| } | ||
| }, | ||
| "description": "Update an access level", | ||
| "description": "Update an app", | ||
| "examples": [ | ||
| "<%= config.bin %> access-levels update --app UUID 550e8400-... --title \"VIP Access\"" | ||
| "<%= config.bin %> apps update 550e8400-... --title \"My App\"" | ||
| ], | ||
@@ -193,6 +189,5 @@ "flags": { | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "apple-bundle-id": { | ||
| "description": "Apple bundle ID", | ||
| "name": "apple-bundle-id", | ||
| "hasDynamicHelp": false, | ||
@@ -202,6 +197,12 @@ "multiple": false, | ||
| }, | ||
| "google-bundle-id": { | ||
| "description": "Google bundle ID", | ||
| "name": "google-bundle-id", | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| }, | ||
| "title": { | ||
| "description": "Access level title", | ||
| "description": "App title", | ||
| "name": "title", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
@@ -214,3 +215,3 @@ "multiple": false, | ||
| "hiddenAliases": [], | ||
| "id": "access-levels:update", | ||
| "id": "apps:update", | ||
| "pluginAlias": "adapty", | ||
@@ -225,13 +226,12 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "access-levels", | ||
| "apps", | ||
| "update.js" | ||
| ] | ||
| }, | ||
| "apps:create": { | ||
| "access-levels:create": { | ||
| "aliases": [], | ||
| "args": {}, | ||
| "description": "Create a new Adapty app", | ||
| "description": "Create a custom access level", | ||
| "examples": [ | ||
| "<%= config.bin %> apps create --title \"My App\" --platform ios --apple-bundle-id com.example.app", | ||
| "<%= config.bin %> apps create --title \"My App\" --platform ios --platform android --apple-bundle-id com.example.app --google-bundle-id com.example.app" | ||
| "<%= config.bin %> access-levels create --app 550e8400-... --sdk-id vip --title \"VIP Access\"" | ||
| ], | ||
@@ -246,5 +246,6 @@ "flags": { | ||
| }, | ||
| "apple-bundle-id": { | ||
| "description": "Apple bundle ID (required with --platform ios)", | ||
| "name": "apple-bundle-id", | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
@@ -254,5 +255,6 @@ "multiple": false, | ||
| }, | ||
| "google-bundle-id": { | ||
| "description": "Google bundle ID (required with --platform android)", | ||
| "name": "google-bundle-id", | ||
| "sdk-id": { | ||
| "description": "Access level SDK identifier", | ||
| "name": "sdk-id", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
@@ -262,16 +264,4 @@ "multiple": false, | ||
| }, | ||
| "platform": { | ||
| "description": "Platform (ios, android). Repeat for multiple.", | ||
| "name": "platform", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": true, | ||
| "options": [ | ||
| "ios", | ||
| "android" | ||
| ], | ||
| "type": "option" | ||
| }, | ||
| "title": { | ||
| "description": "App title", | ||
| "description": "Access level title", | ||
| "name": "title", | ||
@@ -286,3 +276,3 @@ "required": true, | ||
| "hiddenAliases": [], | ||
| "id": "apps:create", | ||
| "id": "access-levels:create", | ||
| "pluginAlias": "adapty", | ||
@@ -297,18 +287,18 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "apps", | ||
| "access-levels", | ||
| "create.js" | ||
| ] | ||
| }, | ||
| "apps:get": { | ||
| "access-levels:get": { | ||
| "aliases": [], | ||
| "args": { | ||
| "app_id": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app_id", | ||
| "access_level_id": { | ||
| "description": "Access Level ID (UUID)", | ||
| "name": "access_level_id", | ||
| "required": true | ||
| } | ||
| }, | ||
| "description": "Get app details", | ||
| "description": "Get access level details", | ||
| "examples": [ | ||
| "<%= config.bin %> apps get 550e8400-e29b-41d4-a716-446655440000" | ||
| "<%= config.bin %> access-levels get --app UUID 550e8400-e29b-41d4-a716-446655440000" | ||
| ], | ||
@@ -322,2 +312,10 @@ "flags": { | ||
| "type": "boolean" | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| } | ||
@@ -327,3 +325,3 @@ }, | ||
| "hiddenAliases": [], | ||
| "id": "apps:get", | ||
| "id": "access-levels:get", | ||
| "pluginAlias": "adapty", | ||
@@ -338,13 +336,12 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "apps", | ||
| "access-levels", | ||
| "get.js" | ||
| ] | ||
| }, | ||
| "apps:list": { | ||
| "access-levels:list": { | ||
| "aliases": [], | ||
| "args": {}, | ||
| "description": "List Adapty apps", | ||
| "description": "List access levels for an app", | ||
| "examples": [ | ||
| "<%= config.bin %> apps list", | ||
| "<%= config.bin %> apps list --page 2 --page-size 10" | ||
| "<%= config.bin %> access-levels list --app 550e8400-e29b-41d4-a716-446655440000" | ||
| ], | ||
@@ -359,2 +356,10 @@ "flags": { | ||
| }, | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| }, | ||
| "page": { | ||
@@ -379,3 +384,3 @@ "description": "Page number", | ||
| "hiddenAliases": [], | ||
| "id": "apps:list", | ||
| "id": "access-levels:list", | ||
| "pluginAlias": "adapty", | ||
@@ -390,18 +395,18 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "apps", | ||
| "access-levels", | ||
| "list.js" | ||
| ] | ||
| }, | ||
| "apps:update": { | ||
| "access-levels:update": { | ||
| "aliases": [], | ||
| "args": { | ||
| "app_id": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app_id", | ||
| "access_level_id": { | ||
| "description": "Access Level ID (UUID)", | ||
| "name": "access_level_id", | ||
| "required": true | ||
| } | ||
| }, | ||
| "description": "Update an app", | ||
| "description": "Update an access level", | ||
| "examples": [ | ||
| "<%= config.bin %> apps update 550e8400-... --title \"My App\"" | ||
| "<%= config.bin %> access-levels update --app UUID 550e8400-... --title \"VIP Access\"" | ||
| ], | ||
@@ -416,5 +421,6 @@ "flags": { | ||
| }, | ||
| "apple-bundle-id": { | ||
| "description": "Apple bundle ID", | ||
| "name": "apple-bundle-id", | ||
| "app": { | ||
| "description": "App ID (UUID)", | ||
| "name": "app", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
@@ -424,12 +430,6 @@ "multiple": false, | ||
| }, | ||
| "google-bundle-id": { | ||
| "description": "Google bundle ID", | ||
| "name": "google-bundle-id", | ||
| "hasDynamicHelp": false, | ||
| "multiple": false, | ||
| "type": "option" | ||
| }, | ||
| "title": { | ||
| "description": "App title", | ||
| "description": "Access level title", | ||
| "name": "title", | ||
| "required": true, | ||
| "hasDynamicHelp": false, | ||
@@ -442,3 +442,3 @@ "multiple": false, | ||
| "hiddenAliases": [], | ||
| "id": "apps:update", | ||
| "id": "access-levels:update", | ||
| "pluginAlias": "adapty", | ||
@@ -453,3 +453,3 @@ "pluginName": "adapty", | ||
| "commands", | ||
| "apps", | ||
| "access-levels", | ||
| "update.js" | ||
@@ -1316,3 +1316,3 @@ ] | ||
| }, | ||
| "version": "0.1.4" | ||
| "version": "0.1.5" | ||
| } |
+2
-2
| { | ||
| "name": "adapty", | ||
| "description": "Adapty command line interface", | ||
| "version": "0.1.4", | ||
| "version": "0.1.5", | ||
| "author": "Adapty team <support@adapty.io>", | ||
@@ -45,3 +45,3 @@ "bin": { | ||
| ], | ||
| "homepage": "https://github.com/adaptyteam/adapty-cli", | ||
| "homepage": "https://adapty.io/docs/developer-cli", | ||
| "keywords": [ | ||
@@ -48,0 +48,0 @@ "adapty", |
+15
-11
@@ -1,9 +0,13 @@ | ||
| # adapty-cli | ||
| <a href="https://adapty.io/?utm_source=github&utm_medium=referral&utm_campaign=adapty-cli"> | ||
| <img src="https://adapty-portal-media-production.s3.amazonaws.com/github/logo-adapty-new.svg"> | ||
| </a> | ||
| CLI for the [Adapty Developer API](https://docs.adapty.io/docs/developer-api). Manage apps, products, paywalls, placements, and access levels from your terminal. | ||
| # Adapty CLI | ||
| [Adapty Developer CLI](https://adapty.io/docs/developer-cli). Manage apps, products, paywalls, placements, and access levels from your terminal. | ||
| ## Installation | ||
| ```sh | ||
| npm install -g adapty-cli | ||
| npm install -g adapty | ||
| ``` | ||
@@ -87,7 +91,7 @@ | ||
| | Flag | Description | | ||
| |------|-------------| | ||
| | `--json` | Output as JSON | | ||
| | `--help` | Show help | | ||
| | `--page` | Page number (default: 1) | | ||
| | Flag | Description | | ||
| | ------------- | -------------------------------------- | | ||
| | `--json` | Output as JSON | | ||
| | `--help` | Show help | | ||
| | `--page` | Page number (default: 1) | | ||
| | `--page-size` | Items per page (default: 20, max: 100) | | ||
@@ -97,5 +101,5 @@ | ||
| | Variable | Description | | ||
| |----------|-------------| | ||
| | `ADAPTY_TOKEN` | Override stored auth token | | ||
| | Variable | Description | | ||
| | ---------------- | ------------------------------------------------------------------------- | | ||
| | `ADAPTY_TOKEN` | Override stored auth token | | ||
| | `ADAPTY_API_URL` | Override API base URL (default: `https://api.adapty.io/api/v1/developer`) | | ||
@@ -102,0 +106,0 @@ |
102210
0.51%116
3.57%