@ecomweb/cli 0.4.0 → 0.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 +18 -4
- package/dist/commands/deploy.d.ts +3 -0
- package/dist/commands/deploy.js +34 -5
- package/dist/commands/deploy.js.map +1 -1
- package/dist/lib/deploy-flags.d.ts +7 -0
- package/dist/lib/deploy-flags.js +13 -0
- package/dist/lib/deploy-flags.js.map +1 -0
- package/dist/lib/deployments.d.ts +4 -0
- package/dist/lib/deployments.js +44 -2
- package/dist/lib/deployments.js.map +1 -1
- package/dist/lib/project-setup.d.ts +1 -0
- package/dist/lib/project-setup.js +14 -0
- package/dist/lib/project-setup.js.map +1 -1
- package/dist/lib/theme-schema-export.d.ts +7 -0
- package/dist/lib/theme-schema-export.js +49 -0
- package/dist/lib/theme-schema-export.js.map +1 -0
- package/oclif.manifest.json +768 -746
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
"deploy": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Build
|
|
6
|
+
"description": "Build a code theme's new version on ecomweb. A theme that isn't live gets a 24-hour preview; the live theme needs --allow-live, and goes live once built (storefront hosting)",
|
|
7
7
|
"examples": [
|
|
8
8
|
"ecomweb deploy",
|
|
9
|
-
"ecomweb deploy --
|
|
9
|
+
"ecomweb deploy --draft",
|
|
10
|
+
"ecomweb deploy --theme 12",
|
|
11
|
+
"ecomweb deploy --theme 7 --allow-live",
|
|
10
12
|
"ecomweb deploy --prebuilt",
|
|
11
13
|
"ecomweb deploy --dir ./my-storefront --quiet",
|
|
12
14
|
"ecomweb deploy --debug"
|
|
@@ -114,8 +116,28 @@
|
|
|
114
116
|
"allowNo": false,
|
|
115
117
|
"type": "boolean"
|
|
116
118
|
},
|
|
119
|
+
"theme": {
|
|
120
|
+
"description": "The code theme to deploy to (its id in the dashboard's Themes page); needed when the store has several. Also ECOMWEB_STORE_THEME_ID or storeThemeId in .ecomweb.json",
|
|
121
|
+
"env": "ECOMWEB_STORE_THEME_ID",
|
|
122
|
+
"name": "theme",
|
|
123
|
+
"hasDynamicHelp": false,
|
|
124
|
+
"multiple": false,
|
|
125
|
+
"type": "option"
|
|
126
|
+
},
|
|
127
|
+
"allow-live": {
|
|
128
|
+
"description": "Deploying to the live theme: let the build go live once built (the store keeps its current version if the new one never gets ready: exit 6)",
|
|
129
|
+
"name": "allow-live",
|
|
130
|
+
"allowNo": false,
|
|
131
|
+
"type": "boolean"
|
|
132
|
+
},
|
|
133
|
+
"draft": {
|
|
134
|
+
"description": "Deploy to the live theme's draft (\"<name> (bản nháp)\", a copy ecomweb makes on first use) and preview it there",
|
|
135
|
+
"name": "draft",
|
|
136
|
+
"allowNo": false,
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
},
|
|
117
139
|
"prod": {
|
|
118
|
-
"description": "
|
|
140
|
+
"description": "Deprecated: deploy, then publish the theme. Use --allow-live for the live theme",
|
|
119
141
|
"name": "prod",
|
|
120
142
|
"allowNo": false,
|
|
121
143
|
"type": "boolean"
|
|
@@ -2815,15 +2837,14 @@
|
|
|
2815
2837
|
"update.js"
|
|
2816
2838
|
]
|
|
2817
2839
|
},
|
|
2818
|
-
"
|
|
2840
|
+
"banners:create": {
|
|
2819
2841
|
"aliases": [],
|
|
2820
2842
|
"args": {},
|
|
2821
|
-
"description": "
|
|
2843
|
+
"description": "Create a new banner",
|
|
2822
2844
|
"examples": [
|
|
2823
|
-
"ecomweb
|
|
2824
|
-
"ecomweb
|
|
2825
|
-
"ecomweb
|
|
2826
|
-
"ECOMWEB_API_KEY=sk_live_abc123 ecomweb auth login"
|
|
2845
|
+
"ecomweb banners create --stdin <<< '{\"title\":\"Summer Sale\",\"image_url\":\"https://example.com/banner.jpg\"}'",
|
|
2846
|
+
"ecomweb banners create --title 'Summer Sale' --image-url https://example.com/banner.jpg",
|
|
2847
|
+
"ecomweb banners create --file banner.json"
|
|
2827
2848
|
],
|
|
2828
2849
|
"flags": {
|
|
2829
2850
|
"store-ref": {
|
|
@@ -2902,31 +2923,71 @@
|
|
|
2902
2923
|
"multiple": false,
|
|
2903
2924
|
"type": "option"
|
|
2904
2925
|
},
|
|
2905
|
-
"
|
|
2906
|
-
"description": "
|
|
2907
|
-
"name": "
|
|
2926
|
+
"stdin": {
|
|
2927
|
+
"description": "Read JSON body from stdin",
|
|
2928
|
+
"name": "stdin",
|
|
2929
|
+
"allowNo": false,
|
|
2930
|
+
"type": "boolean"
|
|
2931
|
+
},
|
|
2932
|
+
"file": {
|
|
2933
|
+
"description": "Read JSON body from file",
|
|
2934
|
+
"name": "file",
|
|
2908
2935
|
"hasDynamicHelp": false,
|
|
2909
2936
|
"multiple": false,
|
|
2910
2937
|
"type": "option"
|
|
2911
2938
|
},
|
|
2912
|
-
"
|
|
2913
|
-
"description": "
|
|
2914
|
-
"name": "
|
|
2939
|
+
"title": {
|
|
2940
|
+
"description": "Banner title",
|
|
2941
|
+
"name": "title",
|
|
2915
2942
|
"hasDynamicHelp": false,
|
|
2916
2943
|
"multiple": false,
|
|
2917
2944
|
"type": "option"
|
|
2918
2945
|
},
|
|
2919
|
-
"
|
|
2920
|
-
"description": "
|
|
2921
|
-
"name": "
|
|
2946
|
+
"image-url": {
|
|
2947
|
+
"description": "Banner image URL",
|
|
2948
|
+
"name": "image-url",
|
|
2949
|
+
"hasDynamicHelp": false,
|
|
2950
|
+
"multiple": false,
|
|
2951
|
+
"type": "option"
|
|
2952
|
+
},
|
|
2953
|
+
"subtitle": {
|
|
2954
|
+
"description": "Banner subtitle",
|
|
2955
|
+
"name": "subtitle",
|
|
2956
|
+
"hasDynamicHelp": false,
|
|
2957
|
+
"multiple": false,
|
|
2958
|
+
"type": "option"
|
|
2959
|
+
},
|
|
2960
|
+
"link-url": {
|
|
2961
|
+
"description": "Banner link URL",
|
|
2962
|
+
"name": "link-url",
|
|
2963
|
+
"hasDynamicHelp": false,
|
|
2964
|
+
"multiple": false,
|
|
2965
|
+
"type": "option"
|
|
2966
|
+
},
|
|
2967
|
+
"button-text": {
|
|
2968
|
+
"description": "Banner button text",
|
|
2969
|
+
"name": "button-text",
|
|
2970
|
+
"hasDynamicHelp": false,
|
|
2971
|
+
"multiple": false,
|
|
2972
|
+
"type": "option"
|
|
2973
|
+
},
|
|
2974
|
+
"position": {
|
|
2975
|
+
"description": "Banner position",
|
|
2976
|
+
"name": "position",
|
|
2922
2977
|
"hasDynamicHelp": false,
|
|
2923
2978
|
"multiple": false,
|
|
2924
2979
|
"type": "option"
|
|
2980
|
+
},
|
|
2981
|
+
"is-active": {
|
|
2982
|
+
"description": "Whether banner is active",
|
|
2983
|
+
"name": "is-active",
|
|
2984
|
+
"allowNo": true,
|
|
2985
|
+
"type": "boolean"
|
|
2925
2986
|
}
|
|
2926
2987
|
},
|
|
2927
2988
|
"hasDynamicHelp": false,
|
|
2928
2989
|
"hiddenAliases": [],
|
|
2929
|
-
"id": "
|
|
2990
|
+
"id": "banners:create",
|
|
2930
2991
|
"pluginAlias": "@ecomweb/cli",
|
|
2931
2992
|
"pluginName": "@ecomweb/cli",
|
|
2932
2993
|
"pluginType": "core",
|
|
@@ -2936,17 +2997,24 @@
|
|
|
2936
2997
|
"relativePath": [
|
|
2937
2998
|
"dist",
|
|
2938
2999
|
"commands",
|
|
2939
|
-
"
|
|
2940
|
-
"
|
|
3000
|
+
"banners",
|
|
3001
|
+
"create.js"
|
|
2941
3002
|
]
|
|
2942
3003
|
},
|
|
2943
|
-
"
|
|
3004
|
+
"banners:delete": {
|
|
2944
3005
|
"aliases": [],
|
|
2945
|
-
"args": {
|
|
2946
|
-
|
|
3006
|
+
"args": {
|
|
3007
|
+
"id": {
|
|
3008
|
+
"description": "Banner ID",
|
|
3009
|
+
"name": "id",
|
|
3010
|
+
"required": true
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
"description": "Delete a banner by ID",
|
|
2947
3014
|
"examples": [
|
|
2948
|
-
"ecomweb
|
|
2949
|
-
"ecomweb
|
|
3015
|
+
"ecomweb banners delete 42",
|
|
3016
|
+
"ecomweb banners delete 42 --no-soft-delete",
|
|
3017
|
+
"ecomweb banners delete 42 --dry-run"
|
|
2950
3018
|
],
|
|
2951
3019
|
"flags": {
|
|
2952
3020
|
"store-ref": {
|
|
@@ -3024,11 +3092,17 @@
|
|
|
3024
3092
|
"hasDynamicHelp": false,
|
|
3025
3093
|
"multiple": false,
|
|
3026
3094
|
"type": "option"
|
|
3095
|
+
},
|
|
3096
|
+
"soft-delete": {
|
|
3097
|
+
"description": "Soft delete (default: true)",
|
|
3098
|
+
"name": "soft-delete",
|
|
3099
|
+
"allowNo": true,
|
|
3100
|
+
"type": "boolean"
|
|
3027
3101
|
}
|
|
3028
3102
|
},
|
|
3029
3103
|
"hasDynamicHelp": false,
|
|
3030
3104
|
"hiddenAliases": [],
|
|
3031
|
-
"id": "
|
|
3105
|
+
"id": "banners:delete",
|
|
3032
3106
|
"pluginAlias": "@ecomweb/cli",
|
|
3033
3107
|
"pluginName": "@ecomweb/cli",
|
|
3034
3108
|
"pluginType": "core",
|
|
@@ -3038,17 +3112,22 @@
|
|
|
3038
3112
|
"relativePath": [
|
|
3039
3113
|
"dist",
|
|
3040
3114
|
"commands",
|
|
3041
|
-
"
|
|
3042
|
-
"
|
|
3115
|
+
"banners",
|
|
3116
|
+
"delete.js"
|
|
3043
3117
|
]
|
|
3044
3118
|
},
|
|
3045
|
-
"
|
|
3119
|
+
"banners:get": {
|
|
3046
3120
|
"aliases": [],
|
|
3047
|
-
"args": {
|
|
3048
|
-
|
|
3121
|
+
"args": {
|
|
3122
|
+
"id": {
|
|
3123
|
+
"description": "Banner ID",
|
|
3124
|
+
"name": "id",
|
|
3125
|
+
"required": true
|
|
3126
|
+
}
|
|
3127
|
+
},
|
|
3128
|
+
"description": "Get a banner by ID",
|
|
3049
3129
|
"examples": [
|
|
3050
|
-
"ecomweb
|
|
3051
|
-
"ecomweb auth register --email user@example.com"
|
|
3130
|
+
"ecomweb banners get 42"
|
|
3052
3131
|
],
|
|
3053
3132
|
"flags": {
|
|
3054
3133
|
"store-ref": {
|
|
@@ -3126,26 +3205,11 @@
|
|
|
3126
3205
|
"hasDynamicHelp": false,
|
|
3127
3206
|
"multiple": false,
|
|
3128
3207
|
"type": "option"
|
|
3129
|
-
},
|
|
3130
|
-
"email": {
|
|
3131
|
-
"description": "Email address for the new account",
|
|
3132
|
-
"name": "email",
|
|
3133
|
-
"required": true,
|
|
3134
|
-
"hasDynamicHelp": false,
|
|
3135
|
-
"multiple": false,
|
|
3136
|
-
"type": "option"
|
|
3137
|
-
},
|
|
3138
|
-
"name": {
|
|
3139
|
-
"description": "Display name for the account",
|
|
3140
|
-
"name": "name",
|
|
3141
|
-
"hasDynamicHelp": false,
|
|
3142
|
-
"multiple": false,
|
|
3143
|
-
"type": "option"
|
|
3144
3208
|
}
|
|
3145
3209
|
},
|
|
3146
3210
|
"hasDynamicHelp": false,
|
|
3147
3211
|
"hiddenAliases": [],
|
|
3148
|
-
"id": "
|
|
3212
|
+
"id": "banners:get",
|
|
3149
3213
|
"pluginAlias": "@ecomweb/cli",
|
|
3150
3214
|
"pluginName": "@ecomweb/cli",
|
|
3151
3215
|
"pluginType": "core",
|
|
@@ -3155,16 +3219,18 @@
|
|
|
3155
3219
|
"relativePath": [
|
|
3156
3220
|
"dist",
|
|
3157
3221
|
"commands",
|
|
3158
|
-
"
|
|
3159
|
-
"
|
|
3222
|
+
"banners",
|
|
3223
|
+
"get.js"
|
|
3160
3224
|
]
|
|
3161
3225
|
},
|
|
3162
|
-
"
|
|
3226
|
+
"banners:list": {
|
|
3163
3227
|
"aliases": [],
|
|
3164
3228
|
"args": {},
|
|
3165
|
-
"description": "
|
|
3229
|
+
"description": "List banners with pagination and filtering",
|
|
3166
3230
|
"examples": [
|
|
3167
|
-
"ecomweb
|
|
3231
|
+
"ecomweb banners list",
|
|
3232
|
+
"ecomweb banners list --is-active --sort-by position",
|
|
3233
|
+
"ecomweb banners list --title Hero --sort-order asc"
|
|
3168
3234
|
],
|
|
3169
3235
|
"flags": {
|
|
3170
3236
|
"store-ref": {
|
|
@@ -3242,11 +3308,66 @@
|
|
|
3242
3308
|
"hasDynamicHelp": false,
|
|
3243
3309
|
"multiple": false,
|
|
3244
3310
|
"type": "option"
|
|
3311
|
+
},
|
|
3312
|
+
"is-active": {
|
|
3313
|
+
"description": "Filter by active status",
|
|
3314
|
+
"name": "is-active",
|
|
3315
|
+
"allowNo": true,
|
|
3316
|
+
"type": "boolean"
|
|
3317
|
+
},
|
|
3318
|
+
"title": {
|
|
3319
|
+
"description": "Filter by title",
|
|
3320
|
+
"name": "title",
|
|
3321
|
+
"hasDynamicHelp": false,
|
|
3322
|
+
"multiple": false,
|
|
3323
|
+
"type": "option"
|
|
3324
|
+
},
|
|
3325
|
+
"sort-by": {
|
|
3326
|
+
"description": "Sort field",
|
|
3327
|
+
"name": "sort-by",
|
|
3328
|
+
"hasDynamicHelp": false,
|
|
3329
|
+
"multiple": false,
|
|
3330
|
+
"options": [
|
|
3331
|
+
"id",
|
|
3332
|
+
"position",
|
|
3333
|
+
"title",
|
|
3334
|
+
"created_at",
|
|
3335
|
+
"updated_at",
|
|
3336
|
+
"is_active"
|
|
3337
|
+
],
|
|
3338
|
+
"type": "option"
|
|
3339
|
+
},
|
|
3340
|
+
"sort-order": {
|
|
3341
|
+
"description": "Sort direction",
|
|
3342
|
+
"name": "sort-order",
|
|
3343
|
+
"hasDynamicHelp": false,
|
|
3344
|
+
"multiple": false,
|
|
3345
|
+
"options": [
|
|
3346
|
+
"asc",
|
|
3347
|
+
"desc"
|
|
3348
|
+
],
|
|
3349
|
+
"type": "option"
|
|
3350
|
+
},
|
|
3351
|
+
"limit": {
|
|
3352
|
+
"description": "Results per page",
|
|
3353
|
+
"name": "limit",
|
|
3354
|
+
"default": 20,
|
|
3355
|
+
"hasDynamicHelp": false,
|
|
3356
|
+
"multiple": false,
|
|
3357
|
+
"type": "option"
|
|
3358
|
+
},
|
|
3359
|
+
"offset": {
|
|
3360
|
+
"description": "Offset for pagination",
|
|
3361
|
+
"name": "offset",
|
|
3362
|
+
"default": 0,
|
|
3363
|
+
"hasDynamicHelp": false,
|
|
3364
|
+
"multiple": false,
|
|
3365
|
+
"type": "option"
|
|
3245
3366
|
}
|
|
3246
3367
|
},
|
|
3247
3368
|
"hasDynamicHelp": false,
|
|
3248
3369
|
"hiddenAliases": [],
|
|
3249
|
-
"id": "
|
|
3370
|
+
"id": "banners:list",
|
|
3250
3371
|
"pluginAlias": "@ecomweb/cli",
|
|
3251
3372
|
"pluginName": "@ecomweb/cli",
|
|
3252
3373
|
"pluginType": "core",
|
|
@@ -3256,16 +3377,24 @@
|
|
|
3256
3377
|
"relativePath": [
|
|
3257
3378
|
"dist",
|
|
3258
3379
|
"commands",
|
|
3259
|
-
"
|
|
3260
|
-
"
|
|
3380
|
+
"banners",
|
|
3381
|
+
"list.js"
|
|
3261
3382
|
]
|
|
3262
3383
|
},
|
|
3263
|
-
"
|
|
3384
|
+
"banners:update": {
|
|
3264
3385
|
"aliases": [],
|
|
3265
|
-
"args": {
|
|
3266
|
-
|
|
3386
|
+
"args": {
|
|
3387
|
+
"id": {
|
|
3388
|
+
"description": "Banner ID",
|
|
3389
|
+
"name": "id",
|
|
3390
|
+
"required": true
|
|
3391
|
+
}
|
|
3392
|
+
},
|
|
3393
|
+
"description": "Update a banner by ID",
|
|
3267
3394
|
"examples": [
|
|
3268
|
-
"ecomweb
|
|
3395
|
+
"ecomweb banners update 42 --stdin <<< '{\"title\":\"Updated Banner\"}'",
|
|
3396
|
+
"ecomweb banners update 42 --title 'New Title' --is-active",
|
|
3397
|
+
"ecomweb banners update 42 --file banner.json"
|
|
3269
3398
|
],
|
|
3270
3399
|
"flags": {
|
|
3271
3400
|
"store-ref": {
|
|
@@ -3344,26 +3473,71 @@
|
|
|
3344
3473
|
"multiple": false,
|
|
3345
3474
|
"type": "option"
|
|
3346
3475
|
},
|
|
3347
|
-
"
|
|
3348
|
-
"description": "
|
|
3349
|
-
"name": "
|
|
3350
|
-
"
|
|
3476
|
+
"stdin": {
|
|
3477
|
+
"description": "Read JSON body from stdin",
|
|
3478
|
+
"name": "stdin",
|
|
3479
|
+
"allowNo": false,
|
|
3480
|
+
"type": "boolean"
|
|
3481
|
+
},
|
|
3482
|
+
"file": {
|
|
3483
|
+
"description": "Read JSON body from file",
|
|
3484
|
+
"name": "file",
|
|
3351
3485
|
"hasDynamicHelp": false,
|
|
3352
3486
|
"multiple": false,
|
|
3353
3487
|
"type": "option"
|
|
3354
3488
|
},
|
|
3355
|
-
"
|
|
3356
|
-
"description": "
|
|
3357
|
-
"name": "
|
|
3358
|
-
"required": true,
|
|
3489
|
+
"title": {
|
|
3490
|
+
"description": "Banner title",
|
|
3491
|
+
"name": "title",
|
|
3359
3492
|
"hasDynamicHelp": false,
|
|
3360
3493
|
"multiple": false,
|
|
3361
3494
|
"type": "option"
|
|
3362
|
-
}
|
|
3495
|
+
},
|
|
3496
|
+
"image-url": {
|
|
3497
|
+
"description": "Banner image URL",
|
|
3498
|
+
"name": "image-url",
|
|
3499
|
+
"hasDynamicHelp": false,
|
|
3500
|
+
"multiple": false,
|
|
3501
|
+
"type": "option"
|
|
3502
|
+
},
|
|
3503
|
+
"subtitle": {
|
|
3504
|
+
"description": "Banner subtitle",
|
|
3505
|
+
"name": "subtitle",
|
|
3506
|
+
"hasDynamicHelp": false,
|
|
3507
|
+
"multiple": false,
|
|
3508
|
+
"type": "option"
|
|
3509
|
+
},
|
|
3510
|
+
"link-url": {
|
|
3511
|
+
"description": "Banner link URL",
|
|
3512
|
+
"name": "link-url",
|
|
3513
|
+
"hasDynamicHelp": false,
|
|
3514
|
+
"multiple": false,
|
|
3515
|
+
"type": "option"
|
|
3516
|
+
},
|
|
3517
|
+
"button-text": {
|
|
3518
|
+
"description": "Banner button text",
|
|
3519
|
+
"name": "button-text",
|
|
3520
|
+
"hasDynamicHelp": false,
|
|
3521
|
+
"multiple": false,
|
|
3522
|
+
"type": "option"
|
|
3523
|
+
},
|
|
3524
|
+
"position": {
|
|
3525
|
+
"description": "Banner position",
|
|
3526
|
+
"name": "position",
|
|
3527
|
+
"hasDynamicHelp": false,
|
|
3528
|
+
"multiple": false,
|
|
3529
|
+
"type": "option"
|
|
3530
|
+
},
|
|
3531
|
+
"is-active": {
|
|
3532
|
+
"description": "Whether banner is active",
|
|
3533
|
+
"name": "is-active",
|
|
3534
|
+
"allowNo": true,
|
|
3535
|
+
"type": "boolean"
|
|
3536
|
+
}
|
|
3363
3537
|
},
|
|
3364
3538
|
"hasDynamicHelp": false,
|
|
3365
3539
|
"hiddenAliases": [],
|
|
3366
|
-
"id": "
|
|
3540
|
+
"id": "banners:update",
|
|
3367
3541
|
"pluginAlias": "@ecomweb/cli",
|
|
3368
3542
|
"pluginName": "@ecomweb/cli",
|
|
3369
3543
|
"pluginType": "core",
|
|
@@ -3373,18 +3547,19 @@
|
|
|
3373
3547
|
"relativePath": [
|
|
3374
3548
|
"dist",
|
|
3375
3549
|
"commands",
|
|
3376
|
-
"
|
|
3377
|
-
"
|
|
3550
|
+
"banners",
|
|
3551
|
+
"update.js"
|
|
3378
3552
|
]
|
|
3379
3553
|
},
|
|
3380
|
-
"
|
|
3554
|
+
"auth:login": {
|
|
3381
3555
|
"aliases": [],
|
|
3382
3556
|
"args": {},
|
|
3383
|
-
"description": "
|
|
3557
|
+
"description": "Log in: with --email (a code is emailed to you; no API key needed), or with --api-key",
|
|
3384
3558
|
"examples": [
|
|
3385
|
-
"ecomweb
|
|
3386
|
-
"ecomweb
|
|
3387
|
-
"ecomweb
|
|
3559
|
+
"ecomweb auth login --email you@shop.vn",
|
|
3560
|
+
"ecomweb auth login --email you@shop.vn --code 123456 --store-ref abc123",
|
|
3561
|
+
"ecomweb auth login --api-url http://localhost:3001 --api-key sk_live_abc123",
|
|
3562
|
+
"ECOMWEB_API_KEY=sk_live_abc123 ecomweb auth login"
|
|
3388
3563
|
],
|
|
3389
3564
|
"flags": {
|
|
3390
3565
|
"store-ref": {
|
|
@@ -3463,71 +3638,31 @@
|
|
|
3463
3638
|
"multiple": false,
|
|
3464
3639
|
"type": "option"
|
|
3465
3640
|
},
|
|
3466
|
-
"
|
|
3467
|
-
"description": "
|
|
3468
|
-
"name": "
|
|
3469
|
-
"allowNo": false,
|
|
3470
|
-
"type": "boolean"
|
|
3471
|
-
},
|
|
3472
|
-
"file": {
|
|
3473
|
-
"description": "Read JSON body from file",
|
|
3474
|
-
"name": "file",
|
|
3475
|
-
"hasDynamicHelp": false,
|
|
3476
|
-
"multiple": false,
|
|
3477
|
-
"type": "option"
|
|
3478
|
-
},
|
|
3479
|
-
"title": {
|
|
3480
|
-
"description": "Banner title",
|
|
3481
|
-
"name": "title",
|
|
3482
|
-
"hasDynamicHelp": false,
|
|
3483
|
-
"multiple": false,
|
|
3484
|
-
"type": "option"
|
|
3485
|
-
},
|
|
3486
|
-
"image-url": {
|
|
3487
|
-
"description": "Banner image URL",
|
|
3488
|
-
"name": "image-url",
|
|
3489
|
-
"hasDynamicHelp": false,
|
|
3490
|
-
"multiple": false,
|
|
3491
|
-
"type": "option"
|
|
3492
|
-
},
|
|
3493
|
-
"subtitle": {
|
|
3494
|
-
"description": "Banner subtitle",
|
|
3495
|
-
"name": "subtitle",
|
|
3496
|
-
"hasDynamicHelp": false,
|
|
3497
|
-
"multiple": false,
|
|
3498
|
-
"type": "option"
|
|
3499
|
-
},
|
|
3500
|
-
"link-url": {
|
|
3501
|
-
"description": "Banner link URL",
|
|
3502
|
-
"name": "link-url",
|
|
3641
|
+
"email": {
|
|
3642
|
+
"description": "Log in with a code emailed to this address",
|
|
3643
|
+
"name": "email",
|
|
3503
3644
|
"hasDynamicHelp": false,
|
|
3504
3645
|
"multiple": false,
|
|
3505
3646
|
"type": "option"
|
|
3506
3647
|
},
|
|
3507
|
-
"
|
|
3508
|
-
"description": "
|
|
3509
|
-
"name": "
|
|
3648
|
+
"code": {
|
|
3649
|
+
"description": "The emailed code (when not asked for in a terminal)",
|
|
3650
|
+
"name": "code",
|
|
3510
3651
|
"hasDynamicHelp": false,
|
|
3511
3652
|
"multiple": false,
|
|
3512
3653
|
"type": "option"
|
|
3513
3654
|
},
|
|
3514
|
-
"
|
|
3515
|
-
"description": "
|
|
3516
|
-
"name": "
|
|
3655
|
+
"store-name": {
|
|
3656
|
+
"description": "Create a store with this name (a new merchant) and log in to it",
|
|
3657
|
+
"name": "store-name",
|
|
3517
3658
|
"hasDynamicHelp": false,
|
|
3518
3659
|
"multiple": false,
|
|
3519
3660
|
"type": "option"
|
|
3520
|
-
},
|
|
3521
|
-
"is-active": {
|
|
3522
|
-
"description": "Whether banner is active",
|
|
3523
|
-
"name": "is-active",
|
|
3524
|
-
"allowNo": true,
|
|
3525
|
-
"type": "boolean"
|
|
3526
3661
|
}
|
|
3527
3662
|
},
|
|
3528
3663
|
"hasDynamicHelp": false,
|
|
3529
3664
|
"hiddenAliases": [],
|
|
3530
|
-
"id": "
|
|
3665
|
+
"id": "auth:login",
|
|
3531
3666
|
"pluginAlias": "@ecomweb/cli",
|
|
3532
3667
|
"pluginName": "@ecomweb/cli",
|
|
3533
3668
|
"pluginType": "core",
|
|
@@ -3537,24 +3672,17 @@
|
|
|
3537
3672
|
"relativePath": [
|
|
3538
3673
|
"dist",
|
|
3539
3674
|
"commands",
|
|
3540
|
-
"
|
|
3541
|
-
"
|
|
3675
|
+
"auth",
|
|
3676
|
+
"login.js"
|
|
3542
3677
|
]
|
|
3543
3678
|
},
|
|
3544
|
-
"
|
|
3679
|
+
"auth:logout": {
|
|
3545
3680
|
"aliases": [],
|
|
3546
|
-
"args": {
|
|
3547
|
-
|
|
3548
|
-
"description": "Banner ID",
|
|
3549
|
-
"name": "id",
|
|
3550
|
-
"required": true
|
|
3551
|
-
}
|
|
3552
|
-
},
|
|
3553
|
-
"description": "Delete a banner by ID",
|
|
3681
|
+
"args": {},
|
|
3682
|
+
"description": "Clear stored API credentials",
|
|
3554
3683
|
"examples": [
|
|
3555
|
-
"ecomweb
|
|
3556
|
-
"ecomweb
|
|
3557
|
-
"ecomweb banners delete 42 --dry-run"
|
|
3684
|
+
"ecomweb auth logout",
|
|
3685
|
+
"ecomweb auth logout --profile production"
|
|
3558
3686
|
],
|
|
3559
3687
|
"flags": {
|
|
3560
3688
|
"store-ref": {
|
|
@@ -3632,17 +3760,11 @@
|
|
|
3632
3760
|
"hasDynamicHelp": false,
|
|
3633
3761
|
"multiple": false,
|
|
3634
3762
|
"type": "option"
|
|
3635
|
-
},
|
|
3636
|
-
"soft-delete": {
|
|
3637
|
-
"description": "Soft delete (default: true)",
|
|
3638
|
-
"name": "soft-delete",
|
|
3639
|
-
"allowNo": true,
|
|
3640
|
-
"type": "boolean"
|
|
3641
3763
|
}
|
|
3642
3764
|
},
|
|
3643
3765
|
"hasDynamicHelp": false,
|
|
3644
3766
|
"hiddenAliases": [],
|
|
3645
|
-
"id": "
|
|
3767
|
+
"id": "auth:logout",
|
|
3646
3768
|
"pluginAlias": "@ecomweb/cli",
|
|
3647
3769
|
"pluginName": "@ecomweb/cli",
|
|
3648
3770
|
"pluginType": "core",
|
|
@@ -3652,22 +3774,17 @@
|
|
|
3652
3774
|
"relativePath": [
|
|
3653
3775
|
"dist",
|
|
3654
3776
|
"commands",
|
|
3655
|
-
"
|
|
3656
|
-
"
|
|
3777
|
+
"auth",
|
|
3778
|
+
"logout.js"
|
|
3657
3779
|
]
|
|
3658
3780
|
},
|
|
3659
|
-
"
|
|
3781
|
+
"auth:register": {
|
|
3660
3782
|
"aliases": [],
|
|
3661
|
-
"args": {
|
|
3662
|
-
|
|
3663
|
-
"description": "Banner ID",
|
|
3664
|
-
"name": "id",
|
|
3665
|
-
"required": true
|
|
3666
|
-
}
|
|
3667
|
-
},
|
|
3668
|
-
"description": "Get a banner by ID",
|
|
3783
|
+
"args": {},
|
|
3784
|
+
"description": "Register a new account (sends OTP to email)",
|
|
3669
3785
|
"examples": [
|
|
3670
|
-
"ecomweb
|
|
3786
|
+
"ecomweb auth register --email user@example.com --name \"John Doe\"",
|
|
3787
|
+
"ecomweb auth register --email user@example.com"
|
|
3671
3788
|
],
|
|
3672
3789
|
"flags": {
|
|
3673
3790
|
"store-ref": {
|
|
@@ -3745,11 +3862,26 @@
|
|
|
3745
3862
|
"hasDynamicHelp": false,
|
|
3746
3863
|
"multiple": false,
|
|
3747
3864
|
"type": "option"
|
|
3865
|
+
},
|
|
3866
|
+
"email": {
|
|
3867
|
+
"description": "Email address for the new account",
|
|
3868
|
+
"name": "email",
|
|
3869
|
+
"required": true,
|
|
3870
|
+
"hasDynamicHelp": false,
|
|
3871
|
+
"multiple": false,
|
|
3872
|
+
"type": "option"
|
|
3873
|
+
},
|
|
3874
|
+
"name": {
|
|
3875
|
+
"description": "Display name for the account",
|
|
3876
|
+
"name": "name",
|
|
3877
|
+
"hasDynamicHelp": false,
|
|
3878
|
+
"multiple": false,
|
|
3879
|
+
"type": "option"
|
|
3748
3880
|
}
|
|
3749
3881
|
},
|
|
3750
3882
|
"hasDynamicHelp": false,
|
|
3751
3883
|
"hiddenAliases": [],
|
|
3752
|
-
"id": "
|
|
3884
|
+
"id": "auth:register",
|
|
3753
3885
|
"pluginAlias": "@ecomweb/cli",
|
|
3754
3886
|
"pluginName": "@ecomweb/cli",
|
|
3755
3887
|
"pluginType": "core",
|
|
@@ -3759,18 +3891,16 @@
|
|
|
3759
3891
|
"relativePath": [
|
|
3760
3892
|
"dist",
|
|
3761
3893
|
"commands",
|
|
3762
|
-
"
|
|
3763
|
-
"
|
|
3894
|
+
"auth",
|
|
3895
|
+
"register.js"
|
|
3764
3896
|
]
|
|
3765
3897
|
},
|
|
3766
|
-
"
|
|
3898
|
+
"auth:status": {
|
|
3767
3899
|
"aliases": [],
|
|
3768
3900
|
"args": {},
|
|
3769
|
-
"description": "
|
|
3901
|
+
"description": "Show current authentication state",
|
|
3770
3902
|
"examples": [
|
|
3771
|
-
"ecomweb
|
|
3772
|
-
"ecomweb banners list --is-active --sort-by position",
|
|
3773
|
-
"ecomweb banners list --title Hero --sort-order asc"
|
|
3903
|
+
"ecomweb auth status"
|
|
3774
3904
|
],
|
|
3775
3905
|
"flags": {
|
|
3776
3906
|
"store-ref": {
|
|
@@ -3848,66 +3978,11 @@
|
|
|
3848
3978
|
"hasDynamicHelp": false,
|
|
3849
3979
|
"multiple": false,
|
|
3850
3980
|
"type": "option"
|
|
3851
|
-
},
|
|
3852
|
-
"is-active": {
|
|
3853
|
-
"description": "Filter by active status",
|
|
3854
|
-
"name": "is-active",
|
|
3855
|
-
"allowNo": true,
|
|
3856
|
-
"type": "boolean"
|
|
3857
|
-
},
|
|
3858
|
-
"title": {
|
|
3859
|
-
"description": "Filter by title",
|
|
3860
|
-
"name": "title",
|
|
3861
|
-
"hasDynamicHelp": false,
|
|
3862
|
-
"multiple": false,
|
|
3863
|
-
"type": "option"
|
|
3864
|
-
},
|
|
3865
|
-
"sort-by": {
|
|
3866
|
-
"description": "Sort field",
|
|
3867
|
-
"name": "sort-by",
|
|
3868
|
-
"hasDynamicHelp": false,
|
|
3869
|
-
"multiple": false,
|
|
3870
|
-
"options": [
|
|
3871
|
-
"id",
|
|
3872
|
-
"position",
|
|
3873
|
-
"title",
|
|
3874
|
-
"created_at",
|
|
3875
|
-
"updated_at",
|
|
3876
|
-
"is_active"
|
|
3877
|
-
],
|
|
3878
|
-
"type": "option"
|
|
3879
|
-
},
|
|
3880
|
-
"sort-order": {
|
|
3881
|
-
"description": "Sort direction",
|
|
3882
|
-
"name": "sort-order",
|
|
3883
|
-
"hasDynamicHelp": false,
|
|
3884
|
-
"multiple": false,
|
|
3885
|
-
"options": [
|
|
3886
|
-
"asc",
|
|
3887
|
-
"desc"
|
|
3888
|
-
],
|
|
3889
|
-
"type": "option"
|
|
3890
|
-
},
|
|
3891
|
-
"limit": {
|
|
3892
|
-
"description": "Results per page",
|
|
3893
|
-
"name": "limit",
|
|
3894
|
-
"default": 20,
|
|
3895
|
-
"hasDynamicHelp": false,
|
|
3896
|
-
"multiple": false,
|
|
3897
|
-
"type": "option"
|
|
3898
|
-
},
|
|
3899
|
-
"offset": {
|
|
3900
|
-
"description": "Offset for pagination",
|
|
3901
|
-
"name": "offset",
|
|
3902
|
-
"default": 0,
|
|
3903
|
-
"hasDynamicHelp": false,
|
|
3904
|
-
"multiple": false,
|
|
3905
|
-
"type": "option"
|
|
3906
3981
|
}
|
|
3907
3982
|
},
|
|
3908
3983
|
"hasDynamicHelp": false,
|
|
3909
3984
|
"hiddenAliases": [],
|
|
3910
|
-
"id": "
|
|
3985
|
+
"id": "auth:status",
|
|
3911
3986
|
"pluginAlias": "@ecomweb/cli",
|
|
3912
3987
|
"pluginName": "@ecomweb/cli",
|
|
3913
3988
|
"pluginType": "core",
|
|
@@ -3917,24 +3992,16 @@
|
|
|
3917
3992
|
"relativePath": [
|
|
3918
3993
|
"dist",
|
|
3919
3994
|
"commands",
|
|
3920
|
-
"
|
|
3921
|
-
"
|
|
3922
|
-
]
|
|
3995
|
+
"auth",
|
|
3996
|
+
"status.js"
|
|
3997
|
+
]
|
|
3923
3998
|
},
|
|
3924
|
-
"
|
|
3999
|
+
"auth:verify": {
|
|
3925
4000
|
"aliases": [],
|
|
3926
|
-
"args": {
|
|
3927
|
-
|
|
3928
|
-
"description": "Banner ID",
|
|
3929
|
-
"name": "id",
|
|
3930
|
-
"required": true
|
|
3931
|
-
}
|
|
3932
|
-
},
|
|
3933
|
-
"description": "Update a banner by ID",
|
|
4001
|
+
"args": {},
|
|
4002
|
+
"description": "Verify email with OTP code and authenticate",
|
|
3934
4003
|
"examples": [
|
|
3935
|
-
"ecomweb
|
|
3936
|
-
"ecomweb banners update 42 --title 'New Title' --is-active",
|
|
3937
|
-
"ecomweb banners update 42 --file banner.json"
|
|
4004
|
+
"ecomweb auth verify --email user@example.com --code 123456"
|
|
3938
4005
|
],
|
|
3939
4006
|
"flags": {
|
|
3940
4007
|
"store-ref": {
|
|
@@ -4013,71 +4080,26 @@
|
|
|
4013
4080
|
"multiple": false,
|
|
4014
4081
|
"type": "option"
|
|
4015
4082
|
},
|
|
4016
|
-
"
|
|
4017
|
-
"description": "
|
|
4018
|
-
"name": "
|
|
4019
|
-
"
|
|
4020
|
-
"type": "boolean"
|
|
4021
|
-
},
|
|
4022
|
-
"file": {
|
|
4023
|
-
"description": "Read JSON body from file",
|
|
4024
|
-
"name": "file",
|
|
4025
|
-
"hasDynamicHelp": false,
|
|
4026
|
-
"multiple": false,
|
|
4027
|
-
"type": "option"
|
|
4028
|
-
},
|
|
4029
|
-
"title": {
|
|
4030
|
-
"description": "Banner title",
|
|
4031
|
-
"name": "title",
|
|
4032
|
-
"hasDynamicHelp": false,
|
|
4033
|
-
"multiple": false,
|
|
4034
|
-
"type": "option"
|
|
4035
|
-
},
|
|
4036
|
-
"image-url": {
|
|
4037
|
-
"description": "Banner image URL",
|
|
4038
|
-
"name": "image-url",
|
|
4039
|
-
"hasDynamicHelp": false,
|
|
4040
|
-
"multiple": false,
|
|
4041
|
-
"type": "option"
|
|
4042
|
-
},
|
|
4043
|
-
"subtitle": {
|
|
4044
|
-
"description": "Banner subtitle",
|
|
4045
|
-
"name": "subtitle",
|
|
4046
|
-
"hasDynamicHelp": false,
|
|
4047
|
-
"multiple": false,
|
|
4048
|
-
"type": "option"
|
|
4049
|
-
},
|
|
4050
|
-
"link-url": {
|
|
4051
|
-
"description": "Banner link URL",
|
|
4052
|
-
"name": "link-url",
|
|
4053
|
-
"hasDynamicHelp": false,
|
|
4054
|
-
"multiple": false,
|
|
4055
|
-
"type": "option"
|
|
4056
|
-
},
|
|
4057
|
-
"button-text": {
|
|
4058
|
-
"description": "Banner button text",
|
|
4059
|
-
"name": "button-text",
|
|
4083
|
+
"email": {
|
|
4084
|
+
"description": "Email address used during registration",
|
|
4085
|
+
"name": "email",
|
|
4086
|
+
"required": true,
|
|
4060
4087
|
"hasDynamicHelp": false,
|
|
4061
4088
|
"multiple": false,
|
|
4062
4089
|
"type": "option"
|
|
4063
4090
|
},
|
|
4064
|
-
"
|
|
4065
|
-
"description": "
|
|
4066
|
-
"name": "
|
|
4091
|
+
"code": {
|
|
4092
|
+
"description": "6-digit verification code from email",
|
|
4093
|
+
"name": "code",
|
|
4094
|
+
"required": true,
|
|
4067
4095
|
"hasDynamicHelp": false,
|
|
4068
4096
|
"multiple": false,
|
|
4069
4097
|
"type": "option"
|
|
4070
|
-
},
|
|
4071
|
-
"is-active": {
|
|
4072
|
-
"description": "Whether banner is active",
|
|
4073
|
-
"name": "is-active",
|
|
4074
|
-
"allowNo": true,
|
|
4075
|
-
"type": "boolean"
|
|
4076
4098
|
}
|
|
4077
4099
|
},
|
|
4078
4100
|
"hasDynamicHelp": false,
|
|
4079
4101
|
"hiddenAliases": [],
|
|
4080
|
-
"id": "
|
|
4102
|
+
"id": "auth:verify",
|
|
4081
4103
|
"pluginAlias": "@ecomweb/cli",
|
|
4082
4104
|
"pluginName": "@ecomweb/cli",
|
|
4083
4105
|
"pluginType": "core",
|
|
@@ -4087,8 +4109,8 @@
|
|
|
4087
4109
|
"relativePath": [
|
|
4088
4110
|
"dist",
|
|
4089
4111
|
"commands",
|
|
4090
|
-
"
|
|
4091
|
-
"
|
|
4112
|
+
"auth",
|
|
4113
|
+
"verify.js"
|
|
4092
4114
|
]
|
|
4093
4115
|
},
|
|
4094
4116
|
"blog-categories:all": {
|
|
@@ -20738,14 +20760,12 @@
|
|
|
20738
20760
|
"update.js"
|
|
20739
20761
|
]
|
|
20740
20762
|
},
|
|
20741
|
-
"store-
|
|
20763
|
+
"store-settings:get": {
|
|
20742
20764
|
"aliases": [],
|
|
20743
20765
|
"args": {},
|
|
20744
|
-
"description": "Get
|
|
20766
|
+
"description": "Get store settings for the current store",
|
|
20745
20767
|
"examples": [
|
|
20746
|
-
"ecomweb store-
|
|
20747
|
-
"ecomweb store-pages all --is-published",
|
|
20748
|
-
"ecomweb store-pages all --full"
|
|
20768
|
+
"ecomweb store-settings get"
|
|
20749
20769
|
],
|
|
20750
20770
|
"flags": {
|
|
20751
20771
|
"store-ref": {
|
|
@@ -20823,23 +20843,11 @@
|
|
|
20823
20843
|
"hasDynamicHelp": false,
|
|
20824
20844
|
"multiple": false,
|
|
20825
20845
|
"type": "option"
|
|
20826
|
-
},
|
|
20827
|
-
"is-published": {
|
|
20828
|
-
"description": "Filter published pages only",
|
|
20829
|
-
"name": "is-published",
|
|
20830
|
-
"allowNo": false,
|
|
20831
|
-
"type": "boolean"
|
|
20832
|
-
},
|
|
20833
|
-
"include-seo-metadata": {
|
|
20834
|
-
"description": "Include SEO metadata",
|
|
20835
|
-
"name": "include-seo-metadata",
|
|
20836
|
-
"allowNo": false,
|
|
20837
|
-
"type": "boolean"
|
|
20838
20846
|
}
|
|
20839
20847
|
},
|
|
20840
20848
|
"hasDynamicHelp": false,
|
|
20841
20849
|
"hiddenAliases": [],
|
|
20842
|
-
"id": "store-
|
|
20850
|
+
"id": "store-settings:get",
|
|
20843
20851
|
"pluginAlias": "@ecomweb/cli",
|
|
20844
20852
|
"pluginName": "@ecomweb/cli",
|
|
20845
20853
|
"pluginType": "core",
|
|
@@ -20849,18 +20857,18 @@
|
|
|
20849
20857
|
"relativePath": [
|
|
20850
20858
|
"dist",
|
|
20851
20859
|
"commands",
|
|
20852
|
-
"store-
|
|
20853
|
-
"
|
|
20860
|
+
"store-settings",
|
|
20861
|
+
"get.js"
|
|
20854
20862
|
]
|
|
20855
20863
|
},
|
|
20856
|
-
"store-
|
|
20864
|
+
"store-settings:update": {
|
|
20857
20865
|
"aliases": [],
|
|
20858
20866
|
"args": {},
|
|
20859
|
-
"description": "
|
|
20867
|
+
"description": "Update store settings for the current store",
|
|
20860
20868
|
"examples": [
|
|
20861
|
-
"ecomweb store-
|
|
20862
|
-
"ecomweb store-
|
|
20863
|
-
"ecomweb store-
|
|
20869
|
+
"ecomweb store-settings update --stdin <<< '{\"tagline\":\"Best store ever\",\"currency_code\":\"VND\"}'",
|
|
20870
|
+
"ecomweb store-settings update --tagline 'My Store' --currency-code VND",
|
|
20871
|
+
"ecomweb store-settings update --logo-url https://example.com/logo.png --favicon-url https://example.com/favicon.ico"
|
|
20864
20872
|
],
|
|
20865
20873
|
"flags": {
|
|
20866
20874
|
"store-ref": {
|
|
@@ -20952,63 +20960,93 @@
|
|
|
20952
20960
|
"multiple": false,
|
|
20953
20961
|
"type": "option"
|
|
20954
20962
|
},
|
|
20955
|
-
"
|
|
20956
|
-
"description": "
|
|
20957
|
-
"name": "
|
|
20963
|
+
"logo-url": {
|
|
20964
|
+
"description": "Store logo URL",
|
|
20965
|
+
"name": "logo-url",
|
|
20958
20966
|
"hasDynamicHelp": false,
|
|
20959
20967
|
"multiple": false,
|
|
20960
20968
|
"type": "option"
|
|
20961
20969
|
},
|
|
20962
|
-
"
|
|
20963
|
-
"description": "URL
|
|
20964
|
-
"name": "
|
|
20970
|
+
"favicon-url": {
|
|
20971
|
+
"description": "Store favicon URL",
|
|
20972
|
+
"name": "favicon-url",
|
|
20965
20973
|
"hasDynamicHelp": false,
|
|
20966
20974
|
"multiple": false,
|
|
20967
20975
|
"type": "option"
|
|
20968
20976
|
},
|
|
20969
|
-
"
|
|
20970
|
-
"description": "
|
|
20971
|
-
"name": "
|
|
20977
|
+
"tiktok-link": {
|
|
20978
|
+
"description": "TikTok profile link",
|
|
20979
|
+
"name": "tiktok-link",
|
|
20972
20980
|
"hasDynamicHelp": false,
|
|
20973
20981
|
"multiple": false,
|
|
20974
20982
|
"type": "option"
|
|
20975
20983
|
},
|
|
20976
|
-
"
|
|
20977
|
-
"description": "
|
|
20978
|
-
"name": "
|
|
20979
|
-
"
|
|
20980
|
-
"
|
|
20984
|
+
"shopee-link": {
|
|
20985
|
+
"description": "Shopee store link",
|
|
20986
|
+
"name": "shopee-link",
|
|
20987
|
+
"hasDynamicHelp": false,
|
|
20988
|
+
"multiple": false,
|
|
20989
|
+
"type": "option"
|
|
20981
20990
|
},
|
|
20982
|
-
"
|
|
20983
|
-
"description": "
|
|
20984
|
-
"name": "
|
|
20991
|
+
"facebook-link": {
|
|
20992
|
+
"description": "Facebook page link",
|
|
20993
|
+
"name": "facebook-link",
|
|
20985
20994
|
"hasDynamicHelp": false,
|
|
20986
20995
|
"multiple": false,
|
|
20987
|
-
"options": [
|
|
20988
|
-
"about",
|
|
20989
|
-
"privacy",
|
|
20990
|
-
"terms",
|
|
20991
|
-
"faq",
|
|
20992
|
-
"contact",
|
|
20993
|
-
"shopping_guide",
|
|
20994
|
-
"return_policy",
|
|
20995
|
-
"shipping_policy",
|
|
20996
|
-
"home_page",
|
|
20997
|
-
"default"
|
|
20998
|
-
],
|
|
20999
20996
|
"type": "option"
|
|
21000
20997
|
},
|
|
21001
|
-
"
|
|
21002
|
-
"description": "
|
|
21003
|
-
"name": "
|
|
20998
|
+
"instagram-link": {
|
|
20999
|
+
"description": "Instagram profile link",
|
|
21000
|
+
"name": "instagram-link",
|
|
21001
|
+
"hasDynamicHelp": false,
|
|
21002
|
+
"multiple": false,
|
|
21003
|
+
"type": "option"
|
|
21004
|
+
},
|
|
21005
|
+
"google-analytics-key": {
|
|
21006
|
+
"description": "Google Analytics key",
|
|
21007
|
+
"name": "google-analytics-key",
|
|
21008
|
+
"hasDynamicHelp": false,
|
|
21009
|
+
"multiple": false,
|
|
21010
|
+
"type": "option"
|
|
21011
|
+
},
|
|
21012
|
+
"shop-introduction": {
|
|
21013
|
+
"description": "Shop introduction text",
|
|
21014
|
+
"name": "shop-introduction",
|
|
21015
|
+
"hasDynamicHelp": false,
|
|
21016
|
+
"multiple": false,
|
|
21017
|
+
"type": "option"
|
|
21018
|
+
},
|
|
21019
|
+
"featured-image": {
|
|
21020
|
+
"description": "Featured image URL",
|
|
21021
|
+
"name": "featured-image",
|
|
21022
|
+
"hasDynamicHelp": false,
|
|
21023
|
+
"multiple": false,
|
|
21024
|
+
"type": "option"
|
|
21025
|
+
},
|
|
21026
|
+
"tagline": {
|
|
21027
|
+
"description": "Store tagline",
|
|
21028
|
+
"name": "tagline",
|
|
21029
|
+
"hasDynamicHelp": false,
|
|
21030
|
+
"multiple": false,
|
|
21031
|
+
"type": "option"
|
|
21032
|
+
},
|
|
21033
|
+
"currency-code": {
|
|
21034
|
+
"description": "Currency code (e.g. VND, USD)",
|
|
21035
|
+
"name": "currency-code",
|
|
21004
21036
|
"hasDynamicHelp": false,
|
|
21005
21037
|
"multiple": false,
|
|
21006
21038
|
"type": "option"
|
|
21039
|
+
},
|
|
21040
|
+
"review-requests-enabled": {
|
|
21041
|
+
"description": "Enable/disable review requests",
|
|
21042
|
+
"name": "review-requests-enabled",
|
|
21043
|
+
"allowNo": true,
|
|
21044
|
+
"type": "boolean"
|
|
21007
21045
|
}
|
|
21008
21046
|
},
|
|
21009
21047
|
"hasDynamicHelp": false,
|
|
21010
21048
|
"hiddenAliases": [],
|
|
21011
|
-
"id": "store-
|
|
21049
|
+
"id": "store-settings:update",
|
|
21012
21050
|
"pluginAlias": "@ecomweb/cli",
|
|
21013
21051
|
"pluginName": "@ecomweb/cli",
|
|
21014
21052
|
"pluginType": "core",
|
|
@@ -21018,23 +21056,18 @@
|
|
|
21018
21056
|
"relativePath": [
|
|
21019
21057
|
"dist",
|
|
21020
21058
|
"commands",
|
|
21021
|
-
"store-
|
|
21022
|
-
"
|
|
21059
|
+
"store-settings",
|
|
21060
|
+
"update.js"
|
|
21023
21061
|
]
|
|
21024
21062
|
},
|
|
21025
|
-
"store-pages:
|
|
21063
|
+
"store-pages:all": {
|
|
21026
21064
|
"aliases": [],
|
|
21027
|
-
"args": {
|
|
21028
|
-
|
|
21029
|
-
"description": "Content page ID",
|
|
21030
|
-
"name": "id",
|
|
21031
|
-
"required": true
|
|
21032
|
-
}
|
|
21033
|
-
},
|
|
21034
|
-
"description": "Delete a content page by ID",
|
|
21065
|
+
"args": {},
|
|
21066
|
+
"description": "Get all content pages (no pagination)",
|
|
21035
21067
|
"examples": [
|
|
21036
|
-
"ecomweb store-pages
|
|
21037
|
-
"ecomweb store-pages
|
|
21068
|
+
"ecomweb store-pages all",
|
|
21069
|
+
"ecomweb store-pages all --is-published",
|
|
21070
|
+
"ecomweb store-pages all --full"
|
|
21038
21071
|
],
|
|
21039
21072
|
"flags": {
|
|
21040
21073
|
"store-ref": {
|
|
@@ -21112,11 +21145,23 @@
|
|
|
21112
21145
|
"hasDynamicHelp": false,
|
|
21113
21146
|
"multiple": false,
|
|
21114
21147
|
"type": "option"
|
|
21148
|
+
},
|
|
21149
|
+
"is-published": {
|
|
21150
|
+
"description": "Filter published pages only",
|
|
21151
|
+
"name": "is-published",
|
|
21152
|
+
"allowNo": false,
|
|
21153
|
+
"type": "boolean"
|
|
21154
|
+
},
|
|
21155
|
+
"include-seo-metadata": {
|
|
21156
|
+
"description": "Include SEO metadata",
|
|
21157
|
+
"name": "include-seo-metadata",
|
|
21158
|
+
"allowNo": false,
|
|
21159
|
+
"type": "boolean"
|
|
21115
21160
|
}
|
|
21116
21161
|
},
|
|
21117
21162
|
"hasDynamicHelp": false,
|
|
21118
21163
|
"hiddenAliases": [],
|
|
21119
|
-
"id": "store-pages:
|
|
21164
|
+
"id": "store-pages:all",
|
|
21120
21165
|
"pluginAlias": "@ecomweb/cli",
|
|
21121
21166
|
"pluginName": "@ecomweb/cli",
|
|
21122
21167
|
"pluginType": "core",
|
|
@@ -21127,22 +21172,17 @@
|
|
|
21127
21172
|
"dist",
|
|
21128
21173
|
"commands",
|
|
21129
21174
|
"store-pages",
|
|
21130
|
-
"
|
|
21175
|
+
"all.js"
|
|
21131
21176
|
]
|
|
21132
21177
|
},
|
|
21133
|
-
"store-pages:
|
|
21178
|
+
"store-pages:create": {
|
|
21134
21179
|
"aliases": [],
|
|
21135
|
-
"args": {
|
|
21136
|
-
|
|
21137
|
-
"description": "Content page ID to duplicate",
|
|
21138
|
-
"name": "id",
|
|
21139
|
-
"required": true
|
|
21140
|
-
}
|
|
21141
|
-
},
|
|
21142
|
-
"description": "Duplicate a content page by ID",
|
|
21180
|
+
"args": {},
|
|
21181
|
+
"description": "Create a new content page",
|
|
21143
21182
|
"examples": [
|
|
21144
|
-
"ecomweb store-pages
|
|
21145
|
-
"ecomweb store-pages
|
|
21183
|
+
"ecomweb store-pages create --stdin <<< '{\"title\":\"About Us\",\"slug\":\"about-us\",\"page_type\":\"about\"}'",
|
|
21184
|
+
"ecomweb store-pages create --title 'About Us' --slug about-us --page-type about",
|
|
21185
|
+
"ecomweb store-pages create --file page.json"
|
|
21146
21186
|
],
|
|
21147
21187
|
"flags": {
|
|
21148
21188
|
"store-ref": {
|
|
@@ -21220,11 +21260,77 @@
|
|
|
21220
21260
|
"hasDynamicHelp": false,
|
|
21221
21261
|
"multiple": false,
|
|
21222
21262
|
"type": "option"
|
|
21263
|
+
},
|
|
21264
|
+
"stdin": {
|
|
21265
|
+
"description": "Read JSON body from stdin",
|
|
21266
|
+
"name": "stdin",
|
|
21267
|
+
"allowNo": false,
|
|
21268
|
+
"type": "boolean"
|
|
21269
|
+
},
|
|
21270
|
+
"file": {
|
|
21271
|
+
"description": "Read JSON body from file",
|
|
21272
|
+
"name": "file",
|
|
21273
|
+
"hasDynamicHelp": false,
|
|
21274
|
+
"multiple": false,
|
|
21275
|
+
"type": "option"
|
|
21276
|
+
},
|
|
21277
|
+
"title": {
|
|
21278
|
+
"description": "Page title",
|
|
21279
|
+
"name": "title",
|
|
21280
|
+
"hasDynamicHelp": false,
|
|
21281
|
+
"multiple": false,
|
|
21282
|
+
"type": "option"
|
|
21283
|
+
},
|
|
21284
|
+
"slug": {
|
|
21285
|
+
"description": "URL slug",
|
|
21286
|
+
"name": "slug",
|
|
21287
|
+
"hasDynamicHelp": false,
|
|
21288
|
+
"multiple": false,
|
|
21289
|
+
"type": "option"
|
|
21290
|
+
},
|
|
21291
|
+
"content": {
|
|
21292
|
+
"description": "HTML content",
|
|
21293
|
+
"name": "content",
|
|
21294
|
+
"hasDynamicHelp": false,
|
|
21295
|
+
"multiple": false,
|
|
21296
|
+
"type": "option"
|
|
21297
|
+
},
|
|
21298
|
+
"is-published": {
|
|
21299
|
+
"description": "Publish the page",
|
|
21300
|
+
"name": "is-published",
|
|
21301
|
+
"allowNo": false,
|
|
21302
|
+
"type": "boolean"
|
|
21303
|
+
},
|
|
21304
|
+
"page-type": {
|
|
21305
|
+
"description": "Page type",
|
|
21306
|
+
"name": "page-type",
|
|
21307
|
+
"hasDynamicHelp": false,
|
|
21308
|
+
"multiple": false,
|
|
21309
|
+
"options": [
|
|
21310
|
+
"about",
|
|
21311
|
+
"privacy",
|
|
21312
|
+
"terms",
|
|
21313
|
+
"faq",
|
|
21314
|
+
"contact",
|
|
21315
|
+
"shopping_guide",
|
|
21316
|
+
"return_policy",
|
|
21317
|
+
"shipping_policy",
|
|
21318
|
+
"home_page",
|
|
21319
|
+
"default"
|
|
21320
|
+
],
|
|
21321
|
+
"type": "option"
|
|
21322
|
+
},
|
|
21323
|
+
"sort-order": {
|
|
21324
|
+
"description": "Sort order",
|
|
21325
|
+
"name": "sort-order",
|
|
21326
|
+
"hasDynamicHelp": false,
|
|
21327
|
+
"multiple": false,
|
|
21328
|
+
"type": "option"
|
|
21223
21329
|
}
|
|
21224
21330
|
},
|
|
21225
21331
|
"hasDynamicHelp": false,
|
|
21226
21332
|
"hiddenAliases": [],
|
|
21227
|
-
"id": "store-pages:
|
|
21333
|
+
"id": "store-pages:create",
|
|
21228
21334
|
"pluginAlias": "@ecomweb/cli",
|
|
21229
21335
|
"pluginName": "@ecomweb/cli",
|
|
21230
21336
|
"pluginType": "core",
|
|
@@ -21235,10 +21341,10 @@
|
|
|
21235
21341
|
"dist",
|
|
21236
21342
|
"commands",
|
|
21237
21343
|
"store-pages",
|
|
21238
|
-
"
|
|
21344
|
+
"create.js"
|
|
21239
21345
|
]
|
|
21240
21346
|
},
|
|
21241
|
-
"store-pages:
|
|
21347
|
+
"store-pages:delete": {
|
|
21242
21348
|
"aliases": [],
|
|
21243
21349
|
"args": {
|
|
21244
21350
|
"id": {
|
|
@@ -21247,10 +21353,10 @@
|
|
|
21247
21353
|
"required": true
|
|
21248
21354
|
}
|
|
21249
21355
|
},
|
|
21250
|
-
"description": "
|
|
21356
|
+
"description": "Delete a content page by ID",
|
|
21251
21357
|
"examples": [
|
|
21252
|
-
"ecomweb store-pages
|
|
21253
|
-
"ecomweb store-pages
|
|
21358
|
+
"ecomweb store-pages delete 1",
|
|
21359
|
+
"ecomweb store-pages delete 1 --dry-run"
|
|
21254
21360
|
],
|
|
21255
21361
|
"flags": {
|
|
21256
21362
|
"store-ref": {
|
|
@@ -21332,7 +21438,7 @@
|
|
|
21332
21438
|
},
|
|
21333
21439
|
"hasDynamicHelp": false,
|
|
21334
21440
|
"hiddenAliases": [],
|
|
21335
|
-
"id": "store-pages:
|
|
21441
|
+
"id": "store-pages:delete",
|
|
21336
21442
|
"pluginAlias": "@ecomweb/cli",
|
|
21337
21443
|
"pluginName": "@ecomweb/cli",
|
|
21338
21444
|
"pluginType": "core",
|
|
@@ -21343,17 +21449,22 @@
|
|
|
21343
21449
|
"dist",
|
|
21344
21450
|
"commands",
|
|
21345
21451
|
"store-pages",
|
|
21346
|
-
"
|
|
21452
|
+
"delete.js"
|
|
21347
21453
|
]
|
|
21348
21454
|
},
|
|
21349
|
-
"store-pages:
|
|
21455
|
+
"store-pages:duplicate": {
|
|
21350
21456
|
"aliases": [],
|
|
21351
|
-
"args": {
|
|
21352
|
-
|
|
21457
|
+
"args": {
|
|
21458
|
+
"id": {
|
|
21459
|
+
"description": "Content page ID to duplicate",
|
|
21460
|
+
"name": "id",
|
|
21461
|
+
"required": true
|
|
21462
|
+
}
|
|
21463
|
+
},
|
|
21464
|
+
"description": "Duplicate a content page by ID",
|
|
21353
21465
|
"examples": [
|
|
21354
|
-
"ecomweb store-pages
|
|
21355
|
-
"ecomweb store-pages
|
|
21356
|
-
"ecomweb store-pages list --is-published --search privacy"
|
|
21466
|
+
"ecomweb store-pages duplicate 1",
|
|
21467
|
+
"ecomweb store-pages duplicate 1 --dry-run"
|
|
21357
21468
|
],
|
|
21358
21469
|
"flags": {
|
|
21359
21470
|
"store-ref": {
|
|
@@ -21431,65 +21542,11 @@
|
|
|
21431
21542
|
"hasDynamicHelp": false,
|
|
21432
21543
|
"multiple": false,
|
|
21433
21544
|
"type": "option"
|
|
21434
|
-
},
|
|
21435
|
-
"page-type": {
|
|
21436
|
-
"description": "Filter by page type",
|
|
21437
|
-
"name": "page-type",
|
|
21438
|
-
"hasDynamicHelp": false,
|
|
21439
|
-
"multiple": false,
|
|
21440
|
-
"options": [
|
|
21441
|
-
"about",
|
|
21442
|
-
"privacy",
|
|
21443
|
-
"terms",
|
|
21444
|
-
"faq",
|
|
21445
|
-
"contact",
|
|
21446
|
-
"shopping_guide",
|
|
21447
|
-
"return_policy",
|
|
21448
|
-
"shipping_policy",
|
|
21449
|
-
"home_page",
|
|
21450
|
-
"default"
|
|
21451
|
-
],
|
|
21452
|
-
"type": "option"
|
|
21453
|
-
},
|
|
21454
|
-
"is-published": {
|
|
21455
|
-
"description": "Filter published pages only",
|
|
21456
|
-
"name": "is-published",
|
|
21457
|
-
"allowNo": false,
|
|
21458
|
-
"type": "boolean"
|
|
21459
|
-
},
|
|
21460
|
-
"search": {
|
|
21461
|
-
"description": "Search in title/content/slug",
|
|
21462
|
-
"name": "search",
|
|
21463
|
-
"hasDynamicHelp": false,
|
|
21464
|
-
"multiple": false,
|
|
21465
|
-
"type": "option"
|
|
21466
|
-
},
|
|
21467
|
-
"include-seo-metadata": {
|
|
21468
|
-
"description": "Include SEO metadata",
|
|
21469
|
-
"name": "include-seo-metadata",
|
|
21470
|
-
"allowNo": false,
|
|
21471
|
-
"type": "boolean"
|
|
21472
|
-
},
|
|
21473
|
-
"limit": {
|
|
21474
|
-
"description": "Results per page",
|
|
21475
|
-
"name": "limit",
|
|
21476
|
-
"default": 20,
|
|
21477
|
-
"hasDynamicHelp": false,
|
|
21478
|
-
"multiple": false,
|
|
21479
|
-
"type": "option"
|
|
21480
|
-
},
|
|
21481
|
-
"offset": {
|
|
21482
|
-
"description": "Offset for pagination",
|
|
21483
|
-
"name": "offset",
|
|
21484
|
-
"default": 0,
|
|
21485
|
-
"hasDynamicHelp": false,
|
|
21486
|
-
"multiple": false,
|
|
21487
|
-
"type": "option"
|
|
21488
21545
|
}
|
|
21489
21546
|
},
|
|
21490
21547
|
"hasDynamicHelp": false,
|
|
21491
21548
|
"hiddenAliases": [],
|
|
21492
|
-
"id": "store-pages:
|
|
21549
|
+
"id": "store-pages:duplicate",
|
|
21493
21550
|
"pluginAlias": "@ecomweb/cli",
|
|
21494
21551
|
"pluginName": "@ecomweb/cli",
|
|
21495
21552
|
"pluginType": "core",
|
|
@@ -21500,15 +21557,22 @@
|
|
|
21500
21557
|
"dist",
|
|
21501
21558
|
"commands",
|
|
21502
21559
|
"store-pages",
|
|
21503
|
-
"
|
|
21560
|
+
"duplicate.js"
|
|
21504
21561
|
]
|
|
21505
21562
|
},
|
|
21506
|
-
"store-pages:
|
|
21563
|
+
"store-pages:get": {
|
|
21507
21564
|
"aliases": [],
|
|
21508
|
-
"args": {
|
|
21509
|
-
|
|
21565
|
+
"args": {
|
|
21566
|
+
"id": {
|
|
21567
|
+
"description": "Content page ID",
|
|
21568
|
+
"name": "id",
|
|
21569
|
+
"required": true
|
|
21570
|
+
}
|
|
21571
|
+
},
|
|
21572
|
+
"description": "Get a content page by ID",
|
|
21510
21573
|
"examples": [
|
|
21511
|
-
"ecomweb store-pages
|
|
21574
|
+
"ecomweb store-pages get 1",
|
|
21575
|
+
"ecomweb store-pages get 1 --fields id,title,slug"
|
|
21512
21576
|
],
|
|
21513
21577
|
"flags": {
|
|
21514
21578
|
"store-ref": {
|
|
@@ -21590,7 +21654,7 @@
|
|
|
21590
21654
|
},
|
|
21591
21655
|
"hasDynamicHelp": false,
|
|
21592
21656
|
"hiddenAliases": [],
|
|
21593
|
-
"id": "store-pages:
|
|
21657
|
+
"id": "store-pages:get",
|
|
21594
21658
|
"pluginAlias": "@ecomweb/cli",
|
|
21595
21659
|
"pluginName": "@ecomweb/cli",
|
|
21596
21660
|
"pluginType": "core",
|
|
@@ -21601,23 +21665,17 @@
|
|
|
21601
21665
|
"dist",
|
|
21602
21666
|
"commands",
|
|
21603
21667
|
"store-pages",
|
|
21604
|
-
"
|
|
21668
|
+
"get.js"
|
|
21605
21669
|
]
|
|
21606
21670
|
},
|
|
21607
|
-
"store-pages:
|
|
21671
|
+
"store-pages:list": {
|
|
21608
21672
|
"aliases": [],
|
|
21609
|
-
"args": {
|
|
21610
|
-
|
|
21611
|
-
"description": "Content page ID",
|
|
21612
|
-
"name": "id",
|
|
21613
|
-
"required": true
|
|
21614
|
-
}
|
|
21615
|
-
},
|
|
21616
|
-
"description": "Update a content page by ID",
|
|
21673
|
+
"args": {},
|
|
21674
|
+
"description": "List content pages with pagination and filtering",
|
|
21617
21675
|
"examples": [
|
|
21618
|
-
"ecomweb store-pages
|
|
21619
|
-
"ecomweb store-pages
|
|
21620
|
-
"ecomweb store-pages
|
|
21676
|
+
"ecomweb store-pages list",
|
|
21677
|
+
"ecomweb store-pages list --page-type about",
|
|
21678
|
+
"ecomweb store-pages list --is-published --search privacy"
|
|
21621
21679
|
],
|
|
21622
21680
|
"flags": {
|
|
21623
21681
|
"store-ref": {
|
|
@@ -21696,48 +21754,8 @@
|
|
|
21696
21754
|
"multiple": false,
|
|
21697
21755
|
"type": "option"
|
|
21698
21756
|
},
|
|
21699
|
-
"stdin": {
|
|
21700
|
-
"description": "Read JSON body from stdin",
|
|
21701
|
-
"name": "stdin",
|
|
21702
|
-
"allowNo": false,
|
|
21703
|
-
"type": "boolean"
|
|
21704
|
-
},
|
|
21705
|
-
"file": {
|
|
21706
|
-
"description": "Read JSON body from file",
|
|
21707
|
-
"name": "file",
|
|
21708
|
-
"hasDynamicHelp": false,
|
|
21709
|
-
"multiple": false,
|
|
21710
|
-
"type": "option"
|
|
21711
|
-
},
|
|
21712
|
-
"title": {
|
|
21713
|
-
"description": "Page title",
|
|
21714
|
-
"name": "title",
|
|
21715
|
-
"hasDynamicHelp": false,
|
|
21716
|
-
"multiple": false,
|
|
21717
|
-
"type": "option"
|
|
21718
|
-
},
|
|
21719
|
-
"slug": {
|
|
21720
|
-
"description": "URL slug",
|
|
21721
|
-
"name": "slug",
|
|
21722
|
-
"hasDynamicHelp": false,
|
|
21723
|
-
"multiple": false,
|
|
21724
|
-
"type": "option"
|
|
21725
|
-
},
|
|
21726
|
-
"content": {
|
|
21727
|
-
"description": "HTML content",
|
|
21728
|
-
"name": "content",
|
|
21729
|
-
"hasDynamicHelp": false,
|
|
21730
|
-
"multiple": false,
|
|
21731
|
-
"type": "option"
|
|
21732
|
-
},
|
|
21733
|
-
"is-published": {
|
|
21734
|
-
"description": "Publish the page",
|
|
21735
|
-
"name": "is-published",
|
|
21736
|
-
"allowNo": true,
|
|
21737
|
-
"type": "boolean"
|
|
21738
|
-
},
|
|
21739
21757
|
"page-type": {
|
|
21740
|
-
"description": "
|
|
21758
|
+
"description": "Filter by page type",
|
|
21741
21759
|
"name": "page-type",
|
|
21742
21760
|
"hasDynamicHelp": false,
|
|
21743
21761
|
"multiple": false,
|
|
@@ -21755,9 +21773,37 @@
|
|
|
21755
21773
|
],
|
|
21756
21774
|
"type": "option"
|
|
21757
21775
|
},
|
|
21758
|
-
"
|
|
21759
|
-
"description": "
|
|
21760
|
-
"name": "
|
|
21776
|
+
"is-published": {
|
|
21777
|
+
"description": "Filter published pages only",
|
|
21778
|
+
"name": "is-published",
|
|
21779
|
+
"allowNo": false,
|
|
21780
|
+
"type": "boolean"
|
|
21781
|
+
},
|
|
21782
|
+
"search": {
|
|
21783
|
+
"description": "Search in title/content/slug",
|
|
21784
|
+
"name": "search",
|
|
21785
|
+
"hasDynamicHelp": false,
|
|
21786
|
+
"multiple": false,
|
|
21787
|
+
"type": "option"
|
|
21788
|
+
},
|
|
21789
|
+
"include-seo-metadata": {
|
|
21790
|
+
"description": "Include SEO metadata",
|
|
21791
|
+
"name": "include-seo-metadata",
|
|
21792
|
+
"allowNo": false,
|
|
21793
|
+
"type": "boolean"
|
|
21794
|
+
},
|
|
21795
|
+
"limit": {
|
|
21796
|
+
"description": "Results per page",
|
|
21797
|
+
"name": "limit",
|
|
21798
|
+
"default": 20,
|
|
21799
|
+
"hasDynamicHelp": false,
|
|
21800
|
+
"multiple": false,
|
|
21801
|
+
"type": "option"
|
|
21802
|
+
},
|
|
21803
|
+
"offset": {
|
|
21804
|
+
"description": "Offset for pagination",
|
|
21805
|
+
"name": "offset",
|
|
21806
|
+
"default": 0,
|
|
21761
21807
|
"hasDynamicHelp": false,
|
|
21762
21808
|
"multiple": false,
|
|
21763
21809
|
"type": "option"
|
|
@@ -21765,7 +21811,7 @@
|
|
|
21765
21811
|
},
|
|
21766
21812
|
"hasDynamicHelp": false,
|
|
21767
21813
|
"hiddenAliases": [],
|
|
21768
|
-
"id": "store-pages:
|
|
21814
|
+
"id": "store-pages:list",
|
|
21769
21815
|
"pluginAlias": "@ecomweb/cli",
|
|
21770
21816
|
"pluginName": "@ecomweb/cli",
|
|
21771
21817
|
"pluginType": "core",
|
|
@@ -21776,15 +21822,15 @@
|
|
|
21776
21822
|
"dist",
|
|
21777
21823
|
"commands",
|
|
21778
21824
|
"store-pages",
|
|
21779
|
-
"
|
|
21825
|
+
"list.js"
|
|
21780
21826
|
]
|
|
21781
21827
|
},
|
|
21782
|
-
"store-
|
|
21828
|
+
"store-pages:stats": {
|
|
21783
21829
|
"aliases": [],
|
|
21784
21830
|
"args": {},
|
|
21785
|
-
"description": "Get
|
|
21831
|
+
"description": "Get content page statistics",
|
|
21786
21832
|
"examples": [
|
|
21787
|
-
"ecomweb store-
|
|
21833
|
+
"ecomweb store-pages stats"
|
|
21788
21834
|
],
|
|
21789
21835
|
"flags": {
|
|
21790
21836
|
"store-ref": {
|
|
@@ -21866,7 +21912,7 @@
|
|
|
21866
21912
|
},
|
|
21867
21913
|
"hasDynamicHelp": false,
|
|
21868
21914
|
"hiddenAliases": [],
|
|
21869
|
-
"id": "store-
|
|
21915
|
+
"id": "store-pages:stats",
|
|
21870
21916
|
"pluginAlias": "@ecomweb/cli",
|
|
21871
21917
|
"pluginName": "@ecomweb/cli",
|
|
21872
21918
|
"pluginType": "core",
|
|
@@ -21876,18 +21922,24 @@
|
|
|
21876
21922
|
"relativePath": [
|
|
21877
21923
|
"dist",
|
|
21878
21924
|
"commands",
|
|
21879
|
-
"store-
|
|
21880
|
-
"
|
|
21925
|
+
"store-pages",
|
|
21926
|
+
"stats.js"
|
|
21881
21927
|
]
|
|
21882
21928
|
},
|
|
21883
|
-
"store-
|
|
21929
|
+
"store-pages:update": {
|
|
21884
21930
|
"aliases": [],
|
|
21885
|
-
"args": {
|
|
21886
|
-
|
|
21931
|
+
"args": {
|
|
21932
|
+
"id": {
|
|
21933
|
+
"description": "Content page ID",
|
|
21934
|
+
"name": "id",
|
|
21935
|
+
"required": true
|
|
21936
|
+
}
|
|
21937
|
+
},
|
|
21938
|
+
"description": "Update a content page by ID",
|
|
21887
21939
|
"examples": [
|
|
21888
|
-
"ecomweb store-
|
|
21889
|
-
"ecomweb store-
|
|
21890
|
-
"ecomweb store-
|
|
21940
|
+
"ecomweb store-pages update 1 --stdin <<< '{\"title\":\"Updated Title\"}'",
|
|
21941
|
+
"ecomweb store-pages update 1 --title 'New Title' --is-published",
|
|
21942
|
+
"ecomweb store-pages get 1 | jq '.data' | ecomweb store-pages update 1 --stdin"
|
|
21891
21943
|
],
|
|
21892
21944
|
"flags": {
|
|
21893
21945
|
"store-ref": {
|
|
@@ -21979,93 +22031,63 @@
|
|
|
21979
22031
|
"multiple": false,
|
|
21980
22032
|
"type": "option"
|
|
21981
22033
|
},
|
|
21982
|
-
"
|
|
21983
|
-
"description": "
|
|
21984
|
-
"name": "
|
|
21985
|
-
"hasDynamicHelp": false,
|
|
21986
|
-
"multiple": false,
|
|
21987
|
-
"type": "option"
|
|
21988
|
-
},
|
|
21989
|
-
"favicon-url": {
|
|
21990
|
-
"description": "Store favicon URL",
|
|
21991
|
-
"name": "favicon-url",
|
|
21992
|
-
"hasDynamicHelp": false,
|
|
21993
|
-
"multiple": false,
|
|
21994
|
-
"type": "option"
|
|
21995
|
-
},
|
|
21996
|
-
"tiktok-link": {
|
|
21997
|
-
"description": "TikTok profile link",
|
|
21998
|
-
"name": "tiktok-link",
|
|
21999
|
-
"hasDynamicHelp": false,
|
|
22000
|
-
"multiple": false,
|
|
22001
|
-
"type": "option"
|
|
22002
|
-
},
|
|
22003
|
-
"shopee-link": {
|
|
22004
|
-
"description": "Shopee store link",
|
|
22005
|
-
"name": "shopee-link",
|
|
22006
|
-
"hasDynamicHelp": false,
|
|
22007
|
-
"multiple": false,
|
|
22008
|
-
"type": "option"
|
|
22009
|
-
},
|
|
22010
|
-
"facebook-link": {
|
|
22011
|
-
"description": "Facebook page link",
|
|
22012
|
-
"name": "facebook-link",
|
|
22013
|
-
"hasDynamicHelp": false,
|
|
22014
|
-
"multiple": false,
|
|
22015
|
-
"type": "option"
|
|
22016
|
-
},
|
|
22017
|
-
"instagram-link": {
|
|
22018
|
-
"description": "Instagram profile link",
|
|
22019
|
-
"name": "instagram-link",
|
|
22034
|
+
"title": {
|
|
22035
|
+
"description": "Page title",
|
|
22036
|
+
"name": "title",
|
|
22020
22037
|
"hasDynamicHelp": false,
|
|
22021
22038
|
"multiple": false,
|
|
22022
22039
|
"type": "option"
|
|
22023
22040
|
},
|
|
22024
|
-
"
|
|
22025
|
-
"description": "
|
|
22026
|
-
"name": "
|
|
22041
|
+
"slug": {
|
|
22042
|
+
"description": "URL slug",
|
|
22043
|
+
"name": "slug",
|
|
22027
22044
|
"hasDynamicHelp": false,
|
|
22028
22045
|
"multiple": false,
|
|
22029
22046
|
"type": "option"
|
|
22030
22047
|
},
|
|
22031
|
-
"
|
|
22032
|
-
"description": "
|
|
22033
|
-
"name": "
|
|
22048
|
+
"content": {
|
|
22049
|
+
"description": "HTML content",
|
|
22050
|
+
"name": "content",
|
|
22034
22051
|
"hasDynamicHelp": false,
|
|
22035
22052
|
"multiple": false,
|
|
22036
22053
|
"type": "option"
|
|
22037
22054
|
},
|
|
22038
|
-
"
|
|
22039
|
-
"description": "
|
|
22040
|
-
"name": "
|
|
22041
|
-
"
|
|
22042
|
-
"
|
|
22043
|
-
"type": "option"
|
|
22055
|
+
"is-published": {
|
|
22056
|
+
"description": "Publish the page",
|
|
22057
|
+
"name": "is-published",
|
|
22058
|
+
"allowNo": true,
|
|
22059
|
+
"type": "boolean"
|
|
22044
22060
|
},
|
|
22045
|
-
"
|
|
22046
|
-
"description": "
|
|
22047
|
-
"name": "
|
|
22061
|
+
"page-type": {
|
|
22062
|
+
"description": "Page type",
|
|
22063
|
+
"name": "page-type",
|
|
22048
22064
|
"hasDynamicHelp": false,
|
|
22049
22065
|
"multiple": false,
|
|
22066
|
+
"options": [
|
|
22067
|
+
"about",
|
|
22068
|
+
"privacy",
|
|
22069
|
+
"terms",
|
|
22070
|
+
"faq",
|
|
22071
|
+
"contact",
|
|
22072
|
+
"shopping_guide",
|
|
22073
|
+
"return_policy",
|
|
22074
|
+
"shipping_policy",
|
|
22075
|
+
"home_page",
|
|
22076
|
+
"default"
|
|
22077
|
+
],
|
|
22050
22078
|
"type": "option"
|
|
22051
22079
|
},
|
|
22052
|
-
"
|
|
22053
|
-
"description": "
|
|
22054
|
-
"name": "
|
|
22080
|
+
"sort-order": {
|
|
22081
|
+
"description": "Sort order",
|
|
22082
|
+
"name": "sort-order",
|
|
22055
22083
|
"hasDynamicHelp": false,
|
|
22056
22084
|
"multiple": false,
|
|
22057
22085
|
"type": "option"
|
|
22058
|
-
},
|
|
22059
|
-
"review-requests-enabled": {
|
|
22060
|
-
"description": "Enable/disable review requests",
|
|
22061
|
-
"name": "review-requests-enabled",
|
|
22062
|
-
"allowNo": true,
|
|
22063
|
-
"type": "boolean"
|
|
22064
22086
|
}
|
|
22065
22087
|
},
|
|
22066
22088
|
"hasDynamicHelp": false,
|
|
22067
22089
|
"hiddenAliases": [],
|
|
22068
|
-
"id": "store-
|
|
22090
|
+
"id": "store-pages:update",
|
|
22069
22091
|
"pluginAlias": "@ecomweb/cli",
|
|
22070
22092
|
"pluginName": "@ecomweb/cli",
|
|
22071
22093
|
"pluginType": "core",
|
|
@@ -22075,16 +22097,23 @@
|
|
|
22075
22097
|
"relativePath": [
|
|
22076
22098
|
"dist",
|
|
22077
22099
|
"commands",
|
|
22078
|
-
"store-
|
|
22100
|
+
"store-pages",
|
|
22079
22101
|
"update.js"
|
|
22080
22102
|
]
|
|
22081
22103
|
},
|
|
22082
|
-
"
|
|
22104
|
+
"storefront:init": {
|
|
22083
22105
|
"aliases": [],
|
|
22084
|
-
"args": {
|
|
22085
|
-
|
|
22106
|
+
"args": {
|
|
22107
|
+
"dir": {
|
|
22108
|
+
"description": "Target directory (default: ./<store-ref>-storefront); must be empty",
|
|
22109
|
+
"name": "dir",
|
|
22110
|
+
"required": false
|
|
22111
|
+
}
|
|
22112
|
+
},
|
|
22113
|
+
"description": "Get the current store's storefront as code you own: a Next.js project, configured for the store",
|
|
22086
22114
|
"examples": [
|
|
22087
|
-
"ecomweb
|
|
22115
|
+
"ecomweb storefront init",
|
|
22116
|
+
"ecomweb storefront init ./my-shop"
|
|
22088
22117
|
],
|
|
22089
22118
|
"flags": {
|
|
22090
22119
|
"store-ref": {
|
|
@@ -22162,11 +22191,42 @@
|
|
|
22162
22191
|
"hasDynamicHelp": false,
|
|
22163
22192
|
"multiple": false,
|
|
22164
22193
|
"type": "option"
|
|
22194
|
+
},
|
|
22195
|
+
"github": {
|
|
22196
|
+
"description": "Create the repository in your GitHub account through the ecomweb GitHub App",
|
|
22197
|
+
"name": "github",
|
|
22198
|
+
"allowNo": false,
|
|
22199
|
+
"type": "boolean"
|
|
22200
|
+
},
|
|
22201
|
+
"repo-name": {
|
|
22202
|
+
"description": "Repository name for --github",
|
|
22203
|
+
"name": "repo-name",
|
|
22204
|
+
"hasDynamicHelp": false,
|
|
22205
|
+
"multiple": false,
|
|
22206
|
+
"type": "option"
|
|
22207
|
+
},
|
|
22208
|
+
"public": {
|
|
22209
|
+
"description": "Make the --github repository public",
|
|
22210
|
+
"name": "public",
|
|
22211
|
+
"allowNo": false,
|
|
22212
|
+
"type": "boolean"
|
|
22213
|
+
},
|
|
22214
|
+
"install": {
|
|
22215
|
+
"description": "Install dependencies (pnpm install) after creating the project",
|
|
22216
|
+
"name": "install",
|
|
22217
|
+
"allowNo": true,
|
|
22218
|
+
"type": "boolean"
|
|
22219
|
+
},
|
|
22220
|
+
"dev": {
|
|
22221
|
+
"description": "Start the dev server (pnpm dev) when done, without asking",
|
|
22222
|
+
"name": "dev",
|
|
22223
|
+
"allowNo": false,
|
|
22224
|
+
"type": "boolean"
|
|
22165
22225
|
}
|
|
22166
22226
|
},
|
|
22167
22227
|
"hasDynamicHelp": false,
|
|
22168
22228
|
"hiddenAliases": [],
|
|
22169
|
-
"id": "
|
|
22229
|
+
"id": "storefront:init",
|
|
22170
22230
|
"pluginAlias": "@ecomweb/cli",
|
|
22171
22231
|
"pluginName": "@ecomweb/cli",
|
|
22172
22232
|
"pluginType": "core",
|
|
@@ -22176,22 +22236,17 @@
|
|
|
22176
22236
|
"relativePath": [
|
|
22177
22237
|
"dist",
|
|
22178
22238
|
"commands",
|
|
22179
|
-
"
|
|
22180
|
-
"
|
|
22239
|
+
"storefront",
|
|
22240
|
+
"init.js"
|
|
22181
22241
|
]
|
|
22182
22242
|
},
|
|
22183
|
-
"
|
|
22243
|
+
"storefront:key": {
|
|
22184
22244
|
"aliases": [],
|
|
22185
|
-
"args": {
|
|
22186
|
-
|
|
22187
|
-
"description": "Store ref",
|
|
22188
|
-
"name": "ref",
|
|
22189
|
-
"required": true
|
|
22190
|
-
}
|
|
22191
|
-
},
|
|
22192
|
-
"description": "Show details for a specific store",
|
|
22245
|
+
"args": {},
|
|
22246
|
+
"description": "Show the current store's storefront publishable key (safe to expose in storefront code)",
|
|
22193
22247
|
"examples": [
|
|
22194
|
-
"ecomweb
|
|
22248
|
+
"ecomweb storefront key",
|
|
22249
|
+
"ecomweb storefront key --roll --yes"
|
|
22195
22250
|
],
|
|
22196
22251
|
"flags": {
|
|
22197
22252
|
"store-ref": {
|
|
@@ -22269,11 +22324,23 @@
|
|
|
22269
22324
|
"hasDynamicHelp": false,
|
|
22270
22325
|
"multiple": false,
|
|
22271
22326
|
"type": "option"
|
|
22327
|
+
},
|
|
22328
|
+
"roll": {
|
|
22329
|
+
"description": "Replace the key; the old one keeps working for 7 days",
|
|
22330
|
+
"name": "roll",
|
|
22331
|
+
"allowNo": false,
|
|
22332
|
+
"type": "boolean"
|
|
22333
|
+
},
|
|
22334
|
+
"yes": {
|
|
22335
|
+
"description": "Skip the confirmation for --roll",
|
|
22336
|
+
"name": "yes",
|
|
22337
|
+
"allowNo": false,
|
|
22338
|
+
"type": "boolean"
|
|
22272
22339
|
}
|
|
22273
22340
|
},
|
|
22274
22341
|
"hasDynamicHelp": false,
|
|
22275
22342
|
"hiddenAliases": [],
|
|
22276
|
-
"id": "
|
|
22343
|
+
"id": "storefront:key",
|
|
22277
22344
|
"pluginAlias": "@ecomweb/cli",
|
|
22278
22345
|
"pluginName": "@ecomweb/cli",
|
|
22279
22346
|
"pluginType": "core",
|
|
@@ -22283,16 +22350,18 @@
|
|
|
22283
22350
|
"relativePath": [
|
|
22284
22351
|
"dist",
|
|
22285
22352
|
"commands",
|
|
22286
|
-
"
|
|
22287
|
-
"
|
|
22353
|
+
"storefront",
|
|
22354
|
+
"key.js"
|
|
22288
22355
|
]
|
|
22289
22356
|
},
|
|
22290
|
-
"
|
|
22357
|
+
"storefront:skill": {
|
|
22291
22358
|
"aliases": [],
|
|
22292
22359
|
"args": {},
|
|
22293
|
-
"description": "
|
|
22360
|
+
"description": "Show or update the ecomweb-storefront skill that teaches Claude Code and Codex this storefront",
|
|
22294
22361
|
"examples": [
|
|
22295
|
-
"ecomweb
|
|
22362
|
+
"ecomweb storefront skill",
|
|
22363
|
+
"ecomweb storefront skill --update",
|
|
22364
|
+
"ecomweb storefront skill --update --dry-run"
|
|
22296
22365
|
],
|
|
22297
22366
|
"flags": {
|
|
22298
22367
|
"store-ref": {
|
|
@@ -22370,11 +22439,25 @@
|
|
|
22370
22439
|
"hasDynamicHelp": false,
|
|
22371
22440
|
"multiple": false,
|
|
22372
22441
|
"type": "option"
|
|
22442
|
+
},
|
|
22443
|
+
"update": {
|
|
22444
|
+
"description": "Replace the project's skill with the one in the store's current template (nothing else is touched)",
|
|
22445
|
+
"name": "update",
|
|
22446
|
+
"allowNo": false,
|
|
22447
|
+
"type": "boolean"
|
|
22448
|
+
},
|
|
22449
|
+
"dir": {
|
|
22450
|
+
"description": "The storefront project",
|
|
22451
|
+
"name": "dir",
|
|
22452
|
+
"default": ".",
|
|
22453
|
+
"hasDynamicHelp": false,
|
|
22454
|
+
"multiple": false,
|
|
22455
|
+
"type": "option"
|
|
22373
22456
|
}
|
|
22374
22457
|
},
|
|
22375
22458
|
"hasDynamicHelp": false,
|
|
22376
22459
|
"hiddenAliases": [],
|
|
22377
|
-
"id": "
|
|
22460
|
+
"id": "storefront:skill",
|
|
22378
22461
|
"pluginAlias": "@ecomweb/cli",
|
|
22379
22462
|
"pluginName": "@ecomweb/cli",
|
|
22380
22463
|
"pluginType": "core",
|
|
@@ -22384,23 +22467,16 @@
|
|
|
22384
22467
|
"relativePath": [
|
|
22385
22468
|
"dist",
|
|
22386
22469
|
"commands",
|
|
22387
|
-
"
|
|
22388
|
-
"
|
|
22470
|
+
"storefront",
|
|
22471
|
+
"skill.js"
|
|
22389
22472
|
]
|
|
22390
22473
|
},
|
|
22391
|
-
"stores:
|
|
22474
|
+
"stores:current": {
|
|
22392
22475
|
"aliases": [],
|
|
22393
|
-
"args": {
|
|
22394
|
-
|
|
22395
|
-
"description": "Store ref to switch to",
|
|
22396
|
-
"name": "ref",
|
|
22397
|
-
"required": true
|
|
22398
|
-
}
|
|
22399
|
-
},
|
|
22400
|
-
"description": "Switch the active store (persists to profile)",
|
|
22476
|
+
"args": {},
|
|
22477
|
+
"description": "Show the currently active store (its live name, or the cached one offline)",
|
|
22401
22478
|
"examples": [
|
|
22402
|
-
"ecomweb stores
|
|
22403
|
-
"ecomweb stores switch abc123def456 --profile production"
|
|
22479
|
+
"ecomweb stores current"
|
|
22404
22480
|
],
|
|
22405
22481
|
"flags": {
|
|
22406
22482
|
"store-ref": {
|
|
@@ -22482,7 +22558,7 @@
|
|
|
22482
22558
|
},
|
|
22483
22559
|
"hasDynamicHelp": false,
|
|
22484
22560
|
"hiddenAliases": [],
|
|
22485
|
-
"id": "stores:
|
|
22561
|
+
"id": "stores:current",
|
|
22486
22562
|
"pluginAlias": "@ecomweb/cli",
|
|
22487
22563
|
"pluginName": "@ecomweb/cli",
|
|
22488
22564
|
"pluginType": "core",
|
|
@@ -22493,17 +22569,21 @@
|
|
|
22493
22569
|
"dist",
|
|
22494
22570
|
"commands",
|
|
22495
22571
|
"stores",
|
|
22496
|
-
"
|
|
22572
|
+
"current.js"
|
|
22497
22573
|
]
|
|
22498
22574
|
},
|
|
22499
|
-
"stores:
|
|
22575
|
+
"stores:info": {
|
|
22500
22576
|
"aliases": [],
|
|
22501
|
-
"args": {
|
|
22502
|
-
|
|
22577
|
+
"args": {
|
|
22578
|
+
"ref": {
|
|
22579
|
+
"description": "Store ref",
|
|
22580
|
+
"name": "ref",
|
|
22581
|
+
"required": true
|
|
22582
|
+
}
|
|
22583
|
+
},
|
|
22584
|
+
"description": "Show details for a specific store",
|
|
22503
22585
|
"examples": [
|
|
22504
|
-
"ecomweb stores
|
|
22505
|
-
"ecomweb stores update --stdin <<< '{\"name\":\"Mai Phú Hưng\",\"description\":\"Đồ gia dụng\"}'",
|
|
22506
|
-
"ecomweb stores update --file store.json"
|
|
22586
|
+
"ecomweb stores info abc123def456"
|
|
22507
22587
|
],
|
|
22508
22588
|
"flags": {
|
|
22509
22589
|
"store-ref": {
|
|
@@ -22581,38 +22661,11 @@
|
|
|
22581
22661
|
"hasDynamicHelp": false,
|
|
22582
22662
|
"multiple": false,
|
|
22583
22663
|
"type": "option"
|
|
22584
|
-
},
|
|
22585
|
-
"stdin": {
|
|
22586
|
-
"description": "Read JSON body from stdin",
|
|
22587
|
-
"name": "stdin",
|
|
22588
|
-
"allowNo": false,
|
|
22589
|
-
"type": "boolean"
|
|
22590
|
-
},
|
|
22591
|
-
"file": {
|
|
22592
|
-
"description": "Read JSON body from file",
|
|
22593
|
-
"name": "file",
|
|
22594
|
-
"hasDynamicHelp": false,
|
|
22595
|
-
"multiple": false,
|
|
22596
|
-
"type": "option"
|
|
22597
|
-
},
|
|
22598
|
-
"name": {
|
|
22599
|
-
"description": "Store name (2-100 characters)",
|
|
22600
|
-
"name": "name",
|
|
22601
|
-
"hasDynamicHelp": false,
|
|
22602
|
-
"multiple": false,
|
|
22603
|
-
"type": "option"
|
|
22604
|
-
},
|
|
22605
|
-
"description": {
|
|
22606
|
-
"description": "Store description",
|
|
22607
|
-
"name": "description",
|
|
22608
|
-
"hasDynamicHelp": false,
|
|
22609
|
-
"multiple": false,
|
|
22610
|
-
"type": "option"
|
|
22611
22664
|
}
|
|
22612
22665
|
},
|
|
22613
22666
|
"hasDynamicHelp": false,
|
|
22614
22667
|
"hiddenAliases": [],
|
|
22615
|
-
"id": "stores:
|
|
22668
|
+
"id": "stores:info",
|
|
22616
22669
|
"pluginAlias": "@ecomweb/cli",
|
|
22617
22670
|
"pluginName": "@ecomweb/cli",
|
|
22618
22671
|
"pluginType": "core",
|
|
@@ -22623,22 +22676,15 @@
|
|
|
22623
22676
|
"dist",
|
|
22624
22677
|
"commands",
|
|
22625
22678
|
"stores",
|
|
22626
|
-
"
|
|
22679
|
+
"info.js"
|
|
22627
22680
|
]
|
|
22628
22681
|
},
|
|
22629
|
-
"
|
|
22682
|
+
"stores:list": {
|
|
22630
22683
|
"aliases": [],
|
|
22631
|
-
"args": {
|
|
22632
|
-
|
|
22633
|
-
"description": "Target directory (default: ./<store-ref>-storefront); must be empty",
|
|
22634
|
-
"name": "dir",
|
|
22635
|
-
"required": false
|
|
22636
|
-
}
|
|
22637
|
-
},
|
|
22638
|
-
"description": "Get the current store's storefront as code you own: a Next.js project, configured for the store",
|
|
22684
|
+
"args": {},
|
|
22685
|
+
"description": "List all stores accessible with current API key",
|
|
22639
22686
|
"examples": [
|
|
22640
|
-
"ecomweb
|
|
22641
|
-
"ecomweb storefront init ./my-shop"
|
|
22687
|
+
"ecomweb stores list"
|
|
22642
22688
|
],
|
|
22643
22689
|
"flags": {
|
|
22644
22690
|
"store-ref": {
|
|
@@ -22716,42 +22762,11 @@
|
|
|
22716
22762
|
"hasDynamicHelp": false,
|
|
22717
22763
|
"multiple": false,
|
|
22718
22764
|
"type": "option"
|
|
22719
|
-
},
|
|
22720
|
-
"github": {
|
|
22721
|
-
"description": "Create the repository in your GitHub account through the ecomweb GitHub App",
|
|
22722
|
-
"name": "github",
|
|
22723
|
-
"allowNo": false,
|
|
22724
|
-
"type": "boolean"
|
|
22725
|
-
},
|
|
22726
|
-
"repo-name": {
|
|
22727
|
-
"description": "Repository name for --github",
|
|
22728
|
-
"name": "repo-name",
|
|
22729
|
-
"hasDynamicHelp": false,
|
|
22730
|
-
"multiple": false,
|
|
22731
|
-
"type": "option"
|
|
22732
|
-
},
|
|
22733
|
-
"public": {
|
|
22734
|
-
"description": "Make the --github repository public",
|
|
22735
|
-
"name": "public",
|
|
22736
|
-
"allowNo": false,
|
|
22737
|
-
"type": "boolean"
|
|
22738
|
-
},
|
|
22739
|
-
"install": {
|
|
22740
|
-
"description": "Install dependencies (pnpm install) after creating the project",
|
|
22741
|
-
"name": "install",
|
|
22742
|
-
"allowNo": true,
|
|
22743
|
-
"type": "boolean"
|
|
22744
|
-
},
|
|
22745
|
-
"dev": {
|
|
22746
|
-
"description": "Start the dev server (pnpm dev) when done, without asking",
|
|
22747
|
-
"name": "dev",
|
|
22748
|
-
"allowNo": false,
|
|
22749
|
-
"type": "boolean"
|
|
22750
22765
|
}
|
|
22751
22766
|
},
|
|
22752
22767
|
"hasDynamicHelp": false,
|
|
22753
22768
|
"hiddenAliases": [],
|
|
22754
|
-
"id": "
|
|
22769
|
+
"id": "stores:list",
|
|
22755
22770
|
"pluginAlias": "@ecomweb/cli",
|
|
22756
22771
|
"pluginName": "@ecomweb/cli",
|
|
22757
22772
|
"pluginType": "core",
|
|
@@ -22761,17 +22776,23 @@
|
|
|
22761
22776
|
"relativePath": [
|
|
22762
22777
|
"dist",
|
|
22763
22778
|
"commands",
|
|
22764
|
-
"
|
|
22765
|
-
"
|
|
22779
|
+
"stores",
|
|
22780
|
+
"list.js"
|
|
22766
22781
|
]
|
|
22767
22782
|
},
|
|
22768
|
-
"
|
|
22783
|
+
"stores:switch": {
|
|
22769
22784
|
"aliases": [],
|
|
22770
|
-
"args": {
|
|
22771
|
-
|
|
22785
|
+
"args": {
|
|
22786
|
+
"ref": {
|
|
22787
|
+
"description": "Store ref to switch to",
|
|
22788
|
+
"name": "ref",
|
|
22789
|
+
"required": true
|
|
22790
|
+
}
|
|
22791
|
+
},
|
|
22792
|
+
"description": "Switch the active store (persists to profile)",
|
|
22772
22793
|
"examples": [
|
|
22773
|
-
"ecomweb
|
|
22774
|
-
"ecomweb
|
|
22794
|
+
"ecomweb stores switch abc123def456",
|
|
22795
|
+
"ecomweb stores switch abc123def456 --profile production"
|
|
22775
22796
|
],
|
|
22776
22797
|
"flags": {
|
|
22777
22798
|
"store-ref": {
|
|
@@ -22849,23 +22870,11 @@
|
|
|
22849
22870
|
"hasDynamicHelp": false,
|
|
22850
22871
|
"multiple": false,
|
|
22851
22872
|
"type": "option"
|
|
22852
|
-
},
|
|
22853
|
-
"roll": {
|
|
22854
|
-
"description": "Replace the key; the old one keeps working for 7 days",
|
|
22855
|
-
"name": "roll",
|
|
22856
|
-
"allowNo": false,
|
|
22857
|
-
"type": "boolean"
|
|
22858
|
-
},
|
|
22859
|
-
"yes": {
|
|
22860
|
-
"description": "Skip the confirmation for --roll",
|
|
22861
|
-
"name": "yes",
|
|
22862
|
-
"allowNo": false,
|
|
22863
|
-
"type": "boolean"
|
|
22864
22873
|
}
|
|
22865
22874
|
},
|
|
22866
22875
|
"hasDynamicHelp": false,
|
|
22867
22876
|
"hiddenAliases": [],
|
|
22868
|
-
"id": "
|
|
22877
|
+
"id": "stores:switch",
|
|
22869
22878
|
"pluginAlias": "@ecomweb/cli",
|
|
22870
22879
|
"pluginName": "@ecomweb/cli",
|
|
22871
22880
|
"pluginType": "core",
|
|
@@ -22875,18 +22884,18 @@
|
|
|
22875
22884
|
"relativePath": [
|
|
22876
22885
|
"dist",
|
|
22877
22886
|
"commands",
|
|
22878
|
-
"
|
|
22879
|
-
"
|
|
22887
|
+
"stores",
|
|
22888
|
+
"switch.js"
|
|
22880
22889
|
]
|
|
22881
22890
|
},
|
|
22882
|
-
"
|
|
22891
|
+
"stores:update": {
|
|
22883
22892
|
"aliases": [],
|
|
22884
22893
|
"args": {},
|
|
22885
|
-
"description": "
|
|
22894
|
+
"description": "Update the current store's name or description",
|
|
22886
22895
|
"examples": [
|
|
22887
|
-
"ecomweb
|
|
22888
|
-
"ecomweb
|
|
22889
|
-
"ecomweb
|
|
22896
|
+
"ecomweb stores update --name \"Mai Phú Hưng\"",
|
|
22897
|
+
"ecomweb stores update --stdin <<< '{\"name\":\"Mai Phú Hưng\",\"description\":\"Đồ gia dụng\"}'",
|
|
22898
|
+
"ecomweb stores update --file store.json"
|
|
22890
22899
|
],
|
|
22891
22900
|
"flags": {
|
|
22892
22901
|
"store-ref": {
|
|
@@ -22965,16 +22974,29 @@
|
|
|
22965
22974
|
"multiple": false,
|
|
22966
22975
|
"type": "option"
|
|
22967
22976
|
},
|
|
22968
|
-
"
|
|
22969
|
-
"description": "
|
|
22970
|
-
"name": "
|
|
22977
|
+
"stdin": {
|
|
22978
|
+
"description": "Read JSON body from stdin",
|
|
22979
|
+
"name": "stdin",
|
|
22971
22980
|
"allowNo": false,
|
|
22972
22981
|
"type": "boolean"
|
|
22973
22982
|
},
|
|
22974
|
-
"
|
|
22975
|
-
"description": "
|
|
22976
|
-
"name": "
|
|
22977
|
-
"
|
|
22983
|
+
"file": {
|
|
22984
|
+
"description": "Read JSON body from file",
|
|
22985
|
+
"name": "file",
|
|
22986
|
+
"hasDynamicHelp": false,
|
|
22987
|
+
"multiple": false,
|
|
22988
|
+
"type": "option"
|
|
22989
|
+
},
|
|
22990
|
+
"name": {
|
|
22991
|
+
"description": "Store name (2-100 characters)",
|
|
22992
|
+
"name": "name",
|
|
22993
|
+
"hasDynamicHelp": false,
|
|
22994
|
+
"multiple": false,
|
|
22995
|
+
"type": "option"
|
|
22996
|
+
},
|
|
22997
|
+
"description": {
|
|
22998
|
+
"description": "Store description",
|
|
22999
|
+
"name": "description",
|
|
22978
23000
|
"hasDynamicHelp": false,
|
|
22979
23001
|
"multiple": false,
|
|
22980
23002
|
"type": "option"
|
|
@@ -22982,7 +23004,7 @@
|
|
|
22982
23004
|
},
|
|
22983
23005
|
"hasDynamicHelp": false,
|
|
22984
23006
|
"hiddenAliases": [],
|
|
22985
|
-
"id": "
|
|
23007
|
+
"id": "stores:update",
|
|
22986
23008
|
"pluginAlias": "@ecomweb/cli",
|
|
22987
23009
|
"pluginName": "@ecomweb/cli",
|
|
22988
23010
|
"pluginType": "core",
|
|
@@ -22992,8 +23014,8 @@
|
|
|
22992
23014
|
"relativePath": [
|
|
22993
23015
|
"dist",
|
|
22994
23016
|
"commands",
|
|
22995
|
-
"
|
|
22996
|
-
"
|
|
23017
|
+
"stores",
|
|
23018
|
+
"update.js"
|
|
22997
23019
|
]
|
|
22998
23020
|
},
|
|
22999
23021
|
"analytics:ga4:all": {
|
|
@@ -25503,5 +25525,5 @@
|
|
|
25503
25525
|
]
|
|
25504
25526
|
}
|
|
25505
25527
|
},
|
|
25506
|
-
"version": "0.
|
|
25528
|
+
"version": "0.6.0"
|
|
25507
25529
|
}
|