@sanity/cli 6.1.8 → 6.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 +105 -103
- package/dist/actions/debug/gatherDebugInfo.js +130 -81
- package/dist/actions/debug/gatherDebugInfo.js.map +1 -1
- package/dist/actions/debug/output.js +25 -0
- package/dist/actions/debug/output.js.map +1 -0
- package/dist/actions/debug/types.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +5 -5
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/schema/getExtractOptions.js.map +1 -1
- package/dist/commands/{backup → backups}/disable.js +3 -0
- package/dist/commands/backups/disable.js.map +1 -0
- package/dist/commands/{backup → backups}/download.js +3 -0
- package/dist/commands/backups/download.js.map +1 -0
- package/dist/commands/{backup → backups}/enable.js +3 -0
- package/dist/commands/backups/enable.js.map +1 -0
- package/dist/commands/{backup → backups}/list.js +3 -0
- package/dist/commands/backups/list.js.map +1 -0
- package/dist/commands/{dataset → datasets}/alias/create.js +3 -0
- package/dist/commands/datasets/alias/create.js.map +1 -0
- package/dist/commands/{dataset → datasets}/alias/delete.js +3 -0
- package/dist/commands/datasets/alias/delete.js.map +1 -0
- package/dist/commands/{dataset → datasets}/alias/link.js +3 -0
- package/dist/commands/datasets/alias/link.js.map +1 -0
- package/dist/commands/{dataset → datasets}/alias/unlink.js +3 -0
- package/dist/commands/datasets/alias/unlink.js.map +1 -0
- package/dist/commands/{dataset → datasets}/copy.js +3 -0
- package/dist/commands/datasets/copy.js.map +1 -0
- package/dist/commands/{dataset → datasets}/create.js +3 -0
- package/dist/commands/datasets/create.js.map +1 -0
- package/dist/commands/{dataset → datasets}/delete.js +3 -0
- package/dist/commands/datasets/delete.js.map +1 -0
- package/dist/commands/{dataset → datasets}/embeddings/disable.js +3 -0
- package/dist/commands/datasets/embeddings/disable.js.map +1 -0
- package/dist/commands/{dataset → datasets}/embeddings/enable.js +3 -0
- package/dist/commands/datasets/embeddings/enable.js.map +1 -0
- package/dist/commands/{dataset → datasets}/embeddings/status.js +3 -0
- package/dist/commands/datasets/embeddings/status.js.map +1 -0
- package/dist/commands/{dataset → datasets}/export.js +3 -0
- package/dist/commands/datasets/export.js.map +1 -0
- package/dist/commands/{dataset → datasets}/import.js +3 -0
- package/dist/commands/datasets/import.js.map +1 -0
- package/dist/commands/{dataset → datasets}/list.js +3 -0
- package/dist/commands/datasets/list.js.map +1 -0
- package/dist/commands/{dataset → datasets}/visibility/get.js +3 -0
- package/dist/commands/datasets/visibility/get.js.map +1 -0
- package/dist/commands/{dataset → datasets}/visibility/set.js +3 -0
- package/dist/commands/datasets/visibility/set.js.map +1 -0
- package/dist/commands/debug.js +189 -74
- package/dist/commands/debug.js.map +1 -1
- package/dist/commands/documents/create.js +3 -0
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +3 -0
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +3 -0
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +3 -0
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/documents/validate.js +3 -0
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/{hook → hooks}/attempt.js +3 -0
- package/dist/commands/hooks/attempt.js.map +1 -0
- package/dist/commands/{hook → hooks}/create.js +3 -0
- package/dist/commands/hooks/create.js.map +1 -0
- package/dist/commands/{hook → hooks}/delete.js +3 -0
- package/dist/commands/hooks/delete.js.map +1 -0
- package/dist/commands/{hook → hooks}/list.js +3 -0
- package/dist/commands/hooks/list.js.map +1 -0
- package/dist/commands/{hook → hooks}/logs.js +3 -0
- package/dist/commands/hooks/logs.js.map +1 -0
- package/dist/commands/init.js +65 -13
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mcp/configure.js +3 -2
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/preview.js +1 -0
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/projects/create.js +3 -0
- package/dist/commands/projects/create.js.map +1 -1
- package/dist/commands/projects/list.js +3 -0
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/{schema → schemas}/delete.js +3 -0
- package/dist/commands/schemas/delete.js.map +1 -0
- package/dist/commands/{schema → schemas}/deploy.js +3 -0
- package/dist/commands/schemas/deploy.js.map +1 -0
- package/dist/commands/{schema → schemas}/extract.js +3 -0
- package/dist/commands/schemas/extract.js.map +1 -0
- package/dist/commands/{schema → schemas}/list.js +3 -0
- package/dist/commands/schemas/list.js.map +1 -0
- package/dist/commands/{schema → schemas}/validate.js +3 -0
- package/dist/commands/schemas/validate.js.map +1 -0
- package/dist/commands/tokens/add.js +3 -0
- package/dist/commands/tokens/add.js.map +1 -1
- package/dist/commands/tokens/delete.js +3 -0
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/tokens/list.js +3 -0
- package/dist/commands/tokens/list.js.map +1 -1
- package/dist/commands/users/invite.js +3 -0
- package/dist/commands/users/invite.js.map +1 -1
- package/dist/commands/users/list.js +3 -0
- package/dist/commands/users/list.js.map +1 -1
- package/dist/hooks/commandNotFound/topicAliases.js +71 -0
- package/dist/hooks/commandNotFound/topicAliases.js.map +1 -0
- package/dist/topicAliases.js +51 -0
- package/dist/topicAliases.js.map +1 -0
- package/oclif.config.js +20 -7
- package/oclif.manifest.json +471 -359
- package/package.json +5 -4
- package/dist/actions/debug/formatters.js +0 -22
- package/dist/actions/debug/formatters.js.map +0 -1
- package/dist/actions/debug/getGlobalConfigLocation.js +0 -7
- package/dist/actions/debug/getGlobalConfigLocation.js.map +0 -1
- package/dist/commands/backup/disable.js.map +0 -1
- package/dist/commands/backup/download.js.map +0 -1
- package/dist/commands/backup/enable.js.map +0 -1
- package/dist/commands/backup/list.js.map +0 -1
- package/dist/commands/dataset/alias/create.js.map +0 -1
- package/dist/commands/dataset/alias/delete.js.map +0 -1
- package/dist/commands/dataset/alias/link.js.map +0 -1
- package/dist/commands/dataset/alias/unlink.js.map +0 -1
- package/dist/commands/dataset/copy.js.map +0 -1
- package/dist/commands/dataset/create.js.map +0 -1
- package/dist/commands/dataset/delete.js.map +0 -1
- package/dist/commands/dataset/embeddings/disable.js.map +0 -1
- package/dist/commands/dataset/embeddings/enable.js.map +0 -1
- package/dist/commands/dataset/embeddings/status.js.map +0 -1
- package/dist/commands/dataset/export.js.map +0 -1
- package/dist/commands/dataset/import.js.map +0 -1
- package/dist/commands/dataset/list.js.map +0 -1
- package/dist/commands/dataset/visibility/get.js.map +0 -1
- package/dist/commands/dataset/visibility/set.js.map +0 -1
- package/dist/commands/hook/attempt.js.map +0 -1
- package/dist/commands/hook/create.js.map +0 -1
- package/dist/commands/hook/delete.js.map +0 -1
- package/dist/commands/hook/list.js.map +0 -1
- package/dist/commands/hook/logs.js.map +0 -1
- package/dist/commands/schema/delete.js.map +0 -1
- package/dist/commands/schema/deploy.js.map +0 -1
- package/dist/commands/schema/extract.js.map +0 -1
- package/dist/commands/schema/list.js.map +0 -1
- package/dist/commands/schema/validate.js.map +0 -1
package/README.md
CHANGED
|
@@ -140,7 +140,7 @@ EXAMPLES
|
|
|
140
140
|
$ sanity backup disable production
|
|
141
141
|
```
|
|
142
142
|
|
|
143
|
-
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
143
|
+
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/disable.ts)_
|
|
144
144
|
|
|
145
145
|
## `sanity backup download [DATASET]`
|
|
146
146
|
|
|
@@ -184,7 +184,7 @@ EXAMPLES
|
|
|
184
184
|
$ sanity backup download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
|
|
185
185
|
```
|
|
186
186
|
|
|
187
|
-
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
187
|
+
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/download.ts)_
|
|
188
188
|
|
|
189
189
|
## `sanity backup enable [DATASET]`
|
|
190
190
|
|
|
@@ -213,7 +213,7 @@ EXAMPLES
|
|
|
213
213
|
$ sanity backup enable production
|
|
214
214
|
```
|
|
215
215
|
|
|
216
|
-
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
216
|
+
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/enable.ts)_
|
|
217
217
|
|
|
218
218
|
## `sanity backup list [DATASET]`
|
|
219
219
|
|
|
@@ -255,7 +255,7 @@ EXAMPLES
|
|
|
255
255
|
$ sanity backup list production --after 2024-01-31 --limit 10
|
|
256
256
|
```
|
|
257
257
|
|
|
258
|
-
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
258
|
+
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/list.ts)_
|
|
259
259
|
|
|
260
260
|
## `sanity blueprints add TYPE`
|
|
261
261
|
|
|
@@ -307,7 +307,7 @@ EXAMPLES
|
|
|
307
307
|
$ sanity blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
|
|
308
308
|
```
|
|
309
309
|
|
|
310
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
310
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/add.ts)_
|
|
311
311
|
|
|
312
312
|
## `sanity blueprints config`
|
|
313
313
|
|
|
@@ -342,7 +342,7 @@ EXAMPLES
|
|
|
342
342
|
$ sanity blueprints config --edit --project-id <projectId> --stack <name-or-id>
|
|
343
343
|
```
|
|
344
344
|
|
|
345
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
345
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/config.ts)_
|
|
346
346
|
|
|
347
347
|
## `sanity blueprints deploy`
|
|
348
348
|
|
|
@@ -379,7 +379,7 @@ EXAMPLES
|
|
|
379
379
|
$ sanity blueprints deploy --fn-installer npm
|
|
380
380
|
```
|
|
381
381
|
|
|
382
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
382
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/deploy.ts)_
|
|
383
383
|
|
|
384
384
|
## `sanity blueprints destroy`
|
|
385
385
|
|
|
@@ -411,7 +411,7 @@ EXAMPLES
|
|
|
411
411
|
$ sanity blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
414
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/destroy.ts)_
|
|
415
415
|
|
|
416
416
|
## `sanity blueprints doctor`
|
|
417
417
|
|
|
@@ -437,7 +437,7 @@ DESCRIPTION
|
|
|
437
437
|
issues.
|
|
438
438
|
```
|
|
439
439
|
|
|
440
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
440
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/doctor.ts)_
|
|
441
441
|
|
|
442
442
|
## `sanity blueprints info`
|
|
443
443
|
|
|
@@ -467,7 +467,7 @@ EXAMPLES
|
|
|
467
467
|
$ sanity blueprints info --stack <name-or-id>
|
|
468
468
|
```
|
|
469
469
|
|
|
470
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
470
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/info.ts)_
|
|
471
471
|
|
|
472
472
|
## `sanity blueprints init [DIR]`
|
|
473
473
|
|
|
@@ -517,7 +517,7 @@ EXAMPLES
|
|
|
517
517
|
$ sanity blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
|
|
518
518
|
```
|
|
519
519
|
|
|
520
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
520
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/init.ts)_
|
|
521
521
|
|
|
522
522
|
## `sanity blueprints logs`
|
|
523
523
|
|
|
@@ -546,7 +546,7 @@ EXAMPLES
|
|
|
546
546
|
$ sanity blueprints logs --watch
|
|
547
547
|
```
|
|
548
548
|
|
|
549
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
549
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/logs.ts)_
|
|
550
550
|
|
|
551
551
|
## `sanity blueprints plan`
|
|
552
552
|
|
|
@@ -572,7 +572,7 @@ EXAMPLES
|
|
|
572
572
|
$ sanity blueprints plan
|
|
573
573
|
```
|
|
574
574
|
|
|
575
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
575
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/plan.ts)_
|
|
576
576
|
|
|
577
577
|
## `sanity blueprints stacks`
|
|
578
578
|
|
|
@@ -601,7 +601,7 @@ EXAMPLES
|
|
|
601
601
|
$ sanity blueprints stacks --organization-id <organizationId>
|
|
602
602
|
```
|
|
603
603
|
|
|
604
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
604
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/stacks.ts)_
|
|
605
605
|
|
|
606
606
|
## `sanity build [OUTPUTDIR]`
|
|
607
607
|
|
|
@@ -630,7 +630,7 @@ EXAMPLES
|
|
|
630
630
|
$ sanity build --no-minify --source-maps
|
|
631
631
|
```
|
|
632
632
|
|
|
633
|
-
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
633
|
+
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/build.ts)_
|
|
634
634
|
|
|
635
635
|
## `sanity codemod [CODEMODNAME]`
|
|
636
636
|
|
|
@@ -661,7 +661,7 @@ EXAMPLES
|
|
|
661
661
|
$ sanity codemod reactIconsV3 --dry
|
|
662
662
|
```
|
|
663
663
|
|
|
664
|
-
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
664
|
+
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/codemod.ts)_
|
|
665
665
|
|
|
666
666
|
## `sanity cors add ORIGIN`
|
|
667
667
|
|
|
@@ -701,7 +701,7 @@ EXAMPLES
|
|
|
701
701
|
$ sanity cors add https://myapp.com --project-id abc123
|
|
702
702
|
```
|
|
703
703
|
|
|
704
|
-
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
704
|
+
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/add.ts)_
|
|
705
705
|
|
|
706
706
|
## `sanity cors delete [ORIGIN]`
|
|
707
707
|
|
|
@@ -734,7 +734,7 @@ EXAMPLES
|
|
|
734
734
|
$ sanity cors delete --project-id abc123
|
|
735
735
|
```
|
|
736
736
|
|
|
737
|
-
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
737
|
+
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/delete.ts)_
|
|
738
738
|
|
|
739
739
|
## `sanity cors list`
|
|
740
740
|
|
|
@@ -760,7 +760,7 @@ EXAMPLES
|
|
|
760
760
|
$ sanity cors list --project-id abc123
|
|
761
761
|
```
|
|
762
762
|
|
|
763
|
-
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
763
|
+
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/list.ts)_
|
|
764
764
|
|
|
765
765
|
## `sanity dataset alias create [ALIASNAME] [TARGETDATASET]`
|
|
766
766
|
|
|
@@ -802,7 +802,7 @@ EXAMPLES
|
|
|
802
802
|
$ sanity dataset alias create ~conference conf-2025
|
|
803
803
|
```
|
|
804
804
|
|
|
805
|
-
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
805
|
+
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/create.ts)_
|
|
806
806
|
|
|
807
807
|
## `sanity dataset alias delete ALIASNAME`
|
|
808
808
|
|
|
@@ -838,7 +838,7 @@ EXAMPLES
|
|
|
838
838
|
$ sanity dataset alias delete conference --force
|
|
839
839
|
```
|
|
840
840
|
|
|
841
|
-
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
841
|
+
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/delete.ts)_
|
|
842
842
|
|
|
843
843
|
## `sanity dataset alias link [ALIASNAME] [TARGETDATASET]`
|
|
844
844
|
|
|
@@ -883,7 +883,7 @@ EXAMPLES
|
|
|
883
883
|
$ sanity dataset alias link conference conf-2025 --force
|
|
884
884
|
```
|
|
885
885
|
|
|
886
|
-
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
886
|
+
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/link.ts)_
|
|
887
887
|
|
|
888
888
|
## `sanity dataset alias unlink [ALIASNAME]`
|
|
889
889
|
|
|
@@ -923,7 +923,7 @@ EXAMPLES
|
|
|
923
923
|
$ sanity dataset alias unlink conference --force
|
|
924
924
|
```
|
|
925
925
|
|
|
926
|
-
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
926
|
+
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/unlink.ts)_
|
|
927
927
|
|
|
928
928
|
## `sanity dataset copy [SOURCE] [TARGET]`
|
|
929
929
|
|
|
@@ -987,7 +987,7 @@ EXAMPLES
|
|
|
987
987
|
$ sanity dataset copy --list --offset 2 --limit 10
|
|
988
988
|
```
|
|
989
989
|
|
|
990
|
-
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
990
|
+
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/copy.ts)_
|
|
991
991
|
|
|
992
992
|
## `sanity dataset create [NAME]`
|
|
993
993
|
|
|
@@ -1027,7 +1027,7 @@ EXAMPLES
|
|
|
1027
1027
|
$ sanity dataset create my-dataset --visibility private
|
|
1028
1028
|
```
|
|
1029
1029
|
|
|
1030
|
-
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1030
|
+
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/create.ts)_
|
|
1031
1031
|
|
|
1032
1032
|
## `sanity dataset delete DATASETNAME`
|
|
1033
1033
|
|
|
@@ -1059,7 +1059,7 @@ EXAMPLES
|
|
|
1059
1059
|
$ sanity dataset delete my-dataset --force
|
|
1060
1060
|
```
|
|
1061
1061
|
|
|
1062
|
-
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1062
|
+
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/delete.ts)_
|
|
1063
1063
|
|
|
1064
1064
|
## `sanity dataset embeddings disable [DATASET]`
|
|
1065
1065
|
|
|
@@ -1084,7 +1084,7 @@ EXAMPLES
|
|
|
1084
1084
|
$ sanity dataset embeddings disable production
|
|
1085
1085
|
```
|
|
1086
1086
|
|
|
1087
|
-
_See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1087
|
+
_See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/disable.ts)_
|
|
1088
1088
|
|
|
1089
1089
|
## `sanity dataset embeddings enable [DATASET]`
|
|
1090
1090
|
|
|
@@ -1121,7 +1121,7 @@ EXAMPLES
|
|
|
1121
1121
|
$ sanity dataset embeddings enable production --wait
|
|
1122
1122
|
```
|
|
1123
1123
|
|
|
1124
|
-
_See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1124
|
+
_See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/enable.ts)_
|
|
1125
1125
|
|
|
1126
1126
|
## `sanity dataset embeddings status [DATASET]`
|
|
1127
1127
|
|
|
@@ -1146,7 +1146,7 @@ EXAMPLES
|
|
|
1146
1146
|
$ sanity dataset embeddings status production
|
|
1147
1147
|
```
|
|
1148
1148
|
|
|
1149
|
-
_See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1149
|
+
_See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/status.ts)_
|
|
1150
1150
|
|
|
1151
1151
|
## `sanity dataset export [NAME] [DESTINATION]`
|
|
1152
1152
|
|
|
@@ -1199,7 +1199,7 @@ EXAMPLES
|
|
|
1199
1199
|
$ sanity dataset export staging staging.tar.gz --types products,shops
|
|
1200
1200
|
```
|
|
1201
1201
|
|
|
1202
|
-
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1202
|
+
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/export.ts)_
|
|
1203
1203
|
|
|
1204
1204
|
## `sanity dataset import SOURCE [TARGETDATASET]`
|
|
1205
1205
|
|
|
@@ -1248,7 +1248,7 @@ EXAMPLES
|
|
|
1248
1248
|
$ sanity dataset import -p projectId -d staging -t someSecretToken my-dataset.ndjson
|
|
1249
1249
|
```
|
|
1250
1250
|
|
|
1251
|
-
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1251
|
+
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/import.ts)_
|
|
1252
1252
|
|
|
1253
1253
|
## `sanity dataset list`
|
|
1254
1254
|
|
|
@@ -1274,7 +1274,7 @@ EXAMPLES
|
|
|
1274
1274
|
$ sanity dataset list --project-id abc123
|
|
1275
1275
|
```
|
|
1276
1276
|
|
|
1277
|
-
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1277
|
+
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/list.ts)_
|
|
1278
1278
|
|
|
1279
1279
|
## `sanity dataset visibility get DATASET`
|
|
1280
1280
|
|
|
@@ -1299,7 +1299,7 @@ EXAMPLES
|
|
|
1299
1299
|
$ sanity dataset visibility get my-dataset
|
|
1300
1300
|
```
|
|
1301
1301
|
|
|
1302
|
-
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1302
|
+
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/visibility/get.ts)_
|
|
1303
1303
|
|
|
1304
1304
|
## `sanity dataset visibility set DATASET MODE`
|
|
1305
1305
|
|
|
@@ -1329,7 +1329,7 @@ EXAMPLES
|
|
|
1329
1329
|
$ sanity dataset visibility set my-dataset public
|
|
1330
1330
|
```
|
|
1331
1331
|
|
|
1332
|
-
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1332
|
+
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/visibility/set.ts)_
|
|
1333
1333
|
|
|
1334
1334
|
## `sanity debug`
|
|
1335
1335
|
|
|
@@ -1337,10 +1337,11 @@ Provides diagnostic info for Sanity Studio troubleshooting
|
|
|
1337
1337
|
|
|
1338
1338
|
```
|
|
1339
1339
|
USAGE
|
|
1340
|
-
$ sanity debug [--secrets]
|
|
1340
|
+
$ sanity debug [--secrets] [--verbose]
|
|
1341
1341
|
|
|
1342
1342
|
FLAGS
|
|
1343
1343
|
--secrets Include API keys in output
|
|
1344
|
+
--verbose Show full error details including stack traces
|
|
1344
1345
|
|
|
1345
1346
|
DESCRIPTION
|
|
1346
1347
|
Provides diagnostic info for Sanity Studio troubleshooting
|
|
@@ -1351,7 +1352,7 @@ EXAMPLES
|
|
|
1351
1352
|
$ sanity debug --secrets
|
|
1352
1353
|
```
|
|
1353
1354
|
|
|
1354
|
-
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1355
|
+
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/debug.ts)_
|
|
1355
1356
|
|
|
1356
1357
|
## `sanity deploy [SOURCEDIR]`
|
|
1357
1358
|
|
|
@@ -1396,7 +1397,7 @@ EXAMPLES
|
|
|
1396
1397
|
$ sanity deploy --external
|
|
1397
1398
|
```
|
|
1398
1399
|
|
|
1399
|
-
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1400
|
+
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/deploy.ts)_
|
|
1400
1401
|
|
|
1401
1402
|
## `sanity dev`
|
|
1402
1403
|
|
|
@@ -1423,7 +1424,7 @@ EXAMPLES
|
|
|
1423
1424
|
$ sanity dev --load-in-dashboard
|
|
1424
1425
|
```
|
|
1425
1426
|
|
|
1426
|
-
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1427
|
+
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dev.ts)_
|
|
1427
1428
|
|
|
1428
1429
|
## `sanity docs browse`
|
|
1429
1430
|
|
|
@@ -1437,7 +1438,7 @@ DESCRIPTION
|
|
|
1437
1438
|
Open Sanity docs in a web browser
|
|
1438
1439
|
```
|
|
1439
1440
|
|
|
1440
|
-
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1441
|
+
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/browse.ts)_
|
|
1441
1442
|
|
|
1442
1443
|
## `sanity docs read PATH`
|
|
1443
1444
|
|
|
@@ -1474,7 +1475,7 @@ EXAMPLES
|
|
|
1474
1475
|
$ sanity docs read https://www.sanity.io/docs/studio/installation -w
|
|
1475
1476
|
```
|
|
1476
1477
|
|
|
1477
|
-
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1478
|
+
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/read.ts)_
|
|
1478
1479
|
|
|
1479
1480
|
## `sanity docs search QUERY`
|
|
1480
1481
|
|
|
@@ -1507,7 +1508,7 @@ EXAMPLES
|
|
|
1507
1508
|
$ sanity docs search "deployment" --limit=5
|
|
1508
1509
|
```
|
|
1509
1510
|
|
|
1510
|
-
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1511
|
+
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/search.ts)_
|
|
1511
1512
|
|
|
1512
1513
|
## `sanity doctor [CHECKS]`
|
|
1513
1514
|
|
|
@@ -1538,7 +1539,7 @@ EXAMPLES
|
|
|
1538
1539
|
$ sanity doctor cli
|
|
1539
1540
|
```
|
|
1540
1541
|
|
|
1541
|
-
_See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1542
|
+
_See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/doctor.ts)_
|
|
1542
1543
|
|
|
1543
1544
|
## `sanity documents create [FILE]`
|
|
1544
1545
|
|
|
@@ -1589,7 +1590,7 @@ EXAMPLES
|
|
|
1589
1590
|
$ sanity documents create myDocument.json --project-id abc123
|
|
1590
1591
|
```
|
|
1591
1592
|
|
|
1592
|
-
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1593
|
+
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/create.ts)_
|
|
1593
1594
|
|
|
1594
1595
|
## `sanity documents delete ID [IDS]`
|
|
1595
1596
|
|
|
@@ -1632,7 +1633,7 @@ EXAMPLES
|
|
|
1632
1633
|
$ sanity documents delete myDocId --project-id abc123
|
|
1633
1634
|
```
|
|
1634
1635
|
|
|
1635
|
-
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1636
|
+
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/delete.ts)_
|
|
1636
1637
|
|
|
1637
1638
|
## `sanity documents get DOCUMENTID`
|
|
1638
1639
|
|
|
@@ -1673,7 +1674,7 @@ EXAMPLES
|
|
|
1673
1674
|
$ sanity documents get myDocId --project-id abc123
|
|
1674
1675
|
```
|
|
1675
1676
|
|
|
1676
|
-
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1677
|
+
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/get.ts)_
|
|
1677
1678
|
|
|
1678
1679
|
## `sanity documents query QUERY`
|
|
1679
1680
|
|
|
@@ -1716,7 +1717,7 @@ EXAMPLES
|
|
|
1716
1717
|
$ sanity documents query '*[_type == "post"]' --project-id abc123 --dataset production
|
|
1717
1718
|
```
|
|
1718
1719
|
|
|
1719
|
-
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1720
|
+
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/query.ts)_
|
|
1720
1721
|
|
|
1721
1722
|
## `sanity documents validate`
|
|
1722
1723
|
|
|
@@ -1770,7 +1771,7 @@ EXAMPLES
|
|
|
1770
1771
|
$ sanity documents validate --project-id abc123 --dataset production
|
|
1771
1772
|
```
|
|
1772
1773
|
|
|
1773
|
-
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1774
|
+
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/validate.ts)_
|
|
1774
1775
|
|
|
1775
1776
|
## `sanity exec SCRIPT`
|
|
1776
1777
|
|
|
@@ -1811,7 +1812,7 @@ EXAMPLES
|
|
|
1811
1812
|
$ sanity exec --mock-browser-env myscript.js -- --dry-run positional-argument
|
|
1812
1813
|
```
|
|
1813
1814
|
|
|
1814
|
-
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
1815
|
+
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/exec.ts)_
|
|
1815
1816
|
|
|
1816
1817
|
## `sanity functions add`
|
|
1817
1818
|
|
|
@@ -1860,7 +1861,7 @@ EXAMPLES
|
|
|
1860
1861
|
$ sanity functions add --name my-function --type document-create --type document-update --lang js
|
|
1861
1862
|
```
|
|
1862
1863
|
|
|
1863
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
1864
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/add.ts)_
|
|
1864
1865
|
|
|
1865
1866
|
## `sanity functions dev`
|
|
1866
1867
|
|
|
@@ -1894,7 +1895,7 @@ EXAMPLES
|
|
|
1894
1895
|
$ sanity functions dev --timeout 60
|
|
1895
1896
|
```
|
|
1896
1897
|
|
|
1897
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
1898
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/dev.ts)_
|
|
1898
1899
|
|
|
1899
1900
|
## `sanity functions env add NAME KEY VALUE`
|
|
1900
1901
|
|
|
@@ -1921,7 +1922,7 @@ EXAMPLES
|
|
|
1921
1922
|
$ sanity functions env add MyFunction API_URL https://api.example.com/
|
|
1922
1923
|
```
|
|
1923
1924
|
|
|
1924
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
1925
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/add.ts)_
|
|
1925
1926
|
|
|
1926
1927
|
## `sanity functions env list NAME`
|
|
1927
1928
|
|
|
@@ -1945,7 +1946,7 @@ EXAMPLES
|
|
|
1945
1946
|
$ sanity functions env list MyFunction
|
|
1946
1947
|
```
|
|
1947
1948
|
|
|
1948
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
1949
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/list.ts)_
|
|
1949
1950
|
|
|
1950
1951
|
## `sanity functions env remove NAME KEY`
|
|
1951
1952
|
|
|
@@ -1971,7 +1972,7 @@ EXAMPLES
|
|
|
1971
1972
|
$ sanity functions env remove MyFunction API_URL
|
|
1972
1973
|
```
|
|
1973
1974
|
|
|
1974
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
1975
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/remove.ts)_
|
|
1975
1976
|
|
|
1976
1977
|
## `sanity functions logs [NAME]`
|
|
1977
1978
|
|
|
@@ -2011,7 +2012,7 @@ EXAMPLES
|
|
|
2011
2012
|
$ sanity functions logs <name> --delete
|
|
2012
2013
|
```
|
|
2013
2014
|
|
|
2014
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
2015
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/logs.ts)_
|
|
2015
2016
|
|
|
2016
2017
|
## `sanity functions test [NAME]`
|
|
2017
2018
|
|
|
@@ -2065,7 +2066,7 @@ EXAMPLES
|
|
|
2065
2066
|
$ sanity functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
|
|
2066
2067
|
```
|
|
2067
2068
|
|
|
2068
|
-
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.
|
|
2069
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/test.ts)_
|
|
2069
2070
|
|
|
2070
2071
|
## `sanity graphql deploy`
|
|
2071
2072
|
|
|
@@ -2110,7 +2111,7 @@ EXAMPLES
|
|
|
2110
2111
|
$ sanity graphql deploy --playground
|
|
2111
2112
|
```
|
|
2112
2113
|
|
|
2113
|
-
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2114
|
+
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/deploy.ts)_
|
|
2114
2115
|
|
|
2115
2116
|
## `sanity graphql list`
|
|
2116
2117
|
|
|
@@ -2136,7 +2137,7 @@ EXAMPLES
|
|
|
2136
2137
|
$ sanity graphql list --project-id abc123
|
|
2137
2138
|
```
|
|
2138
2139
|
|
|
2139
|
-
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2140
|
+
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/list.ts)_
|
|
2140
2141
|
|
|
2141
2142
|
## `sanity graphql undeploy`
|
|
2142
2143
|
|
|
@@ -2184,7 +2185,7 @@ EXAMPLES
|
|
|
2184
2185
|
$ sanity graphql undeploy --project-id abc123 --dataset production
|
|
2185
2186
|
```
|
|
2186
2187
|
|
|
2187
|
-
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2188
|
+
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/undeploy.ts)_
|
|
2188
2189
|
|
|
2189
2190
|
## `sanity help [COMMAND]`
|
|
2190
2191
|
|
|
@@ -2204,7 +2205,7 @@ DESCRIPTION
|
|
|
2204
2205
|
Display help for sanity.
|
|
2205
2206
|
```
|
|
2206
2207
|
|
|
2207
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/
|
|
2208
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.38/src/commands/help.ts)_
|
|
2208
2209
|
|
|
2209
2210
|
## `sanity hook attempt ATTEMPTID`
|
|
2210
2211
|
|
|
@@ -2233,7 +2234,7 @@ EXAMPLES
|
|
|
2233
2234
|
$ sanity hook attempt abc123 --project-id projectId
|
|
2234
2235
|
```
|
|
2235
2236
|
|
|
2236
|
-
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2237
|
+
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/attempt.ts)_
|
|
2237
2238
|
|
|
2238
2239
|
## `sanity hook create`
|
|
2239
2240
|
|
|
@@ -2259,7 +2260,7 @@ EXAMPLES
|
|
|
2259
2260
|
$ sanity hook create --project-id abc123
|
|
2260
2261
|
```
|
|
2261
2262
|
|
|
2262
|
-
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2263
|
+
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/create.ts)_
|
|
2263
2264
|
|
|
2264
2265
|
## `sanity hook delete [NAME]`
|
|
2265
2266
|
|
|
@@ -2292,7 +2293,7 @@ EXAMPLES
|
|
|
2292
2293
|
$ sanity hook delete --project-id abc123
|
|
2293
2294
|
```
|
|
2294
2295
|
|
|
2295
|
-
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2296
|
+
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/delete.ts)_
|
|
2296
2297
|
|
|
2297
2298
|
## `sanity hook list`
|
|
2298
2299
|
|
|
@@ -2318,7 +2319,7 @@ EXAMPLES
|
|
|
2318
2319
|
$ sanity hook list --project-id abc123
|
|
2319
2320
|
```
|
|
2320
2321
|
|
|
2321
|
-
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2322
|
+
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/list.ts)_
|
|
2322
2323
|
|
|
2323
2324
|
## `sanity hook logs [NAME]`
|
|
2324
2325
|
|
|
@@ -2354,7 +2355,7 @@ EXAMPLES
|
|
|
2354
2355
|
$ sanity hook logs --project-id abc123
|
|
2355
2356
|
```
|
|
2356
2357
|
|
|
2357
|
-
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2358
|
+
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/logs.ts)_
|
|
2358
2359
|
|
|
2359
2360
|
## `sanity init`
|
|
2360
2361
|
|
|
@@ -2363,10 +2364,10 @@ Initialize a new Sanity Studio, project and/or app
|
|
|
2363
2364
|
```
|
|
2364
2365
|
USAGE
|
|
2365
2366
|
$ sanity init [--json] [--auto-updates | --bare] [--coupon <code> | --project-plan <name>] [--dataset
|
|
2366
|
-
<name> | --dataset-default] [--env <filename> | ] [--git <message> | ] [--
|
|
2367
|
-
[--nextjs-append-env] [--nextjs-embed-studio] [--organization <id>] [--output-path
|
|
2368
|
-
[--package-manager <manager> | ] [--project <id> | --
|
|
2369
|
-
<template> | ] [--typescript | ] [--visibility <mode>] [-y]
|
|
2367
|
+
<name> | --dataset-default] [--env <filename> | ] [--git <message> | ] [--import-dataset] [--mcp]
|
|
2368
|
+
[--nextjs-add-config-files] [--nextjs-append-env] [--nextjs-embed-studio] [--organization <id>] [--output-path
|
|
2369
|
+
<path> | ] [--overwrite-files] [--package-manager <manager> | ] [--project <id> | | --project-name <name>]
|
|
2370
|
+
[--provider <provider>] [--template <template> | ] [--typescript | ] [--visibility <mode>] [-y]
|
|
2370
2371
|
|
|
2371
2372
|
FLAGS
|
|
2372
2373
|
-y, --yes Unattended mode, answers "yes" to any "yes/no" prompt and otherwise uses defaults
|
|
@@ -2374,17 +2375,18 @@ FLAGS
|
|
|
2374
2375
|
--bare Skip the Studio initialization and only print the selected project ID and dataset
|
|
2375
2376
|
name to stdout
|
|
2376
2377
|
--coupon=<code> Optionally select a coupon for a new project (cannot be used with --project-plan)
|
|
2377
|
-
--create-project=<name> Create a new project with the given name
|
|
2378
2378
|
--dataset=<name> Dataset name for the studio
|
|
2379
2379
|
--dataset-default Set up a project with a public dataset named "production"
|
|
2380
2380
|
--env=<filename> Write environment variables to file
|
|
2381
2381
|
--[no-]git=<message> Specify a commit message for initial commit, or disable git init
|
|
2382
|
+
--[no-]import-dataset Import template sample dataset
|
|
2382
2383
|
--[no-]mcp Enable AI editor integration (MCP) setup
|
|
2383
2384
|
--organization=<id> Organization ID to use for the project
|
|
2384
2385
|
--output-path=<path> Path to write studio project to
|
|
2385
2386
|
--[no-]overwrite-files Overwrite existing files
|
|
2386
2387
|
--package-manager=<manager> Specify which package manager to use [allowed: npm, yarn, pnpm]
|
|
2387
2388
|
--project=<id> Project ID to use for the studio
|
|
2389
|
+
--project-name=<name> Create a new project with the given name
|
|
2388
2390
|
--project-plan=<name> Optionally select a plan for a new project
|
|
2389
2391
|
--provider=<provider> Login provider to use
|
|
2390
2392
|
--template=<template> Project template to use [default: "clean"]
|
|
@@ -2419,11 +2421,11 @@ EXAMPLES
|
|
|
2419
2421
|
|
|
2420
2422
|
Create a brand new project with name "Movies Unlimited"
|
|
2421
2423
|
|
|
2422
|
-
$ sanity init -y --
|
|
2424
|
+
$ sanity init -y --project-name "Movies Unlimited" --dataset moviedb --visibility private --template moviedb \
|
|
2423
2425
|
--output-path /Users/espenh/movies-unlimited
|
|
2424
2426
|
```
|
|
2425
2427
|
|
|
2426
|
-
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2428
|
+
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/init.ts)_
|
|
2427
2429
|
|
|
2428
2430
|
## `sanity install [PACKAGES]`
|
|
2429
2431
|
|
|
@@ -2447,7 +2449,7 @@ EXAMPLES
|
|
|
2447
2449
|
$ sanity install some-package another-package
|
|
2448
2450
|
```
|
|
2449
2451
|
|
|
2450
|
-
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2452
|
+
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/install.ts)_
|
|
2451
2453
|
|
|
2452
2454
|
## `sanity learn`
|
|
2453
2455
|
|
|
@@ -2461,7 +2463,7 @@ DESCRIPTION
|
|
|
2461
2463
|
Opens Sanity Learn in your web browser
|
|
2462
2464
|
```
|
|
2463
2465
|
|
|
2464
|
-
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2466
|
+
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/learn.ts)_
|
|
2465
2467
|
|
|
2466
2468
|
## `sanity login`
|
|
2467
2469
|
|
|
@@ -2493,7 +2495,7 @@ EXAMPLES
|
|
|
2493
2495
|
$ sanity login --provider github --no-open
|
|
2494
2496
|
```
|
|
2495
2497
|
|
|
2496
|
-
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2498
|
+
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/login.ts)_
|
|
2497
2499
|
|
|
2498
2500
|
## `sanity logout`
|
|
2499
2501
|
|
|
@@ -2507,7 +2509,7 @@ DESCRIPTION
|
|
|
2507
2509
|
Logs out the CLI from the current user session
|
|
2508
2510
|
```
|
|
2509
2511
|
|
|
2510
|
-
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2512
|
+
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/logout.ts)_
|
|
2511
2513
|
|
|
2512
2514
|
## `sanity manage`
|
|
2513
2515
|
|
|
@@ -2521,7 +2523,7 @@ DESCRIPTION
|
|
|
2521
2523
|
Opens project management interface in your web browser
|
|
2522
2524
|
```
|
|
2523
2525
|
|
|
2524
|
-
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2526
|
+
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/manage.ts)_
|
|
2525
2527
|
|
|
2526
2528
|
## `sanity manifest extract`
|
|
2527
2529
|
|
|
@@ -2549,7 +2551,7 @@ EXAMPLES
|
|
|
2549
2551
|
$ sanity manifest extract --path /public/static
|
|
2550
2552
|
```
|
|
2551
2553
|
|
|
2552
|
-
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2554
|
+
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/manifest/extract.ts)_
|
|
2553
2555
|
|
|
2554
2556
|
## `sanity mcp configure`
|
|
2555
2557
|
|
|
@@ -2568,7 +2570,7 @@ EXAMPLES
|
|
|
2568
2570
|
$ sanity mcp configure
|
|
2569
2571
|
```
|
|
2570
2572
|
|
|
2571
|
-
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2573
|
+
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/mcp/configure.ts)_
|
|
2572
2574
|
|
|
2573
2575
|
## `sanity media create-aspect`
|
|
2574
2576
|
|
|
@@ -2587,7 +2589,7 @@ EXAMPLES
|
|
|
2587
2589
|
$ sanity media create-aspect
|
|
2588
2590
|
```
|
|
2589
2591
|
|
|
2590
|
-
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2592
|
+
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/create-aspect.ts)_
|
|
2591
2593
|
|
|
2592
2594
|
## `sanity media delete-aspect ASPECTNAME`
|
|
2593
2595
|
|
|
@@ -2616,7 +2618,7 @@ EXAMPLES
|
|
|
2616
2618
|
$ sanity media delete-aspect someAspect
|
|
2617
2619
|
```
|
|
2618
2620
|
|
|
2619
|
-
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2621
|
+
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/delete-aspect.ts)_
|
|
2620
2622
|
|
|
2621
2623
|
## `sanity media deploy-aspect [ASPECTNAME]`
|
|
2622
2624
|
|
|
@@ -2649,7 +2651,7 @@ EXAMPLES
|
|
|
2649
2651
|
$ sanity media deploy-aspect --all
|
|
2650
2652
|
```
|
|
2651
2653
|
|
|
2652
|
-
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2654
|
+
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/deploy-aspect.ts)_
|
|
2653
2655
|
|
|
2654
2656
|
## `sanity media export [DESTINATION]`
|
|
2655
2657
|
|
|
@@ -2690,7 +2692,7 @@ EXAMPLES
|
|
|
2690
2692
|
$ sanity media export --media-library-id my-library-id
|
|
2691
2693
|
```
|
|
2692
2694
|
|
|
2693
|
-
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2695
|
+
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/export.ts)_
|
|
2694
2696
|
|
|
2695
2697
|
## `sanity media import SOURCE`
|
|
2696
2698
|
|
|
@@ -2728,7 +2730,7 @@ EXAMPLES
|
|
|
2728
2730
|
$ sanity media import products --replace-aspects
|
|
2729
2731
|
```
|
|
2730
2732
|
|
|
2731
|
-
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2733
|
+
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/import.ts)_
|
|
2732
2734
|
|
|
2733
2735
|
## `sanity migration create [TITLE]`
|
|
2734
2736
|
|
|
@@ -2856,7 +2858,7 @@ EXAMPLES
|
|
|
2856
2858
|
$ sanity openapi get query > query-api.yaml
|
|
2857
2859
|
```
|
|
2858
2860
|
|
|
2859
|
-
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2861
|
+
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/openapi/get.ts)_
|
|
2860
2862
|
|
|
2861
2863
|
## `sanity openapi list`
|
|
2862
2864
|
|
|
@@ -2887,7 +2889,7 @@ EXAMPLES
|
|
|
2887
2889
|
$ sanity openapi list --web
|
|
2888
2890
|
```
|
|
2889
2891
|
|
|
2890
|
-
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2892
|
+
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/openapi/list.ts)_
|
|
2891
2893
|
|
|
2892
2894
|
## `sanity preview [OUTPUTDIR]`
|
|
2893
2895
|
|
|
@@ -2915,7 +2917,7 @@ EXAMPLES
|
|
|
2915
2917
|
$ sanity preview some/build-output-dir
|
|
2916
2918
|
```
|
|
2917
2919
|
|
|
2918
|
-
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2920
|
+
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/preview.ts)_
|
|
2919
2921
|
|
|
2920
2922
|
## `sanity projects create [PROJECTNAME]`
|
|
2921
2923
|
|
|
@@ -2963,7 +2965,7 @@ EXAMPLES
|
|
|
2963
2965
|
$ sanity projects create "CI Project" --yes --json
|
|
2964
2966
|
```
|
|
2965
2967
|
|
|
2966
|
-
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2968
|
+
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/projects/create.ts)_
|
|
2967
2969
|
|
|
2968
2970
|
## `sanity projects list`
|
|
2969
2971
|
|
|
@@ -2992,7 +2994,7 @@ EXAMPLES
|
|
|
2992
2994
|
$ sanity projects list --sort=members --order=asc
|
|
2993
2995
|
```
|
|
2994
2996
|
|
|
2995
|
-
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
2997
|
+
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/projects/list.ts)_
|
|
2996
2998
|
|
|
2997
2999
|
## `sanity schema delete`
|
|
2998
3000
|
|
|
@@ -3023,7 +3025,7 @@ EXAMPLES
|
|
|
3023
3025
|
$ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
|
|
3024
3026
|
```
|
|
3025
3027
|
|
|
3026
|
-
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3028
|
+
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/delete.ts)_
|
|
3027
3029
|
|
|
3028
3030
|
## `sanity schema deploy`
|
|
3029
3031
|
|
|
@@ -3059,7 +3061,7 @@ EXAMPLES
|
|
|
3059
3061
|
$ sanity schema deploy --workspace default
|
|
3060
3062
|
```
|
|
3061
3063
|
|
|
3062
|
-
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3064
|
+
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/deploy.ts)_
|
|
3063
3065
|
|
|
3064
3066
|
## `sanity schema extract`
|
|
3065
3067
|
|
|
@@ -3098,7 +3100,7 @@ EXAMPLES
|
|
|
3098
3100
|
$ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
|
|
3099
3101
|
```
|
|
3100
3102
|
|
|
3101
|
-
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3103
|
+
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/extract.ts)_
|
|
3102
3104
|
|
|
3103
3105
|
## `sanity schema list`
|
|
3104
3106
|
|
|
@@ -3138,7 +3140,7 @@ EXAMPLES
|
|
|
3138
3140
|
$ sanity schema list --json --id _.schemas.workspaceName
|
|
3139
3141
|
```
|
|
3140
3142
|
|
|
3141
|
-
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3143
|
+
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/list.ts)_
|
|
3142
3144
|
|
|
3143
3145
|
## `sanity schema validate`
|
|
3144
3146
|
|
|
@@ -3181,7 +3183,7 @@ EXAMPLES
|
|
|
3181
3183
|
$ sanity schema validate --debug-metafile-path metafile.json
|
|
3182
3184
|
```
|
|
3183
3185
|
|
|
3184
|
-
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3186
|
+
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/validate.ts)_
|
|
3185
3187
|
|
|
3186
3188
|
## `sanity telemetry disable`
|
|
3187
3189
|
|
|
@@ -3200,7 +3202,7 @@ EXAMPLES
|
|
|
3200
3202
|
$ sanity telemetry telemetry disable
|
|
3201
3203
|
```
|
|
3202
3204
|
|
|
3203
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3205
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/disable.ts)_
|
|
3204
3206
|
|
|
3205
3207
|
## `sanity telemetry enable`
|
|
3206
3208
|
|
|
@@ -3219,7 +3221,7 @@ EXAMPLES
|
|
|
3219
3221
|
$ sanity telemetry telemetry enable
|
|
3220
3222
|
```
|
|
3221
3223
|
|
|
3222
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3224
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/enable.ts)_
|
|
3223
3225
|
|
|
3224
3226
|
## `sanity telemetry status`
|
|
3225
3227
|
|
|
@@ -3238,7 +3240,7 @@ EXAMPLES
|
|
|
3238
3240
|
$ sanity telemetry telemetry status
|
|
3239
3241
|
```
|
|
3240
3242
|
|
|
3241
|
-
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3243
|
+
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/status.ts)_
|
|
3242
3244
|
|
|
3243
3245
|
## `sanity tokens add [LABEL]`
|
|
3244
3246
|
|
|
@@ -3284,7 +3286,7 @@ EXAMPLES
|
|
|
3284
3286
|
$ sanity tokens add "My Token" --project-id abc123 --role=editor
|
|
3285
3287
|
```
|
|
3286
3288
|
|
|
3287
|
-
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3289
|
+
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/add.ts)_
|
|
3288
3290
|
|
|
3289
3291
|
## `sanity tokens delete [TOKENID]`
|
|
3290
3292
|
|
|
@@ -3324,7 +3326,7 @@ EXAMPLES
|
|
|
3324
3326
|
$ sanity tokens delete --project-id abc123
|
|
3325
3327
|
```
|
|
3326
3328
|
|
|
3327
|
-
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3329
|
+
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/delete.ts)_
|
|
3328
3330
|
|
|
3329
3331
|
## `sanity tokens list`
|
|
3330
3332
|
|
|
@@ -3357,7 +3359,7 @@ EXAMPLES
|
|
|
3357
3359
|
$ sanity tokens list --project-id abc123
|
|
3358
3360
|
```
|
|
3359
3361
|
|
|
3360
|
-
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3362
|
+
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/list.ts)_
|
|
3361
3363
|
|
|
3362
3364
|
## `sanity typegen generate`
|
|
3363
3365
|
|
|
@@ -3420,7 +3422,7 @@ DESCRIPTION
|
|
|
3420
3422
|
Removes the deployed Sanity Studio/App from Sanity hosting
|
|
3421
3423
|
```
|
|
3422
3424
|
|
|
3423
|
-
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3425
|
+
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/undeploy.ts)_
|
|
3424
3426
|
|
|
3425
3427
|
## `sanity users invite [EMAIL]`
|
|
3426
3428
|
|
|
@@ -3460,7 +3462,7 @@ EXAMPLES
|
|
|
3460
3462
|
$ sanity users invite pippi@sanity.io --project-id abc123
|
|
3461
3463
|
```
|
|
3462
3464
|
|
|
3463
|
-
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3465
|
+
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/users/invite.ts)_
|
|
3464
3466
|
|
|
3465
3467
|
## `sanity users list`
|
|
3466
3468
|
|
|
@@ -3502,7 +3504,7 @@ EXAMPLES
|
|
|
3502
3504
|
$ sanity users list --project-id abc123
|
|
3503
3505
|
```
|
|
3504
3506
|
|
|
3505
|
-
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3507
|
+
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/users/list.ts)_
|
|
3506
3508
|
|
|
3507
3509
|
## `sanity versions`
|
|
3508
3510
|
|
|
@@ -3519,6 +3521,6 @@ EXAMPLES
|
|
|
3519
3521
|
$ sanity versions
|
|
3520
3522
|
```
|
|
3521
3523
|
|
|
3522
|
-
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.1.
|
|
3524
|
+
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/versions.ts)_
|
|
3523
3525
|
|
|
3524
3526
|
<!-- commandsstop -->
|