@sanity/cli 6.0.0-alpha.10 → 6.0.0-alpha.12
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 +100 -112
- package/dist/actions/build/buildApp.js +15 -6
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStudio.js +9 -3
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/actions/build/checkRequiredDependencies.js +6 -3
- package/dist/actions/build/checkRequiredDependencies.js.map +1 -1
- package/dist/actions/build/checkStudioDependencyVersions.js +6 -4
- package/dist/actions/build/checkStudioDependencyVersions.js.map +1 -1
- package/dist/actions/build/types.js.map +1 -1
- package/dist/actions/deploy/deployApp.js +1 -2
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +1 -2
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/types.js.map +1 -1
- package/dist/actions/init/checkNextJsReactCompatibility.js +1 -1
- package/dist/actions/init/checkNextJsReactCompatibility.js.map +1 -1
- package/dist/actions/init/createPackageManifest.js +13 -8
- package/dist/actions/init/createPackageManifest.js.map +1 -1
- package/dist/actions/init/remoteTemplate.js +1 -2
- package/dist/actions/init/remoteTemplate.js.map +1 -1
- package/dist/actions/manifest/SchemaIcon.js +6 -4
- package/dist/actions/manifest/SchemaIcon.js.map +1 -1
- package/dist/actions/manifest/blockTypeTransformer.js +67 -0
- package/dist/actions/manifest/blockTypeTransformer.js.map +1 -0
- package/dist/actions/manifest/debug.js +4 -0
- package/dist/actions/manifest/debug.js.map +1 -0
- package/dist/actions/manifest/extractManifest.js +26 -41
- package/dist/actions/manifest/extractManifest.js.map +1 -1
- package/dist/actions/manifest/extractManifest.worker.js +31 -0
- package/dist/actions/manifest/extractManifest.worker.js.map +1 -0
- package/dist/actions/manifest/extractWorkspaceManifest.js +29 -372
- package/dist/actions/manifest/extractWorkspaceManifest.js.map +1 -1
- package/dist/actions/manifest/iconResolver.js +30 -0
- package/dist/actions/manifest/iconResolver.js.map +1 -0
- package/dist/actions/manifest/referenceTransformer.js +51 -0
- package/dist/actions/manifest/referenceTransformer.js.map +1 -0
- package/dist/actions/manifest/schemaTypeHelpers.js +2 -2
- package/dist/actions/manifest/schemaTypeHelpers.js.map +1 -1
- package/dist/actions/manifest/schemaTypeTransformer.js +168 -0
- package/dist/actions/manifest/schemaTypeTransformer.js.map +1 -0
- package/dist/actions/manifest/transformerUtils.js +40 -0
- package/dist/actions/manifest/transformerUtils.js.map +1 -0
- package/dist/actions/manifest/types.js +5 -0
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/manifest/validationTransformer.js +84 -0
- package/dist/actions/manifest/validationTransformer.js.map +1 -0
- package/dist/actions/manifest/writeWorkspaceFiles.js +30 -0
- package/dist/actions/manifest/writeWorkspaceFiles.js.map +1 -0
- package/dist/actions/schema/deleteSchemaAction.js +14 -30
- package/dist/actions/schema/deleteSchemaAction.js.map +1 -1
- package/dist/actions/schema/extractSchema.js +1 -8
- package/dist/actions/schema/extractSchema.js.map +1 -1
- package/dist/actions/schema/listSchemas.js +53 -56
- package/dist/actions/schema/listSchemas.js.map +1 -1
- package/dist/actions/schema/types.js +4 -0
- package/dist/actions/schema/types.js.map +1 -1
- package/dist/actions/schema/uniqueWorkspaces.worker.js +22 -0
- package/dist/actions/schema/uniqueWorkspaces.worker.js.map +1 -0
- package/dist/actions/schema/utils/SchemaExtractionError.js +10 -0
- package/dist/actions/schema/utils/SchemaExtractionError.js.map +1 -0
- package/dist/actions/schema/utils/manifestExtractor.js +3 -7
- package/dist/actions/schema/utils/manifestExtractor.js.map +1 -1
- package/dist/actions/schema/utils/schemaStoreValidation.js +1 -9
- package/dist/actions/schema/utils/schemaStoreValidation.js.map +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js +1 -1
- package/dist/actions/schema/utils/uniqByProjectIdDataset.js.map +1 -1
- package/dist/actions/versions/filterSanityModules.js.map +1 -1
- package/dist/actions/versions/findSanityModulesVersions.js +1 -1
- package/dist/actions/versions/findSanityModulesVersions.js.map +1 -1
- package/dist/commands/build.js +2 -5
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/deploy.js +1 -4
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/manifest/extract.js +13 -9
- package/dist/commands/manifest/extract.js.map +1 -1
- package/dist/commands/schema/delete.js +15 -25
- package/dist/commands/schema/delete.js.map +1 -1
- package/dist/commands/schema/list.js +10 -31
- package/dist/commands/schema/list.js.map +1 -1
- package/dist/config/createCliConfig.js.map +1 -1
- package/dist/hooks/init/checkForUpdates.js +14 -0
- package/dist/hooks/init/checkForUpdates.js.map +1 -0
- package/dist/hooks/prerun/setupTelemetry.js +7 -2
- package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
- package/dist/index.d.ts +10 -2287
- package/dist/services/schemas.js.map +1 -1
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -1
- package/dist/util/cliClient.js +5 -3
- package/dist/util/cliClient.js.map +1 -1
- package/dist/util/compareDependencyVersions.js +9 -5
- package/dist/util/compareDependencyVersions.js.map +1 -1
- package/dist/util/getCliVersion.js +1 -1
- package/dist/util/getCliVersion.js.map +1 -1
- package/dist/util/getLocalPackageVersion.js +1 -1
- package/dist/util/getLocalPackageVersion.js.map +1 -1
- package/dist/util/promiseRaceWithTimeout.js +28 -0
- package/dist/util/promiseRaceWithTimeout.js.map +1 -0
- package/dist/util/readModuleVersion.js +11 -5
- package/dist/util/readModuleVersion.js.map +1 -1
- package/dist/util/update/fetchLatestVersion.js +21 -0
- package/dist/util/update/fetchLatestVersion.js.map +1 -0
- package/dist/util/update/getUpdateCommand.js +15 -0
- package/dist/util/update/getUpdateCommand.js.map +1 -0
- package/dist/util/update/isInstalledUsingYarn.js +17 -0
- package/dist/util/update/isInstalledUsingYarn.js.map +1 -0
- package/dist/util/update/showNotificationUpdate.js +31 -0
- package/dist/util/update/showNotificationUpdate.js.map +1 -0
- package/dist/util/update/updateChecker.js +59 -0
- package/dist/util/update/updateChecker.js.map +1 -0
- package/dist/util/update/updateCheckerDebug.js +4 -0
- package/dist/util/update/updateCheckerDebug.js.map +1 -0
- package/oclif.config.js +1 -0
- package/oclif.manifest.json +45 -49
- package/package.json +18 -18
- package/dist/typings/deepSortObject.d.js +0 -2
- package/dist/typings/deepSortObject.d.js.map +0 -1
- package/dist/util/importStudioConfig.js +0 -40
- package/dist/util/importStudioConfig.js.map +0 -1
- package/dist/util/readPackageJson.js +0 -44
- package/dist/util/readPackageJson.js.map +0 -1
- package/dist/util/readPackageManifest.js +0 -46
- package/dist/util/readPackageManifest.js.map +0 -1
- package/dist/util/uniqBy.js +0 -14
- package/dist/util/uniqBy.js.map +0 -1
package/README.md
CHANGED
|
@@ -134,7 +134,7 @@ EXAMPLES
|
|
|
134
134
|
$ sanity backup disable production
|
|
135
135
|
```
|
|
136
136
|
|
|
137
|
-
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
137
|
+
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/backup/disable.ts)_
|
|
138
138
|
|
|
139
139
|
## `sanity backup download [DATASET]`
|
|
140
140
|
|
|
@@ -174,7 +174,7 @@ EXAMPLES
|
|
|
174
174
|
$ sanity backup download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
177
|
+
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/backup/download.ts)_
|
|
178
178
|
|
|
179
179
|
## `sanity backup enable [DATASET]`
|
|
180
180
|
|
|
@@ -200,7 +200,7 @@ EXAMPLES
|
|
|
200
200
|
$ sanity backup enable production
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
203
|
+
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/backup/enable.ts)_
|
|
204
204
|
|
|
205
205
|
## `sanity backup list [DATASET]`
|
|
206
206
|
|
|
@@ -239,7 +239,7 @@ EXAMPLES
|
|
|
239
239
|
$ sanity backup list production --after 2024-01-31 --limit 10
|
|
240
240
|
```
|
|
241
241
|
|
|
242
|
-
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
242
|
+
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/backup/list.ts)_
|
|
243
243
|
|
|
244
244
|
## `sanity blueprints add TYPE`
|
|
245
245
|
|
|
@@ -291,7 +291,7 @@ EXAMPLES
|
|
|
291
291
|
$ sanity blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
|
|
292
292
|
```
|
|
293
293
|
|
|
294
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
294
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/add.ts)_
|
|
295
295
|
|
|
296
296
|
## `sanity blueprints config`
|
|
297
297
|
|
|
@@ -326,7 +326,7 @@ EXAMPLES
|
|
|
326
326
|
$ sanity blueprints config --edit --project-id <projectId> --stack-id <stackId>
|
|
327
327
|
```
|
|
328
328
|
|
|
329
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
329
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/config.ts)_
|
|
330
330
|
|
|
331
331
|
## `sanity blueprints deploy`
|
|
332
332
|
|
|
@@ -356,7 +356,7 @@ EXAMPLES
|
|
|
356
356
|
$ sanity blueprints deploy --no-wait
|
|
357
357
|
```
|
|
358
358
|
|
|
359
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
359
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/deploy.ts)_
|
|
360
360
|
|
|
361
361
|
## `sanity blueprints destroy`
|
|
362
362
|
|
|
@@ -388,7 +388,7 @@ EXAMPLES
|
|
|
388
388
|
$ sanity blueprints destroy --stack-id <stackId> --project-id <projectId> --force --no-wait
|
|
389
389
|
```
|
|
390
390
|
|
|
391
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
391
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/destroy.ts)_
|
|
392
392
|
|
|
393
393
|
## `sanity blueprints doctor`
|
|
394
394
|
|
|
@@ -414,7 +414,7 @@ DESCRIPTION
|
|
|
414
414
|
issues.
|
|
415
415
|
```
|
|
416
416
|
|
|
417
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
417
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/doctor.ts)_
|
|
418
418
|
|
|
419
419
|
## `sanity blueprints info`
|
|
420
420
|
|
|
@@ -444,7 +444,7 @@ EXAMPLES
|
|
|
444
444
|
$ sanity blueprints info --id <stackId>
|
|
445
445
|
```
|
|
446
446
|
|
|
447
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
447
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/info.ts)_
|
|
448
448
|
|
|
449
449
|
## `sanity blueprints init [DIR]`
|
|
450
450
|
|
|
@@ -494,7 +494,7 @@ EXAMPLES
|
|
|
494
494
|
$ sanity blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
|
|
495
495
|
```
|
|
496
496
|
|
|
497
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
497
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/init.ts)_
|
|
498
498
|
|
|
499
499
|
## `sanity blueprints logs`
|
|
500
500
|
|
|
@@ -522,7 +522,7 @@ EXAMPLES
|
|
|
522
522
|
$ sanity blueprints logs --watch
|
|
523
523
|
```
|
|
524
524
|
|
|
525
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
525
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/logs.ts)_
|
|
526
526
|
|
|
527
527
|
## `sanity blueprints plan`
|
|
528
528
|
|
|
@@ -545,7 +545,7 @@ EXAMPLES
|
|
|
545
545
|
$ sanity blueprints plan
|
|
546
546
|
```
|
|
547
547
|
|
|
548
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
548
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/plan.ts)_
|
|
549
549
|
|
|
550
550
|
## `sanity blueprints stacks`
|
|
551
551
|
|
|
@@ -574,7 +574,7 @@ EXAMPLES
|
|
|
574
574
|
$ sanity blueprints stacks --organization-id <organizationId>
|
|
575
575
|
```
|
|
576
576
|
|
|
577
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
577
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/blueprints/stacks.ts)_
|
|
578
578
|
|
|
579
579
|
## `sanity build [OUTPUTDIR]`
|
|
580
580
|
|
|
@@ -603,7 +603,7 @@ EXAMPLES
|
|
|
603
603
|
$ sanity build --no-minify --source-maps
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
-
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
606
|
+
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/build.ts)_
|
|
607
607
|
|
|
608
608
|
## `sanity codemod [CODEMODNAME]`
|
|
609
609
|
|
|
@@ -634,7 +634,7 @@ EXAMPLES
|
|
|
634
634
|
$ sanity codemod reactIconsV3 --dry
|
|
635
635
|
```
|
|
636
636
|
|
|
637
|
-
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
637
|
+
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/codemod.ts)_
|
|
638
638
|
|
|
639
639
|
## `sanity cors add ORIGIN`
|
|
640
640
|
|
|
@@ -667,7 +667,7 @@ EXAMPLES
|
|
|
667
667
|
$ sanity cors add https://myapp.com --credentials
|
|
668
668
|
```
|
|
669
669
|
|
|
670
|
-
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
670
|
+
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/cors/add.ts)_
|
|
671
671
|
|
|
672
672
|
## `sanity cors delete [ORIGIN]`
|
|
673
673
|
|
|
@@ -693,7 +693,7 @@ EXAMPLES
|
|
|
693
693
|
$ sanity cors delete https://example.com
|
|
694
694
|
```
|
|
695
695
|
|
|
696
|
-
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
696
|
+
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/cors/delete.ts)_
|
|
697
697
|
|
|
698
698
|
## `sanity cors list`
|
|
699
699
|
|
|
@@ -712,7 +712,7 @@ EXAMPLES
|
|
|
712
712
|
$ sanity cors list
|
|
713
713
|
```
|
|
714
714
|
|
|
715
|
-
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
715
|
+
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/cors/list.ts)_
|
|
716
716
|
|
|
717
717
|
## `sanity dataset alias create [ALIASNAME] [TARGETDATASET]`
|
|
718
718
|
|
|
@@ -747,7 +747,7 @@ EXAMPLES
|
|
|
747
747
|
$ sanity dataset alias create ~conference conf-2025
|
|
748
748
|
```
|
|
749
749
|
|
|
750
|
-
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
750
|
+
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/alias/create.ts)_
|
|
751
751
|
|
|
752
752
|
## `sanity dataset alias delete ALIASNAME`
|
|
753
753
|
|
|
@@ -780,7 +780,7 @@ EXAMPLES
|
|
|
780
780
|
$ sanity dataset alias delete conference --force
|
|
781
781
|
```
|
|
782
782
|
|
|
783
|
-
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
783
|
+
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/alias/delete.ts)_
|
|
784
784
|
|
|
785
785
|
## `sanity dataset alias link [ALIASNAME] [TARGETDATASET]`
|
|
786
786
|
|
|
@@ -822,7 +822,7 @@ EXAMPLES
|
|
|
822
822
|
$ sanity dataset alias link conference conf-2025 --force
|
|
823
823
|
```
|
|
824
824
|
|
|
825
|
-
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
825
|
+
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/alias/link.ts)_
|
|
826
826
|
|
|
827
827
|
## `sanity dataset alias unlink [ALIASNAME]`
|
|
828
828
|
|
|
@@ -859,7 +859,7 @@ EXAMPLES
|
|
|
859
859
|
$ sanity dataset alias unlink conference --force
|
|
860
860
|
```
|
|
861
861
|
|
|
862
|
-
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
862
|
+
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/alias/unlink.ts)_
|
|
863
863
|
|
|
864
864
|
## `sanity dataset copy [SOURCE] [TARGET]`
|
|
865
865
|
|
|
@@ -920,7 +920,7 @@ EXAMPLES
|
|
|
920
920
|
$ sanity dataset copy --list --offset 2 --limit 10
|
|
921
921
|
```
|
|
922
922
|
|
|
923
|
-
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
923
|
+
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/copy.ts)_
|
|
924
924
|
|
|
925
925
|
## `sanity dataset create [NAME]`
|
|
926
926
|
|
|
@@ -954,7 +954,7 @@ EXAMPLES
|
|
|
954
954
|
$ sanity dataset create my-dataset --visibility private
|
|
955
955
|
```
|
|
956
956
|
|
|
957
|
-
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
957
|
+
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/create.ts)_
|
|
958
958
|
|
|
959
959
|
## `sanity dataset delete DATASETNAME`
|
|
960
960
|
|
|
@@ -983,7 +983,7 @@ EXAMPLES
|
|
|
983
983
|
$ sanity dataset delete my-dataset --force
|
|
984
984
|
```
|
|
985
985
|
|
|
986
|
-
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
986
|
+
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/delete.ts)_
|
|
987
987
|
|
|
988
988
|
## `sanity dataset export [NAME] [DESTINATION]`
|
|
989
989
|
|
|
@@ -1033,7 +1033,7 @@ EXAMPLES
|
|
|
1033
1033
|
$ sanity dataset export staging staging.tar.gz --types products,shops
|
|
1034
1034
|
```
|
|
1035
1035
|
|
|
1036
|
-
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1036
|
+
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/export.ts)_
|
|
1037
1037
|
|
|
1038
1038
|
## `sanity dataset import SOURCE`
|
|
1039
1039
|
|
|
@@ -1075,7 +1075,7 @@ EXAMPLES
|
|
|
1075
1075
|
cat my-dataset.ndjson | sanity dataset import -p myPrOj -d test -
|
|
1076
1076
|
```
|
|
1077
1077
|
|
|
1078
|
-
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1078
|
+
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/import.ts)_
|
|
1079
1079
|
|
|
1080
1080
|
## `sanity dataset list`
|
|
1081
1081
|
|
|
@@ -1094,7 +1094,7 @@ EXAMPLES
|
|
|
1094
1094
|
$ sanity dataset list
|
|
1095
1095
|
```
|
|
1096
1096
|
|
|
1097
|
-
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1097
|
+
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/list.ts)_
|
|
1098
1098
|
|
|
1099
1099
|
## `sanity dataset visibility get DATASET`
|
|
1100
1100
|
|
|
@@ -1116,7 +1116,7 @@ EXAMPLES
|
|
|
1116
1116
|
$ sanity dataset visibility get my-dataset
|
|
1117
1117
|
```
|
|
1118
1118
|
|
|
1119
|
-
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1119
|
+
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/visibility/get.ts)_
|
|
1120
1120
|
|
|
1121
1121
|
## `sanity dataset visibility set DATASET MODE`
|
|
1122
1122
|
|
|
@@ -1143,7 +1143,7 @@ EXAMPLES
|
|
|
1143
1143
|
$ sanity dataset visibility set my-dataset public
|
|
1144
1144
|
```
|
|
1145
1145
|
|
|
1146
|
-
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1146
|
+
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dataset/visibility/set.ts)_
|
|
1147
1147
|
|
|
1148
1148
|
## `sanity debug`
|
|
1149
1149
|
|
|
@@ -1165,7 +1165,7 @@ EXAMPLES
|
|
|
1165
1165
|
$ sanity debug --secrets
|
|
1166
1166
|
```
|
|
1167
1167
|
|
|
1168
|
-
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1168
|
+
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/debug.ts)_
|
|
1169
1169
|
|
|
1170
1170
|
## `sanity deploy [SOURCEDIR]`
|
|
1171
1171
|
|
|
@@ -1192,7 +1192,7 @@ DESCRIPTION
|
|
|
1192
1192
|
Builds and deploys Sanity Studio or application to Sanity hosting
|
|
1193
1193
|
|
|
1194
1194
|
EXAMPLES
|
|
1195
|
-
Build the studio
|
|
1195
|
+
Build and deploy the studio to Sanity hosting
|
|
1196
1196
|
|
|
1197
1197
|
$ sanity deploy
|
|
1198
1198
|
|
|
@@ -1205,7 +1205,7 @@ EXAMPLES
|
|
|
1205
1205
|
$ sanity deploy --schema-required
|
|
1206
1206
|
```
|
|
1207
1207
|
|
|
1208
|
-
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1208
|
+
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/deploy.ts)_
|
|
1209
1209
|
|
|
1210
1210
|
## `sanity dev`
|
|
1211
1211
|
|
|
@@ -1232,7 +1232,7 @@ EXAMPLES
|
|
|
1232
1232
|
$ sanity dev --load-in-dashboard
|
|
1233
1233
|
```
|
|
1234
1234
|
|
|
1235
|
-
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1235
|
+
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/dev.ts)_
|
|
1236
1236
|
|
|
1237
1237
|
## `sanity docs browse`
|
|
1238
1238
|
|
|
@@ -1246,7 +1246,7 @@ DESCRIPTION
|
|
|
1246
1246
|
Open Sanity docs in a web browser
|
|
1247
1247
|
```
|
|
1248
1248
|
|
|
1249
|
-
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1249
|
+
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/docs/browse.ts)_
|
|
1250
1250
|
|
|
1251
1251
|
## `sanity docs read PATH`
|
|
1252
1252
|
|
|
@@ -1283,7 +1283,7 @@ EXAMPLES
|
|
|
1283
1283
|
$ sanity docs read https://www.sanity.io/docs/studio/installation -w
|
|
1284
1284
|
```
|
|
1285
1285
|
|
|
1286
|
-
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1286
|
+
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/docs/read.ts)_
|
|
1287
1287
|
|
|
1288
1288
|
## `sanity docs search QUERY`
|
|
1289
1289
|
|
|
@@ -1316,7 +1316,7 @@ EXAMPLES
|
|
|
1316
1316
|
$ sanity docs search "deployment" --limit=5
|
|
1317
1317
|
```
|
|
1318
1318
|
|
|
1319
|
-
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1319
|
+
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/docs/search.ts)_
|
|
1320
1320
|
|
|
1321
1321
|
## `sanity documents create [FILE]`
|
|
1322
1322
|
|
|
@@ -1360,7 +1360,7 @@ EXAMPLES
|
|
|
1360
1360
|
$ sanity documents create --id myDocId --watch --replace --json5
|
|
1361
1361
|
```
|
|
1362
1362
|
|
|
1363
|
-
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1363
|
+
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/documents/create.ts)_
|
|
1364
1364
|
|
|
1365
1365
|
## `sanity documents delete ID [IDS]`
|
|
1366
1366
|
|
|
@@ -1398,7 +1398,7 @@ EXAMPLES
|
|
|
1398
1398
|
$ sanity documents delete doc1 doc2
|
|
1399
1399
|
```
|
|
1400
1400
|
|
|
1401
|
-
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1401
|
+
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/documents/delete.ts)_
|
|
1402
1402
|
|
|
1403
1403
|
## `sanity documents get DOCUMENTID`
|
|
1404
1404
|
|
|
@@ -1432,7 +1432,7 @@ EXAMPLES
|
|
|
1432
1432
|
$ sanity documents get myDocId --dataset production
|
|
1433
1433
|
```
|
|
1434
1434
|
|
|
1435
|
-
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1435
|
+
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/documents/get.ts)_
|
|
1436
1436
|
|
|
1437
1437
|
## `sanity documents query QUERY`
|
|
1438
1438
|
|
|
@@ -1469,7 +1469,7 @@ EXAMPLES
|
|
|
1469
1469
|
$ sanity documents query '*[_id == "header"] { "headerText": pt::text(body) }' --api-version v2021-06-07
|
|
1470
1470
|
```
|
|
1471
1471
|
|
|
1472
|
-
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1472
|
+
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/documents/query.ts)_
|
|
1473
1473
|
|
|
1474
1474
|
## `sanity documents validate`
|
|
1475
1475
|
|
|
@@ -1518,7 +1518,7 @@ EXAMPLES
|
|
|
1518
1518
|
$ sanity documents validate --level info
|
|
1519
1519
|
```
|
|
1520
1520
|
|
|
1521
|
-
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1521
|
+
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/documents/validate.ts)_
|
|
1522
1522
|
|
|
1523
1523
|
## `sanity exec SCRIPT`
|
|
1524
1524
|
|
|
@@ -1559,7 +1559,7 @@ EXAMPLES
|
|
|
1559
1559
|
$ sanity exec --mock-browser-env myscript.js -- --dry-run positional-argument
|
|
1560
1560
|
```
|
|
1561
1561
|
|
|
1562
|
-
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1562
|
+
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/exec.ts)_
|
|
1563
1563
|
|
|
1564
1564
|
## `sanity functions add`
|
|
1565
1565
|
|
|
@@ -1608,7 +1608,7 @@ EXAMPLES
|
|
|
1608
1608
|
$ sanity functions add --name my-function --type document-create --type document-update --lang js
|
|
1609
1609
|
```
|
|
1610
1610
|
|
|
1611
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1611
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/add.ts)_
|
|
1612
1612
|
|
|
1613
1613
|
## `sanity functions dev`
|
|
1614
1614
|
|
|
@@ -1642,7 +1642,7 @@ EXAMPLES
|
|
|
1642
1642
|
$ sanity functions dev --timeout 60
|
|
1643
1643
|
```
|
|
1644
1644
|
|
|
1645
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1645
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/dev.ts)_
|
|
1646
1646
|
|
|
1647
1647
|
## `sanity functions env add NAME KEY VALUE`
|
|
1648
1648
|
|
|
@@ -1669,7 +1669,7 @@ EXAMPLES
|
|
|
1669
1669
|
$ sanity functions env add MyFunction API_URL https://api.example.com/
|
|
1670
1670
|
```
|
|
1671
1671
|
|
|
1672
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1672
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/env/add.ts)_
|
|
1673
1673
|
|
|
1674
1674
|
## `sanity functions env list NAME`
|
|
1675
1675
|
|
|
@@ -1693,7 +1693,7 @@ EXAMPLES
|
|
|
1693
1693
|
$ sanity functions env list MyFunction
|
|
1694
1694
|
```
|
|
1695
1695
|
|
|
1696
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1696
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/env/list.ts)_
|
|
1697
1697
|
|
|
1698
1698
|
## `sanity functions env remove NAME KEY`
|
|
1699
1699
|
|
|
@@ -1719,7 +1719,7 @@ EXAMPLES
|
|
|
1719
1719
|
$ sanity functions env remove MyFunction API_URL
|
|
1720
1720
|
```
|
|
1721
1721
|
|
|
1722
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1722
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/env/remove.ts)_
|
|
1723
1723
|
|
|
1724
1724
|
## `sanity functions logs [NAME]`
|
|
1725
1725
|
|
|
@@ -1758,7 +1758,7 @@ EXAMPLES
|
|
|
1758
1758
|
$ sanity functions logs <name> --delete
|
|
1759
1759
|
```
|
|
1760
1760
|
|
|
1761
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1761
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/logs.ts)_
|
|
1762
1762
|
|
|
1763
1763
|
## `sanity functions test [NAME]`
|
|
1764
1764
|
|
|
@@ -1812,7 +1812,7 @@ EXAMPLES
|
|
|
1812
1812
|
$ sanity functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
|
|
1813
1813
|
```
|
|
1814
1814
|
|
|
1815
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.
|
|
1815
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.2.1/src/commands/functions/test.ts)_
|
|
1816
1816
|
|
|
1817
1817
|
## `sanity graphql deploy`
|
|
1818
1818
|
|
|
@@ -1857,7 +1857,7 @@ EXAMPLES
|
|
|
1857
1857
|
$ sanity graphql deploy --playground
|
|
1858
1858
|
```
|
|
1859
1859
|
|
|
1860
|
-
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1860
|
+
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/graphql/deploy.ts)_
|
|
1861
1861
|
|
|
1862
1862
|
## `sanity graphql list`
|
|
1863
1863
|
|
|
@@ -1876,7 +1876,7 @@ EXAMPLES
|
|
|
1876
1876
|
$ sanity graphql list
|
|
1877
1877
|
```
|
|
1878
1878
|
|
|
1879
|
-
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1879
|
+
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/graphql/list.ts)_
|
|
1880
1880
|
|
|
1881
1881
|
## `sanity graphql undeploy`
|
|
1882
1882
|
|
|
@@ -1918,7 +1918,7 @@ EXAMPLES
|
|
|
1918
1918
|
$ sanity graphql undeploy --force
|
|
1919
1919
|
```
|
|
1920
1920
|
|
|
1921
|
-
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1921
|
+
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/graphql/undeploy.ts)_
|
|
1922
1922
|
|
|
1923
1923
|
## `sanity help [COMMAND]`
|
|
1924
1924
|
|
|
@@ -1960,7 +1960,7 @@ EXAMPLES
|
|
|
1960
1960
|
$ sanity hook attempt abc123
|
|
1961
1961
|
```
|
|
1962
1962
|
|
|
1963
|
-
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1963
|
+
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/hook/attempt.ts)_
|
|
1964
1964
|
|
|
1965
1965
|
## `sanity hook create`
|
|
1966
1966
|
|
|
@@ -1979,7 +1979,7 @@ EXAMPLES
|
|
|
1979
1979
|
$ sanity hook create
|
|
1980
1980
|
```
|
|
1981
1981
|
|
|
1982
|
-
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
1982
|
+
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/hook/create.ts)_
|
|
1983
1983
|
|
|
1984
1984
|
## `sanity hook delete [NAME]`
|
|
1985
1985
|
|
|
@@ -2005,7 +2005,7 @@ EXAMPLES
|
|
|
2005
2005
|
$ sanity hook delete my-hook
|
|
2006
2006
|
```
|
|
2007
2007
|
|
|
2008
|
-
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2008
|
+
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/hook/delete.ts)_
|
|
2009
2009
|
|
|
2010
2010
|
## `sanity hook list`
|
|
2011
2011
|
|
|
@@ -2024,7 +2024,7 @@ EXAMPLES
|
|
|
2024
2024
|
$ sanity hook list
|
|
2025
2025
|
```
|
|
2026
2026
|
|
|
2027
|
-
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2027
|
+
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/hook/list.ts)_
|
|
2028
2028
|
|
|
2029
2029
|
## `sanity hook logs [NAME]`
|
|
2030
2030
|
|
|
@@ -2053,7 +2053,7 @@ EXAMPLES
|
|
|
2053
2053
|
$ sanity hook logs [NAME]
|
|
2054
2054
|
```
|
|
2055
2055
|
|
|
2056
|
-
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2056
|
+
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/hook/logs.ts)_
|
|
2057
2057
|
|
|
2058
2058
|
## `sanity init`
|
|
2059
2059
|
|
|
@@ -2122,7 +2122,7 @@ EXAMPLES
|
|
|
2122
2122
|
--output-path /Users/espenh/movies-unlimited
|
|
2123
2123
|
```
|
|
2124
2124
|
|
|
2125
|
-
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2125
|
+
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/init.ts)_
|
|
2126
2126
|
|
|
2127
2127
|
## `sanity install [PACKAGES]`
|
|
2128
2128
|
|
|
@@ -2146,7 +2146,7 @@ EXAMPLES
|
|
|
2146
2146
|
$ sanity install some-package another-package
|
|
2147
2147
|
```
|
|
2148
2148
|
|
|
2149
|
-
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2149
|
+
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/install.ts)_
|
|
2150
2150
|
|
|
2151
2151
|
## `sanity learn`
|
|
2152
2152
|
|
|
@@ -2160,7 +2160,7 @@ DESCRIPTION
|
|
|
2160
2160
|
Opens Sanity Learn in your web browser
|
|
2161
2161
|
```
|
|
2162
2162
|
|
|
2163
|
-
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2163
|
+
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/learn.ts)_
|
|
2164
2164
|
|
|
2165
2165
|
## `sanity login`
|
|
2166
2166
|
|
|
@@ -2192,7 +2192,7 @@ EXAMPLES
|
|
|
2192
2192
|
$ sanity login --provider github --no-open
|
|
2193
2193
|
```
|
|
2194
2194
|
|
|
2195
|
-
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2195
|
+
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/login.ts)_
|
|
2196
2196
|
|
|
2197
2197
|
## `sanity logout`
|
|
2198
2198
|
|
|
@@ -2206,7 +2206,7 @@ DESCRIPTION
|
|
|
2206
2206
|
Logs out the CLI from the current user session
|
|
2207
2207
|
```
|
|
2208
2208
|
|
|
2209
|
-
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2209
|
+
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/logout.ts)_
|
|
2210
2210
|
|
|
2211
2211
|
## `sanity manage`
|
|
2212
2212
|
|
|
@@ -2220,7 +2220,7 @@ DESCRIPTION
|
|
|
2220
2220
|
Opens project management interface in your web browser
|
|
2221
2221
|
```
|
|
2222
2222
|
|
|
2223
|
-
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2223
|
+
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/manage.ts)_
|
|
2224
2224
|
|
|
2225
2225
|
## `sanity manifest extract`
|
|
2226
2226
|
|
|
@@ -2248,7 +2248,7 @@ EXAMPLES
|
|
|
2248
2248
|
$ sanity manifest extract --path /public/static
|
|
2249
2249
|
```
|
|
2250
2250
|
|
|
2251
|
-
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2251
|
+
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/manifest/extract.ts)_
|
|
2252
2252
|
|
|
2253
2253
|
## `sanity mcp configure`
|
|
2254
2254
|
|
|
@@ -2267,7 +2267,7 @@ EXAMPLES
|
|
|
2267
2267
|
$ sanity mcp configure
|
|
2268
2268
|
```
|
|
2269
2269
|
|
|
2270
|
-
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2270
|
+
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/mcp/configure.ts)_
|
|
2271
2271
|
|
|
2272
2272
|
## `sanity media create-aspect`
|
|
2273
2273
|
|
|
@@ -2286,7 +2286,7 @@ EXAMPLES
|
|
|
2286
2286
|
$ sanity media create-aspect
|
|
2287
2287
|
```
|
|
2288
2288
|
|
|
2289
|
-
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2289
|
+
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/media/create-aspect.ts)_
|
|
2290
2290
|
|
|
2291
2291
|
## `sanity media delete-aspect ASPECTNAME`
|
|
2292
2292
|
|
|
@@ -2312,7 +2312,7 @@ EXAMPLES
|
|
|
2312
2312
|
$ sanity media delete-aspect someAspect
|
|
2313
2313
|
```
|
|
2314
2314
|
|
|
2315
|
-
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2315
|
+
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/media/delete-aspect.ts)_
|
|
2316
2316
|
|
|
2317
2317
|
## `sanity media deploy-aspect [ASPECTNAME]`
|
|
2318
2318
|
|
|
@@ -2342,7 +2342,7 @@ EXAMPLES
|
|
|
2342
2342
|
$ sanity media deploy-aspect --all
|
|
2343
2343
|
```
|
|
2344
2344
|
|
|
2345
|
-
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2345
|
+
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/media/deploy-aspect.ts)_
|
|
2346
2346
|
|
|
2347
2347
|
## `sanity media export [DESTINATION]`
|
|
2348
2348
|
|
|
@@ -2380,7 +2380,7 @@ EXAMPLES
|
|
|
2380
2380
|
$ sanity media export --media-library-id my-library-id
|
|
2381
2381
|
```
|
|
2382
2382
|
|
|
2383
|
-
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2383
|
+
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/media/export.ts)_
|
|
2384
2384
|
|
|
2385
2385
|
## `sanity media import SOURCE`
|
|
2386
2386
|
|
|
@@ -2415,7 +2415,7 @@ EXAMPLES
|
|
|
2415
2415
|
$ sanity media import products --replace-aspects
|
|
2416
2416
|
```
|
|
2417
2417
|
|
|
2418
|
-
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2418
|
+
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/media/import.ts)_
|
|
2419
2419
|
|
|
2420
2420
|
## `sanity migration create [TITLE]`
|
|
2421
2421
|
|
|
@@ -2543,7 +2543,7 @@ EXAMPLES
|
|
|
2543
2543
|
$ sanity openapi get query > query-api.yaml
|
|
2544
2544
|
```
|
|
2545
2545
|
|
|
2546
|
-
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2546
|
+
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/openapi/get.ts)_
|
|
2547
2547
|
|
|
2548
2548
|
## `sanity openapi list`
|
|
2549
2549
|
|
|
@@ -2574,7 +2574,7 @@ EXAMPLES
|
|
|
2574
2574
|
$ sanity openapi list --web
|
|
2575
2575
|
```
|
|
2576
2576
|
|
|
2577
|
-
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2577
|
+
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/openapi/list.ts)_
|
|
2578
2578
|
|
|
2579
2579
|
## `sanity preview [OUTPUTDIR]`
|
|
2580
2580
|
|
|
@@ -2605,7 +2605,7 @@ EXAMPLES
|
|
|
2605
2605
|
$ sanity preview some/build-output-dir
|
|
2606
2606
|
```
|
|
2607
2607
|
|
|
2608
|
-
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2608
|
+
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/preview.ts)_
|
|
2609
2609
|
|
|
2610
2610
|
## `sanity projects create [PROJECTNAME]`
|
|
2611
2611
|
|
|
@@ -2653,7 +2653,7 @@ EXAMPLES
|
|
|
2653
2653
|
$ sanity projects create "CI Project" --yes --json
|
|
2654
2654
|
```
|
|
2655
2655
|
|
|
2656
|
-
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2656
|
+
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/projects/create.ts)_
|
|
2657
2657
|
|
|
2658
2658
|
## `sanity projects list`
|
|
2659
2659
|
|
|
@@ -2682,7 +2682,7 @@ EXAMPLES
|
|
|
2682
2682
|
$ sanity projects list --sort=members --order=asc
|
|
2683
2683
|
```
|
|
2684
2684
|
|
|
2685
|
-
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2685
|
+
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/projects/list.ts)_
|
|
2686
2686
|
|
|
2687
2687
|
## `sanity schema delete`
|
|
2688
2688
|
|
|
@@ -2690,14 +2690,12 @@ Delete schema documents by id
|
|
|
2690
2690
|
|
|
2691
2691
|
```
|
|
2692
2692
|
USAGE
|
|
2693
|
-
$ sanity schema delete --ids <value> [--dataset <value>] [--
|
|
2693
|
+
$ sanity schema delete --ids <value> [--dataset <value>] [--verbose]
|
|
2694
2694
|
|
|
2695
2695
|
FLAGS
|
|
2696
|
-
--dataset=<value>
|
|
2697
|
-
--
|
|
2698
|
-
--
|
|
2699
|
-
--manifest-dir=<value> [default: ./dist/static] Directory containing manifest file
|
|
2700
|
-
--verbose Enable verbose logging
|
|
2696
|
+
--dataset=<value> Delete schemas from a specific dataset
|
|
2697
|
+
--ids=<value> (required) Comma-separated list of schema ids to delete
|
|
2698
|
+
--verbose Enable verbose logging
|
|
2701
2699
|
|
|
2702
2700
|
DESCRIPTION
|
|
2703
2701
|
Delete schema documents by id
|
|
@@ -2710,13 +2708,9 @@ EXAMPLES
|
|
|
2710
2708
|
Delete multiple schemas
|
|
2711
2709
|
|
|
2712
2710
|
$ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
|
|
2713
|
-
|
|
2714
|
-
Delete using a pre-existing manifest file (config changes in sanity.config will not be picked up)
|
|
2715
|
-
|
|
2716
|
-
$ sanity schema delete --no-extract-manifest --ids sanity.workspace.schema.workspaceName
|
|
2717
2711
|
```
|
|
2718
2712
|
|
|
2719
|
-
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2713
|
+
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/schema/delete.ts)_
|
|
2720
2714
|
|
|
2721
2715
|
## `sanity schema deploy`
|
|
2722
2716
|
|
|
@@ -2756,7 +2750,7 @@ EXAMPLES
|
|
|
2756
2750
|
$ sanity schema deploy --no-extract-manifest
|
|
2757
2751
|
```
|
|
2758
2752
|
|
|
2759
|
-
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2753
|
+
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/schema/deploy.ts)_
|
|
2760
2754
|
|
|
2761
2755
|
## `sanity schema extract`
|
|
2762
2756
|
|
|
@@ -2784,7 +2778,7 @@ EXAMPLES
|
|
|
2784
2778
|
$ sanity schema extract --workspace default
|
|
2785
2779
|
```
|
|
2786
2780
|
|
|
2787
|
-
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2781
|
+
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/schema/extract.ts)_
|
|
2788
2782
|
|
|
2789
2783
|
## `sanity schema list`
|
|
2790
2784
|
|
|
@@ -2792,13 +2786,11 @@ Lists all schemas in the current dataset.
|
|
|
2792
2786
|
|
|
2793
2787
|
```
|
|
2794
2788
|
USAGE
|
|
2795
|
-
$ sanity schema list [--
|
|
2789
|
+
$ sanity schema list [--id <schema_id>] [--json]
|
|
2796
2790
|
|
|
2797
2791
|
FLAGS
|
|
2798
|
-
--
|
|
2799
|
-
--
|
|
2800
|
-
--json Get schema as json
|
|
2801
|
-
--manifest-dir=<directory> [default: ./dist/static] Directory containing manifest file
|
|
2792
|
+
--id=<schema_id> Fetch a single schema by id
|
|
2793
|
+
--json Get schema as json
|
|
2802
2794
|
|
|
2803
2795
|
DESCRIPTION
|
|
2804
2796
|
Lists all schemas in the current dataset.
|
|
@@ -2824,13 +2816,9 @@ EXAMPLES
|
|
|
2824
2816
|
Get singular stored schema as pretty-printed json-object
|
|
2825
2817
|
|
|
2826
2818
|
$ sanity schema list --json --id _.schemas.workspaceName
|
|
2827
|
-
|
|
2828
|
-
Runs using a pre-existing manifest file. Config changes in sanity.config will not be picked up in this case.
|
|
2829
|
-
|
|
2830
|
-
$ sanity schema list --no-extract-manifest
|
|
2831
2819
|
```
|
|
2832
2820
|
|
|
2833
|
-
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2821
|
+
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/schema/list.ts)_
|
|
2834
2822
|
|
|
2835
2823
|
## `sanity schema validate`
|
|
2836
2824
|
|
|
@@ -2873,7 +2861,7 @@ EXAMPLES
|
|
|
2873
2861
|
$ sanity schema validate --debug-metafile-path metafile.json
|
|
2874
2862
|
```
|
|
2875
2863
|
|
|
2876
|
-
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2864
|
+
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/schema/validate.ts)_
|
|
2877
2865
|
|
|
2878
2866
|
## `sanity start [OUTPUTDIR]`
|
|
2879
2867
|
|
|
@@ -2921,7 +2909,7 @@ EXAMPLES
|
|
|
2921
2909
|
$ sanity telemetry telemetry disable
|
|
2922
2910
|
```
|
|
2923
2911
|
|
|
2924
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2912
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/telemetry/disable.ts)_
|
|
2925
2913
|
|
|
2926
2914
|
## `sanity telemetry enable`
|
|
2927
2915
|
|
|
@@ -2940,7 +2928,7 @@ EXAMPLES
|
|
|
2940
2928
|
$ sanity telemetry telemetry enable
|
|
2941
2929
|
```
|
|
2942
2930
|
|
|
2943
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2931
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/telemetry/enable.ts)_
|
|
2944
2932
|
|
|
2945
2933
|
## `sanity telemetry status`
|
|
2946
2934
|
|
|
@@ -2959,7 +2947,7 @@ EXAMPLES
|
|
|
2959
2947
|
$ sanity telemetry telemetry status
|
|
2960
2948
|
```
|
|
2961
2949
|
|
|
2962
|
-
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2950
|
+
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/telemetry/status.ts)_
|
|
2963
2951
|
|
|
2964
2952
|
## `sanity tokens add [LABEL]`
|
|
2965
2953
|
|
|
@@ -2998,7 +2986,7 @@ EXAMPLES
|
|
|
2998
2986
|
$ sanity tokens add "API Token" --json
|
|
2999
2987
|
```
|
|
3000
2988
|
|
|
3001
|
-
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2989
|
+
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/tokens/add.ts)_
|
|
3002
2990
|
|
|
3003
2991
|
## `sanity tokens delete [TOKENID]`
|
|
3004
2992
|
|
|
@@ -3031,7 +3019,7 @@ EXAMPLES
|
|
|
3031
3019
|
$ sanity tokens delete silJ2lFmK6dONB --yes
|
|
3032
3020
|
```
|
|
3033
3021
|
|
|
3034
|
-
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3022
|
+
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/tokens/delete.ts)_
|
|
3035
3023
|
|
|
3036
3024
|
## `sanity tokens list`
|
|
3037
3025
|
|
|
@@ -3057,7 +3045,7 @@ EXAMPLES
|
|
|
3057
3045
|
$ sanity tokens list --json
|
|
3058
3046
|
```
|
|
3059
3047
|
|
|
3060
|
-
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3048
|
+
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/tokens/list.ts)_
|
|
3061
3049
|
|
|
3062
3050
|
## `sanity typegen generate`
|
|
3063
3051
|
|
|
@@ -3106,7 +3094,7 @@ EXAMPLES
|
|
|
3106
3094
|
$ sanity typegen generate
|
|
3107
3095
|
```
|
|
3108
3096
|
|
|
3109
|
-
_See code: [@sanity/codegen](https://github.com/sanity-io/codegen/blob/v5.9.
|
|
3097
|
+
_See code: [@sanity/codegen](https://github.com/sanity-io/codegen/blob/v5.9.3/src/commands/typegen/generate.ts)_
|
|
3110
3098
|
|
|
3111
3099
|
## `sanity undeploy`
|
|
3112
3100
|
|
|
@@ -3123,7 +3111,7 @@ DESCRIPTION
|
|
|
3123
3111
|
Removes the deployed Sanity Studio/App from Sanity hosting
|
|
3124
3112
|
```
|
|
3125
3113
|
|
|
3126
|
-
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3114
|
+
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/undeploy.ts)_
|
|
3127
3115
|
|
|
3128
3116
|
## `sanity users invite [EMAIL]`
|
|
3129
3117
|
|
|
@@ -3156,7 +3144,7 @@ EXAMPLES
|
|
|
3156
3144
|
$ sanity users invite pippi@sanity.io --role administrator
|
|
3157
3145
|
```
|
|
3158
3146
|
|
|
3159
|
-
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3147
|
+
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/users/invite.ts)_
|
|
3160
3148
|
|
|
3161
3149
|
## `sanity users list`
|
|
3162
3150
|
|
|
@@ -3191,7 +3179,7 @@ EXAMPLES
|
|
|
3191
3179
|
$ sanity users list --sort role
|
|
3192
3180
|
```
|
|
3193
3181
|
|
|
3194
|
-
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3182
|
+
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/users/list.ts)_
|
|
3195
3183
|
|
|
3196
3184
|
## `sanity versions`
|
|
3197
3185
|
|
|
@@ -3208,6 +3196,6 @@ EXAMPLES
|
|
|
3208
3196
|
$ sanity versions
|
|
3209
3197
|
```
|
|
3210
3198
|
|
|
3211
|
-
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3199
|
+
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.11/src/commands/versions.ts)_
|
|
3212
3200
|
|
|
3213
3201
|
<!-- commandsstop -->
|