@sanity/cli 6.0.0-alpha.14 → 6.0.0-alpha.15
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 +96 -96
- package/dist/actions/build/buildStaticFiles.js +3 -2
- package/dist/actions/build/buildStaticFiles.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +16 -4
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +64 -6
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/writeMCPConfig.js +27 -15
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js.map +1 -1
- package/dist/commands/mcp/configure.js +1 -1
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/util/resolveLatestVersions.js +2 -2
- package/dist/util/resolveLatestVersions.js.map +1 -1
- package/dist/util/update/fetchLatestVersion.js +1 -1
- package/dist/util/update/fetchLatestVersion.js.map +1 -1
- package/oclif.manifest.json +353 -353
- package/package.json +5 -4
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.12/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.12/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.12/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.12/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.
|
|
294
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
329
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
359
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
391
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
417
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
447
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
497
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
525
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
548
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
577
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/src/commands/debug.ts)_
|
|
1169
1169
|
|
|
1170
1170
|
## `sanity deploy [SOURCEDIR]`
|
|
1171
1171
|
|
|
@@ -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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.
|
|
1611
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1645
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1672
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1696
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1722
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1761
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.
|
|
1815
|
+
_See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v13.3.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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/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.12/src/commands/manage.ts)_
|
|
2224
2224
|
|
|
2225
2225
|
## `sanity manifest extract`
|
|
2226
2226
|
|
|
@@ -2248,18 +2248,18 @@ 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.12/src/commands/manifest/extract.ts)_
|
|
2252
2252
|
|
|
2253
2253
|
## `sanity mcp configure`
|
|
2254
2254
|
|
|
2255
|
-
Configure Sanity MCP server for AI editors (Cursor,
|
|
2255
|
+
Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)
|
|
2256
2256
|
|
|
2257
2257
|
```
|
|
2258
2258
|
USAGE
|
|
2259
2259
|
$ sanity mcp configure
|
|
2260
2260
|
|
|
2261
2261
|
DESCRIPTION
|
|
2262
|
-
Configure Sanity MCP server for AI editors (Cursor,
|
|
2262
|
+
Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)
|
|
2263
2263
|
|
|
2264
2264
|
EXAMPLES
|
|
2265
2265
|
Configure Sanity MCP server for detected AI editors
|
|
@@ -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.12/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.12/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.12/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.12/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.12/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.12/src/commands/media/import.ts)_
|
|
2419
2419
|
|
|
2420
2420
|
## `sanity migration create [TITLE]`
|
|
2421
2421
|
|
|
@@ -2441,7 +2441,7 @@ EXAMPLES
|
|
|
2441
2441
|
$ sanity migration create "Rename field from location to address"
|
|
2442
2442
|
```
|
|
2443
2443
|
|
|
2444
|
-
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.
|
|
2444
|
+
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.4/src/commands/migration/create.ts)_
|
|
2445
2445
|
|
|
2446
2446
|
## `sanity migration list`
|
|
2447
2447
|
|
|
@@ -2460,7 +2460,7 @@ EXAMPLES
|
|
|
2460
2460
|
$ sanity migration list
|
|
2461
2461
|
```
|
|
2462
2462
|
|
|
2463
|
-
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.
|
|
2463
|
+
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.4/src/commands/migration/list.ts)_
|
|
2464
2464
|
|
|
2465
2465
|
## `sanity migration run [ID]`
|
|
2466
2466
|
|
|
@@ -2504,7 +2504,7 @@ EXAMPLES
|
|
|
2504
2504
|
$ sanity migration run <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging
|
|
2505
2505
|
```
|
|
2506
2506
|
|
|
2507
|
-
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.
|
|
2507
|
+
_See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v5.2.4/src/commands/migration/run.ts)_
|
|
2508
2508
|
|
|
2509
2509
|
## `sanity openapi get SLUG`
|
|
2510
2510
|
|
|
@@ -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.12/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.12/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.12/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.12/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.12/src/commands/projects/list.ts)_
|
|
2686
2686
|
|
|
2687
2687
|
## `sanity schema delete`
|
|
2688
2688
|
|
|
@@ -2710,7 +2710,7 @@ EXAMPLES
|
|
|
2710
2710
|
$ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
|
|
2711
2711
|
```
|
|
2712
2712
|
|
|
2713
|
-
_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.12/src/commands/schema/delete.ts)_
|
|
2714
2714
|
|
|
2715
2715
|
## `sanity schema deploy`
|
|
2716
2716
|
|
|
@@ -2750,7 +2750,7 @@ EXAMPLES
|
|
|
2750
2750
|
$ sanity schema deploy --no-extract-manifest
|
|
2751
2751
|
```
|
|
2752
2752
|
|
|
2753
|
-
_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.12/src/commands/schema/deploy.ts)_
|
|
2754
2754
|
|
|
2755
2755
|
## `sanity schema extract`
|
|
2756
2756
|
|
|
@@ -2789,7 +2789,7 @@ EXAMPLES
|
|
|
2789
2789
|
$ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
|
|
2790
2790
|
```
|
|
2791
2791
|
|
|
2792
|
-
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2792
|
+
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/schema/extract.ts)_
|
|
2793
2793
|
|
|
2794
2794
|
## `sanity schema list`
|
|
2795
2795
|
|
|
@@ -2829,7 +2829,7 @@ EXAMPLES
|
|
|
2829
2829
|
$ sanity schema list --json --id _.schemas.workspaceName
|
|
2830
2830
|
```
|
|
2831
2831
|
|
|
2832
|
-
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2832
|
+
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/schema/list.ts)_
|
|
2833
2833
|
|
|
2834
2834
|
## `sanity schema validate`
|
|
2835
2835
|
|
|
@@ -2872,7 +2872,7 @@ EXAMPLES
|
|
|
2872
2872
|
$ sanity schema validate --debug-metafile-path metafile.json
|
|
2873
2873
|
```
|
|
2874
2874
|
|
|
2875
|
-
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2875
|
+
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/schema/validate.ts)_
|
|
2876
2876
|
|
|
2877
2877
|
## `sanity start [OUTPUTDIR]`
|
|
2878
2878
|
|
|
@@ -2920,7 +2920,7 @@ EXAMPLES
|
|
|
2920
2920
|
$ sanity telemetry telemetry disable
|
|
2921
2921
|
```
|
|
2922
2922
|
|
|
2923
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2923
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/telemetry/disable.ts)_
|
|
2924
2924
|
|
|
2925
2925
|
## `sanity telemetry enable`
|
|
2926
2926
|
|
|
@@ -2939,7 +2939,7 @@ EXAMPLES
|
|
|
2939
2939
|
$ sanity telemetry telemetry enable
|
|
2940
2940
|
```
|
|
2941
2941
|
|
|
2942
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2942
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/telemetry/enable.ts)_
|
|
2943
2943
|
|
|
2944
2944
|
## `sanity telemetry status`
|
|
2945
2945
|
|
|
@@ -2958,7 +2958,7 @@ EXAMPLES
|
|
|
2958
2958
|
$ sanity telemetry telemetry status
|
|
2959
2959
|
```
|
|
2960
2960
|
|
|
2961
|
-
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
2961
|
+
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/telemetry/status.ts)_
|
|
2962
2962
|
|
|
2963
2963
|
## `sanity tokens add [LABEL]`
|
|
2964
2964
|
|
|
@@ -2997,7 +2997,7 @@ EXAMPLES
|
|
|
2997
2997
|
$ sanity tokens add "API Token" --json
|
|
2998
2998
|
```
|
|
2999
2999
|
|
|
3000
|
-
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3000
|
+
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/tokens/add.ts)_
|
|
3001
3001
|
|
|
3002
3002
|
## `sanity tokens delete [TOKENID]`
|
|
3003
3003
|
|
|
@@ -3030,7 +3030,7 @@ EXAMPLES
|
|
|
3030
3030
|
$ sanity tokens delete silJ2lFmK6dONB --yes
|
|
3031
3031
|
```
|
|
3032
3032
|
|
|
3033
|
-
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3033
|
+
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/tokens/delete.ts)_
|
|
3034
3034
|
|
|
3035
3035
|
## `sanity tokens list`
|
|
3036
3036
|
|
|
@@ -3056,7 +3056,7 @@ EXAMPLES
|
|
|
3056
3056
|
$ sanity tokens list --json
|
|
3057
3057
|
```
|
|
3058
3058
|
|
|
3059
|
-
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3059
|
+
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/tokens/list.ts)_
|
|
3060
3060
|
|
|
3061
3061
|
## `sanity typegen generate`
|
|
3062
3062
|
|
|
@@ -3122,7 +3122,7 @@ DESCRIPTION
|
|
|
3122
3122
|
Removes the deployed Sanity Studio/App from Sanity hosting
|
|
3123
3123
|
```
|
|
3124
3124
|
|
|
3125
|
-
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3125
|
+
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/undeploy.ts)_
|
|
3126
3126
|
|
|
3127
3127
|
## `sanity users invite [EMAIL]`
|
|
3128
3128
|
|
|
@@ -3155,7 +3155,7 @@ EXAMPLES
|
|
|
3155
3155
|
$ sanity users invite pippi@sanity.io --role administrator
|
|
3156
3156
|
```
|
|
3157
3157
|
|
|
3158
|
-
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3158
|
+
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/users/invite.ts)_
|
|
3159
3159
|
|
|
3160
3160
|
## `sanity users list`
|
|
3161
3161
|
|
|
@@ -3190,7 +3190,7 @@ EXAMPLES
|
|
|
3190
3190
|
$ sanity users list --sort role
|
|
3191
3191
|
```
|
|
3192
3192
|
|
|
3193
|
-
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3193
|
+
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/users/list.ts)_
|
|
3194
3194
|
|
|
3195
3195
|
## `sanity versions`
|
|
3196
3196
|
|
|
@@ -3207,6 +3207,6 @@ EXAMPLES
|
|
|
3207
3207
|
$ sanity versions
|
|
3208
3208
|
```
|
|
3209
3209
|
|
|
3210
|
-
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.
|
|
3210
|
+
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.12/src/commands/versions.ts)_
|
|
3211
3211
|
|
|
3212
3212
|
<!-- commandsstop -->
|