@sanity/cli 8.0.3 → 8.2.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 +4 -4
- package/dist/actions/init/sdkAppDependencies.js +2 -2
- package/dist/actions/init/sdkAppDependencies.js.map +1 -1
- package/dist/actions/init/studioDependencies.js +2 -2
- package/dist/actions/init/studioDependencies.js.map +1 -1
- package/dist/actions/scaffold/scaffoldProject.js +11 -6
- package/dist/actions/scaffold/scaffoldProject.js.map +1 -1
- package/dist/commands/new.js +1 -2
- package/dist/commands/new.js.map +1 -1
- package/dist/server/devServer.js.map +1 -1
- package/dist/services/assets.js +1 -1
- package/dist/services/assets.js.map +1 -1
- package/oclif.manifest.json +827 -827
- package/package.json +14 -9
package/oclif.manifest.json
CHANGED
|
@@ -1150,7 +1150,7 @@
|
|
|
1150
1150
|
"required": false
|
|
1151
1151
|
}
|
|
1152
1152
|
},
|
|
1153
|
-
"description": "Sets up two folders here: ./sanity, a Studio where you write and edit your\ncontent, and ./web, a Next.js website that reads it. Both are already\nconnected to your new project, so you can start them straight away. Use\n--no-scaffold if you just want the project and nothing else.\n\nThe project is real and works immediately, but it is only yours for 72 hours.\nClaim it with a Sanity account before the deadline and everything you have\nbuilt stays exactly as it is. Claiming is free and takes about a minute. Miss\nthe deadline and the project and its content are deleted.\n\nTwo things to keep private: the claim link, because anyone who opens it\nbecomes the owner, and the access token saved in ./sanity/.env.local
|
|
1153
|
+
"description": "Sets up two folders here: ./sanity, a Studio where you write and edit your\ncontent, and ./web, a Next.js website that reads it. Both are already\nconnected to your new project, so you can start them straight away. Use\n--no-scaffold if you just want the project and nothing else.\n\nThe project is real and works immediately, but it is only yours for 72 hours.\nClaim it with a Sanity account before the deadline and everything you have\nbuilt stays exactly as it is. Claiming is free and takes about a minute. Miss\nthe deadline and the project and its content are deleted.\n\nTwo things to keep private: the claim link, because anyone who opens it\nbecomes the owner, and the access token saved in ./sanity/.env.local, because\nit can read and change everything in the project. ./web/.env.local has only\nthe project ID and dataset. Keep both env files out of git, and never put the\ntoken in code that runs in the browser.\n\nRun this command with --instructions for the full agent setup guide.",
|
|
1154
1154
|
"examples": [
|
|
1155
1155
|
{
|
|
1156
1156
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3094,254 +3094,6 @@
|
|
|
3094
3094
|
"validate.js"
|
|
3095
3095
|
]
|
|
3096
3096
|
},
|
|
3097
|
-
"hooks:attempt": {
|
|
3098
|
-
"aliases": [],
|
|
3099
|
-
"args": {
|
|
3100
|
-
"attemptId": {
|
|
3101
|
-
"description": "The delivery attempt ID to get details for",
|
|
3102
|
-
"name": "attemptId",
|
|
3103
|
-
"required": true
|
|
3104
|
-
}
|
|
3105
|
-
},
|
|
3106
|
-
"description": "Print details of a given webhook delivery attempt",
|
|
3107
|
-
"examples": [
|
|
3108
|
-
{
|
|
3109
|
-
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
3110
|
-
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
3111
|
-
},
|
|
3112
|
-
{
|
|
3113
|
-
"command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
|
|
3114
|
-
"description": "Get attempt details for a specific project"
|
|
3115
|
-
}
|
|
3116
|
-
],
|
|
3117
|
-
"flags": {
|
|
3118
|
-
"project-id": {
|
|
3119
|
-
"char": "p",
|
|
3120
|
-
"description": "Project ID to view webhook attempt for (overrides CLI configuration)",
|
|
3121
|
-
"helpGroup": "OVERRIDE",
|
|
3122
|
-
"name": "project-id",
|
|
3123
|
-
"hasDynamicHelp": false,
|
|
3124
|
-
"helpValue": "<id>",
|
|
3125
|
-
"multiple": false,
|
|
3126
|
-
"type": "option"
|
|
3127
|
-
}
|
|
3128
|
-
},
|
|
3129
|
-
"hasDynamicHelp": false,
|
|
3130
|
-
"hiddenAliases": [
|
|
3131
|
-
"hook:attempt"
|
|
3132
|
-
],
|
|
3133
|
-
"id": "hooks:attempt",
|
|
3134
|
-
"pluginAlias": "@sanity/cli",
|
|
3135
|
-
"pluginName": "@sanity/cli",
|
|
3136
|
-
"pluginType": "core",
|
|
3137
|
-
"strict": true,
|
|
3138
|
-
"isESM": true,
|
|
3139
|
-
"relativePath": [
|
|
3140
|
-
"dist",
|
|
3141
|
-
"commands",
|
|
3142
|
-
"hooks",
|
|
3143
|
-
"attempt.js"
|
|
3144
|
-
]
|
|
3145
|
-
},
|
|
3146
|
-
"hooks:create": {
|
|
3147
|
-
"aliases": [],
|
|
3148
|
-
"args": {},
|
|
3149
|
-
"description": "Create a new webhook for the project",
|
|
3150
|
-
"examples": [
|
|
3151
|
-
{
|
|
3152
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3153
|
-
"description": "Create a new webhook for the project"
|
|
3154
|
-
},
|
|
3155
|
-
{
|
|
3156
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3157
|
-
"description": "Create a webhook for a specific project"
|
|
3158
|
-
}
|
|
3159
|
-
],
|
|
3160
|
-
"flags": {
|
|
3161
|
-
"project-id": {
|
|
3162
|
-
"char": "p",
|
|
3163
|
-
"description": "Project ID to create webhook for (overrides CLI configuration)",
|
|
3164
|
-
"helpGroup": "OVERRIDE",
|
|
3165
|
-
"name": "project-id",
|
|
3166
|
-
"hasDynamicHelp": false,
|
|
3167
|
-
"helpValue": "<id>",
|
|
3168
|
-
"multiple": false,
|
|
3169
|
-
"type": "option"
|
|
3170
|
-
}
|
|
3171
|
-
},
|
|
3172
|
-
"hasDynamicHelp": false,
|
|
3173
|
-
"hiddenAliases": [
|
|
3174
|
-
"hook:create"
|
|
3175
|
-
],
|
|
3176
|
-
"id": "hooks:create",
|
|
3177
|
-
"pluginAlias": "@sanity/cli",
|
|
3178
|
-
"pluginName": "@sanity/cli",
|
|
3179
|
-
"pluginType": "core",
|
|
3180
|
-
"strict": true,
|
|
3181
|
-
"isESM": true,
|
|
3182
|
-
"relativePath": [
|
|
3183
|
-
"dist",
|
|
3184
|
-
"commands",
|
|
3185
|
-
"hooks",
|
|
3186
|
-
"create.js"
|
|
3187
|
-
]
|
|
3188
|
-
},
|
|
3189
|
-
"hooks:delete": {
|
|
3190
|
-
"aliases": [],
|
|
3191
|
-
"args": {
|
|
3192
|
-
"name": {
|
|
3193
|
-
"description": "Name of webhook to delete (will prompt if not provided)",
|
|
3194
|
-
"name": "name",
|
|
3195
|
-
"required": false
|
|
3196
|
-
}
|
|
3197
|
-
},
|
|
3198
|
-
"description": "Delete a webhook from the project",
|
|
3199
|
-
"examples": [
|
|
3200
|
-
{
|
|
3201
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3202
|
-
"description": "Interactively select and delete a webhook"
|
|
3203
|
-
},
|
|
3204
|
-
{
|
|
3205
|
-
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
3206
|
-
"description": "Delete a specific webhook by name"
|
|
3207
|
-
},
|
|
3208
|
-
{
|
|
3209
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3210
|
-
"description": "Delete a webhook from a specific project"
|
|
3211
|
-
}
|
|
3212
|
-
],
|
|
3213
|
-
"flags": {
|
|
3214
|
-
"project-id": {
|
|
3215
|
-
"char": "p",
|
|
3216
|
-
"description": "Project ID to delete webhook from (overrides CLI configuration)",
|
|
3217
|
-
"helpGroup": "OVERRIDE",
|
|
3218
|
-
"name": "project-id",
|
|
3219
|
-
"hasDynamicHelp": false,
|
|
3220
|
-
"helpValue": "<id>",
|
|
3221
|
-
"multiple": false,
|
|
3222
|
-
"type": "option"
|
|
3223
|
-
}
|
|
3224
|
-
},
|
|
3225
|
-
"hasDynamicHelp": false,
|
|
3226
|
-
"hiddenAliases": [
|
|
3227
|
-
"hook:delete"
|
|
3228
|
-
],
|
|
3229
|
-
"id": "hooks:delete",
|
|
3230
|
-
"pluginAlias": "@sanity/cli",
|
|
3231
|
-
"pluginName": "@sanity/cli",
|
|
3232
|
-
"pluginType": "core",
|
|
3233
|
-
"strict": true,
|
|
3234
|
-
"isESM": true,
|
|
3235
|
-
"relativePath": [
|
|
3236
|
-
"dist",
|
|
3237
|
-
"commands",
|
|
3238
|
-
"hooks",
|
|
3239
|
-
"delete.js"
|
|
3240
|
-
]
|
|
3241
|
-
},
|
|
3242
|
-
"hooks:list": {
|
|
3243
|
-
"aliases": [],
|
|
3244
|
-
"args": {},
|
|
3245
|
-
"description": "List webhooks for the project",
|
|
3246
|
-
"examples": [
|
|
3247
|
-
{
|
|
3248
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3249
|
-
"description": "List webhooks for the project"
|
|
3250
|
-
},
|
|
3251
|
-
{
|
|
3252
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3253
|
-
"description": "List webhooks for a specific project"
|
|
3254
|
-
}
|
|
3255
|
-
],
|
|
3256
|
-
"flags": {
|
|
3257
|
-
"project-id": {
|
|
3258
|
-
"char": "p",
|
|
3259
|
-
"description": "Project ID to list webhooks for (overrides CLI configuration)",
|
|
3260
|
-
"helpGroup": "OVERRIDE",
|
|
3261
|
-
"name": "project-id",
|
|
3262
|
-
"hasDynamicHelp": false,
|
|
3263
|
-
"helpValue": "<id>",
|
|
3264
|
-
"multiple": false,
|
|
3265
|
-
"type": "option"
|
|
3266
|
-
}
|
|
3267
|
-
},
|
|
3268
|
-
"hasDynamicHelp": false,
|
|
3269
|
-
"hiddenAliases": [
|
|
3270
|
-
"hook:list"
|
|
3271
|
-
],
|
|
3272
|
-
"id": "hooks:list",
|
|
3273
|
-
"pluginAlias": "@sanity/cli",
|
|
3274
|
-
"pluginName": "@sanity/cli",
|
|
3275
|
-
"pluginType": "core",
|
|
3276
|
-
"strict": true,
|
|
3277
|
-
"isESM": true,
|
|
3278
|
-
"relativePath": [
|
|
3279
|
-
"dist",
|
|
3280
|
-
"commands",
|
|
3281
|
-
"hooks",
|
|
3282
|
-
"list.js"
|
|
3283
|
-
]
|
|
3284
|
-
},
|
|
3285
|
-
"hooks:logs": {
|
|
3286
|
-
"aliases": [],
|
|
3287
|
-
"args": {
|
|
3288
|
-
"name": {
|
|
3289
|
-
"description": "Name of the webhook to show logs for",
|
|
3290
|
-
"name": "name",
|
|
3291
|
-
"required": false
|
|
3292
|
-
}
|
|
3293
|
-
},
|
|
3294
|
-
"description": "Show log entries for project webhooks",
|
|
3295
|
-
"examples": [
|
|
3296
|
-
{
|
|
3297
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3298
|
-
"description": "Show log entries for project webhooks"
|
|
3299
|
-
},
|
|
3300
|
-
{
|
|
3301
|
-
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
3302
|
-
"description": "Show log entries for a specific webhook by name"
|
|
3303
|
-
},
|
|
3304
|
-
{
|
|
3305
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3306
|
-
"description": "Show log entries for a specific project"
|
|
3307
|
-
}
|
|
3308
|
-
],
|
|
3309
|
-
"flags": {
|
|
3310
|
-
"project-id": {
|
|
3311
|
-
"char": "p",
|
|
3312
|
-
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
3313
|
-
"helpGroup": "OVERRIDE",
|
|
3314
|
-
"name": "project-id",
|
|
3315
|
-
"hasDynamicHelp": false,
|
|
3316
|
-
"helpValue": "<id>",
|
|
3317
|
-
"multiple": false,
|
|
3318
|
-
"type": "option"
|
|
3319
|
-
},
|
|
3320
|
-
"detailed": {
|
|
3321
|
-
"description": "Include detailed payload and attempts",
|
|
3322
|
-
"name": "detailed",
|
|
3323
|
-
"required": false,
|
|
3324
|
-
"allowNo": false,
|
|
3325
|
-
"type": "boolean"
|
|
3326
|
-
}
|
|
3327
|
-
},
|
|
3328
|
-
"hasDynamicHelp": false,
|
|
3329
|
-
"hiddenAliases": [
|
|
3330
|
-
"hook:logs"
|
|
3331
|
-
],
|
|
3332
|
-
"id": "hooks:logs",
|
|
3333
|
-
"pluginAlias": "@sanity/cli",
|
|
3334
|
-
"pluginName": "@sanity/cli",
|
|
3335
|
-
"pluginType": "core",
|
|
3336
|
-
"strict": true,
|
|
3337
|
-
"isESM": true,
|
|
3338
|
-
"relativePath": [
|
|
3339
|
-
"dist",
|
|
3340
|
-
"commands",
|
|
3341
|
-
"hooks",
|
|
3342
|
-
"logs.js"
|
|
3343
|
-
]
|
|
3344
|
-
},
|
|
3345
3097
|
"graphql:deploy": {
|
|
3346
3098
|
"aliases": [],
|
|
3347
3099
|
"args": {},
|
|
@@ -3594,33 +3346,43 @@
|
|
|
3594
3346
|
"undeploy.js"
|
|
3595
3347
|
]
|
|
3596
3348
|
},
|
|
3597
|
-
"
|
|
3349
|
+
"hooks:attempt": {
|
|
3598
3350
|
"aliases": [],
|
|
3599
|
-
"args": {
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
"
|
|
3604
|
-
|
|
3351
|
+
"args": {
|
|
3352
|
+
"attemptId": {
|
|
3353
|
+
"description": "The delivery attempt ID to get details for",
|
|
3354
|
+
"name": "attemptId",
|
|
3355
|
+
"required": true
|
|
3356
|
+
}
|
|
3357
|
+
},
|
|
3358
|
+
"description": "Print details of a given webhook delivery attempt",
|
|
3359
|
+
"examples": [
|
|
3360
|
+
{
|
|
3361
|
+
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
3362
|
+
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
3605
3363
|
},
|
|
3606
3364
|
{
|
|
3607
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3608
|
-
"description": "
|
|
3365
|
+
"command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
|
|
3366
|
+
"description": "Get attempt details for a specific project"
|
|
3609
3367
|
}
|
|
3610
3368
|
],
|
|
3611
3369
|
"flags": {
|
|
3612
|
-
"
|
|
3613
|
-
"
|
|
3614
|
-
"
|
|
3615
|
-
"
|
|
3370
|
+
"project-id": {
|
|
3371
|
+
"char": "p",
|
|
3372
|
+
"description": "Project ID to view webhook attempt for (overrides CLI configuration)",
|
|
3373
|
+
"helpGroup": "OVERRIDE",
|
|
3374
|
+
"name": "project-id",
|
|
3616
3375
|
"hasDynamicHelp": false,
|
|
3376
|
+
"helpValue": "<id>",
|
|
3617
3377
|
"multiple": false,
|
|
3618
3378
|
"type": "option"
|
|
3619
3379
|
}
|
|
3620
3380
|
},
|
|
3621
3381
|
"hasDynamicHelp": false,
|
|
3622
|
-
"hiddenAliases": [
|
|
3623
|
-
|
|
3382
|
+
"hiddenAliases": [
|
|
3383
|
+
"hook:attempt"
|
|
3384
|
+
],
|
|
3385
|
+
"id": "hooks:attempt",
|
|
3624
3386
|
"pluginAlias": "@sanity/cli",
|
|
3625
3387
|
"pluginName": "@sanity/cli",
|
|
3626
3388
|
"pluginType": "core",
|
|
@@ -3629,24 +3391,41 @@
|
|
|
3629
3391
|
"relativePath": [
|
|
3630
3392
|
"dist",
|
|
3631
3393
|
"commands",
|
|
3632
|
-
"
|
|
3633
|
-
"
|
|
3394
|
+
"hooks",
|
|
3395
|
+
"attempt.js"
|
|
3634
3396
|
]
|
|
3635
3397
|
},
|
|
3636
|
-
"
|
|
3398
|
+
"hooks:create": {
|
|
3637
3399
|
"aliases": [],
|
|
3638
3400
|
"args": {},
|
|
3639
|
-
"description": "
|
|
3401
|
+
"description": "Create a new webhook for the project",
|
|
3640
3402
|
"examples": [
|
|
3641
3403
|
{
|
|
3642
3404
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3643
|
-
"description": "
|
|
3405
|
+
"description": "Create a new webhook for the project"
|
|
3406
|
+
},
|
|
3407
|
+
{
|
|
3408
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3409
|
+
"description": "Create a webhook for a specific project"
|
|
3644
3410
|
}
|
|
3645
3411
|
],
|
|
3646
|
-
"flags": {
|
|
3412
|
+
"flags": {
|
|
3413
|
+
"project-id": {
|
|
3414
|
+
"char": "p",
|
|
3415
|
+
"description": "Project ID to create webhook for (overrides CLI configuration)",
|
|
3416
|
+
"helpGroup": "OVERRIDE",
|
|
3417
|
+
"name": "project-id",
|
|
3418
|
+
"hasDynamicHelp": false,
|
|
3419
|
+
"helpValue": "<id>",
|
|
3420
|
+
"multiple": false,
|
|
3421
|
+
"type": "option"
|
|
3422
|
+
}
|
|
3423
|
+
},
|
|
3647
3424
|
"hasDynamicHelp": false,
|
|
3648
|
-
"hiddenAliases": [
|
|
3649
|
-
|
|
3425
|
+
"hiddenAliases": [
|
|
3426
|
+
"hook:create"
|
|
3427
|
+
],
|
|
3428
|
+
"id": "hooks:create",
|
|
3650
3429
|
"pluginAlias": "@sanity/cli",
|
|
3651
3430
|
"pluginName": "@sanity/cli",
|
|
3652
3431
|
"pluginType": "core",
|
|
@@ -3655,36 +3434,51 @@
|
|
|
3655
3434
|
"relativePath": [
|
|
3656
3435
|
"dist",
|
|
3657
3436
|
"commands",
|
|
3658
|
-
"
|
|
3659
|
-
"
|
|
3437
|
+
"hooks",
|
|
3438
|
+
"create.js"
|
|
3660
3439
|
]
|
|
3661
3440
|
},
|
|
3662
|
-
"
|
|
3441
|
+
"hooks:delete": {
|
|
3663
3442
|
"aliases": [],
|
|
3664
3443
|
"args": {
|
|
3665
|
-
"
|
|
3666
|
-
"description": "
|
|
3667
|
-
"name": "
|
|
3444
|
+
"name": {
|
|
3445
|
+
"description": "Name of webhook to delete (will prompt if not provided)",
|
|
3446
|
+
"name": "name",
|
|
3668
3447
|
"required": false
|
|
3669
3448
|
}
|
|
3670
3449
|
},
|
|
3671
|
-
"description": "
|
|
3450
|
+
"description": "Delete a webhook from the project",
|
|
3672
3451
|
"examples": [
|
|
3673
3452
|
{
|
|
3674
3453
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3675
|
-
"description": "
|
|
3454
|
+
"description": "Interactively select and delete a webhook"
|
|
3676
3455
|
},
|
|
3677
3456
|
{
|
|
3678
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3679
|
-
"description": "
|
|
3457
|
+
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
3458
|
+
"description": "Delete a specific webhook by name"
|
|
3459
|
+
},
|
|
3460
|
+
{
|
|
3461
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3462
|
+
"description": "Delete a webhook from a specific project"
|
|
3680
3463
|
}
|
|
3681
3464
|
],
|
|
3682
|
-
"flags": {
|
|
3465
|
+
"flags": {
|
|
3466
|
+
"project-id": {
|
|
3467
|
+
"char": "p",
|
|
3468
|
+
"description": "Project ID to delete webhook from (overrides CLI configuration)",
|
|
3469
|
+
"helpGroup": "OVERRIDE",
|
|
3470
|
+
"name": "project-id",
|
|
3471
|
+
"hasDynamicHelp": false,
|
|
3472
|
+
"helpValue": "<id>",
|
|
3473
|
+
"multiple": false,
|
|
3474
|
+
"type": "option"
|
|
3475
|
+
}
|
|
3476
|
+
},
|
|
3683
3477
|
"hasDynamicHelp": false,
|
|
3684
3478
|
"hiddenAliases": [
|
|
3685
|
-
"
|
|
3479
|
+
"hook:delete"
|
|
3686
3480
|
],
|
|
3687
|
-
"id": "
|
|
3481
|
+
"id": "hooks:delete",
|
|
3688
3482
|
"pluginAlias": "@sanity/cli",
|
|
3689
3483
|
"pluginName": "@sanity/cli",
|
|
3690
3484
|
"pluginType": "core",
|
|
@@ -3693,26 +3487,41 @@
|
|
|
3693
3487
|
"relativePath": [
|
|
3694
3488
|
"dist",
|
|
3695
3489
|
"commands",
|
|
3696
|
-
"
|
|
3697
|
-
"
|
|
3490
|
+
"hooks",
|
|
3491
|
+
"delete.js"
|
|
3698
3492
|
]
|
|
3699
3493
|
},
|
|
3700
|
-
"
|
|
3494
|
+
"hooks:list": {
|
|
3701
3495
|
"aliases": [],
|
|
3702
3496
|
"args": {},
|
|
3703
|
-
"description": "List
|
|
3497
|
+
"description": "List webhooks for the project",
|
|
3704
3498
|
"examples": [
|
|
3705
3499
|
{
|
|
3706
3500
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3707
|
-
"description": "List
|
|
3501
|
+
"description": "List webhooks for the project"
|
|
3502
|
+
},
|
|
3503
|
+
{
|
|
3504
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3505
|
+
"description": "List webhooks for a specific project"
|
|
3708
3506
|
}
|
|
3709
3507
|
],
|
|
3710
|
-
"flags": {
|
|
3508
|
+
"flags": {
|
|
3509
|
+
"project-id": {
|
|
3510
|
+
"char": "p",
|
|
3511
|
+
"description": "Project ID to list webhooks for (overrides CLI configuration)",
|
|
3512
|
+
"helpGroup": "OVERRIDE",
|
|
3513
|
+
"name": "project-id",
|
|
3514
|
+
"hasDynamicHelp": false,
|
|
3515
|
+
"helpValue": "<id>",
|
|
3516
|
+
"multiple": false,
|
|
3517
|
+
"type": "option"
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3711
3520
|
"hasDynamicHelp": false,
|
|
3712
3521
|
"hiddenAliases": [
|
|
3713
|
-
"
|
|
3522
|
+
"hook:list"
|
|
3714
3523
|
],
|
|
3715
|
-
"id": "
|
|
3524
|
+
"id": "hooks:list",
|
|
3716
3525
|
"pluginAlias": "@sanity/cli",
|
|
3717
3526
|
"pluginName": "@sanity/cli",
|
|
3718
3527
|
"pluginType": "core",
|
|
@@ -3721,95 +3530,58 @@
|
|
|
3721
3530
|
"relativePath": [
|
|
3722
3531
|
"dist",
|
|
3723
3532
|
"commands",
|
|
3724
|
-
"
|
|
3533
|
+
"hooks",
|
|
3725
3534
|
"list.js"
|
|
3726
3535
|
]
|
|
3727
3536
|
},
|
|
3728
|
-
"
|
|
3537
|
+
"hooks:logs": {
|
|
3729
3538
|
"aliases": [],
|
|
3730
3539
|
"args": {
|
|
3731
|
-
"
|
|
3732
|
-
"description": "
|
|
3733
|
-
"name": "
|
|
3540
|
+
"name": {
|
|
3541
|
+
"description": "Name of the webhook to show logs for",
|
|
3542
|
+
"name": "name",
|
|
3734
3543
|
"required": false
|
|
3735
3544
|
}
|
|
3736
3545
|
},
|
|
3737
|
-
"description": "
|
|
3546
|
+
"description": "Show log entries for project webhooks",
|
|
3738
3547
|
"examples": [
|
|
3739
3548
|
{
|
|
3740
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3741
|
-
"description": "
|
|
3549
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3550
|
+
"description": "Show log entries for project webhooks"
|
|
3742
3551
|
},
|
|
3743
3552
|
{
|
|
3744
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3745
|
-
"description": "
|
|
3553
|
+
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
3554
|
+
"description": "Show log entries for a specific webhook by name"
|
|
3746
3555
|
},
|
|
3747
3556
|
{
|
|
3748
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3749
|
-
"description": "
|
|
3557
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3558
|
+
"description": "Show log entries for a specific project"
|
|
3750
3559
|
}
|
|
3751
3560
|
],
|
|
3752
3561
|
"flags": {
|
|
3753
|
-
"
|
|
3754
|
-
"
|
|
3755
|
-
"
|
|
3756
|
-
"
|
|
3757
|
-
"
|
|
3758
|
-
"type": "option"
|
|
3759
|
-
},
|
|
3760
|
-
"concurrency": {
|
|
3761
|
-
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
3762
|
-
"name": "concurrency",
|
|
3763
|
-
"default": 6,
|
|
3764
|
-
"hasDynamicHelp": false,
|
|
3765
|
-
"multiple": false,
|
|
3766
|
-
"type": "option"
|
|
3767
|
-
},
|
|
3768
|
-
"confirm": {
|
|
3769
|
-
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
3770
|
-
"name": "confirm",
|
|
3771
|
-
"allowNo": true,
|
|
3772
|
-
"type": "boolean"
|
|
3773
|
-
},
|
|
3774
|
-
"dataset": {
|
|
3775
|
-
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
3776
|
-
"name": "dataset",
|
|
3777
|
-
"hasDynamicHelp": false,
|
|
3778
|
-
"multiple": false,
|
|
3779
|
-
"type": "option"
|
|
3780
|
-
},
|
|
3781
|
-
"dry-run": {
|
|
3782
|
-
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
3783
|
-
"name": "dry-run",
|
|
3784
|
-
"allowNo": true,
|
|
3785
|
-
"type": "boolean"
|
|
3786
|
-
},
|
|
3787
|
-
"from-export": {
|
|
3788
|
-
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
3789
|
-
"name": "from-export",
|
|
3562
|
+
"project-id": {
|
|
3563
|
+
"char": "p",
|
|
3564
|
+
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
3565
|
+
"helpGroup": "OVERRIDE",
|
|
3566
|
+
"name": "project-id",
|
|
3790
3567
|
"hasDynamicHelp": false,
|
|
3568
|
+
"helpValue": "<id>",
|
|
3791
3569
|
"multiple": false,
|
|
3792
3570
|
"type": "option"
|
|
3793
3571
|
},
|
|
3794
|
-
"
|
|
3795
|
-
"description": "
|
|
3796
|
-
"name": "
|
|
3797
|
-
"
|
|
3572
|
+
"detailed": {
|
|
3573
|
+
"description": "Include detailed payload and attempts",
|
|
3574
|
+
"name": "detailed",
|
|
3575
|
+
"required": false,
|
|
3576
|
+
"allowNo": false,
|
|
3798
3577
|
"type": "boolean"
|
|
3799
|
-
},
|
|
3800
|
-
"project": {
|
|
3801
|
-
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
3802
|
-
"name": "project",
|
|
3803
|
-
"hasDynamicHelp": false,
|
|
3804
|
-
"multiple": false,
|
|
3805
|
-
"type": "option"
|
|
3806
3578
|
}
|
|
3807
3579
|
},
|
|
3808
3580
|
"hasDynamicHelp": false,
|
|
3809
3581
|
"hiddenAliases": [
|
|
3810
|
-
"
|
|
3582
|
+
"hook:logs"
|
|
3811
3583
|
],
|
|
3812
|
-
"id": "
|
|
3584
|
+
"id": "hooks:logs",
|
|
3813
3585
|
"pluginAlias": "@sanity/cli",
|
|
3814
3586
|
"pluginName": "@sanity/cli",
|
|
3815
3587
|
"pluginType": "core",
|
|
@@ -3818,62 +3590,37 @@
|
|
|
3818
3590
|
"relativePath": [
|
|
3819
3591
|
"dist",
|
|
3820
3592
|
"commands",
|
|
3821
|
-
"
|
|
3822
|
-
"
|
|
3593
|
+
"hooks",
|
|
3594
|
+
"logs.js"
|
|
3823
3595
|
]
|
|
3824
3596
|
},
|
|
3825
|
-
"
|
|
3597
|
+
"manifest:extract": {
|
|
3826
3598
|
"aliases": [],
|
|
3827
|
-
"args": {
|
|
3828
|
-
|
|
3829
|
-
"description": "Slug of the OpenAPI specification to retrieve",
|
|
3830
|
-
"name": "slug",
|
|
3831
|
-
"required": true
|
|
3832
|
-
}
|
|
3833
|
-
},
|
|
3834
|
-
"description": "Get an OpenAPI specification by slug",
|
|
3599
|
+
"args": {},
|
|
3600
|
+
"description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
|
|
3835
3601
|
"examples": [
|
|
3836
3602
|
{
|
|
3837
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3838
|
-
"description": "
|
|
3839
|
-
},
|
|
3840
|
-
{
|
|
3841
|
-
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
3842
|
-
"description": "Get specification in JSON format"
|
|
3843
|
-
},
|
|
3844
|
-
{
|
|
3845
|
-
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
3846
|
-
"description": "Open specification in browser"
|
|
3603
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3604
|
+
"description": "Extracts manifests"
|
|
3847
3605
|
},
|
|
3848
3606
|
{
|
|
3849
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3850
|
-
"description": "
|
|
3607
|
+
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
3608
|
+
"description": "Extracts manifests into /public/static"
|
|
3851
3609
|
}
|
|
3852
3610
|
],
|
|
3853
3611
|
"flags": {
|
|
3854
|
-
"
|
|
3855
|
-
"description": "
|
|
3856
|
-
"name": "
|
|
3857
|
-
"default": "
|
|
3612
|
+
"path": {
|
|
3613
|
+
"description": "Optional path to specify destination directory of the manifest files",
|
|
3614
|
+
"name": "path",
|
|
3615
|
+
"default": "dist/static",
|
|
3858
3616
|
"hasDynamicHelp": false,
|
|
3859
3617
|
"multiple": false,
|
|
3860
|
-
"options": [
|
|
3861
|
-
"yaml",
|
|
3862
|
-
"json"
|
|
3863
|
-
],
|
|
3864
3618
|
"type": "option"
|
|
3865
|
-
},
|
|
3866
|
-
"web": {
|
|
3867
|
-
"char": "w",
|
|
3868
|
-
"description": "Open in web browser",
|
|
3869
|
-
"name": "web",
|
|
3870
|
-
"allowNo": false,
|
|
3871
|
-
"type": "boolean"
|
|
3872
3619
|
}
|
|
3873
3620
|
},
|
|
3874
3621
|
"hasDynamicHelp": false,
|
|
3875
3622
|
"hiddenAliases": [],
|
|
3876
|
-
"id": "
|
|
3623
|
+
"id": "manifest:extract",
|
|
3877
3624
|
"pluginAlias": "@sanity/cli",
|
|
3878
3625
|
"pluginName": "@sanity/cli",
|
|
3879
3626
|
"pluginType": "core",
|
|
@@ -3882,46 +3629,24 @@
|
|
|
3882
3629
|
"relativePath": [
|
|
3883
3630
|
"dist",
|
|
3884
3631
|
"commands",
|
|
3885
|
-
"
|
|
3886
|
-
"
|
|
3632
|
+
"manifest",
|
|
3633
|
+
"extract.js"
|
|
3887
3634
|
]
|
|
3888
3635
|
},
|
|
3889
|
-
"
|
|
3636
|
+
"mcp:configure": {
|
|
3890
3637
|
"aliases": [],
|
|
3891
3638
|
"args": {},
|
|
3892
|
-
"description": "
|
|
3639
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
3893
3640
|
"examples": [
|
|
3894
3641
|
{
|
|
3895
3642
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3896
|
-
"description": "
|
|
3897
|
-
},
|
|
3898
|
-
{
|
|
3899
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3900
|
-
"description": "List with JSON output"
|
|
3901
|
-
},
|
|
3902
|
-
{
|
|
3903
|
-
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
3904
|
-
"description": "Open HTTP Reference in browser"
|
|
3643
|
+
"description": "Configure Sanity MCP server for detected AI editors"
|
|
3905
3644
|
}
|
|
3906
3645
|
],
|
|
3907
|
-
"flags": {
|
|
3908
|
-
"json": {
|
|
3909
|
-
"description": "Output JSON",
|
|
3910
|
-
"name": "json",
|
|
3911
|
-
"allowNo": false,
|
|
3912
|
-
"type": "boolean"
|
|
3913
|
-
},
|
|
3914
|
-
"web": {
|
|
3915
|
-
"char": "w",
|
|
3916
|
-
"description": "Open HTTP Reference in web browser",
|
|
3917
|
-
"name": "web",
|
|
3918
|
-
"allowNo": false,
|
|
3919
|
-
"type": "boolean"
|
|
3920
|
-
}
|
|
3921
|
-
},
|
|
3646
|
+
"flags": {},
|
|
3922
3647
|
"hasDynamicHelp": false,
|
|
3923
3648
|
"hiddenAliases": [],
|
|
3924
|
-
"id": "
|
|
3649
|
+
"id": "mcp:configure",
|
|
3925
3650
|
"pluginAlias": "@sanity/cli",
|
|
3926
3651
|
"pluginName": "@sanity/cli",
|
|
3927
3652
|
"pluginType": "core",
|
|
@@ -3930,55 +3655,39 @@
|
|
|
3930
3655
|
"relativePath": [
|
|
3931
3656
|
"dist",
|
|
3932
3657
|
"commands",
|
|
3933
|
-
"
|
|
3934
|
-
"
|
|
3658
|
+
"mcp",
|
|
3659
|
+
"configure.js"
|
|
3935
3660
|
]
|
|
3936
3661
|
},
|
|
3937
|
-
"
|
|
3662
|
+
"media:create-aspect": {
|
|
3938
3663
|
"aliases": [],
|
|
3939
3664
|
"args": {},
|
|
3940
|
-
"description": "Create a new
|
|
3665
|
+
"description": "Create a new aspect definition file",
|
|
3941
3666
|
"examples": [
|
|
3942
3667
|
{
|
|
3943
3668
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3944
|
-
"description": "
|
|
3945
|
-
},
|
|
3946
|
-
{
|
|
3947
|
-
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
3948
|
-
"description": "Create an organization named \"Acme Corp\""
|
|
3949
|
-
},
|
|
3950
|
-
{
|
|
3951
|
-
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
3952
|
-
"description": "Create an organization with a default member role"
|
|
3669
|
+
"description": "Create a new aspect definition file"
|
|
3953
3670
|
}
|
|
3954
3671
|
],
|
|
3955
3672
|
"flags": {
|
|
3956
|
-
"
|
|
3957
|
-
"description": "
|
|
3958
|
-
"name": "
|
|
3959
|
-
"required": false,
|
|
3673
|
+
"name": {
|
|
3674
|
+
"description": "Aspect name. Defaults to the title in camel case",
|
|
3675
|
+
"name": "name",
|
|
3960
3676
|
"hasDynamicHelp": false,
|
|
3961
3677
|
"multiple": false,
|
|
3962
3678
|
"type": "option"
|
|
3963
3679
|
},
|
|
3964
|
-
"
|
|
3965
|
-
"description": "
|
|
3966
|
-
"name": "
|
|
3967
|
-
"required": false,
|
|
3680
|
+
"title": {
|
|
3681
|
+
"description": "Aspect title",
|
|
3682
|
+
"name": "title",
|
|
3968
3683
|
"hasDynamicHelp": false,
|
|
3969
3684
|
"multiple": false,
|
|
3970
3685
|
"type": "option"
|
|
3971
3686
|
}
|
|
3972
3687
|
},
|
|
3973
3688
|
"hasDynamicHelp": false,
|
|
3974
|
-
"hiddenAliases": [
|
|
3975
|
-
|
|
3976
|
-
"organisations:create",
|
|
3977
|
-
"organisation:create",
|
|
3978
|
-
"org:create",
|
|
3979
|
-
"orgs:create"
|
|
3980
|
-
],
|
|
3981
|
-
"id": "organizations:create",
|
|
3689
|
+
"hiddenAliases": [],
|
|
3690
|
+
"id": "media:create-aspect",
|
|
3982
3691
|
"pluginAlias": "@sanity/cli",
|
|
3983
3692
|
"pluginName": "@sanity/cli",
|
|
3984
3693
|
"pluginType": "core",
|
|
@@ -3987,48 +3696,59 @@
|
|
|
3987
3696
|
"relativePath": [
|
|
3988
3697
|
"dist",
|
|
3989
3698
|
"commands",
|
|
3990
|
-
"
|
|
3991
|
-
"create.js"
|
|
3699
|
+
"media",
|
|
3700
|
+
"create-aspect.js"
|
|
3992
3701
|
]
|
|
3993
3702
|
},
|
|
3994
|
-
"
|
|
3703
|
+
"media:delete-aspect": {
|
|
3995
3704
|
"aliases": [],
|
|
3996
3705
|
"args": {
|
|
3997
|
-
"
|
|
3998
|
-
"description": "
|
|
3999
|
-
"name": "
|
|
3706
|
+
"aspectName": {
|
|
3707
|
+
"description": "Name of the aspect to delete",
|
|
3708
|
+
"name": "aspectName",
|
|
4000
3709
|
"required": true
|
|
4001
3710
|
}
|
|
4002
3711
|
},
|
|
4003
|
-
"description": "Delete an
|
|
3712
|
+
"description": "Delete an aspect definition",
|
|
4004
3713
|
"examples": [
|
|
4005
3714
|
{
|
|
4006
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4007
|
-
"description": "Delete
|
|
4008
|
-
},
|
|
4009
|
-
{
|
|
4010
|
-
"command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
|
|
4011
|
-
"description": "Delete an organization without confirmation"
|
|
3715
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
3716
|
+
"description": "Delete the aspect named \"someAspect\""
|
|
4012
3717
|
}
|
|
4013
3718
|
],
|
|
4014
3719
|
"flags": {
|
|
4015
|
-
"
|
|
4016
|
-
"
|
|
4017
|
-
"
|
|
3720
|
+
"project-id": {
|
|
3721
|
+
"char": "p",
|
|
3722
|
+
"description": "Project ID to delete media aspect from (overrides CLI configuration)",
|
|
3723
|
+
"helpGroup": "OVERRIDE",
|
|
3724
|
+
"name": "project-id",
|
|
3725
|
+
"hasDynamicHelp": false,
|
|
3726
|
+
"helpValue": "<id>",
|
|
3727
|
+
"multiple": false,
|
|
3728
|
+
"type": "option"
|
|
3729
|
+
},
|
|
3730
|
+
"media-library-id": {
|
|
3731
|
+
"description": "The id of the target media library",
|
|
3732
|
+
"name": "media-library-id",
|
|
3733
|
+
"required": false,
|
|
3734
|
+
"hasDynamicHelp": false,
|
|
3735
|
+
"multiple": false,
|
|
3736
|
+
"type": "option"
|
|
3737
|
+
},
|
|
3738
|
+
"yes": {
|
|
3739
|
+
"aliases": [
|
|
3740
|
+
"y"
|
|
3741
|
+
],
|
|
3742
|
+
"description": "Run without prompts and confirm deletion",
|
|
3743
|
+
"name": "yes",
|
|
4018
3744
|
"required": false,
|
|
4019
3745
|
"allowNo": false,
|
|
4020
3746
|
"type": "boolean"
|
|
4021
3747
|
}
|
|
4022
3748
|
},
|
|
4023
3749
|
"hasDynamicHelp": false,
|
|
4024
|
-
"hiddenAliases": [
|
|
4025
|
-
|
|
4026
|
-
"organisations:delete",
|
|
4027
|
-
"organisation:delete",
|
|
4028
|
-
"org:delete",
|
|
4029
|
-
"orgs:delete"
|
|
4030
|
-
],
|
|
4031
|
-
"id": "organizations:delete",
|
|
3750
|
+
"hiddenAliases": [],
|
|
3751
|
+
"id": "media:delete-aspect",
|
|
4032
3752
|
"pluginAlias": "@sanity/cli",
|
|
4033
3753
|
"pluginName": "@sanity/cli",
|
|
4034
3754
|
"pluginType": "core",
|
|
@@ -4037,36 +3757,60 @@
|
|
|
4037
3757
|
"relativePath": [
|
|
4038
3758
|
"dist",
|
|
4039
3759
|
"commands",
|
|
4040
|
-
"
|
|
4041
|
-
"delete.js"
|
|
3760
|
+
"media",
|
|
3761
|
+
"delete-aspect.js"
|
|
4042
3762
|
]
|
|
4043
3763
|
},
|
|
4044
|
-
"
|
|
3764
|
+
"media:deploy-aspect": {
|
|
4045
3765
|
"aliases": [],
|
|
4046
3766
|
"args": {
|
|
4047
|
-
"
|
|
4048
|
-
"description": "
|
|
4049
|
-
"name": "
|
|
4050
|
-
"required":
|
|
3767
|
+
"aspectName": {
|
|
3768
|
+
"description": "Name of the aspect to deploy",
|
|
3769
|
+
"name": "aspectName",
|
|
3770
|
+
"required": false
|
|
4051
3771
|
}
|
|
4052
3772
|
},
|
|
4053
|
-
"description": "
|
|
3773
|
+
"description": "Deploy an aspect",
|
|
4054
3774
|
"examples": [
|
|
4055
3775
|
{
|
|
4056
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4057
|
-
"description": "
|
|
3776
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
3777
|
+
"description": "Deploy the aspect named \"someAspect\""
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"command": "<%= config.bin %> <%= command.id %> --all",
|
|
3781
|
+
"description": "Deploy all aspects"
|
|
4058
3782
|
}
|
|
4059
3783
|
],
|
|
4060
|
-
"flags": {
|
|
3784
|
+
"flags": {
|
|
3785
|
+
"project-id": {
|
|
3786
|
+
"char": "p",
|
|
3787
|
+
"description": "Project ID to deploy media aspect to (overrides CLI configuration)",
|
|
3788
|
+
"helpGroup": "OVERRIDE",
|
|
3789
|
+
"name": "project-id",
|
|
3790
|
+
"hasDynamicHelp": false,
|
|
3791
|
+
"helpValue": "<id>",
|
|
3792
|
+
"multiple": false,
|
|
3793
|
+
"type": "option"
|
|
3794
|
+
},
|
|
3795
|
+
"all": {
|
|
3796
|
+
"description": "Deploy all aspects",
|
|
3797
|
+
"name": "all",
|
|
3798
|
+
"required": false,
|
|
3799
|
+
"allowNo": false,
|
|
3800
|
+
"type": "boolean"
|
|
3801
|
+
},
|
|
3802
|
+
"media-library-id": {
|
|
3803
|
+
"description": "The id of the target media library",
|
|
3804
|
+
"name": "media-library-id",
|
|
3805
|
+
"required": false,
|
|
3806
|
+
"hasDynamicHelp": false,
|
|
3807
|
+
"multiple": false,
|
|
3808
|
+
"type": "option"
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
4061
3811
|
"hasDynamicHelp": false,
|
|
4062
|
-
"hiddenAliases": [
|
|
4063
|
-
|
|
4064
|
-
"organisations:get",
|
|
4065
|
-
"organisation:get",
|
|
4066
|
-
"org:get",
|
|
4067
|
-
"orgs:get"
|
|
4068
|
-
],
|
|
4069
|
-
"id": "organizations:get",
|
|
3812
|
+
"hiddenAliases": [],
|
|
3813
|
+
"id": "media:deploy-aspect",
|
|
4070
3814
|
"pluginAlias": "@sanity/cli",
|
|
4071
3815
|
"pluginName": "@sanity/cli",
|
|
4072
3816
|
"pluginType": "core",
|
|
@@ -4075,31 +3819,76 @@
|
|
|
4075
3819
|
"relativePath": [
|
|
4076
3820
|
"dist",
|
|
4077
3821
|
"commands",
|
|
4078
|
-
"
|
|
4079
|
-
"
|
|
3822
|
+
"media",
|
|
3823
|
+
"deploy-aspect.js"
|
|
4080
3824
|
]
|
|
4081
3825
|
},
|
|
4082
|
-
"
|
|
3826
|
+
"media:export": {
|
|
4083
3827
|
"aliases": [],
|
|
4084
|
-
"args": {
|
|
4085
|
-
|
|
3828
|
+
"args": {
|
|
3829
|
+
"destination": {
|
|
3830
|
+
"description": "Output destination file path",
|
|
3831
|
+
"name": "destination"
|
|
3832
|
+
}
|
|
3833
|
+
},
|
|
3834
|
+
"description": "Export file and image assets from a media library (excludes video)",
|
|
4086
3835
|
"examples": [
|
|
4087
3836
|
{
|
|
4088
3837
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4089
|
-
"description": "
|
|
3838
|
+
"description": "Export media library interactively"
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
"command": "<%= config.bin %> <%= command.id %> output.tar.gz",
|
|
3842
|
+
"description": "Export media library to output.tar.gz"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
|
|
3846
|
+
"description": "Export specific media library"
|
|
4090
3847
|
}
|
|
4091
3848
|
],
|
|
4092
|
-
"flags": {
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
3849
|
+
"flags": {
|
|
3850
|
+
"project-id": {
|
|
3851
|
+
"char": "p",
|
|
3852
|
+
"description": "Project ID to export media from (overrides CLI configuration)",
|
|
3853
|
+
"helpGroup": "OVERRIDE",
|
|
3854
|
+
"name": "project-id",
|
|
3855
|
+
"hasDynamicHelp": false,
|
|
3856
|
+
"helpValue": "<id>",
|
|
3857
|
+
"multiple": false,
|
|
3858
|
+
"type": "option"
|
|
3859
|
+
},
|
|
3860
|
+
"asset-concurrency": {
|
|
3861
|
+
"description": "Concurrent number of asset downloads",
|
|
3862
|
+
"name": "asset-concurrency",
|
|
3863
|
+
"default": 8,
|
|
3864
|
+
"hasDynamicHelp": false,
|
|
3865
|
+
"multiple": false,
|
|
3866
|
+
"type": "option"
|
|
3867
|
+
},
|
|
3868
|
+
"media-library-id": {
|
|
3869
|
+
"description": "The id of the target media library",
|
|
3870
|
+
"name": "media-library-id",
|
|
3871
|
+
"hasDynamicHelp": false,
|
|
3872
|
+
"multiple": false,
|
|
3873
|
+
"type": "option"
|
|
3874
|
+
},
|
|
3875
|
+
"no-compress": {
|
|
3876
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
3877
|
+
"name": "no-compress",
|
|
3878
|
+
"allowNo": false,
|
|
3879
|
+
"type": "boolean"
|
|
3880
|
+
},
|
|
3881
|
+
"overwrite": {
|
|
3882
|
+
"description": "Overwrite any file with the same name",
|
|
3883
|
+
"name": "overwrite",
|
|
3884
|
+
"allowNo": false,
|
|
3885
|
+
"type": "boolean"
|
|
3886
|
+
}
|
|
3887
|
+
},
|
|
3888
|
+
"hasDynamicHelp": false,
|
|
3889
|
+
"hiddenAliases": [],
|
|
3890
|
+
"id": "media:export",
|
|
3891
|
+
"pluginAlias": "@sanity/cli",
|
|
4103
3892
|
"pluginName": "@sanity/cli",
|
|
4104
3893
|
"pluginType": "core",
|
|
4105
3894
|
"strict": true,
|
|
@@ -4107,69 +3896,337 @@
|
|
|
4107
3896
|
"relativePath": [
|
|
4108
3897
|
"dist",
|
|
4109
3898
|
"commands",
|
|
4110
|
-
"
|
|
4111
|
-
"
|
|
3899
|
+
"media",
|
|
3900
|
+
"export.js"
|
|
4112
3901
|
]
|
|
4113
3902
|
},
|
|
4114
|
-
"
|
|
3903
|
+
"media:import": {
|
|
4115
3904
|
"aliases": [],
|
|
4116
3905
|
"args": {
|
|
4117
|
-
"
|
|
4118
|
-
"description": "
|
|
4119
|
-
"name": "
|
|
3906
|
+
"source": {
|
|
3907
|
+
"description": "Image file or folder to import from",
|
|
3908
|
+
"name": "source",
|
|
4120
3909
|
"required": true
|
|
4121
3910
|
}
|
|
4122
3911
|
},
|
|
4123
|
-
"description": "
|
|
3912
|
+
"description": "Import a set of assets to the target media library.",
|
|
4124
3913
|
"examples": [
|
|
4125
3914
|
{
|
|
4126
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4127
|
-
"description": "
|
|
3915
|
+
"command": "<%= config.bin %> <%= command.id %> products",
|
|
3916
|
+
"description": "Import all assets from the \"products\" directory"
|
|
4128
3917
|
},
|
|
4129
3918
|
{
|
|
4130
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4131
|
-
"description": "
|
|
3919
|
+
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
3920
|
+
"description": "Import all assets from \"gallery\" archive"
|
|
4132
3921
|
},
|
|
4133
3922
|
{
|
|
4134
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4135
|
-
"description": "
|
|
3923
|
+
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
3924
|
+
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
4136
3925
|
}
|
|
4137
3926
|
],
|
|
4138
3927
|
"flags": {
|
|
4139
|
-
"
|
|
4140
|
-
"
|
|
4141
|
-
"
|
|
4142
|
-
"
|
|
3928
|
+
"project-id": {
|
|
3929
|
+
"char": "p",
|
|
3930
|
+
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
3931
|
+
"helpGroup": "OVERRIDE",
|
|
3932
|
+
"name": "project-id",
|
|
4143
3933
|
"hasDynamicHelp": false,
|
|
3934
|
+
"helpValue": "<id>",
|
|
4144
3935
|
"multiple": false,
|
|
4145
3936
|
"type": "option"
|
|
4146
3937
|
},
|
|
4147
|
-
"
|
|
4148
|
-
"description": "
|
|
4149
|
-
"name": "
|
|
4150
|
-
"
|
|
3938
|
+
"media-library-id": {
|
|
3939
|
+
"description": "The id of the target media library",
|
|
3940
|
+
"name": "media-library-id",
|
|
3941
|
+
"hasDynamicHelp": false,
|
|
3942
|
+
"multiple": false,
|
|
3943
|
+
"type": "option"
|
|
3944
|
+
},
|
|
3945
|
+
"replace-aspects": {
|
|
3946
|
+
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
3947
|
+
"name": "replace-aspects",
|
|
3948
|
+
"allowNo": false,
|
|
3949
|
+
"type": "boolean"
|
|
3950
|
+
}
|
|
3951
|
+
},
|
|
3952
|
+
"hasDynamicHelp": false,
|
|
3953
|
+
"hiddenAliases": [],
|
|
3954
|
+
"id": "media:import",
|
|
3955
|
+
"pluginAlias": "@sanity/cli",
|
|
3956
|
+
"pluginName": "@sanity/cli",
|
|
3957
|
+
"pluginType": "core",
|
|
3958
|
+
"strict": true,
|
|
3959
|
+
"isESM": true,
|
|
3960
|
+
"relativePath": [
|
|
3961
|
+
"dist",
|
|
3962
|
+
"commands",
|
|
3963
|
+
"media",
|
|
3964
|
+
"import.js"
|
|
3965
|
+
]
|
|
3966
|
+
},
|
|
3967
|
+
"migrations:create": {
|
|
3968
|
+
"aliases": [],
|
|
3969
|
+
"args": {
|
|
3970
|
+
"title": {
|
|
3971
|
+
"description": "Title of migration",
|
|
3972
|
+
"name": "title",
|
|
3973
|
+
"required": false
|
|
3974
|
+
}
|
|
3975
|
+
},
|
|
3976
|
+
"description": "Create a new migration within your project",
|
|
3977
|
+
"examples": [
|
|
3978
|
+
{
|
|
3979
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3980
|
+
"description": "Create a new migration, prompting for title and options"
|
|
3981
|
+
},
|
|
3982
|
+
{
|
|
3983
|
+
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
3984
|
+
"description": "Create a new migration with the provided title, prompting for options"
|
|
3985
|
+
}
|
|
3986
|
+
],
|
|
3987
|
+
"flags": {},
|
|
3988
|
+
"hasDynamicHelp": false,
|
|
3989
|
+
"hiddenAliases": [
|
|
3990
|
+
"migration:create"
|
|
3991
|
+
],
|
|
3992
|
+
"id": "migrations:create",
|
|
3993
|
+
"pluginAlias": "@sanity/cli",
|
|
3994
|
+
"pluginName": "@sanity/cli",
|
|
3995
|
+
"pluginType": "core",
|
|
3996
|
+
"strict": true,
|
|
3997
|
+
"isESM": true,
|
|
3998
|
+
"relativePath": [
|
|
3999
|
+
"dist",
|
|
4000
|
+
"commands",
|
|
4001
|
+
"migrations",
|
|
4002
|
+
"create.js"
|
|
4003
|
+
]
|
|
4004
|
+
},
|
|
4005
|
+
"migrations:list": {
|
|
4006
|
+
"aliases": [],
|
|
4007
|
+
"args": {},
|
|
4008
|
+
"description": "List available migrations",
|
|
4009
|
+
"examples": [
|
|
4010
|
+
{
|
|
4011
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4012
|
+
"description": "List all available migrations in the project"
|
|
4013
|
+
}
|
|
4014
|
+
],
|
|
4015
|
+
"flags": {},
|
|
4016
|
+
"hasDynamicHelp": false,
|
|
4017
|
+
"hiddenAliases": [
|
|
4018
|
+
"migration:list"
|
|
4019
|
+
],
|
|
4020
|
+
"id": "migrations:list",
|
|
4021
|
+
"pluginAlias": "@sanity/cli",
|
|
4022
|
+
"pluginName": "@sanity/cli",
|
|
4023
|
+
"pluginType": "core",
|
|
4024
|
+
"strict": true,
|
|
4025
|
+
"isESM": true,
|
|
4026
|
+
"relativePath": [
|
|
4027
|
+
"dist",
|
|
4028
|
+
"commands",
|
|
4029
|
+
"migrations",
|
|
4030
|
+
"list.js"
|
|
4031
|
+
]
|
|
4032
|
+
},
|
|
4033
|
+
"migrations:run": {
|
|
4034
|
+
"aliases": [],
|
|
4035
|
+
"args": {
|
|
4036
|
+
"id": {
|
|
4037
|
+
"description": "ID",
|
|
4038
|
+
"name": "id",
|
|
4039
|
+
"required": false
|
|
4040
|
+
}
|
|
4041
|
+
},
|
|
4042
|
+
"description": "Run a migration against a dataset",
|
|
4043
|
+
"examples": [
|
|
4044
|
+
{
|
|
4045
|
+
"command": "<%= config.bin %> <%= command.id %> <id>",
|
|
4046
|
+
"description": "dry run the migration"
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
4050
|
+
"description": "execute the migration against a dataset"
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
|
|
4054
|
+
"description": "execute the migration using a dataset export as the source"
|
|
4055
|
+
}
|
|
4056
|
+
],
|
|
4057
|
+
"flags": {
|
|
4058
|
+
"api-version": {
|
|
4059
|
+
"description": "API version to use when migrating. Defaults to v2024-01-29.",
|
|
4060
|
+
"name": "api-version",
|
|
4151
4061
|
"hasDynamicHelp": false,
|
|
4152
4062
|
"multiple": false,
|
|
4153
4063
|
"type": "option"
|
|
4154
4064
|
},
|
|
4065
|
+
"concurrency": {
|
|
4066
|
+
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
4067
|
+
"name": "concurrency",
|
|
4068
|
+
"default": 6,
|
|
4069
|
+
"hasDynamicHelp": false,
|
|
4070
|
+
"multiple": false,
|
|
4071
|
+
"type": "option"
|
|
4072
|
+
},
|
|
4073
|
+
"confirm": {
|
|
4074
|
+
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
4075
|
+
"name": "confirm",
|
|
4076
|
+
"allowNo": true,
|
|
4077
|
+
"type": "boolean"
|
|
4078
|
+
},
|
|
4079
|
+
"dataset": {
|
|
4080
|
+
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
4081
|
+
"name": "dataset",
|
|
4082
|
+
"hasDynamicHelp": false,
|
|
4083
|
+
"multiple": false,
|
|
4084
|
+
"type": "option"
|
|
4085
|
+
},
|
|
4086
|
+
"dry-run": {
|
|
4087
|
+
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
4088
|
+
"name": "dry-run",
|
|
4089
|
+
"allowNo": true,
|
|
4090
|
+
"type": "boolean"
|
|
4091
|
+
},
|
|
4092
|
+
"from-export": {
|
|
4093
|
+
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
4094
|
+
"name": "from-export",
|
|
4095
|
+
"hasDynamicHelp": false,
|
|
4096
|
+
"multiple": false,
|
|
4097
|
+
"type": "option"
|
|
4098
|
+
},
|
|
4099
|
+
"progress": {
|
|
4100
|
+
"description": "Display progress during migration (default: true). Use --no-progress to hide output.",
|
|
4101
|
+
"name": "progress",
|
|
4102
|
+
"allowNo": true,
|
|
4103
|
+
"type": "boolean"
|
|
4104
|
+
},
|
|
4105
|
+
"project": {
|
|
4106
|
+
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
4107
|
+
"name": "project",
|
|
4108
|
+
"hasDynamicHelp": false,
|
|
4109
|
+
"multiple": false,
|
|
4110
|
+
"type": "option"
|
|
4111
|
+
}
|
|
4112
|
+
},
|
|
4113
|
+
"hasDynamicHelp": false,
|
|
4114
|
+
"hiddenAliases": [
|
|
4115
|
+
"migration:run"
|
|
4116
|
+
],
|
|
4117
|
+
"id": "migrations:run",
|
|
4118
|
+
"pluginAlias": "@sanity/cli",
|
|
4119
|
+
"pluginName": "@sanity/cli",
|
|
4120
|
+
"pluginType": "core",
|
|
4121
|
+
"strict": true,
|
|
4122
|
+
"isESM": true,
|
|
4123
|
+
"relativePath": [
|
|
4124
|
+
"dist",
|
|
4125
|
+
"commands",
|
|
4126
|
+
"migrations",
|
|
4127
|
+
"run.js"
|
|
4128
|
+
]
|
|
4129
|
+
},
|
|
4130
|
+
"openapi:get": {
|
|
4131
|
+
"aliases": [],
|
|
4132
|
+
"args": {
|
|
4155
4133
|
"slug": {
|
|
4156
|
-
"description": "
|
|
4134
|
+
"description": "Slug of the OpenAPI specification to retrieve",
|
|
4157
4135
|
"name": "slug",
|
|
4158
|
-
"required":
|
|
4136
|
+
"required": true
|
|
4137
|
+
}
|
|
4138
|
+
},
|
|
4139
|
+
"description": "Get an OpenAPI specification by slug",
|
|
4140
|
+
"examples": [
|
|
4141
|
+
{
|
|
4142
|
+
"command": "<%= config.bin %> <%= command.id %> query",
|
|
4143
|
+
"description": "Get a specification (YAML format, default)"
|
|
4144
|
+
},
|
|
4145
|
+
{
|
|
4146
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
4147
|
+
"description": "Get specification in JSON format"
|
|
4148
|
+
},
|
|
4149
|
+
{
|
|
4150
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
4151
|
+
"description": "Open specification in browser"
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
4155
|
+
"description": "Pipe to file"
|
|
4156
|
+
}
|
|
4157
|
+
],
|
|
4158
|
+
"flags": {
|
|
4159
|
+
"format": {
|
|
4160
|
+
"description": "Output format: yaml (default), json",
|
|
4161
|
+
"name": "format",
|
|
4162
|
+
"default": "yaml",
|
|
4159
4163
|
"hasDynamicHelp": false,
|
|
4160
4164
|
"multiple": false,
|
|
4165
|
+
"options": [
|
|
4166
|
+
"yaml",
|
|
4167
|
+
"json"
|
|
4168
|
+
],
|
|
4161
4169
|
"type": "option"
|
|
4170
|
+
},
|
|
4171
|
+
"web": {
|
|
4172
|
+
"char": "w",
|
|
4173
|
+
"description": "Open in web browser",
|
|
4174
|
+
"name": "web",
|
|
4175
|
+
"allowNo": false,
|
|
4176
|
+
"type": "boolean"
|
|
4162
4177
|
}
|
|
4163
4178
|
},
|
|
4164
4179
|
"hasDynamicHelp": false,
|
|
4165
|
-
"hiddenAliases": [
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4180
|
+
"hiddenAliases": [],
|
|
4181
|
+
"id": "openapi:get",
|
|
4182
|
+
"pluginAlias": "@sanity/cli",
|
|
4183
|
+
"pluginName": "@sanity/cli",
|
|
4184
|
+
"pluginType": "core",
|
|
4185
|
+
"strict": true,
|
|
4186
|
+
"isESM": true,
|
|
4187
|
+
"relativePath": [
|
|
4188
|
+
"dist",
|
|
4189
|
+
"commands",
|
|
4190
|
+
"openapi",
|
|
4191
|
+
"get.js"
|
|
4192
|
+
]
|
|
4193
|
+
},
|
|
4194
|
+
"openapi:list": {
|
|
4195
|
+
"aliases": [],
|
|
4196
|
+
"args": {},
|
|
4197
|
+
"description": "List all available OpenAPI specifications",
|
|
4198
|
+
"examples": [
|
|
4199
|
+
{
|
|
4200
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4201
|
+
"description": "List all available OpenAPI specs"
|
|
4202
|
+
},
|
|
4203
|
+
{
|
|
4204
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4205
|
+
"description": "List with JSON output"
|
|
4206
|
+
},
|
|
4207
|
+
{
|
|
4208
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
4209
|
+
"description": "Open HTTP Reference in browser"
|
|
4210
|
+
}
|
|
4171
4211
|
],
|
|
4172
|
-
"
|
|
4212
|
+
"flags": {
|
|
4213
|
+
"json": {
|
|
4214
|
+
"description": "Output JSON",
|
|
4215
|
+
"name": "json",
|
|
4216
|
+
"allowNo": false,
|
|
4217
|
+
"type": "boolean"
|
|
4218
|
+
},
|
|
4219
|
+
"web": {
|
|
4220
|
+
"char": "w",
|
|
4221
|
+
"description": "Open HTTP Reference in web browser",
|
|
4222
|
+
"name": "web",
|
|
4223
|
+
"allowNo": false,
|
|
4224
|
+
"type": "boolean"
|
|
4225
|
+
}
|
|
4226
|
+
},
|
|
4227
|
+
"hasDynamicHelp": false,
|
|
4228
|
+
"hiddenAliases": [],
|
|
4229
|
+
"id": "openapi:list",
|
|
4173
4230
|
"pluginAlias": "@sanity/cli",
|
|
4174
4231
|
"pluginName": "@sanity/cli",
|
|
4175
4232
|
"pluginType": "core",
|
|
@@ -4178,88 +4235,55 @@
|
|
|
4178
4235
|
"relativePath": [
|
|
4179
4236
|
"dist",
|
|
4180
4237
|
"commands",
|
|
4181
|
-
"
|
|
4182
|
-
"
|
|
4238
|
+
"openapi",
|
|
4239
|
+
"list.js"
|
|
4183
4240
|
]
|
|
4184
4241
|
},
|
|
4185
|
-
"
|
|
4242
|
+
"organizations:create": {
|
|
4186
4243
|
"aliases": [],
|
|
4187
|
-
"args": {
|
|
4188
|
-
|
|
4189
|
-
"description": "Name of the project to create",
|
|
4190
|
-
"name": "projectName",
|
|
4191
|
-
"required": false
|
|
4192
|
-
}
|
|
4193
|
-
},
|
|
4194
|
-
"description": "Create a new Sanity project",
|
|
4244
|
+
"args": {},
|
|
4245
|
+
"description": "Create a new organization",
|
|
4195
4246
|
"examples": [
|
|
4196
4247
|
{
|
|
4197
4248
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4198
|
-
"description": "Interactively create
|
|
4199
|
-
},
|
|
4200
|
-
{
|
|
4201
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
4202
|
-
"description": "Create a project named \"My New Project\""
|
|
4203
|
-
},
|
|
4204
|
-
{
|
|
4205
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
4206
|
-
"description": "Create a project in a specific organization"
|
|
4249
|
+
"description": "Interactively create an organization"
|
|
4207
4250
|
},
|
|
4208
4251
|
{
|
|
4209
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
4210
|
-
"description": "Create
|
|
4252
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
4253
|
+
"description": "Create an organization named \"Acme Corp\""
|
|
4211
4254
|
},
|
|
4212
4255
|
{
|
|
4213
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
4214
|
-
"description": "Create
|
|
4256
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
4257
|
+
"description": "Create an organization with a default member role"
|
|
4215
4258
|
}
|
|
4216
4259
|
],
|
|
4217
4260
|
"flags": {
|
|
4218
|
-
"
|
|
4219
|
-
"description": "
|
|
4220
|
-
"name": "
|
|
4221
|
-
"
|
|
4222
|
-
"multiple": false,
|
|
4223
|
-
"type": "option"
|
|
4224
|
-
},
|
|
4225
|
-
"dataset-visibility": {
|
|
4226
|
-
"description": "Dataset visibility: public or private",
|
|
4227
|
-
"name": "dataset-visibility",
|
|
4261
|
+
"default-role": {
|
|
4262
|
+
"description": "Default role assigned to new members",
|
|
4263
|
+
"name": "default-role",
|
|
4264
|
+
"required": false,
|
|
4228
4265
|
"hasDynamicHelp": false,
|
|
4229
4266
|
"multiple": false,
|
|
4230
|
-
"options": [
|
|
4231
|
-
"private",
|
|
4232
|
-
"public"
|
|
4233
|
-
],
|
|
4234
4267
|
"type": "option"
|
|
4235
4268
|
},
|
|
4236
|
-
"
|
|
4237
|
-
"description": "
|
|
4238
|
-
"name": "
|
|
4239
|
-
"
|
|
4240
|
-
"type": "boolean"
|
|
4241
|
-
},
|
|
4242
|
-
"organization": {
|
|
4243
|
-
"description": "Organization to create the project in",
|
|
4244
|
-
"name": "organization",
|
|
4269
|
+
"name": {
|
|
4270
|
+
"description": "Organization name",
|
|
4271
|
+
"name": "name",
|
|
4272
|
+
"required": false,
|
|
4245
4273
|
"hasDynamicHelp": false,
|
|
4246
|
-
"helpValue": "<slug|id>",
|
|
4247
4274
|
"multiple": false,
|
|
4248
4275
|
"type": "option"
|
|
4249
|
-
},
|
|
4250
|
-
"yes": {
|
|
4251
|
-
"char": "y",
|
|
4252
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
4253
|
-
"name": "yes",
|
|
4254
|
-
"allowNo": false,
|
|
4255
|
-
"type": "boolean"
|
|
4256
4276
|
}
|
|
4257
4277
|
},
|
|
4258
4278
|
"hasDynamicHelp": false,
|
|
4259
4279
|
"hiddenAliases": [
|
|
4260
|
-
"
|
|
4280
|
+
"organization:create",
|
|
4281
|
+
"organisations:create",
|
|
4282
|
+
"organisation:create",
|
|
4283
|
+
"org:create",
|
|
4284
|
+
"orgs:create"
|
|
4261
4285
|
],
|
|
4262
|
-
"id": "
|
|
4286
|
+
"id": "organizations:create",
|
|
4263
4287
|
"pluginAlias": "@sanity/cli",
|
|
4264
4288
|
"pluginName": "@sanity/cli",
|
|
4265
4289
|
"pluginType": "core",
|
|
@@ -4268,58 +4292,48 @@
|
|
|
4268
4292
|
"relativePath": [
|
|
4269
4293
|
"dist",
|
|
4270
4294
|
"commands",
|
|
4271
|
-
"
|
|
4295
|
+
"organizations",
|
|
4272
4296
|
"create.js"
|
|
4273
4297
|
]
|
|
4274
4298
|
},
|
|
4275
|
-
"
|
|
4299
|
+
"organizations:delete": {
|
|
4276
4300
|
"aliases": [],
|
|
4277
|
-
"args": {
|
|
4278
|
-
|
|
4301
|
+
"args": {
|
|
4302
|
+
"organizationId": {
|
|
4303
|
+
"description": "Organization ID to delete",
|
|
4304
|
+
"name": "organizationId",
|
|
4305
|
+
"required": true
|
|
4306
|
+
}
|
|
4307
|
+
},
|
|
4308
|
+
"description": "Delete an organization",
|
|
4279
4309
|
"examples": [
|
|
4280
4310
|
{
|
|
4281
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4282
|
-
"description": "
|
|
4311
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
4312
|
+
"description": "Delete an organization (prompts for confirmation)"
|
|
4283
4313
|
},
|
|
4284
4314
|
{
|
|
4285
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4286
|
-
"description": "
|
|
4315
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
|
|
4316
|
+
"description": "Delete an organization without confirmation"
|
|
4287
4317
|
}
|
|
4288
4318
|
],
|
|
4289
4319
|
"flags": {
|
|
4290
|
-
"
|
|
4291
|
-
"description": "
|
|
4292
|
-
"name": "
|
|
4293
|
-
"
|
|
4294
|
-
"
|
|
4295
|
-
"
|
|
4296
|
-
"options": [
|
|
4297
|
-
"asc",
|
|
4298
|
-
"desc"
|
|
4299
|
-
],
|
|
4300
|
-
"type": "option"
|
|
4301
|
-
},
|
|
4302
|
-
"sort": {
|
|
4303
|
-
"description": "Sort field",
|
|
4304
|
-
"name": "sort",
|
|
4305
|
-
"default": "created",
|
|
4306
|
-
"hasDynamicHelp": false,
|
|
4307
|
-
"multiple": false,
|
|
4308
|
-
"options": [
|
|
4309
|
-
"id",
|
|
4310
|
-
"members",
|
|
4311
|
-
"name",
|
|
4312
|
-
"url",
|
|
4313
|
-
"created"
|
|
4314
|
-
],
|
|
4315
|
-
"type": "option"
|
|
4320
|
+
"force": {
|
|
4321
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
4322
|
+
"name": "force",
|
|
4323
|
+
"required": false,
|
|
4324
|
+
"allowNo": false,
|
|
4325
|
+
"type": "boolean"
|
|
4316
4326
|
}
|
|
4317
4327
|
},
|
|
4318
4328
|
"hasDynamicHelp": false,
|
|
4319
4329
|
"hiddenAliases": [
|
|
4320
|
-
"
|
|
4330
|
+
"organization:delete",
|
|
4331
|
+
"organisations:delete",
|
|
4332
|
+
"organisation:delete",
|
|
4333
|
+
"org:delete",
|
|
4334
|
+
"orgs:delete"
|
|
4321
4335
|
],
|
|
4322
|
-
"id": "
|
|
4336
|
+
"id": "organizations:delete",
|
|
4323
4337
|
"pluginAlias": "@sanity/cli",
|
|
4324
4338
|
"pluginName": "@sanity/cli",
|
|
4325
4339
|
"pluginType": "core",
|
|
@@ -4328,38 +4342,36 @@
|
|
|
4328
4342
|
"relativePath": [
|
|
4329
4343
|
"dist",
|
|
4330
4344
|
"commands",
|
|
4331
|
-
"
|
|
4332
|
-
"
|
|
4345
|
+
"organizations",
|
|
4346
|
+
"delete.js"
|
|
4333
4347
|
]
|
|
4334
4348
|
},
|
|
4335
|
-
"
|
|
4349
|
+
"organizations:get": {
|
|
4336
4350
|
"aliases": [],
|
|
4337
|
-
"args": {
|
|
4338
|
-
|
|
4351
|
+
"args": {
|
|
4352
|
+
"organizationId": {
|
|
4353
|
+
"description": "Organization ID",
|
|
4354
|
+
"name": "organizationId",
|
|
4355
|
+
"required": true
|
|
4356
|
+
}
|
|
4357
|
+
},
|
|
4358
|
+
"description": "Get details of an organization",
|
|
4339
4359
|
"examples": [
|
|
4340
4360
|
{
|
|
4341
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4342
|
-
"description": "
|
|
4343
|
-
},
|
|
4344
|
-
{
|
|
4345
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4346
|
-
"description": "Show recovery details for one project"
|
|
4361
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
4362
|
+
"description": "Get details of a specific organization"
|
|
4347
4363
|
}
|
|
4348
4364
|
],
|
|
4349
|
-
"flags": {
|
|
4350
|
-
"project-id": {
|
|
4351
|
-
"description": "Project ID to recover",
|
|
4352
|
-
"name": "project-id",
|
|
4353
|
-
"hasDynamicHelp": false,
|
|
4354
|
-
"multiple": false,
|
|
4355
|
-
"type": "option"
|
|
4356
|
-
}
|
|
4357
|
-
},
|
|
4365
|
+
"flags": {},
|
|
4358
4366
|
"hasDynamicHelp": false,
|
|
4359
4367
|
"hiddenAliases": [
|
|
4360
|
-
"
|
|
4368
|
+
"organization:get",
|
|
4369
|
+
"organisations:get",
|
|
4370
|
+
"organisation:get",
|
|
4371
|
+
"org:get",
|
|
4372
|
+
"orgs:get"
|
|
4361
4373
|
],
|
|
4362
|
-
"id": "
|
|
4374
|
+
"id": "organizations:get",
|
|
4363
4375
|
"pluginAlias": "@sanity/cli",
|
|
4364
4376
|
"pluginName": "@sanity/cli",
|
|
4365
4377
|
"pluginType": "core",
|
|
@@ -4368,39 +4380,30 @@
|
|
|
4368
4380
|
"relativePath": [
|
|
4369
4381
|
"dist",
|
|
4370
4382
|
"commands",
|
|
4371
|
-
"
|
|
4372
|
-
"
|
|
4383
|
+
"organizations",
|
|
4384
|
+
"get.js"
|
|
4373
4385
|
]
|
|
4374
4386
|
},
|
|
4375
|
-
"
|
|
4387
|
+
"organizations:list": {
|
|
4376
4388
|
"aliases": [],
|
|
4377
4389
|
"args": {},
|
|
4378
|
-
"description": "
|
|
4390
|
+
"description": "List organizations you are a member of",
|
|
4379
4391
|
"examples": [
|
|
4380
4392
|
{
|
|
4381
4393
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4382
|
-
"description": "
|
|
4394
|
+
"description": "List all your organizations"
|
|
4383
4395
|
}
|
|
4384
4396
|
],
|
|
4385
|
-
"flags": {
|
|
4386
|
-
"name": {
|
|
4387
|
-
"description": "Aspect name. Defaults to the title in camel case",
|
|
4388
|
-
"name": "name",
|
|
4389
|
-
"hasDynamicHelp": false,
|
|
4390
|
-
"multiple": false,
|
|
4391
|
-
"type": "option"
|
|
4392
|
-
},
|
|
4393
|
-
"title": {
|
|
4394
|
-
"description": "Aspect title",
|
|
4395
|
-
"name": "title",
|
|
4396
|
-
"hasDynamicHelp": false,
|
|
4397
|
-
"multiple": false,
|
|
4398
|
-
"type": "option"
|
|
4399
|
-
}
|
|
4400
|
-
},
|
|
4397
|
+
"flags": {},
|
|
4401
4398
|
"hasDynamicHelp": false,
|
|
4402
|
-
"hiddenAliases": [
|
|
4403
|
-
|
|
4399
|
+
"hiddenAliases": [
|
|
4400
|
+
"organization:list",
|
|
4401
|
+
"organisations:list",
|
|
4402
|
+
"organisation:list",
|
|
4403
|
+
"org:list",
|
|
4404
|
+
"orgs:list"
|
|
4405
|
+
],
|
|
4406
|
+
"id": "organizations:list",
|
|
4404
4407
|
"pluginAlias": "@sanity/cli",
|
|
4405
4408
|
"pluginName": "@sanity/cli",
|
|
4406
4409
|
"pluginType": "core",
|
|
@@ -4409,59 +4412,69 @@
|
|
|
4409
4412
|
"relativePath": [
|
|
4410
4413
|
"dist",
|
|
4411
4414
|
"commands",
|
|
4412
|
-
"
|
|
4413
|
-
"
|
|
4415
|
+
"organizations",
|
|
4416
|
+
"list.js"
|
|
4414
4417
|
]
|
|
4415
4418
|
},
|
|
4416
|
-
"
|
|
4419
|
+
"organizations:update": {
|
|
4417
4420
|
"aliases": [],
|
|
4418
4421
|
"args": {
|
|
4419
|
-
"
|
|
4420
|
-
"description": "
|
|
4421
|
-
"name": "
|
|
4422
|
+
"organizationId": {
|
|
4423
|
+
"description": "Organization ID",
|
|
4424
|
+
"name": "organizationId",
|
|
4422
4425
|
"required": true
|
|
4423
4426
|
}
|
|
4424
4427
|
},
|
|
4425
|
-
"description": "
|
|
4428
|
+
"description": "Update an organization",
|
|
4426
4429
|
"examples": [
|
|
4427
4430
|
{
|
|
4428
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4429
|
-
"description": "
|
|
4430
|
-
}
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
|
|
4436
|
-
"
|
|
4437
|
-
"
|
|
4431
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
|
|
4432
|
+
"description": "Rename an organization"
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
|
|
4436
|
+
"description": "Set the organization slug (requires authSAML feature)"
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
4440
|
+
"description": "Change the default member role"
|
|
4441
|
+
}
|
|
4442
|
+
],
|
|
4443
|
+
"flags": {
|
|
4444
|
+
"default-role": {
|
|
4445
|
+
"description": "New default role for new members",
|
|
4446
|
+
"name": "default-role",
|
|
4447
|
+
"required": false,
|
|
4438
4448
|
"hasDynamicHelp": false,
|
|
4439
|
-
"helpValue": "<id>",
|
|
4440
4449
|
"multiple": false,
|
|
4441
4450
|
"type": "option"
|
|
4442
4451
|
},
|
|
4443
|
-
"
|
|
4444
|
-
"description": "
|
|
4445
|
-
"name": "
|
|
4452
|
+
"name": {
|
|
4453
|
+
"description": "New organization name",
|
|
4454
|
+
"name": "name",
|
|
4446
4455
|
"required": false,
|
|
4447
4456
|
"hasDynamicHelp": false,
|
|
4448
4457
|
"multiple": false,
|
|
4449
4458
|
"type": "option"
|
|
4450
4459
|
},
|
|
4451
|
-
"
|
|
4452
|
-
"
|
|
4453
|
-
|
|
4454
|
-
],
|
|
4455
|
-
"description": "Run without prompts and confirm deletion",
|
|
4456
|
-
"name": "yes",
|
|
4460
|
+
"slug": {
|
|
4461
|
+
"description": "New URL slug (requires authSAML feature on the organization)",
|
|
4462
|
+
"name": "slug",
|
|
4457
4463
|
"required": false,
|
|
4458
|
-
"
|
|
4459
|
-
"
|
|
4464
|
+
"hasDynamicHelp": false,
|
|
4465
|
+
"multiple": false,
|
|
4466
|
+
"type": "option"
|
|
4460
4467
|
}
|
|
4461
4468
|
},
|
|
4462
4469
|
"hasDynamicHelp": false,
|
|
4463
|
-
"hiddenAliases": [
|
|
4464
|
-
|
|
4470
|
+
"hiddenAliases": [
|
|
4471
|
+
"organization:update",
|
|
4472
|
+
"organisations:update",
|
|
4473
|
+
"organisation:update",
|
|
4474
|
+
"org:update",
|
|
4475
|
+
"orgs:update"
|
|
4476
|
+
],
|
|
4477
|
+
"id": "organizations:update",
|
|
4465
4478
|
"pluginAlias": "@sanity/cli",
|
|
4466
4479
|
"pluginName": "@sanity/cli",
|
|
4467
4480
|
"pluginType": "core",
|
|
@@ -4470,60 +4483,88 @@
|
|
|
4470
4483
|
"relativePath": [
|
|
4471
4484
|
"dist",
|
|
4472
4485
|
"commands",
|
|
4473
|
-
"
|
|
4474
|
-
"
|
|
4486
|
+
"organizations",
|
|
4487
|
+
"update.js"
|
|
4475
4488
|
]
|
|
4476
4489
|
},
|
|
4477
|
-
"
|
|
4490
|
+
"projects:create": {
|
|
4478
4491
|
"aliases": [],
|
|
4479
4492
|
"args": {
|
|
4480
|
-
"
|
|
4481
|
-
"description": "Name of the
|
|
4482
|
-
"name": "
|
|
4493
|
+
"projectName": {
|
|
4494
|
+
"description": "Name of the project to create",
|
|
4495
|
+
"name": "projectName",
|
|
4483
4496
|
"required": false
|
|
4484
4497
|
}
|
|
4485
4498
|
},
|
|
4486
|
-
"description": "
|
|
4499
|
+
"description": "Create a new Sanity project",
|
|
4487
4500
|
"examples": [
|
|
4488
4501
|
{
|
|
4489
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4490
|
-
"description": "
|
|
4502
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4503
|
+
"description": "Interactively create a project"
|
|
4491
4504
|
},
|
|
4492
4505
|
{
|
|
4493
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4494
|
-
"description": "
|
|
4506
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
4507
|
+
"description": "Create a project named \"My New Project\""
|
|
4508
|
+
},
|
|
4509
|
+
{
|
|
4510
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
4511
|
+
"description": "Create a project in a specific organization"
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
4515
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
4519
|
+
"description": "Create a project non-interactively with JSON output"
|
|
4495
4520
|
}
|
|
4496
4521
|
],
|
|
4497
4522
|
"flags": {
|
|
4498
|
-
"
|
|
4499
|
-
"
|
|
4500
|
-
"
|
|
4501
|
-
"helpGroup": "OVERRIDE",
|
|
4502
|
-
"name": "project-id",
|
|
4523
|
+
"dataset": {
|
|
4524
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
4525
|
+
"name": "dataset",
|
|
4503
4526
|
"hasDynamicHelp": false,
|
|
4504
|
-
"helpValue": "<id>",
|
|
4505
4527
|
"multiple": false,
|
|
4506
4528
|
"type": "option"
|
|
4507
4529
|
},
|
|
4508
|
-
"
|
|
4509
|
-
"description": "
|
|
4510
|
-
"name": "
|
|
4511
|
-
"
|
|
4530
|
+
"dataset-visibility": {
|
|
4531
|
+
"description": "Dataset visibility: public or private",
|
|
4532
|
+
"name": "dataset-visibility",
|
|
4533
|
+
"hasDynamicHelp": false,
|
|
4534
|
+
"multiple": false,
|
|
4535
|
+
"options": [
|
|
4536
|
+
"private",
|
|
4537
|
+
"public"
|
|
4538
|
+
],
|
|
4539
|
+
"type": "option"
|
|
4540
|
+
},
|
|
4541
|
+
"json": {
|
|
4542
|
+
"description": "Output in JSON format",
|
|
4543
|
+
"name": "json",
|
|
4512
4544
|
"allowNo": false,
|
|
4513
4545
|
"type": "boolean"
|
|
4514
4546
|
},
|
|
4515
|
-
"
|
|
4516
|
-
"description": "
|
|
4517
|
-
"name": "
|
|
4518
|
-
"required": false,
|
|
4547
|
+
"organization": {
|
|
4548
|
+
"description": "Organization to create the project in",
|
|
4549
|
+
"name": "organization",
|
|
4519
4550
|
"hasDynamicHelp": false,
|
|
4551
|
+
"helpValue": "<slug|id>",
|
|
4520
4552
|
"multiple": false,
|
|
4521
4553
|
"type": "option"
|
|
4554
|
+
},
|
|
4555
|
+
"yes": {
|
|
4556
|
+
"char": "y",
|
|
4557
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
4558
|
+
"name": "yes",
|
|
4559
|
+
"allowNo": false,
|
|
4560
|
+
"type": "boolean"
|
|
4522
4561
|
}
|
|
4523
4562
|
},
|
|
4524
4563
|
"hasDynamicHelp": false,
|
|
4525
|
-
"hiddenAliases": [
|
|
4526
|
-
|
|
4564
|
+
"hiddenAliases": [
|
|
4565
|
+
"project:create"
|
|
4566
|
+
],
|
|
4567
|
+
"id": "projects:create",
|
|
4527
4568
|
"pluginAlias": "@sanity/cli",
|
|
4528
4569
|
"pluginName": "@sanity/cli",
|
|
4529
4570
|
"pluginType": "core",
|
|
@@ -4532,75 +4573,58 @@
|
|
|
4532
4573
|
"relativePath": [
|
|
4533
4574
|
"dist",
|
|
4534
4575
|
"commands",
|
|
4535
|
-
"
|
|
4536
|
-
"
|
|
4576
|
+
"projects",
|
|
4577
|
+
"create.js"
|
|
4537
4578
|
]
|
|
4538
4579
|
},
|
|
4539
|
-
"
|
|
4580
|
+
"projects:list": {
|
|
4540
4581
|
"aliases": [],
|
|
4541
|
-
"args": {
|
|
4542
|
-
|
|
4543
|
-
"description": "Output destination file path",
|
|
4544
|
-
"name": "destination"
|
|
4545
|
-
}
|
|
4546
|
-
},
|
|
4547
|
-
"description": "Export file and image assets from a media library (excludes video)",
|
|
4582
|
+
"args": {},
|
|
4583
|
+
"description": "List your projects",
|
|
4548
4584
|
"examples": [
|
|
4549
4585
|
{
|
|
4550
4586
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4551
|
-
"description": "
|
|
4552
|
-
},
|
|
4553
|
-
{
|
|
4554
|
-
"command": "<%= config.bin %> <%= command.id %> output.tar.gz",
|
|
4555
|
-
"description": "Export media library to output.tar.gz"
|
|
4587
|
+
"description": "List projects"
|
|
4556
4588
|
},
|
|
4557
4589
|
{
|
|
4558
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4559
|
-
"description": "
|
|
4590
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
4591
|
+
"description": "List projects sorted by member count, ascending"
|
|
4560
4592
|
}
|
|
4561
4593
|
],
|
|
4562
4594
|
"flags": {
|
|
4563
|
-
"
|
|
4564
|
-
"
|
|
4565
|
-
"
|
|
4566
|
-
"
|
|
4567
|
-
"name": "project-id",
|
|
4568
|
-
"hasDynamicHelp": false,
|
|
4569
|
-
"helpValue": "<id>",
|
|
4570
|
-
"multiple": false,
|
|
4571
|
-
"type": "option"
|
|
4572
|
-
},
|
|
4573
|
-
"asset-concurrency": {
|
|
4574
|
-
"description": "Concurrent number of asset downloads",
|
|
4575
|
-
"name": "asset-concurrency",
|
|
4576
|
-
"default": 8,
|
|
4595
|
+
"order": {
|
|
4596
|
+
"description": "Sort direction",
|
|
4597
|
+
"name": "order",
|
|
4598
|
+
"default": "desc",
|
|
4577
4599
|
"hasDynamicHelp": false,
|
|
4578
4600
|
"multiple": false,
|
|
4601
|
+
"options": [
|
|
4602
|
+
"asc",
|
|
4603
|
+
"desc"
|
|
4604
|
+
],
|
|
4579
4605
|
"type": "option"
|
|
4580
4606
|
},
|
|
4581
|
-
"
|
|
4582
|
-
"description": "
|
|
4583
|
-
"name": "
|
|
4607
|
+
"sort": {
|
|
4608
|
+
"description": "Sort field",
|
|
4609
|
+
"name": "sort",
|
|
4610
|
+
"default": "created",
|
|
4584
4611
|
"hasDynamicHelp": false,
|
|
4585
4612
|
"multiple": false,
|
|
4613
|
+
"options": [
|
|
4614
|
+
"id",
|
|
4615
|
+
"members",
|
|
4616
|
+
"name",
|
|
4617
|
+
"url",
|
|
4618
|
+
"created"
|
|
4619
|
+
],
|
|
4586
4620
|
"type": "option"
|
|
4587
|
-
},
|
|
4588
|
-
"no-compress": {
|
|
4589
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
4590
|
-
"name": "no-compress",
|
|
4591
|
-
"allowNo": false,
|
|
4592
|
-
"type": "boolean"
|
|
4593
|
-
},
|
|
4594
|
-
"overwrite": {
|
|
4595
|
-
"description": "Overwrite any file with the same name",
|
|
4596
|
-
"name": "overwrite",
|
|
4597
|
-
"allowNo": false,
|
|
4598
|
-
"type": "boolean"
|
|
4599
4621
|
}
|
|
4600
4622
|
},
|
|
4601
4623
|
"hasDynamicHelp": false,
|
|
4602
|
-
"hiddenAliases": [
|
|
4603
|
-
|
|
4624
|
+
"hiddenAliases": [
|
|
4625
|
+
"project:list"
|
|
4626
|
+
],
|
|
4627
|
+
"id": "projects:list",
|
|
4604
4628
|
"pluginAlias": "@sanity/cli",
|
|
4605
4629
|
"pluginName": "@sanity/cli",
|
|
4606
4630
|
"pluginType": "core",
|
|
@@ -4609,62 +4633,38 @@
|
|
|
4609
4633
|
"relativePath": [
|
|
4610
4634
|
"dist",
|
|
4611
4635
|
"commands",
|
|
4612
|
-
"
|
|
4613
|
-
"
|
|
4636
|
+
"projects",
|
|
4637
|
+
"list.js"
|
|
4614
4638
|
]
|
|
4615
4639
|
},
|
|
4616
|
-
"
|
|
4640
|
+
"projects:unclaimed": {
|
|
4617
4641
|
"aliases": [],
|
|
4618
|
-
"args": {
|
|
4619
|
-
|
|
4620
|
-
"description": "Image file or folder to import from",
|
|
4621
|
-
"name": "source",
|
|
4622
|
-
"required": true
|
|
4623
|
-
}
|
|
4624
|
-
},
|
|
4625
|
-
"description": "Import a set of assets to the target media library.",
|
|
4642
|
+
"args": {},
|
|
4643
|
+
"description": "Recover details for unclaimed projects created on this machine",
|
|
4626
4644
|
"examples": [
|
|
4627
4645
|
{
|
|
4628
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4629
|
-
"description": "
|
|
4630
|
-
},
|
|
4631
|
-
{
|
|
4632
|
-
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4633
|
-
"description": "Import all assets from \"gallery\" archive"
|
|
4646
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4647
|
+
"description": "List locally recorded unclaimed projects"
|
|
4634
4648
|
},
|
|
4635
4649
|
{
|
|
4636
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4637
|
-
"description": "
|
|
4650
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4651
|
+
"description": "Show recovery details for one project"
|
|
4638
4652
|
}
|
|
4639
4653
|
],
|
|
4640
4654
|
"flags": {
|
|
4641
4655
|
"project-id": {
|
|
4642
|
-
"
|
|
4643
|
-
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
4644
|
-
"helpGroup": "OVERRIDE",
|
|
4656
|
+
"description": "Project ID to recover",
|
|
4645
4657
|
"name": "project-id",
|
|
4646
4658
|
"hasDynamicHelp": false,
|
|
4647
|
-
"helpValue": "<id>",
|
|
4648
|
-
"multiple": false,
|
|
4649
|
-
"type": "option"
|
|
4650
|
-
},
|
|
4651
|
-
"media-library-id": {
|
|
4652
|
-
"description": "The id of the target media library",
|
|
4653
|
-
"name": "media-library-id",
|
|
4654
|
-
"hasDynamicHelp": false,
|
|
4655
4659
|
"multiple": false,
|
|
4656
4660
|
"type": "option"
|
|
4657
|
-
},
|
|
4658
|
-
"replace-aspects": {
|
|
4659
|
-
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
4660
|
-
"name": "replace-aspects",
|
|
4661
|
-
"allowNo": false,
|
|
4662
|
-
"type": "boolean"
|
|
4663
4661
|
}
|
|
4664
4662
|
},
|
|
4665
4663
|
"hasDynamicHelp": false,
|
|
4666
|
-
"hiddenAliases": [
|
|
4667
|
-
|
|
4664
|
+
"hiddenAliases": [
|
|
4665
|
+
"project:unclaimed"
|
|
4666
|
+
],
|
|
4667
|
+
"id": "projects:unclaimed",
|
|
4668
4668
|
"pluginAlias": "@sanity/cli",
|
|
4669
4669
|
"pluginName": "@sanity/cli",
|
|
4670
4670
|
"pluginType": "core",
|
|
@@ -4673,8 +4673,8 @@
|
|
|
4673
4673
|
"relativePath": [
|
|
4674
4674
|
"dist",
|
|
4675
4675
|
"commands",
|
|
4676
|
-
"
|
|
4677
|
-
"
|
|
4676
|
+
"projects",
|
|
4677
|
+
"unclaimed.js"
|
|
4678
4678
|
]
|
|
4679
4679
|
},
|
|
4680
4680
|
"schemas:delete": {
|
|
@@ -6161,5 +6161,5 @@
|
|
|
6161
6161
|
]
|
|
6162
6162
|
}
|
|
6163
6163
|
},
|
|
6164
|
-
"version": "8.0
|
|
6164
|
+
"version": "8.2.0"
|
|
6165
6165
|
}
|