@sanity/cli 7.9.0 → 7.11.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 +163 -22
- package/dist/actions/auth/ensureAuthenticated.js +2 -0
- package/dist/actions/auth/ensureAuthenticated.js.map +1 -1
- package/dist/actions/auth/login/getProvider.js +7 -2
- package/dist/actions/auth/login/getProvider.js.map +1 -1
- package/dist/actions/auth/login/loginInstructions.js +19 -0
- package/dist/actions/auth/login/loginInstructions.js.map +1 -0
- package/dist/actions/dataset/create.js +2 -2
- package/dist/actions/dataset/create.js.map +1 -1
- package/dist/actions/dataset/resolveDataset.js +7 -1
- package/dist/actions/dataset/resolveDataset.js.map +1 -1
- package/dist/actions/deploy/createUserApplication.js +8 -5
- package/dist/actions/deploy/createUserApplication.js.map +1 -1
- package/dist/actions/deploy/deployApp.js +47 -24
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +2 -0
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/graphql/resolveApiGeneration.js +9 -6
- package/dist/actions/graphql/resolveApiGeneration.js.map +1 -1
- package/dist/actions/init/initAction.js +23 -15
- package/dist/actions/init/initAction.js.map +1 -1
- package/dist/actions/manifest/extractCoreAppManifest.js +11 -4
- package/dist/actions/manifest/extractCoreAppManifest.js.map +1 -1
- package/dist/actions/migration/constants.js +10 -0
- package/dist/actions/migration/constants.js.map +1 -0
- package/dist/actions/migration/ensureApiVersionFormat.js +16 -0
- package/dist/actions/migration/ensureApiVersionFormat.js.map +1 -0
- package/dist/actions/migration/fileExists.js +13 -0
- package/dist/actions/migration/fileExists.js.map +1 -0
- package/dist/actions/migration/prettyMutationFormatter.js +155 -0
- package/dist/actions/migration/prettyMutationFormatter.js.map +1 -0
- package/dist/actions/migration/resolveMigrationScript.js +75 -0
- package/dist/actions/migration/resolveMigrationScript.js.map +1 -0
- package/dist/actions/migration/resolveMigrations.js +50 -0
- package/dist/actions/migration/resolveMigrations.js.map +1 -0
- package/dist/actions/migration/templates/index.js +7 -0
- package/dist/actions/migration/templates/index.js.map +1 -0
- package/dist/actions/migration/templates/minimalAdvanced.js +21 -0
- package/dist/actions/migration/templates/minimalAdvanced.js.map +1 -0
- package/dist/actions/migration/templates/minimalSimple.js +61 -0
- package/dist/actions/migration/templates/minimalSimple.js.map +1 -0
- package/dist/actions/migration/templates/renameField.js +20 -0
- package/dist/actions/migration/templates/renameField.js.map +1 -0
- package/dist/actions/migration/templates/renameType.js +19 -0
- package/dist/actions/migration/templates/renameType.js.map +1 -0
- package/dist/actions/migration/templates/stringToPTE.js +32 -0
- package/dist/actions/migration/templates/stringToPTE.js.map +1 -0
- package/dist/actions/migration/tree.js +111 -0
- package/dist/actions/migration/tree.js.map +1 -0
- package/dist/actions/organizations/getOrganization.js +7 -3
- package/dist/actions/organizations/getOrganization.js.map +1 -1
- package/dist/actions/organizations/validateOrganizationSlug.js +20 -0
- package/dist/actions/organizations/validateOrganizationSlug.js.map +1 -0
- package/dist/actions/preview/previewAction.js +33 -1
- package/dist/actions/preview/previewAction.js.map +1 -1
- package/dist/actions/schema/listSchemas.js +6 -4
- package/dist/actions/schema/listSchemas.js.map +1 -1
- package/dist/actions/tokens/validateRole.js +2 -1
- package/dist/actions/tokens/validateRole.js.map +1 -1
- package/dist/actions/undeploy/runUndeploy.js +13 -4
- package/dist/actions/undeploy/runUndeploy.js.map +1 -1
- package/dist/commands/backups/disable.js +5 -1
- package/dist/commands/backups/disable.js.map +1 -1
- package/dist/commands/backups/download.js +30 -6
- package/dist/commands/backups/download.js.map +1 -1
- package/dist/commands/backups/enable.js +5 -1
- package/dist/commands/backups/enable.js.map +1 -1
- package/dist/commands/backups/list.js +5 -1
- package/dist/commands/backups/list.js.map +1 -1
- package/dist/commands/cors/add.js +15 -7
- package/dist/commands/cors/add.js.map +1 -1
- package/dist/commands/cors/delete.js +6 -1
- package/dist/commands/cors/delete.js.map +1 -1
- package/dist/commands/datasets/alias/create.js +25 -18
- package/dist/commands/datasets/alias/create.js.map +1 -1
- package/dist/commands/datasets/alias/delete.js +15 -8
- package/dist/commands/datasets/alias/delete.js.map +1 -1
- package/dist/commands/datasets/alias/link.js +39 -17
- package/dist/commands/datasets/alias/link.js.map +1 -1
- package/dist/commands/datasets/alias/unlink.js +23 -2
- package/dist/commands/datasets/alias/unlink.js.map +1 -1
- package/dist/commands/datasets/copy.js +18 -2
- package/dist/commands/datasets/copy.js.map +1 -1
- package/dist/commands/datasets/create.js +8 -2
- package/dist/commands/datasets/create.js.map +1 -1
- package/dist/commands/datasets/delete.js +14 -17
- package/dist/commands/datasets/delete.js.map +1 -1
- package/dist/commands/datasets/embeddings/disable.js +3 -0
- package/dist/commands/datasets/embeddings/disable.js.map +1 -1
- package/dist/commands/datasets/embeddings/enable.js +5 -2
- package/dist/commands/datasets/embeddings/enable.js.map +1 -1
- package/dist/commands/datasets/embeddings/status.js +3 -0
- package/dist/commands/datasets/embeddings/status.js.map +1 -1
- package/dist/commands/datasets/export.js +27 -15
- package/dist/commands/datasets/export.js.map +1 -1
- package/dist/commands/datasets/import.js +3 -3
- package/dist/commands/datasets/import.js.map +1 -1
- package/dist/commands/datasets/visibility/get.js +2 -2
- package/dist/commands/datasets/visibility/get.js.map +1 -1
- package/dist/commands/datasets/visibility/set.js +2 -2
- package/dist/commands/datasets/visibility/set.js.map +1 -1
- package/dist/commands/docs/read.js +3 -3
- package/dist/commands/docs/read.js.map +1 -1
- package/dist/commands/documents/create.js +18 -13
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +3 -3
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +3 -3
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +3 -3
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/documents/validate.js +29 -26
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/graphql/deploy.js +20 -16
- package/dist/commands/graphql/deploy.js.map +1 -1
- package/dist/commands/graphql/undeploy.js +15 -18
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/hooks/create.js +4 -0
- package/dist/commands/hooks/create.js.map +1 -1
- package/dist/commands/hooks/delete.js +6 -1
- package/dist/commands/hooks/delete.js.map +1 -1
- package/dist/commands/hooks/logs.js +6 -1
- package/dist/commands/hooks/logs.js.map +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/login.js +2 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/media/create-aspect.js +20 -8
- package/dist/commands/media/create-aspect.js.map +1 -1
- package/dist/commands/media/delete-aspect.js +31 -16
- package/dist/commands/media/delete-aspect.js.map +1 -1
- package/dist/commands/media/deploy-aspect.js +10 -5
- package/dist/commands/media/deploy-aspect.js.map +1 -1
- package/dist/commands/media/export.js +9 -4
- package/dist/commands/media/export.js.map +1 -1
- package/dist/commands/media/import.js +6 -1
- package/dist/commands/media/import.js.map +1 -1
- package/dist/commands/migrations/create.js +150 -0
- package/dist/commands/migrations/create.js.map +1 -0
- package/dist/commands/migrations/list.js +64 -0
- package/dist/commands/migrations/list.js.map +1 -0
- package/dist/commands/migrations/run.js +306 -0
- package/dist/commands/migrations/run.js.map +1 -0
- package/dist/commands/organizations/create.js +79 -0
- package/dist/commands/organizations/create.js.map +1 -0
- package/dist/commands/organizations/delete.js +100 -0
- package/dist/commands/organizations/delete.js.map +1 -0
- package/dist/commands/organizations/get.js +48 -0
- package/dist/commands/organizations/get.js.map +1 -0
- package/dist/commands/organizations/list.js +60 -0
- package/dist/commands/organizations/list.js.map +1 -0
- package/dist/commands/organizations/update.js +115 -0
- package/dist/commands/organizations/update.js.map +1 -0
- package/dist/commands/preview.js +1 -0
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/projects/create.js +3 -1
- package/dist/commands/projects/create.js.map +1 -1
- package/dist/commands/schemas/delete.js +23 -2
- package/dist/commands/schemas/delete.js.map +1 -1
- package/dist/commands/schemas/deploy.js +6 -4
- package/dist/commands/schemas/deploy.js.map +1 -1
- package/dist/commands/schemas/extract.js +22 -1
- package/dist/commands/schemas/extract.js.map +1 -1
- package/dist/commands/schemas/list.js +8 -8
- package/dist/commands/schemas/list.js.map +1 -1
- package/dist/commands/tokens/{add.js → create.js} +25 -18
- package/dist/commands/tokens/create.js.map +1 -0
- package/dist/commands/tokens/delete.js +41 -23
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/undeploy.js +2 -7
- package/dist/commands/undeploy.js.map +1 -1
- package/dist/commands/users/invite.js +25 -3
- package/dist/commands/users/invite.js.map +1 -1
- package/dist/prompts/promptForOrganizationName.js +2 -1
- package/dist/prompts/promptForOrganizationName.js.map +1 -1
- package/dist/services/organizations.js +45 -2
- package/dist/services/organizations.js.map +1 -1
- package/dist/services/userApplications.js.map +1 -1
- package/dist/topicAliases.js +10 -0
- package/dist/topicAliases.js.map +1 -1
- package/dist/util/formatCliErrorMessages.js +5 -0
- package/dist/util/formatCliErrorMessages.js.map +1 -0
- package/dist/util/organizationAliases.js +12 -0
- package/dist/util/organizationAliases.js.map +1 -0
- package/oclif.config.js +6 -1
- package/oclif.manifest.json +464 -11
- package/package.json +28 -28
- package/dist/commands/tokens/add.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -863,7 +863,7 @@
|
|
|
863
863
|
"type": "boolean"
|
|
864
864
|
},
|
|
865
865
|
"provider": {
|
|
866
|
-
"description": "Log in using
|
|
866
|
+
"description": "Log in using a provider ID (google, github, sanity, vercel)",
|
|
867
867
|
"exclusive": [
|
|
868
868
|
"sso",
|
|
869
869
|
"with-token"
|
|
@@ -1391,6 +1391,13 @@
|
|
|
1391
1391
|
"required": false,
|
|
1392
1392
|
"allowNo": true,
|
|
1393
1393
|
"type": "boolean"
|
|
1394
|
+
},
|
|
1395
|
+
"yes": {
|
|
1396
|
+
"char": "y",
|
|
1397
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
1398
|
+
"name": "yes",
|
|
1399
|
+
"allowNo": false,
|
|
1400
|
+
"type": "boolean"
|
|
1394
1401
|
}
|
|
1395
1402
|
},
|
|
1396
1403
|
"hasDynamicHelp": false,
|
|
@@ -2642,7 +2649,7 @@
|
|
|
2642
2649
|
"type": "option"
|
|
2643
2650
|
},
|
|
2644
2651
|
"file": {
|
|
2645
|
-
"description": "
|
|
2652
|
+
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
2646
2653
|
"name": "file",
|
|
2647
2654
|
"hasDynamicHelp": false,
|
|
2648
2655
|
"multiple": false,
|
|
@@ -2653,6 +2660,11 @@
|
|
|
2653
2660
|
"name": "format",
|
|
2654
2661
|
"hasDynamicHelp": false,
|
|
2655
2662
|
"multiple": false,
|
|
2663
|
+
"options": [
|
|
2664
|
+
"json",
|
|
2665
|
+
"ndjson",
|
|
2666
|
+
"pretty"
|
|
2667
|
+
],
|
|
2656
2668
|
"type": "option"
|
|
2657
2669
|
},
|
|
2658
2670
|
"level": {
|
|
@@ -3291,7 +3303,22 @@
|
|
|
3291
3303
|
"description": "Create a new aspect definition file"
|
|
3292
3304
|
}
|
|
3293
3305
|
],
|
|
3294
|
-
"flags": {
|
|
3306
|
+
"flags": {
|
|
3307
|
+
"name": {
|
|
3308
|
+
"description": "Aspect name. Defaults to the title in camel case",
|
|
3309
|
+
"name": "name",
|
|
3310
|
+
"hasDynamicHelp": false,
|
|
3311
|
+
"multiple": false,
|
|
3312
|
+
"type": "option"
|
|
3313
|
+
},
|
|
3314
|
+
"title": {
|
|
3315
|
+
"description": "Aspect title",
|
|
3316
|
+
"name": "title",
|
|
3317
|
+
"hasDynamicHelp": false,
|
|
3318
|
+
"multiple": false,
|
|
3319
|
+
"type": "option"
|
|
3320
|
+
}
|
|
3321
|
+
},
|
|
3295
3322
|
"hasDynamicHelp": false,
|
|
3296
3323
|
"hiddenAliases": [],
|
|
3297
3324
|
"id": "media:create-aspect",
|
|
@@ -3346,7 +3373,7 @@
|
|
|
3346
3373
|
"aliases": [
|
|
3347
3374
|
"y"
|
|
3348
3375
|
],
|
|
3349
|
-
"description": "
|
|
3376
|
+
"description": "Run without prompts and confirm deletion",
|
|
3350
3377
|
"name": "yes",
|
|
3351
3378
|
"required": false,
|
|
3352
3379
|
"allowNo": false,
|
|
@@ -3571,6 +3598,169 @@
|
|
|
3571
3598
|
"import.js"
|
|
3572
3599
|
]
|
|
3573
3600
|
},
|
|
3601
|
+
"migrations:create": {
|
|
3602
|
+
"aliases": [],
|
|
3603
|
+
"args": {
|
|
3604
|
+
"title": {
|
|
3605
|
+
"description": "Title of migration",
|
|
3606
|
+
"name": "title",
|
|
3607
|
+
"required": false
|
|
3608
|
+
}
|
|
3609
|
+
},
|
|
3610
|
+
"description": "Create a new migration within your project",
|
|
3611
|
+
"examples": [
|
|
3612
|
+
{
|
|
3613
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3614
|
+
"description": "Create a new migration, prompting for title and options"
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
"command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
|
|
3618
|
+
"description": "Create a new migration with the provided title, prompting for options"
|
|
3619
|
+
}
|
|
3620
|
+
],
|
|
3621
|
+
"flags": {},
|
|
3622
|
+
"hasDynamicHelp": false,
|
|
3623
|
+
"hiddenAliases": [
|
|
3624
|
+
"migration:create"
|
|
3625
|
+
],
|
|
3626
|
+
"id": "migrations:create",
|
|
3627
|
+
"pluginAlias": "@sanity/cli",
|
|
3628
|
+
"pluginName": "@sanity/cli",
|
|
3629
|
+
"pluginType": "core",
|
|
3630
|
+
"strict": true,
|
|
3631
|
+
"isESM": true,
|
|
3632
|
+
"relativePath": [
|
|
3633
|
+
"dist",
|
|
3634
|
+
"commands",
|
|
3635
|
+
"migrations",
|
|
3636
|
+
"create.js"
|
|
3637
|
+
]
|
|
3638
|
+
},
|
|
3639
|
+
"migrations:list": {
|
|
3640
|
+
"aliases": [],
|
|
3641
|
+
"args": {},
|
|
3642
|
+
"description": "List available migrations",
|
|
3643
|
+
"examples": [
|
|
3644
|
+
{
|
|
3645
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3646
|
+
"description": "List all available migrations in the project"
|
|
3647
|
+
}
|
|
3648
|
+
],
|
|
3649
|
+
"flags": {},
|
|
3650
|
+
"hasDynamicHelp": false,
|
|
3651
|
+
"hiddenAliases": [
|
|
3652
|
+
"migration:list"
|
|
3653
|
+
],
|
|
3654
|
+
"id": "migrations:list",
|
|
3655
|
+
"pluginAlias": "@sanity/cli",
|
|
3656
|
+
"pluginName": "@sanity/cli",
|
|
3657
|
+
"pluginType": "core",
|
|
3658
|
+
"strict": true,
|
|
3659
|
+
"isESM": true,
|
|
3660
|
+
"relativePath": [
|
|
3661
|
+
"dist",
|
|
3662
|
+
"commands",
|
|
3663
|
+
"migrations",
|
|
3664
|
+
"list.js"
|
|
3665
|
+
]
|
|
3666
|
+
},
|
|
3667
|
+
"migrations:run": {
|
|
3668
|
+
"aliases": [],
|
|
3669
|
+
"args": {
|
|
3670
|
+
"id": {
|
|
3671
|
+
"description": "ID",
|
|
3672
|
+
"name": "id",
|
|
3673
|
+
"required": false
|
|
3674
|
+
}
|
|
3675
|
+
},
|
|
3676
|
+
"description": "Run a migration against a dataset",
|
|
3677
|
+
"examples": [
|
|
3678
|
+
{
|
|
3679
|
+
"command": "<%= config.bin %> <%= command.id %> <id>",
|
|
3680
|
+
"description": "dry run the migration"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
|
|
3684
|
+
"description": "execute the migration against a dataset"
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
|
|
3688
|
+
"description": "execute the migration using a dataset export as the source"
|
|
3689
|
+
}
|
|
3690
|
+
],
|
|
3691
|
+
"flags": {
|
|
3692
|
+
"api-version": {
|
|
3693
|
+
"description": "API version to use when migrating. Defaults to v2024-01-29.",
|
|
3694
|
+
"name": "api-version",
|
|
3695
|
+
"hasDynamicHelp": false,
|
|
3696
|
+
"multiple": false,
|
|
3697
|
+
"type": "option"
|
|
3698
|
+
},
|
|
3699
|
+
"concurrency": {
|
|
3700
|
+
"description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
|
|
3701
|
+
"name": "concurrency",
|
|
3702
|
+
"default": 6,
|
|
3703
|
+
"hasDynamicHelp": false,
|
|
3704
|
+
"multiple": false,
|
|
3705
|
+
"type": "option"
|
|
3706
|
+
},
|
|
3707
|
+
"confirm": {
|
|
3708
|
+
"description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
|
|
3709
|
+
"name": "confirm",
|
|
3710
|
+
"allowNo": true,
|
|
3711
|
+
"type": "boolean"
|
|
3712
|
+
},
|
|
3713
|
+
"dataset": {
|
|
3714
|
+
"description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
|
|
3715
|
+
"name": "dataset",
|
|
3716
|
+
"hasDynamicHelp": false,
|
|
3717
|
+
"multiple": false,
|
|
3718
|
+
"type": "option"
|
|
3719
|
+
},
|
|
3720
|
+
"dry-run": {
|
|
3721
|
+
"description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
|
|
3722
|
+
"name": "dry-run",
|
|
3723
|
+
"allowNo": true,
|
|
3724
|
+
"type": "boolean"
|
|
3725
|
+
},
|
|
3726
|
+
"from-export": {
|
|
3727
|
+
"description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
|
|
3728
|
+
"name": "from-export",
|
|
3729
|
+
"hasDynamicHelp": false,
|
|
3730
|
+
"multiple": false,
|
|
3731
|
+
"type": "option"
|
|
3732
|
+
},
|
|
3733
|
+
"progress": {
|
|
3734
|
+
"description": "Display progress during migration (default: true). Use --no-progress to hide output.",
|
|
3735
|
+
"name": "progress",
|
|
3736
|
+
"allowNo": true,
|
|
3737
|
+
"type": "boolean"
|
|
3738
|
+
},
|
|
3739
|
+
"project": {
|
|
3740
|
+
"description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
|
|
3741
|
+
"name": "project",
|
|
3742
|
+
"hasDynamicHelp": false,
|
|
3743
|
+
"multiple": false,
|
|
3744
|
+
"type": "option"
|
|
3745
|
+
}
|
|
3746
|
+
},
|
|
3747
|
+
"hasDynamicHelp": false,
|
|
3748
|
+
"hiddenAliases": [
|
|
3749
|
+
"migration:run"
|
|
3750
|
+
],
|
|
3751
|
+
"id": "migrations:run",
|
|
3752
|
+
"pluginAlias": "@sanity/cli",
|
|
3753
|
+
"pluginName": "@sanity/cli",
|
|
3754
|
+
"pluginType": "core",
|
|
3755
|
+
"strict": true,
|
|
3756
|
+
"isESM": true,
|
|
3757
|
+
"relativePath": [
|
|
3758
|
+
"dist",
|
|
3759
|
+
"commands",
|
|
3760
|
+
"migrations",
|
|
3761
|
+
"run.js"
|
|
3762
|
+
]
|
|
3763
|
+
},
|
|
3574
3764
|
"openapi:get": {
|
|
3575
3765
|
"aliases": [],
|
|
3576
3766
|
"args": {
|
|
@@ -3683,6 +3873,254 @@
|
|
|
3683
3873
|
"list.js"
|
|
3684
3874
|
]
|
|
3685
3875
|
},
|
|
3876
|
+
"organizations:create": {
|
|
3877
|
+
"aliases": [],
|
|
3878
|
+
"args": {},
|
|
3879
|
+
"description": "Create a new organization",
|
|
3880
|
+
"examples": [
|
|
3881
|
+
{
|
|
3882
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3883
|
+
"description": "Interactively create an organization"
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
3887
|
+
"description": "Create an organization named \"Acme Corp\""
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
3891
|
+
"description": "Create an organization with a default member role"
|
|
3892
|
+
}
|
|
3893
|
+
],
|
|
3894
|
+
"flags": {
|
|
3895
|
+
"default-role": {
|
|
3896
|
+
"description": "Default role assigned to new members",
|
|
3897
|
+
"name": "default-role",
|
|
3898
|
+
"required": false,
|
|
3899
|
+
"hasDynamicHelp": false,
|
|
3900
|
+
"multiple": false,
|
|
3901
|
+
"type": "option"
|
|
3902
|
+
},
|
|
3903
|
+
"name": {
|
|
3904
|
+
"description": "Organization name",
|
|
3905
|
+
"name": "name",
|
|
3906
|
+
"required": false,
|
|
3907
|
+
"hasDynamicHelp": false,
|
|
3908
|
+
"multiple": false,
|
|
3909
|
+
"type": "option"
|
|
3910
|
+
}
|
|
3911
|
+
},
|
|
3912
|
+
"hasDynamicHelp": false,
|
|
3913
|
+
"hiddenAliases": [
|
|
3914
|
+
"organization:create",
|
|
3915
|
+
"organisations:create",
|
|
3916
|
+
"organisation:create",
|
|
3917
|
+
"org:create",
|
|
3918
|
+
"orgs:create"
|
|
3919
|
+
],
|
|
3920
|
+
"id": "organizations:create",
|
|
3921
|
+
"pluginAlias": "@sanity/cli",
|
|
3922
|
+
"pluginName": "@sanity/cli",
|
|
3923
|
+
"pluginType": "core",
|
|
3924
|
+
"strict": true,
|
|
3925
|
+
"isESM": true,
|
|
3926
|
+
"relativePath": [
|
|
3927
|
+
"dist",
|
|
3928
|
+
"commands",
|
|
3929
|
+
"organizations",
|
|
3930
|
+
"create.js"
|
|
3931
|
+
]
|
|
3932
|
+
},
|
|
3933
|
+
"organizations:delete": {
|
|
3934
|
+
"aliases": [],
|
|
3935
|
+
"args": {
|
|
3936
|
+
"organizationId": {
|
|
3937
|
+
"description": "Organization ID to delete",
|
|
3938
|
+
"name": "organizationId",
|
|
3939
|
+
"required": true
|
|
3940
|
+
}
|
|
3941
|
+
},
|
|
3942
|
+
"description": "Delete an organization",
|
|
3943
|
+
"examples": [
|
|
3944
|
+
{
|
|
3945
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
3946
|
+
"description": "Delete an organization (prompts for confirmation)"
|
|
3947
|
+
},
|
|
3948
|
+
{
|
|
3949
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
|
|
3950
|
+
"description": "Delete an organization without confirmation"
|
|
3951
|
+
}
|
|
3952
|
+
],
|
|
3953
|
+
"flags": {
|
|
3954
|
+
"force": {
|
|
3955
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
3956
|
+
"name": "force",
|
|
3957
|
+
"required": false,
|
|
3958
|
+
"allowNo": false,
|
|
3959
|
+
"type": "boolean"
|
|
3960
|
+
}
|
|
3961
|
+
},
|
|
3962
|
+
"hasDynamicHelp": false,
|
|
3963
|
+
"hiddenAliases": [
|
|
3964
|
+
"organization:delete",
|
|
3965
|
+
"organisations:delete",
|
|
3966
|
+
"organisation:delete",
|
|
3967
|
+
"org:delete",
|
|
3968
|
+
"orgs:delete"
|
|
3969
|
+
],
|
|
3970
|
+
"id": "organizations:delete",
|
|
3971
|
+
"pluginAlias": "@sanity/cli",
|
|
3972
|
+
"pluginName": "@sanity/cli",
|
|
3973
|
+
"pluginType": "core",
|
|
3974
|
+
"strict": true,
|
|
3975
|
+
"isESM": true,
|
|
3976
|
+
"relativePath": [
|
|
3977
|
+
"dist",
|
|
3978
|
+
"commands",
|
|
3979
|
+
"organizations",
|
|
3980
|
+
"delete.js"
|
|
3981
|
+
]
|
|
3982
|
+
},
|
|
3983
|
+
"organizations:get": {
|
|
3984
|
+
"aliases": [],
|
|
3985
|
+
"args": {
|
|
3986
|
+
"organizationId": {
|
|
3987
|
+
"description": "Organization ID",
|
|
3988
|
+
"name": "organizationId",
|
|
3989
|
+
"required": true
|
|
3990
|
+
}
|
|
3991
|
+
},
|
|
3992
|
+
"description": "Get details of an organization",
|
|
3993
|
+
"examples": [
|
|
3994
|
+
{
|
|
3995
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
3996
|
+
"description": "Get details of a specific organization"
|
|
3997
|
+
}
|
|
3998
|
+
],
|
|
3999
|
+
"flags": {},
|
|
4000
|
+
"hasDynamicHelp": false,
|
|
4001
|
+
"hiddenAliases": [
|
|
4002
|
+
"organization:get",
|
|
4003
|
+
"organisations:get",
|
|
4004
|
+
"organisation:get",
|
|
4005
|
+
"org:get",
|
|
4006
|
+
"orgs:get"
|
|
4007
|
+
],
|
|
4008
|
+
"id": "organizations:get",
|
|
4009
|
+
"pluginAlias": "@sanity/cli",
|
|
4010
|
+
"pluginName": "@sanity/cli",
|
|
4011
|
+
"pluginType": "core",
|
|
4012
|
+
"strict": true,
|
|
4013
|
+
"isESM": true,
|
|
4014
|
+
"relativePath": [
|
|
4015
|
+
"dist",
|
|
4016
|
+
"commands",
|
|
4017
|
+
"organizations",
|
|
4018
|
+
"get.js"
|
|
4019
|
+
]
|
|
4020
|
+
},
|
|
4021
|
+
"organizations:list": {
|
|
4022
|
+
"aliases": [],
|
|
4023
|
+
"args": {},
|
|
4024
|
+
"description": "List organizations you are a member of",
|
|
4025
|
+
"examples": [
|
|
4026
|
+
{
|
|
4027
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4028
|
+
"description": "List all your organizations"
|
|
4029
|
+
}
|
|
4030
|
+
],
|
|
4031
|
+
"flags": {},
|
|
4032
|
+
"hasDynamicHelp": false,
|
|
4033
|
+
"hiddenAliases": [
|
|
4034
|
+
"organization:list",
|
|
4035
|
+
"organisations:list",
|
|
4036
|
+
"organisation:list",
|
|
4037
|
+
"org:list",
|
|
4038
|
+
"orgs:list"
|
|
4039
|
+
],
|
|
4040
|
+
"id": "organizations:list",
|
|
4041
|
+
"pluginAlias": "@sanity/cli",
|
|
4042
|
+
"pluginName": "@sanity/cli",
|
|
4043
|
+
"pluginType": "core",
|
|
4044
|
+
"strict": true,
|
|
4045
|
+
"isESM": true,
|
|
4046
|
+
"relativePath": [
|
|
4047
|
+
"dist",
|
|
4048
|
+
"commands",
|
|
4049
|
+
"organizations",
|
|
4050
|
+
"list.js"
|
|
4051
|
+
]
|
|
4052
|
+
},
|
|
4053
|
+
"organizations:update": {
|
|
4054
|
+
"aliases": [],
|
|
4055
|
+
"args": {
|
|
4056
|
+
"organizationId": {
|
|
4057
|
+
"description": "Organization ID",
|
|
4058
|
+
"name": "organizationId",
|
|
4059
|
+
"required": true
|
|
4060
|
+
}
|
|
4061
|
+
},
|
|
4062
|
+
"description": "Update an organization",
|
|
4063
|
+
"examples": [
|
|
4064
|
+
{
|
|
4065
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
|
|
4066
|
+
"description": "Rename an organization"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
|
|
4070
|
+
"description": "Set the organization slug (requires authSAML feature)"
|
|
4071
|
+
},
|
|
4072
|
+
{
|
|
4073
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
4074
|
+
"description": "Change the default member role"
|
|
4075
|
+
}
|
|
4076
|
+
],
|
|
4077
|
+
"flags": {
|
|
4078
|
+
"default-role": {
|
|
4079
|
+
"description": "New default role for new members",
|
|
4080
|
+
"name": "default-role",
|
|
4081
|
+
"required": false,
|
|
4082
|
+
"hasDynamicHelp": false,
|
|
4083
|
+
"multiple": false,
|
|
4084
|
+
"type": "option"
|
|
4085
|
+
},
|
|
4086
|
+
"name": {
|
|
4087
|
+
"description": "New organization name",
|
|
4088
|
+
"name": "name",
|
|
4089
|
+
"required": false,
|
|
4090
|
+
"hasDynamicHelp": false,
|
|
4091
|
+
"multiple": false,
|
|
4092
|
+
"type": "option"
|
|
4093
|
+
},
|
|
4094
|
+
"slug": {
|
|
4095
|
+
"description": "New URL slug (requires authSAML feature on the organization)",
|
|
4096
|
+
"name": "slug",
|
|
4097
|
+
"required": false,
|
|
4098
|
+
"hasDynamicHelp": false,
|
|
4099
|
+
"multiple": false,
|
|
4100
|
+
"type": "option"
|
|
4101
|
+
}
|
|
4102
|
+
},
|
|
4103
|
+
"hasDynamicHelp": false,
|
|
4104
|
+
"hiddenAliases": [
|
|
4105
|
+
"organization:update",
|
|
4106
|
+
"organisations:update",
|
|
4107
|
+
"organisation:update",
|
|
4108
|
+
"org:update",
|
|
4109
|
+
"orgs:update"
|
|
4110
|
+
],
|
|
4111
|
+
"id": "organizations:update",
|
|
4112
|
+
"pluginAlias": "@sanity/cli",
|
|
4113
|
+
"pluginName": "@sanity/cli",
|
|
4114
|
+
"pluginType": "core",
|
|
4115
|
+
"strict": true,
|
|
4116
|
+
"isESM": true,
|
|
4117
|
+
"relativePath": [
|
|
4118
|
+
"dist",
|
|
4119
|
+
"commands",
|
|
4120
|
+
"organizations",
|
|
4121
|
+
"update.js"
|
|
4122
|
+
]
|
|
4123
|
+
},
|
|
3686
4124
|
"projects:create": {
|
|
3687
4125
|
"aliases": [],
|
|
3688
4126
|
"args": {
|
|
@@ -3896,6 +4334,13 @@
|
|
|
3896
4334
|
"name": "verbose",
|
|
3897
4335
|
"allowNo": false,
|
|
3898
4336
|
"type": "boolean"
|
|
4337
|
+
},
|
|
4338
|
+
"yes": {
|
|
4339
|
+
"char": "y",
|
|
4340
|
+
"description": "Delete schemas without prompting for confirmation",
|
|
4341
|
+
"name": "yes",
|
|
4342
|
+
"allowNo": false,
|
|
4343
|
+
"type": "boolean"
|
|
3899
4344
|
}
|
|
3900
4345
|
},
|
|
3901
4346
|
"hasDynamicHelp": false,
|
|
@@ -4010,6 +4455,12 @@
|
|
|
4010
4455
|
"allowNo": false,
|
|
4011
4456
|
"type": "boolean"
|
|
4012
4457
|
},
|
|
4458
|
+
"force": {
|
|
4459
|
+
"description": "Overwrite an existing schema file",
|
|
4460
|
+
"name": "force",
|
|
4461
|
+
"allowNo": false,
|
|
4462
|
+
"type": "boolean"
|
|
4463
|
+
},
|
|
4013
4464
|
"format": {
|
|
4014
4465
|
"description": "Output format (currently only groq-type-nodes)",
|
|
4015
4466
|
"name": "format",
|
|
@@ -4323,7 +4774,7 @@
|
|
|
4323
4774
|
"status.js"
|
|
4324
4775
|
]
|
|
4325
4776
|
},
|
|
4326
|
-
"tokens:
|
|
4777
|
+
"tokens:create": {
|
|
4327
4778
|
"aliases": [],
|
|
4328
4779
|
"args": {
|
|
4329
4780
|
"label": {
|
|
@@ -4358,7 +4809,7 @@
|
|
|
4358
4809
|
"flags": {
|
|
4359
4810
|
"project-id": {
|
|
4360
4811
|
"char": "p",
|
|
4361
|
-
"description": "Project ID to
|
|
4812
|
+
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
4362
4813
|
"helpGroup": "OVERRIDE",
|
|
4363
4814
|
"name": "project-id",
|
|
4364
4815
|
"hasDynamicHelp": false,
|
|
@@ -4373,7 +4824,7 @@
|
|
|
4373
4824
|
"type": "boolean"
|
|
4374
4825
|
},
|
|
4375
4826
|
"role": {
|
|
4376
|
-
"description": "Role to assign to the token",
|
|
4827
|
+
"description": "Role to assign to the token (defaults to viewer in unattended mode)",
|
|
4377
4828
|
"name": "role",
|
|
4378
4829
|
"hasDynamicHelp": false,
|
|
4379
4830
|
"helpValue": "viewer",
|
|
@@ -4390,9 +4841,11 @@
|
|
|
4390
4841
|
},
|
|
4391
4842
|
"hasDynamicHelp": false,
|
|
4392
4843
|
"hiddenAliases": [
|
|
4393
|
-
"
|
|
4844
|
+
"tokens:add",
|
|
4845
|
+
"token:add",
|
|
4846
|
+
"token:create"
|
|
4394
4847
|
],
|
|
4395
|
-
"id": "tokens:
|
|
4848
|
+
"id": "tokens:create",
|
|
4396
4849
|
"pluginAlias": "@sanity/cli",
|
|
4397
4850
|
"pluginName": "@sanity/cli",
|
|
4398
4851
|
"pluginType": "core",
|
|
@@ -4402,7 +4855,7 @@
|
|
|
4402
4855
|
"dist",
|
|
4403
4856
|
"commands",
|
|
4404
4857
|
"tokens",
|
|
4405
|
-
"
|
|
4858
|
+
"create.js"
|
|
4406
4859
|
]
|
|
4407
4860
|
},
|
|
4408
4861
|
"tokens:delete": {
|
|
@@ -5196,5 +5649,5 @@
|
|
|
5196
5649
|
]
|
|
5197
5650
|
}
|
|
5198
5651
|
},
|
|
5199
|
-
"version": "7.
|
|
5652
|
+
"version": "7.11.0"
|
|
5200
5653
|
}
|