@sanity/cli 6.0.0 → 6.1.1
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 +78 -111
- package/dist/actions/manifest/extractWorkspaceManifest.js +12 -5
- package/dist/actions/manifest/extractWorkspaceManifest.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +19 -10
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +222 -158
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js +16 -7
- package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +62 -23
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/mcp/validateEditorTokens.js +56 -0
- package/dist/actions/mcp/validateEditorTokens.js.map +1 -0
- package/dist/actions/schema/uploadSchemaToLexicon.js +6 -4
- package/dist/actions/schema/uploadSchemaToLexicon.js.map +1 -1
- package/dist/actions/telemetry/telemetryDebug.js +2 -2
- package/dist/actions/telemetry/telemetryDebug.js.map +1 -1
- package/dist/commands/init.js +9 -4
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mcp/configure.js +3 -1
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/preview.js +3 -4
- package/dist/commands/preview.js.map +1 -1
- package/dist/hooks/prerun/setupTelemetry.js +7 -7
- package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
- package/dist/services/mcp.js +55 -1
- package/dist/services/mcp.js.map +1 -1
- package/dist/util/getLocalPackageVersion.js +4 -2
- package/dist/util/getLocalPackageVersion.js.map +1 -1
- package/dist/util/getProjectDefaults.js +22 -28
- package/dist/util/getProjectDefaults.js.map +1 -1
- package/dist/util/gitConfig.js +45 -0
- package/dist/util/gitConfig.js.map +1 -0
- package/dist/util/telemetry/telemetryStoreDebug.js +2 -2
- package/dist/util/telemetry/telemetryStoreDebug.js.map +1 -1
- package/oclif.manifest.json +83 -83
- package/package.json +4 -6
package/README.md
CHANGED
|
@@ -101,7 +101,6 @@ Code for sanity cli
|
|
|
101
101
|
- [`sanity schema extract`](#sanity-schema-extract)
|
|
102
102
|
- [`sanity schema list`](#sanity-schema-list)
|
|
103
103
|
- [`sanity schema validate`](#sanity-schema-validate)
|
|
104
|
-
- [`sanity start [OUTPUTDIR]`](#sanity-start-outputdir)
|
|
105
104
|
- [`sanity telemetry disable`](#sanity-telemetry-disable)
|
|
106
105
|
- [`sanity telemetry enable`](#sanity-telemetry-enable)
|
|
107
106
|
- [`sanity telemetry status`](#sanity-telemetry-status)
|
|
@@ -141,7 +140,7 @@ EXAMPLES
|
|
|
141
140
|
$ sanity backup disable production
|
|
142
141
|
```
|
|
143
142
|
|
|
144
|
-
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/
|
|
143
|
+
_See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/backup/disable.ts)_
|
|
145
144
|
|
|
146
145
|
## `sanity backup download [DATASET]`
|
|
147
146
|
|
|
@@ -185,7 +184,7 @@ EXAMPLES
|
|
|
185
184
|
$ sanity backup download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
|
|
186
185
|
```
|
|
187
186
|
|
|
188
|
-
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/
|
|
187
|
+
_See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/backup/download.ts)_
|
|
189
188
|
|
|
190
189
|
## `sanity backup enable [DATASET]`
|
|
191
190
|
|
|
@@ -214,7 +213,7 @@ EXAMPLES
|
|
|
214
213
|
$ sanity backup enable production
|
|
215
214
|
```
|
|
216
215
|
|
|
217
|
-
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/
|
|
216
|
+
_See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/backup/enable.ts)_
|
|
218
217
|
|
|
219
218
|
## `sanity backup list [DATASET]`
|
|
220
219
|
|
|
@@ -256,7 +255,7 @@ EXAMPLES
|
|
|
256
255
|
$ sanity backup list production --after 2024-01-31 --limit 10
|
|
257
256
|
```
|
|
258
257
|
|
|
259
|
-
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/
|
|
258
|
+
_See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/backup/list.ts)_
|
|
260
259
|
|
|
261
260
|
## `sanity blueprints add TYPE`
|
|
262
261
|
|
|
@@ -631,7 +630,7 @@ EXAMPLES
|
|
|
631
630
|
$ sanity build --no-minify --source-maps
|
|
632
631
|
```
|
|
633
632
|
|
|
634
|
-
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/
|
|
633
|
+
_See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/build.ts)_
|
|
635
634
|
|
|
636
635
|
## `sanity codemod [CODEMODNAME]`
|
|
637
636
|
|
|
@@ -662,7 +661,7 @@ EXAMPLES
|
|
|
662
661
|
$ sanity codemod reactIconsV3 --dry
|
|
663
662
|
```
|
|
664
663
|
|
|
665
|
-
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/
|
|
664
|
+
_See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/codemod.ts)_
|
|
666
665
|
|
|
667
666
|
## `sanity cors add ORIGIN`
|
|
668
667
|
|
|
@@ -702,7 +701,7 @@ EXAMPLES
|
|
|
702
701
|
$ sanity cors add https://myapp.com --project-id abc123
|
|
703
702
|
```
|
|
704
703
|
|
|
705
|
-
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/
|
|
704
|
+
_See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/cors/add.ts)_
|
|
706
705
|
|
|
707
706
|
## `sanity cors delete [ORIGIN]`
|
|
708
707
|
|
|
@@ -735,7 +734,7 @@ EXAMPLES
|
|
|
735
734
|
$ sanity cors delete --project-id abc123
|
|
736
735
|
```
|
|
737
736
|
|
|
738
|
-
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
737
|
+
_See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/cors/delete.ts)_
|
|
739
738
|
|
|
740
739
|
## `sanity cors list`
|
|
741
740
|
|
|
@@ -761,7 +760,7 @@ EXAMPLES
|
|
|
761
760
|
$ sanity cors list --project-id abc123
|
|
762
761
|
```
|
|
763
762
|
|
|
764
|
-
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/
|
|
763
|
+
_See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/cors/list.ts)_
|
|
765
764
|
|
|
766
765
|
## `sanity dataset alias create [ALIASNAME] [TARGETDATASET]`
|
|
767
766
|
|
|
@@ -803,7 +802,7 @@ EXAMPLES
|
|
|
803
802
|
$ sanity dataset alias create ~conference conf-2025
|
|
804
803
|
```
|
|
805
804
|
|
|
806
|
-
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/
|
|
805
|
+
_See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/alias/create.ts)_
|
|
807
806
|
|
|
808
807
|
## `sanity dataset alias delete ALIASNAME`
|
|
809
808
|
|
|
@@ -839,7 +838,7 @@ EXAMPLES
|
|
|
839
838
|
$ sanity dataset alias delete conference --force
|
|
840
839
|
```
|
|
841
840
|
|
|
842
|
-
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
841
|
+
_See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/alias/delete.ts)_
|
|
843
842
|
|
|
844
843
|
## `sanity dataset alias link [ALIASNAME] [TARGETDATASET]`
|
|
845
844
|
|
|
@@ -884,7 +883,7 @@ EXAMPLES
|
|
|
884
883
|
$ sanity dataset alias link conference conf-2025 --force
|
|
885
884
|
```
|
|
886
885
|
|
|
887
|
-
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/
|
|
886
|
+
_See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/alias/link.ts)_
|
|
888
887
|
|
|
889
888
|
## `sanity dataset alias unlink [ALIASNAME]`
|
|
890
889
|
|
|
@@ -924,7 +923,7 @@ EXAMPLES
|
|
|
924
923
|
$ sanity dataset alias unlink conference --force
|
|
925
924
|
```
|
|
926
925
|
|
|
927
|
-
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/
|
|
926
|
+
_See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/alias/unlink.ts)_
|
|
928
927
|
|
|
929
928
|
## `sanity dataset copy [SOURCE] [TARGET]`
|
|
930
929
|
|
|
@@ -988,7 +987,7 @@ EXAMPLES
|
|
|
988
987
|
$ sanity dataset copy --list --offset 2 --limit 10
|
|
989
988
|
```
|
|
990
989
|
|
|
991
|
-
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/
|
|
990
|
+
_See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/copy.ts)_
|
|
992
991
|
|
|
993
992
|
## `sanity dataset create [NAME]`
|
|
994
993
|
|
|
@@ -1028,7 +1027,7 @@ EXAMPLES
|
|
|
1028
1027
|
$ sanity dataset create my-dataset --visibility private
|
|
1029
1028
|
```
|
|
1030
1029
|
|
|
1031
|
-
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/
|
|
1030
|
+
_See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/create.ts)_
|
|
1032
1031
|
|
|
1033
1032
|
## `sanity dataset delete DATASETNAME`
|
|
1034
1033
|
|
|
@@ -1060,7 +1059,7 @@ EXAMPLES
|
|
|
1060
1059
|
$ sanity dataset delete my-dataset --force
|
|
1061
1060
|
```
|
|
1062
1061
|
|
|
1063
|
-
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
1062
|
+
_See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/delete.ts)_
|
|
1064
1063
|
|
|
1065
1064
|
## `sanity dataset embeddings disable [DATASET]`
|
|
1066
1065
|
|
|
@@ -1085,7 +1084,7 @@ EXAMPLES
|
|
|
1085
1084
|
$ sanity dataset embeddings disable production
|
|
1086
1085
|
```
|
|
1087
1086
|
|
|
1088
|
-
_See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/
|
|
1087
|
+
_See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/embeddings/disable.ts)_
|
|
1089
1088
|
|
|
1090
1089
|
## `sanity dataset embeddings enable [DATASET]`
|
|
1091
1090
|
|
|
@@ -1122,7 +1121,7 @@ EXAMPLES
|
|
|
1122
1121
|
$ sanity dataset embeddings enable production --wait
|
|
1123
1122
|
```
|
|
1124
1123
|
|
|
1125
|
-
_See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/
|
|
1124
|
+
_See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/embeddings/enable.ts)_
|
|
1126
1125
|
|
|
1127
1126
|
## `sanity dataset embeddings status [DATASET]`
|
|
1128
1127
|
|
|
@@ -1147,7 +1146,7 @@ EXAMPLES
|
|
|
1147
1146
|
$ sanity dataset embeddings status production
|
|
1148
1147
|
```
|
|
1149
1148
|
|
|
1150
|
-
_See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/
|
|
1149
|
+
_See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/embeddings/status.ts)_
|
|
1151
1150
|
|
|
1152
1151
|
## `sanity dataset export [NAME] [DESTINATION]`
|
|
1153
1152
|
|
|
@@ -1200,7 +1199,7 @@ EXAMPLES
|
|
|
1200
1199
|
$ sanity dataset export staging staging.tar.gz --types products,shops
|
|
1201
1200
|
```
|
|
1202
1201
|
|
|
1203
|
-
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/
|
|
1202
|
+
_See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/export.ts)_
|
|
1204
1203
|
|
|
1205
1204
|
## `sanity dataset import SOURCE [TARGETDATASET]`
|
|
1206
1205
|
|
|
@@ -1249,7 +1248,7 @@ EXAMPLES
|
|
|
1249
1248
|
$ sanity dataset import -p projectId -d staging -t someSecretToken my-dataset.ndjson
|
|
1250
1249
|
```
|
|
1251
1250
|
|
|
1252
|
-
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/
|
|
1251
|
+
_See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/import.ts)_
|
|
1253
1252
|
|
|
1254
1253
|
## `sanity dataset list`
|
|
1255
1254
|
|
|
@@ -1275,7 +1274,7 @@ EXAMPLES
|
|
|
1275
1274
|
$ sanity dataset list --project-id abc123
|
|
1276
1275
|
```
|
|
1277
1276
|
|
|
1278
|
-
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/
|
|
1277
|
+
_See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/list.ts)_
|
|
1279
1278
|
|
|
1280
1279
|
## `sanity dataset visibility get DATASET`
|
|
1281
1280
|
|
|
@@ -1300,7 +1299,7 @@ EXAMPLES
|
|
|
1300
1299
|
$ sanity dataset visibility get my-dataset
|
|
1301
1300
|
```
|
|
1302
1301
|
|
|
1303
|
-
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/
|
|
1302
|
+
_See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/visibility/get.ts)_
|
|
1304
1303
|
|
|
1305
1304
|
## `sanity dataset visibility set DATASET MODE`
|
|
1306
1305
|
|
|
@@ -1330,7 +1329,7 @@ EXAMPLES
|
|
|
1330
1329
|
$ sanity dataset visibility set my-dataset public
|
|
1331
1330
|
```
|
|
1332
1331
|
|
|
1333
|
-
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/
|
|
1332
|
+
_See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dataset/visibility/set.ts)_
|
|
1334
1333
|
|
|
1335
1334
|
## `sanity debug`
|
|
1336
1335
|
|
|
@@ -1352,7 +1351,7 @@ EXAMPLES
|
|
|
1352
1351
|
$ sanity debug --secrets
|
|
1353
1352
|
```
|
|
1354
1353
|
|
|
1355
|
-
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/
|
|
1354
|
+
_See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/debug.ts)_
|
|
1356
1355
|
|
|
1357
1356
|
## `sanity deploy [SOURCEDIR]`
|
|
1358
1357
|
|
|
@@ -1397,7 +1396,7 @@ EXAMPLES
|
|
|
1397
1396
|
$ sanity deploy --external
|
|
1398
1397
|
```
|
|
1399
1398
|
|
|
1400
|
-
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/
|
|
1399
|
+
_See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/deploy.ts)_
|
|
1401
1400
|
|
|
1402
1401
|
## `sanity dev`
|
|
1403
1402
|
|
|
@@ -1424,7 +1423,7 @@ EXAMPLES
|
|
|
1424
1423
|
$ sanity dev --load-in-dashboard
|
|
1425
1424
|
```
|
|
1426
1425
|
|
|
1427
|
-
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/
|
|
1426
|
+
_See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/dev.ts)_
|
|
1428
1427
|
|
|
1429
1428
|
## `sanity docs browse`
|
|
1430
1429
|
|
|
@@ -1438,7 +1437,7 @@ DESCRIPTION
|
|
|
1438
1437
|
Open Sanity docs in a web browser
|
|
1439
1438
|
```
|
|
1440
1439
|
|
|
1441
|
-
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/
|
|
1440
|
+
_See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/docs/browse.ts)_
|
|
1442
1441
|
|
|
1443
1442
|
## `sanity docs read PATH`
|
|
1444
1443
|
|
|
@@ -1475,7 +1474,7 @@ EXAMPLES
|
|
|
1475
1474
|
$ sanity docs read https://www.sanity.io/docs/studio/installation -w
|
|
1476
1475
|
```
|
|
1477
1476
|
|
|
1478
|
-
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/
|
|
1477
|
+
_See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/docs/read.ts)_
|
|
1479
1478
|
|
|
1480
1479
|
## `sanity docs search QUERY`
|
|
1481
1480
|
|
|
@@ -1508,7 +1507,7 @@ EXAMPLES
|
|
|
1508
1507
|
$ sanity docs search "deployment" --limit=5
|
|
1509
1508
|
```
|
|
1510
1509
|
|
|
1511
|
-
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/
|
|
1510
|
+
_See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/docs/search.ts)_
|
|
1512
1511
|
|
|
1513
1512
|
## `sanity doctor [CHECKS]`
|
|
1514
1513
|
|
|
@@ -1539,7 +1538,7 @@ EXAMPLES
|
|
|
1539
1538
|
$ sanity doctor cli
|
|
1540
1539
|
```
|
|
1541
1540
|
|
|
1542
|
-
_See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/
|
|
1541
|
+
_See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/doctor.ts)_
|
|
1543
1542
|
|
|
1544
1543
|
## `sanity documents create [FILE]`
|
|
1545
1544
|
|
|
@@ -1590,7 +1589,7 @@ EXAMPLES
|
|
|
1590
1589
|
$ sanity documents create myDocument.json --project-id abc123
|
|
1591
1590
|
```
|
|
1592
1591
|
|
|
1593
|
-
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/
|
|
1592
|
+
_See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/documents/create.ts)_
|
|
1594
1593
|
|
|
1595
1594
|
## `sanity documents delete ID [IDS]`
|
|
1596
1595
|
|
|
@@ -1633,7 +1632,7 @@ EXAMPLES
|
|
|
1633
1632
|
$ sanity documents delete myDocId --project-id abc123
|
|
1634
1633
|
```
|
|
1635
1634
|
|
|
1636
|
-
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
1635
|
+
_See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/documents/delete.ts)_
|
|
1637
1636
|
|
|
1638
1637
|
## `sanity documents get DOCUMENTID`
|
|
1639
1638
|
|
|
@@ -1674,7 +1673,7 @@ EXAMPLES
|
|
|
1674
1673
|
$ sanity documents get myDocId --project-id abc123
|
|
1675
1674
|
```
|
|
1676
1675
|
|
|
1677
|
-
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/
|
|
1676
|
+
_See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/documents/get.ts)_
|
|
1678
1677
|
|
|
1679
1678
|
## `sanity documents query QUERY`
|
|
1680
1679
|
|
|
@@ -1717,7 +1716,7 @@ EXAMPLES
|
|
|
1717
1716
|
$ sanity documents query '*[_type == "post"]' --project-id abc123 --dataset production
|
|
1718
1717
|
```
|
|
1719
1718
|
|
|
1720
|
-
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/
|
|
1719
|
+
_See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/documents/query.ts)_
|
|
1721
1720
|
|
|
1722
1721
|
## `sanity documents validate`
|
|
1723
1722
|
|
|
@@ -1771,7 +1770,7 @@ EXAMPLES
|
|
|
1771
1770
|
$ sanity documents validate --project-id abc123 --dataset production
|
|
1772
1771
|
```
|
|
1773
1772
|
|
|
1774
|
-
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/
|
|
1773
|
+
_See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/documents/validate.ts)_
|
|
1775
1774
|
|
|
1776
1775
|
## `sanity exec SCRIPT`
|
|
1777
1776
|
|
|
@@ -1812,7 +1811,7 @@ EXAMPLES
|
|
|
1812
1811
|
$ sanity exec --mock-browser-env myscript.js -- --dry-run positional-argument
|
|
1813
1812
|
```
|
|
1814
1813
|
|
|
1815
|
-
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/
|
|
1814
|
+
_See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/exec.ts)_
|
|
1816
1815
|
|
|
1817
1816
|
## `sanity functions add`
|
|
1818
1817
|
|
|
@@ -2111,7 +2110,7 @@ EXAMPLES
|
|
|
2111
2110
|
$ sanity graphql deploy --playground
|
|
2112
2111
|
```
|
|
2113
2112
|
|
|
2114
|
-
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/
|
|
2113
|
+
_See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/graphql/deploy.ts)_
|
|
2115
2114
|
|
|
2116
2115
|
## `sanity graphql list`
|
|
2117
2116
|
|
|
@@ -2137,7 +2136,7 @@ EXAMPLES
|
|
|
2137
2136
|
$ sanity graphql list --project-id abc123
|
|
2138
2137
|
```
|
|
2139
2138
|
|
|
2140
|
-
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/
|
|
2139
|
+
_See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/graphql/list.ts)_
|
|
2141
2140
|
|
|
2142
2141
|
## `sanity graphql undeploy`
|
|
2143
2142
|
|
|
@@ -2185,7 +2184,7 @@ EXAMPLES
|
|
|
2185
2184
|
$ sanity graphql undeploy --project-id abc123 --dataset production
|
|
2186
2185
|
```
|
|
2187
2186
|
|
|
2188
|
-
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/
|
|
2187
|
+
_See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/graphql/undeploy.ts)_
|
|
2189
2188
|
|
|
2190
2189
|
## `sanity help [COMMAND]`
|
|
2191
2190
|
|
|
@@ -2234,7 +2233,7 @@ EXAMPLES
|
|
|
2234
2233
|
$ sanity hook attempt abc123 --project-id projectId
|
|
2235
2234
|
```
|
|
2236
2235
|
|
|
2237
|
-
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/
|
|
2236
|
+
_See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/hook/attempt.ts)_
|
|
2238
2237
|
|
|
2239
2238
|
## `sanity hook create`
|
|
2240
2239
|
|
|
@@ -2260,7 +2259,7 @@ EXAMPLES
|
|
|
2260
2259
|
$ sanity hook create --project-id abc123
|
|
2261
2260
|
```
|
|
2262
2261
|
|
|
2263
|
-
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/
|
|
2262
|
+
_See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/hook/create.ts)_
|
|
2264
2263
|
|
|
2265
2264
|
## `sanity hook delete [NAME]`
|
|
2266
2265
|
|
|
@@ -2293,7 +2292,7 @@ EXAMPLES
|
|
|
2293
2292
|
$ sanity hook delete --project-id abc123
|
|
2294
2293
|
```
|
|
2295
2294
|
|
|
2296
|
-
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
2295
|
+
_See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/hook/delete.ts)_
|
|
2297
2296
|
|
|
2298
2297
|
## `sanity hook list`
|
|
2299
2298
|
|
|
@@ -2319,7 +2318,7 @@ EXAMPLES
|
|
|
2319
2318
|
$ sanity hook list --project-id abc123
|
|
2320
2319
|
```
|
|
2321
2320
|
|
|
2322
|
-
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/
|
|
2321
|
+
_See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/hook/list.ts)_
|
|
2323
2322
|
|
|
2324
2323
|
## `sanity hook logs [NAME]`
|
|
2325
2324
|
|
|
@@ -2355,7 +2354,7 @@ EXAMPLES
|
|
|
2355
2354
|
$ sanity hook logs --project-id abc123
|
|
2356
2355
|
```
|
|
2357
2356
|
|
|
2358
|
-
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/
|
|
2357
|
+
_See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/hook/logs.ts)_
|
|
2359
2358
|
|
|
2360
2359
|
## `sanity init`
|
|
2361
2360
|
|
|
@@ -2424,7 +2423,7 @@ EXAMPLES
|
|
|
2424
2423
|
--output-path /Users/espenh/movies-unlimited
|
|
2425
2424
|
```
|
|
2426
2425
|
|
|
2427
|
-
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/
|
|
2426
|
+
_See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/init.ts)_
|
|
2428
2427
|
|
|
2429
2428
|
## `sanity install [PACKAGES]`
|
|
2430
2429
|
|
|
@@ -2448,7 +2447,7 @@ EXAMPLES
|
|
|
2448
2447
|
$ sanity install some-package another-package
|
|
2449
2448
|
```
|
|
2450
2449
|
|
|
2451
|
-
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/
|
|
2450
|
+
_See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/install.ts)_
|
|
2452
2451
|
|
|
2453
2452
|
## `sanity learn`
|
|
2454
2453
|
|
|
@@ -2462,7 +2461,7 @@ DESCRIPTION
|
|
|
2462
2461
|
Opens Sanity Learn in your web browser
|
|
2463
2462
|
```
|
|
2464
2463
|
|
|
2465
|
-
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/
|
|
2464
|
+
_See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/learn.ts)_
|
|
2466
2465
|
|
|
2467
2466
|
## `sanity login`
|
|
2468
2467
|
|
|
@@ -2494,7 +2493,7 @@ EXAMPLES
|
|
|
2494
2493
|
$ sanity login --provider github --no-open
|
|
2495
2494
|
```
|
|
2496
2495
|
|
|
2497
|
-
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/
|
|
2496
|
+
_See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/login.ts)_
|
|
2498
2497
|
|
|
2499
2498
|
## `sanity logout`
|
|
2500
2499
|
|
|
@@ -2508,7 +2507,7 @@ DESCRIPTION
|
|
|
2508
2507
|
Logs out the CLI from the current user session
|
|
2509
2508
|
```
|
|
2510
2509
|
|
|
2511
|
-
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/
|
|
2510
|
+
_See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/logout.ts)_
|
|
2512
2511
|
|
|
2513
2512
|
## `sanity manage`
|
|
2514
2513
|
|
|
@@ -2522,7 +2521,7 @@ DESCRIPTION
|
|
|
2522
2521
|
Opens project management interface in your web browser
|
|
2523
2522
|
```
|
|
2524
2523
|
|
|
2525
|
-
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/
|
|
2524
|
+
_See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/manage.ts)_
|
|
2526
2525
|
|
|
2527
2526
|
## `sanity manifest extract`
|
|
2528
2527
|
|
|
@@ -2550,7 +2549,7 @@ EXAMPLES
|
|
|
2550
2549
|
$ sanity manifest extract --path /public/static
|
|
2551
2550
|
```
|
|
2552
2551
|
|
|
2553
|
-
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/
|
|
2552
|
+
_See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/manifest/extract.ts)_
|
|
2554
2553
|
|
|
2555
2554
|
## `sanity mcp configure`
|
|
2556
2555
|
|
|
@@ -2569,7 +2568,7 @@ EXAMPLES
|
|
|
2569
2568
|
$ sanity mcp configure
|
|
2570
2569
|
```
|
|
2571
2570
|
|
|
2572
|
-
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/
|
|
2571
|
+
_See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/mcp/configure.ts)_
|
|
2573
2572
|
|
|
2574
2573
|
## `sanity media create-aspect`
|
|
2575
2574
|
|
|
@@ -2588,7 +2587,7 @@ EXAMPLES
|
|
|
2588
2587
|
$ sanity media create-aspect
|
|
2589
2588
|
```
|
|
2590
2589
|
|
|
2591
|
-
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/
|
|
2590
|
+
_See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/media/create-aspect.ts)_
|
|
2592
2591
|
|
|
2593
2592
|
## `sanity media delete-aspect ASPECTNAME`
|
|
2594
2593
|
|
|
@@ -2617,7 +2616,7 @@ EXAMPLES
|
|
|
2617
2616
|
$ sanity media delete-aspect someAspect
|
|
2618
2617
|
```
|
|
2619
2618
|
|
|
2620
|
-
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/
|
|
2619
|
+
_See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/media/delete-aspect.ts)_
|
|
2621
2620
|
|
|
2622
2621
|
## `sanity media deploy-aspect [ASPECTNAME]`
|
|
2623
2622
|
|
|
@@ -2650,7 +2649,7 @@ EXAMPLES
|
|
|
2650
2649
|
$ sanity media deploy-aspect --all
|
|
2651
2650
|
```
|
|
2652
2651
|
|
|
2653
|
-
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/
|
|
2652
|
+
_See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/media/deploy-aspect.ts)_
|
|
2654
2653
|
|
|
2655
2654
|
## `sanity media export [DESTINATION]`
|
|
2656
2655
|
|
|
@@ -2691,7 +2690,7 @@ EXAMPLES
|
|
|
2691
2690
|
$ sanity media export --media-library-id my-library-id
|
|
2692
2691
|
```
|
|
2693
2692
|
|
|
2694
|
-
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/
|
|
2693
|
+
_See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/media/export.ts)_
|
|
2695
2694
|
|
|
2696
2695
|
## `sanity media import SOURCE`
|
|
2697
2696
|
|
|
@@ -2729,7 +2728,7 @@ EXAMPLES
|
|
|
2729
2728
|
$ sanity media import products --replace-aspects
|
|
2730
2729
|
```
|
|
2731
2730
|
|
|
2732
|
-
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/
|
|
2731
|
+
_See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/media/import.ts)_
|
|
2733
2732
|
|
|
2734
2733
|
## `sanity migration create [TITLE]`
|
|
2735
2734
|
|
|
@@ -2857,7 +2856,7 @@ EXAMPLES
|
|
|
2857
2856
|
$ sanity openapi get query > query-api.yaml
|
|
2858
2857
|
```
|
|
2859
2858
|
|
|
2860
|
-
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/
|
|
2859
|
+
_See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/openapi/get.ts)_
|
|
2861
2860
|
|
|
2862
2861
|
## `sanity openapi list`
|
|
2863
2862
|
|
|
@@ -2888,7 +2887,7 @@ EXAMPLES
|
|
|
2888
2887
|
$ sanity openapi list --web
|
|
2889
2888
|
```
|
|
2890
2889
|
|
|
2891
|
-
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/
|
|
2890
|
+
_See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/openapi/list.ts)_
|
|
2892
2891
|
|
|
2893
2892
|
## `sanity preview [OUTPUTDIR]`
|
|
2894
2893
|
|
|
@@ -2908,9 +2907,6 @@ FLAGS
|
|
|
2908
2907
|
DESCRIPTION
|
|
2909
2908
|
Starts a server to preview a production build
|
|
2910
2909
|
|
|
2911
|
-
ALIASES
|
|
2912
|
-
$ sanity start
|
|
2913
|
-
|
|
2914
2910
|
EXAMPLES
|
|
2915
2911
|
$ sanity preview --host=0.0.0.0
|
|
2916
2912
|
|
|
@@ -2919,7 +2915,7 @@ EXAMPLES
|
|
|
2919
2915
|
$ sanity preview some/build-output-dir
|
|
2920
2916
|
```
|
|
2921
2917
|
|
|
2922
|
-
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/
|
|
2918
|
+
_See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/preview.ts)_
|
|
2923
2919
|
|
|
2924
2920
|
## `sanity projects create [PROJECTNAME]`
|
|
2925
2921
|
|
|
@@ -2967,7 +2963,7 @@ EXAMPLES
|
|
|
2967
2963
|
$ sanity projects create "CI Project" --yes --json
|
|
2968
2964
|
```
|
|
2969
2965
|
|
|
2970
|
-
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/
|
|
2966
|
+
_See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/projects/create.ts)_
|
|
2971
2967
|
|
|
2972
2968
|
## `sanity projects list`
|
|
2973
2969
|
|
|
@@ -2996,7 +2992,7 @@ EXAMPLES
|
|
|
2996
2992
|
$ sanity projects list --sort=members --order=asc
|
|
2997
2993
|
```
|
|
2998
2994
|
|
|
2999
|
-
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/
|
|
2995
|
+
_See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/projects/list.ts)_
|
|
3000
2996
|
|
|
3001
2997
|
## `sanity schema delete`
|
|
3002
2998
|
|
|
@@ -3027,7 +3023,7 @@ EXAMPLES
|
|
|
3027
3023
|
$ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
|
|
3028
3024
|
```
|
|
3029
3025
|
|
|
3030
|
-
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
3026
|
+
_See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/schema/delete.ts)_
|
|
3031
3027
|
|
|
3032
3028
|
## `sanity schema deploy`
|
|
3033
3029
|
|
|
@@ -3063,7 +3059,7 @@ EXAMPLES
|
|
|
3063
3059
|
$ sanity schema deploy --workspace default
|
|
3064
3060
|
```
|
|
3065
3061
|
|
|
3066
|
-
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/
|
|
3062
|
+
_See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/schema/deploy.ts)_
|
|
3067
3063
|
|
|
3068
3064
|
## `sanity schema extract`
|
|
3069
3065
|
|
|
@@ -3102,7 +3098,7 @@ EXAMPLES
|
|
|
3102
3098
|
$ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
|
|
3103
3099
|
```
|
|
3104
3100
|
|
|
3105
|
-
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/
|
|
3101
|
+
_See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/schema/extract.ts)_
|
|
3106
3102
|
|
|
3107
3103
|
## `sanity schema list`
|
|
3108
3104
|
|
|
@@ -3142,7 +3138,7 @@ EXAMPLES
|
|
|
3142
3138
|
$ sanity schema list --json --id _.schemas.workspaceName
|
|
3143
3139
|
```
|
|
3144
3140
|
|
|
3145
|
-
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/
|
|
3141
|
+
_See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/schema/list.ts)_
|
|
3146
3142
|
|
|
3147
3143
|
## `sanity schema validate`
|
|
3148
3144
|
|
|
@@ -3185,36 +3181,7 @@ EXAMPLES
|
|
|
3185
3181
|
$ sanity schema validate --debug-metafile-path metafile.json
|
|
3186
3182
|
```
|
|
3187
3183
|
|
|
3188
|
-
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/
|
|
3189
|
-
|
|
3190
|
-
## `sanity start [OUTPUTDIR]`
|
|
3191
|
-
|
|
3192
|
-
Starts a server to preview a production build
|
|
3193
|
-
|
|
3194
|
-
```
|
|
3195
|
-
USAGE
|
|
3196
|
-
$ sanity start [OUTPUTDIR] [--host <value>] [--port <value>]
|
|
3197
|
-
|
|
3198
|
-
ARGUMENTS
|
|
3199
|
-
[OUTPUTDIR] Output directory
|
|
3200
|
-
|
|
3201
|
-
FLAGS
|
|
3202
|
-
--host=<value> [default: localhost] The local network interface at which to listen.
|
|
3203
|
-
--port=<value> [default: 3333] TCP port to start server on.
|
|
3204
|
-
|
|
3205
|
-
DESCRIPTION
|
|
3206
|
-
Starts a server to preview a production build
|
|
3207
|
-
|
|
3208
|
-
ALIASES
|
|
3209
|
-
$ sanity start
|
|
3210
|
-
|
|
3211
|
-
EXAMPLES
|
|
3212
|
-
$ sanity start --host=0.0.0.0
|
|
3213
|
-
|
|
3214
|
-
$ sanity start --port=1942
|
|
3215
|
-
|
|
3216
|
-
$ sanity start some/build-output-dir
|
|
3217
|
-
```
|
|
3184
|
+
_See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/schema/validate.ts)_
|
|
3218
3185
|
|
|
3219
3186
|
## `sanity telemetry disable`
|
|
3220
3187
|
|
|
@@ -3233,7 +3200,7 @@ EXAMPLES
|
|
|
3233
3200
|
$ sanity telemetry telemetry disable
|
|
3234
3201
|
```
|
|
3235
3202
|
|
|
3236
|
-
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/
|
|
3203
|
+
_See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/telemetry/disable.ts)_
|
|
3237
3204
|
|
|
3238
3205
|
## `sanity telemetry enable`
|
|
3239
3206
|
|
|
@@ -3252,7 +3219,7 @@ EXAMPLES
|
|
|
3252
3219
|
$ sanity telemetry telemetry enable
|
|
3253
3220
|
```
|
|
3254
3221
|
|
|
3255
|
-
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/
|
|
3222
|
+
_See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/telemetry/enable.ts)_
|
|
3256
3223
|
|
|
3257
3224
|
## `sanity telemetry status`
|
|
3258
3225
|
|
|
@@ -3271,7 +3238,7 @@ EXAMPLES
|
|
|
3271
3238
|
$ sanity telemetry telemetry status
|
|
3272
3239
|
```
|
|
3273
3240
|
|
|
3274
|
-
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/
|
|
3241
|
+
_See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/telemetry/status.ts)_
|
|
3275
3242
|
|
|
3276
3243
|
## `sanity tokens add [LABEL]`
|
|
3277
3244
|
|
|
@@ -3317,7 +3284,7 @@ EXAMPLES
|
|
|
3317
3284
|
$ sanity tokens add "My Token" --project-id abc123 --role=editor
|
|
3318
3285
|
```
|
|
3319
3286
|
|
|
3320
|
-
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/
|
|
3287
|
+
_See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/tokens/add.ts)_
|
|
3321
3288
|
|
|
3322
3289
|
## `sanity tokens delete [TOKENID]`
|
|
3323
3290
|
|
|
@@ -3357,7 +3324,7 @@ EXAMPLES
|
|
|
3357
3324
|
$ sanity tokens delete --project-id abc123
|
|
3358
3325
|
```
|
|
3359
3326
|
|
|
3360
|
-
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/
|
|
3327
|
+
_See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/tokens/delete.ts)_
|
|
3361
3328
|
|
|
3362
3329
|
## `sanity tokens list`
|
|
3363
3330
|
|
|
@@ -3390,7 +3357,7 @@ EXAMPLES
|
|
|
3390
3357
|
$ sanity tokens list --project-id abc123
|
|
3391
3358
|
```
|
|
3392
3359
|
|
|
3393
|
-
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/
|
|
3360
|
+
_See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/tokens/list.ts)_
|
|
3394
3361
|
|
|
3395
3362
|
## `sanity typegen generate`
|
|
3396
3363
|
|
|
@@ -3453,7 +3420,7 @@ DESCRIPTION
|
|
|
3453
3420
|
Removes the deployed Sanity Studio/App from Sanity hosting
|
|
3454
3421
|
```
|
|
3455
3422
|
|
|
3456
|
-
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/
|
|
3423
|
+
_See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/undeploy.ts)_
|
|
3457
3424
|
|
|
3458
3425
|
## `sanity users invite [EMAIL]`
|
|
3459
3426
|
|
|
@@ -3493,7 +3460,7 @@ EXAMPLES
|
|
|
3493
3460
|
$ sanity users invite pippi@sanity.io --project-id abc123
|
|
3494
3461
|
```
|
|
3495
3462
|
|
|
3496
|
-
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/
|
|
3463
|
+
_See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/users/invite.ts)_
|
|
3497
3464
|
|
|
3498
3465
|
## `sanity users list`
|
|
3499
3466
|
|
|
@@ -3535,7 +3502,7 @@ EXAMPLES
|
|
|
3535
3502
|
$ sanity users list --project-id abc123
|
|
3536
3503
|
```
|
|
3537
3504
|
|
|
3538
|
-
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/
|
|
3505
|
+
_See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/users/list.ts)_
|
|
3539
3506
|
|
|
3540
3507
|
## `sanity versions`
|
|
3541
3508
|
|
|
@@ -3552,6 +3519,6 @@ EXAMPLES
|
|
|
3552
3519
|
$ sanity versions
|
|
3553
3520
|
```
|
|
3554
3521
|
|
|
3555
|
-
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/
|
|
3522
|
+
_See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.1.0/src/commands/versions.ts)_
|
|
3556
3523
|
|
|
3557
3524
|
<!-- commandsstop -->
|