@sanity/cli 6.3.1 → 6.3.2
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 +295 -442
- package/dist/actions/build/decorateIndexWithStagingScript.js +16 -0
- package/dist/actions/build/decorateIndexWithStagingScript.js.map +1 -0
- package/dist/actions/build/writeSanityRuntime.js +3 -2
- package/dist/actions/build/writeSanityRuntime.js.map +1 -1
- package/dist/actions/dataset/create.js +4 -0
- package/dist/actions/dataset/create.js.map +1 -1
- package/dist/actions/deploy/findUserApplicationForApp.js +1 -0
- package/dist/actions/deploy/findUserApplicationForApp.js.map +1 -1
- package/dist/actions/deploy/types.js +1 -1
- package/dist/actions/deploy/types.js.map +1 -1
- package/dist/actions/init/templates/nextjs/index.js +1 -2
- package/dist/actions/init/templates/nextjs/index.js.map +1 -1
- package/dist/actions/manifest/types.js +1 -1
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/schema/types.js +3 -3
- package/dist/actions/schema/types.js.map +1 -1
- package/dist/actions/users/validateEmail.js +2 -2
- package/dist/actions/users/validateEmail.js.map +1 -1
- package/dist/commands/backups/disable.js +1 -1
- package/dist/commands/backups/disable.js.map +1 -1
- package/dist/commands/backups/download.js +1 -1
- package/dist/commands/backups/download.js.map +1 -1
- package/dist/commands/backups/enable.js +1 -1
- package/dist/commands/backups/enable.js.map +1 -1
- package/dist/commands/backups/list.js +1 -1
- package/dist/commands/backups/list.js.map +1 -1
- package/dist/commands/build.js +1 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cors/add.js +1 -1
- package/dist/commands/cors/add.js.map +1 -1
- package/dist/commands/cors/delete.js +1 -1
- package/dist/commands/cors/delete.js.map +1 -1
- package/dist/commands/cors/list.js +2 -2
- package/dist/commands/cors/list.js.map +1 -1
- package/dist/commands/datasets/alias/create.js +1 -1
- package/dist/commands/datasets/alias/create.js.map +1 -1
- package/dist/commands/datasets/alias/delete.js +1 -1
- package/dist/commands/datasets/alias/delete.js.map +1 -1
- package/dist/commands/datasets/alias/link.js +1 -1
- package/dist/commands/datasets/alias/link.js.map +1 -1
- package/dist/commands/datasets/alias/unlink.js +1 -1
- package/dist/commands/datasets/alias/unlink.js.map +1 -1
- package/dist/commands/datasets/copy.js +1 -1
- package/dist/commands/datasets/copy.js.map +1 -1
- package/dist/commands/datasets/create.js +1 -1
- package/dist/commands/datasets/create.js.map +1 -1
- package/dist/commands/datasets/delete.js +1 -1
- package/dist/commands/datasets/delete.js.map +1 -1
- package/dist/commands/datasets/embeddings/enable.js +11 -0
- package/dist/commands/datasets/embeddings/enable.js.map +1 -1
- package/dist/commands/datasets/export.js +2 -2
- package/dist/commands/datasets/export.js.map +1 -1
- package/dist/commands/datasets/list.js +2 -2
- package/dist/commands/datasets/list.js.map +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/debug.js.map +1 -1
- package/dist/commands/deploy.js +3 -3
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/docs/browse.js +1 -1
- package/dist/commands/docs/browse.js.map +1 -1
- package/dist/commands/documents/delete.js +1 -1
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/exec.js +2 -2
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/graphql/deploy.js +2 -2
- package/dist/commands/graphql/deploy.js.map +1 -1
- package/dist/commands/graphql/list.js +2 -2
- package/dist/commands/graphql/list.js.map +1 -1
- package/dist/commands/hooks/create.js +2 -2
- package/dist/commands/hooks/create.js.map +1 -1
- package/dist/commands/hooks/delete.js +5 -5
- package/dist/commands/hooks/delete.js.map +1 -1
- package/dist/commands/hooks/list.js +3 -3
- package/dist/commands/hooks/list.js.map +1 -1
- package/dist/commands/hooks/logs.js +5 -5
- package/dist/commands/hooks/logs.js.map +1 -1
- package/dist/commands/init.js +30 -12
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/install.js.map +1 -1
- package/dist/commands/learn.js +1 -1
- package/dist/commands/learn.js.map +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/manage.js +1 -1
- package/dist/commands/manage.js.map +1 -1
- package/dist/commands/manifest/extract.js +2 -2
- package/dist/commands/manifest/extract.js.map +1 -1
- package/dist/commands/media/delete-aspect.js +1 -1
- package/dist/commands/media/delete-aspect.js.map +1 -1
- package/dist/commands/media/export.js +1 -1
- package/dist/commands/media/export.js.map +1 -1
- package/dist/commands/preview.js +3 -3
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/projects/list.js +4 -2
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/schemas/deploy.js +3 -4
- package/dist/commands/schemas/deploy.js.map +1 -1
- package/dist/commands/schemas/extract.js +3 -3
- package/dist/commands/schemas/extract.js.map +1 -1
- package/dist/commands/schemas/list.js +4 -5
- package/dist/commands/schemas/list.js.map +1 -1
- package/dist/commands/telemetry/disable.js +2 -2
- package/dist/commands/telemetry/disable.js.map +1 -1
- package/dist/commands/telemetry/enable.js +2 -2
- package/dist/commands/telemetry/enable.js.map +1 -1
- package/dist/commands/telemetry/status.js +2 -2
- package/dist/commands/telemetry/status.js.map +1 -1
- package/dist/commands/tokens/add.js +1 -1
- package/dist/commands/tokens/add.js.map +1 -1
- package/dist/commands/tokens/delete.js +1 -1
- package/dist/commands/tokens/delete.js.map +1 -1
- package/dist/commands/tokens/list.js +2 -2
- package/dist/commands/tokens/list.js.map +1 -1
- package/dist/commands/users/list.js +1 -1
- package/dist/commands/users/list.js.map +1 -1
- package/dist/commands/versions.js +1 -1
- package/dist/commands/versions.js.map +1 -1
- package/dist/server/vite/plugin-sanity-build-entries.js +3 -2
- package/dist/server/vite/plugin-sanity-build-entries.js.map +1 -1
- package/dist/util/telemetry/createTelemetryStore.js +27 -12
- package/dist/util/telemetry/createTelemetryStore.js.map +1 -1
- package/dist/util/validateProjection.js +121 -0
- package/dist/util/validateProjection.js.map +1 -0
- package/oclif.manifest.json +158 -156
- package/package.json +22 -21
package/oclif.manifest.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"name": "outputDir"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Build Sanity Studio into a static bundle",
|
|
12
12
|
"examples": [
|
|
13
13
|
"<%= config.bin %> <%= command.id %>",
|
|
14
14
|
"<%= config.bin %> <%= command.id %> --no-minify --source-maps"
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"debug": {
|
|
120
120
|
"aliases": [],
|
|
121
121
|
"args": {},
|
|
122
|
-
"description": "
|
|
122
|
+
"description": "Print diagnostic info for troubleshooting",
|
|
123
123
|
"examples": [
|
|
124
124
|
"<%= config.bin %> <%= command.id %>",
|
|
125
125
|
"<%= config.bin %> <%= command.id %> --secrets"
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
"type": "boolean"
|
|
189
189
|
},
|
|
190
190
|
"build": {
|
|
191
|
-
"description": "
|
|
191
|
+
"description": "Build the studio before deploying (use --no-build to deploy existing `dist/` output)",
|
|
192
192
|
"name": "build",
|
|
193
193
|
"allowNo": true,
|
|
194
194
|
"type": "boolean"
|
|
@@ -205,13 +205,13 @@
|
|
|
205
205
|
"type": "boolean"
|
|
206
206
|
},
|
|
207
207
|
"minify": {
|
|
208
|
-
"description": "
|
|
208
|
+
"description": "Minify built JavaScript (use --no-minify to skip for faster builds)",
|
|
209
209
|
"name": "minify",
|
|
210
210
|
"allowNo": true,
|
|
211
211
|
"type": "boolean"
|
|
212
212
|
},
|
|
213
213
|
"schema-required": {
|
|
214
|
-
"description": "Fail
|
|
214
|
+
"description": "Fail if schema deployment fails",
|
|
215
215
|
"name": "schema-required",
|
|
216
216
|
"allowNo": false,
|
|
217
217
|
"type": "boolean"
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
"dev": {
|
|
261
261
|
"aliases": [],
|
|
262
262
|
"args": {},
|
|
263
|
-
"description": "
|
|
263
|
+
"description": "Start a local development server with live reloading",
|
|
264
264
|
"examples": [
|
|
265
265
|
"<%= config.bin %> <%= command.id %> --host=0.0.0.0",
|
|
266
266
|
"<%= config.bin %> <%= command.id %> --port=1942",
|
|
@@ -268,26 +268,26 @@
|
|
|
268
268
|
],
|
|
269
269
|
"flags": {
|
|
270
270
|
"auto-updates": {
|
|
271
|
-
"description": "Automatically update Sanity Studio dependencies
|
|
271
|
+
"description": "Automatically update Sanity Studio dependencies",
|
|
272
272
|
"name": "auto-updates",
|
|
273
273
|
"allowNo": true,
|
|
274
274
|
"type": "boolean"
|
|
275
275
|
},
|
|
276
276
|
"host": {
|
|
277
|
-
"description": "
|
|
277
|
+
"description": "Local network interface to listen on (default: localhost)",
|
|
278
278
|
"name": "host",
|
|
279
279
|
"hasDynamicHelp": false,
|
|
280
280
|
"multiple": false,
|
|
281
281
|
"type": "option"
|
|
282
282
|
},
|
|
283
283
|
"load-in-dashboard": {
|
|
284
|
-
"description": "Load the app/studio in the Sanity dashboard
|
|
284
|
+
"description": "Load the app/studio in the Sanity dashboard",
|
|
285
285
|
"name": "load-in-dashboard",
|
|
286
286
|
"allowNo": true,
|
|
287
287
|
"type": "boolean"
|
|
288
288
|
},
|
|
289
289
|
"port": {
|
|
290
|
-
"description": "
|
|
290
|
+
"description": "TCP port to start server on (default: 3333)",
|
|
291
291
|
"name": "port",
|
|
292
292
|
"hasDynamicHelp": false,
|
|
293
293
|
"multiple": false,
|
|
@@ -382,13 +382,13 @@
|
|
|
382
382
|
],
|
|
383
383
|
"flags": {
|
|
384
384
|
"mock-browser-env": {
|
|
385
|
-
"description": "
|
|
385
|
+
"description": "Mock a browser environment with jsdom",
|
|
386
386
|
"name": "mock-browser-env",
|
|
387
387
|
"allowNo": false,
|
|
388
388
|
"type": "boolean"
|
|
389
389
|
},
|
|
390
390
|
"with-user-token": {
|
|
391
|
-
"description": "
|
|
391
|
+
"description": "Include your auth token in getCliClient()",
|
|
392
392
|
"name": "with-user-token",
|
|
393
393
|
"allowNo": false,
|
|
394
394
|
"type": "boolean"
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
"required": false
|
|
748
748
|
}
|
|
749
749
|
},
|
|
750
|
-
"description": "
|
|
750
|
+
"description": "Install dependencies for the Sanity Studio project",
|
|
751
751
|
"examples": [
|
|
752
752
|
"<%= config.bin %> <%= command.id %>",
|
|
753
753
|
"<%= config.bin %> <%= command.id %> @sanity/vision",
|
|
@@ -771,7 +771,7 @@
|
|
|
771
771
|
"learn": {
|
|
772
772
|
"aliases": [],
|
|
773
773
|
"args": {},
|
|
774
|
-
"description": "
|
|
774
|
+
"description": "Open Sanity Learn in your browser",
|
|
775
775
|
"flags": {},
|
|
776
776
|
"hasDynamicHelp": false,
|
|
777
777
|
"hiddenAliases": [],
|
|
@@ -791,7 +791,7 @@
|
|
|
791
791
|
"login": {
|
|
792
792
|
"aliases": [],
|
|
793
793
|
"args": {},
|
|
794
|
-
"description": "
|
|
794
|
+
"description": "Log in to your Sanity account",
|
|
795
795
|
"examples": [
|
|
796
796
|
{
|
|
797
797
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -874,7 +874,7 @@
|
|
|
874
874
|
"logout": {
|
|
875
875
|
"aliases": [],
|
|
876
876
|
"args": {},
|
|
877
|
-
"description": "
|
|
877
|
+
"description": "Log out of the current session",
|
|
878
878
|
"flags": {},
|
|
879
879
|
"hasDynamicHelp": false,
|
|
880
880
|
"hiddenAliases": [],
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
"manage": {
|
|
894
894
|
"aliases": [],
|
|
895
895
|
"args": {},
|
|
896
|
-
"description": "
|
|
896
|
+
"description": "Open project settings in your browser",
|
|
897
897
|
"flags": {},
|
|
898
898
|
"hasDynamicHelp": false,
|
|
899
899
|
"hiddenAliases": [],
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
}
|
|
919
919
|
},
|
|
920
920
|
"deprecateAliases": true,
|
|
921
|
-
"description": "
|
|
921
|
+
"description": "Start a local server to preview a production build",
|
|
922
922
|
"examples": [
|
|
923
923
|
"<%= config.bin %> <%= command.id %> --host=0.0.0.0",
|
|
924
924
|
"<%= config.bin %> <%= command.id %> --port=1942",
|
|
@@ -926,14 +926,14 @@
|
|
|
926
926
|
],
|
|
927
927
|
"flags": {
|
|
928
928
|
"host": {
|
|
929
|
-
"description": "
|
|
929
|
+
"description": "Local network interface to listen on (default: localhost)",
|
|
930
930
|
"name": "host",
|
|
931
931
|
"hasDynamicHelp": false,
|
|
932
932
|
"multiple": false,
|
|
933
933
|
"type": "option"
|
|
934
934
|
},
|
|
935
935
|
"port": {
|
|
936
|
-
"description": "
|
|
936
|
+
"description": "TCP port to start server on (default: 3333)",
|
|
937
937
|
"name": "port",
|
|
938
938
|
"hasDynamicHelp": false,
|
|
939
939
|
"multiple": false,
|
|
@@ -986,7 +986,7 @@
|
|
|
986
986
|
"versions": {
|
|
987
987
|
"aliases": [],
|
|
988
988
|
"args": {},
|
|
989
|
-
"description": "
|
|
989
|
+
"description": "Show installed package versions",
|
|
990
990
|
"examples": [
|
|
991
991
|
"<%= config.bin %> <%= command.id %>"
|
|
992
992
|
],
|
|
@@ -1014,7 +1014,7 @@
|
|
|
1014
1014
|
"required": false
|
|
1015
1015
|
}
|
|
1016
1016
|
},
|
|
1017
|
-
"description": "Disable backup for a dataset
|
|
1017
|
+
"description": "Disable backup for a dataset",
|
|
1018
1018
|
"examples": [
|
|
1019
1019
|
{
|
|
1020
1020
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1063,7 +1063,7 @@
|
|
|
1063
1063
|
"required": false
|
|
1064
1064
|
}
|
|
1065
1065
|
},
|
|
1066
|
-
"description": "Download a dataset backup to a local file
|
|
1066
|
+
"description": "Download a dataset backup to a local file",
|
|
1067
1067
|
"examples": [
|
|
1068
1068
|
{
|
|
1069
1069
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1148,7 +1148,7 @@
|
|
|
1148
1148
|
"required": false
|
|
1149
1149
|
}
|
|
1150
1150
|
},
|
|
1151
|
-
"description": "Enable backup for a dataset
|
|
1151
|
+
"description": "Enable backup for a dataset",
|
|
1152
1152
|
"examples": [
|
|
1153
1153
|
{
|
|
1154
1154
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1197,7 +1197,7 @@
|
|
|
1197
1197
|
"required": false
|
|
1198
1198
|
}
|
|
1199
1199
|
},
|
|
1200
|
-
"description": "List available backups for a dataset
|
|
1200
|
+
"description": "List available backups for a dataset",
|
|
1201
1201
|
"examples": [
|
|
1202
1202
|
{
|
|
1203
1203
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1277,7 +1277,7 @@
|
|
|
1277
1277
|
"required": true
|
|
1278
1278
|
}
|
|
1279
1279
|
},
|
|
1280
|
-
"description": "
|
|
1280
|
+
"description": "Add a CORS origin to the project",
|
|
1281
1281
|
"examples": [
|
|
1282
1282
|
{
|
|
1283
1283
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1339,7 +1339,7 @@
|
|
|
1339
1339
|
"required": false
|
|
1340
1340
|
}
|
|
1341
1341
|
},
|
|
1342
|
-
"description": "Delete
|
|
1342
|
+
"description": "Delete a CORS origin from the project",
|
|
1343
1343
|
"examples": [
|
|
1344
1344
|
{
|
|
1345
1345
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1384,11 +1384,11 @@
|
|
|
1384
1384
|
"cors:list": {
|
|
1385
1385
|
"aliases": [],
|
|
1386
1386
|
"args": {},
|
|
1387
|
-
"description": "List
|
|
1387
|
+
"description": "List CORS origins for the project",
|
|
1388
1388
|
"examples": [
|
|
1389
1389
|
{
|
|
1390
1390
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1391
|
-
"description": "List CORS origins for the
|
|
1391
|
+
"description": "List CORS origins for the project"
|
|
1392
1392
|
},
|
|
1393
1393
|
{
|
|
1394
1394
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -1436,7 +1436,7 @@
|
|
|
1436
1436
|
"required": false
|
|
1437
1437
|
}
|
|
1438
1438
|
},
|
|
1439
|
-
"description": "
|
|
1439
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
1440
1440
|
"examples": [
|
|
1441
1441
|
{
|
|
1442
1442
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1578,7 +1578,7 @@
|
|
|
1578
1578
|
"required": false
|
|
1579
1579
|
}
|
|
1580
1580
|
},
|
|
1581
|
-
"description": "Create a new dataset
|
|
1581
|
+
"description": "Create a new dataset for the project",
|
|
1582
1582
|
"examples": [
|
|
1583
1583
|
{
|
|
1584
1584
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
"required": true
|
|
1661
1661
|
}
|
|
1662
1662
|
},
|
|
1663
|
-
"description": "Delete a dataset
|
|
1663
|
+
"description": "Delete a dataset from the project",
|
|
1664
1664
|
"examples": [
|
|
1665
1665
|
{
|
|
1666
1666
|
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
@@ -1719,7 +1719,7 @@
|
|
|
1719
1719
|
"name": "destination"
|
|
1720
1720
|
}
|
|
1721
1721
|
},
|
|
1722
|
-
"description": "Export dataset to local
|
|
1722
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1723
1723
|
"examples": [
|
|
1724
1724
|
{
|
|
1725
1725
|
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
@@ -1758,7 +1758,7 @@
|
|
|
1758
1758
|
"type": "option"
|
|
1759
1759
|
},
|
|
1760
1760
|
"mode": {
|
|
1761
|
-
"description": "
|
|
1761
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
1762
1762
|
"name": "mode",
|
|
1763
1763
|
"default": "stream",
|
|
1764
1764
|
"hasDynamicHelp": false,
|
|
@@ -1980,11 +1980,11 @@
|
|
|
1980
1980
|
"datasets:list": {
|
|
1981
1981
|
"aliases": [],
|
|
1982
1982
|
"args": {},
|
|
1983
|
-
"description": "List datasets
|
|
1983
|
+
"description": "List datasets for the project",
|
|
1984
1984
|
"examples": [
|
|
1985
1985
|
{
|
|
1986
1986
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1987
|
-
"description": "List datasets
|
|
1987
|
+
"description": "List datasets for the project"
|
|
1988
1988
|
},
|
|
1989
1989
|
{
|
|
1990
1990
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
"docs:browse": {
|
|
2024
2024
|
"aliases": [],
|
|
2025
2025
|
"args": {},
|
|
2026
|
-
"description": "Open Sanity docs in
|
|
2026
|
+
"description": "Open Sanity docs in your browser",
|
|
2027
2027
|
"flags": {},
|
|
2028
2028
|
"hasDynamicHelp": false,
|
|
2029
2029
|
"hiddenAliases": [],
|
|
@@ -2260,7 +2260,7 @@
|
|
|
2260
2260
|
"required": false
|
|
2261
2261
|
}
|
|
2262
2262
|
},
|
|
2263
|
-
"description": "Delete one or more documents from the
|
|
2263
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
2264
2264
|
"examples": [
|
|
2265
2265
|
{
|
|
2266
2266
|
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
@@ -2637,7 +2637,7 @@
|
|
|
2637
2637
|
],
|
|
2638
2638
|
"flags": {
|
|
2639
2639
|
"api": {
|
|
2640
|
-
"description": "Only deploy API with this ID
|
|
2640
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
2641
2641
|
"name": "api",
|
|
2642
2642
|
"hasDynamicHelp": false,
|
|
2643
2643
|
"multiple": true,
|
|
@@ -2696,7 +2696,7 @@
|
|
|
2696
2696
|
"type": "option"
|
|
2697
2697
|
},
|
|
2698
2698
|
"with-union-cache": {
|
|
2699
|
-
"description": "
|
|
2699
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2700
2700
|
"name": "with-union-cache",
|
|
2701
2701
|
"allowNo": false,
|
|
2702
2702
|
"type": "boolean"
|
|
@@ -2720,11 +2720,11 @@
|
|
|
2720
2720
|
"graphql:list": {
|
|
2721
2721
|
"aliases": [],
|
|
2722
2722
|
"args": {},
|
|
2723
|
-
"description": "List
|
|
2723
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
2724
2724
|
"examples": [
|
|
2725
2725
|
{
|
|
2726
2726
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2727
|
-
"description": "List GraphQL endpoints for the
|
|
2727
|
+
"description": "List GraphQL endpoints for the project"
|
|
2728
2728
|
},
|
|
2729
2729
|
{
|
|
2730
2730
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2917,11 +2917,11 @@
|
|
|
2917
2917
|
"hooks:create": {
|
|
2918
2918
|
"aliases": [],
|
|
2919
2919
|
"args": {},
|
|
2920
|
-
"description": "Create a new webhook for the
|
|
2920
|
+
"description": "Create a new webhook for the project",
|
|
2921
2921
|
"examples": [
|
|
2922
2922
|
{
|
|
2923
2923
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2924
|
-
"description": "Create a new webhook for the
|
|
2924
|
+
"description": "Create a new webhook for the project"
|
|
2925
2925
|
},
|
|
2926
2926
|
{
|
|
2927
2927
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2961,24 +2961,24 @@
|
|
|
2961
2961
|
"aliases": [],
|
|
2962
2962
|
"args": {
|
|
2963
2963
|
"name": {
|
|
2964
|
-
"description": "Name of
|
|
2964
|
+
"description": "Name of webhook to delete (will prompt if not provided)",
|
|
2965
2965
|
"name": "name",
|
|
2966
2966
|
"required": false
|
|
2967
2967
|
}
|
|
2968
2968
|
},
|
|
2969
|
-
"description": "Delete a
|
|
2969
|
+
"description": "Delete a webhook from the project",
|
|
2970
2970
|
"examples": [
|
|
2971
2971
|
{
|
|
2972
2972
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2973
|
-
"description": "Interactively select and delete a
|
|
2973
|
+
"description": "Interactively select and delete a webhook"
|
|
2974
2974
|
},
|
|
2975
2975
|
{
|
|
2976
2976
|
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2977
|
-
"description": "Delete a specific
|
|
2977
|
+
"description": "Delete a specific webhook by name"
|
|
2978
2978
|
},
|
|
2979
2979
|
{
|
|
2980
2980
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2981
|
-
"description": "Delete a
|
|
2981
|
+
"description": "Delete a webhook from a specific project"
|
|
2982
2982
|
}
|
|
2983
2983
|
],
|
|
2984
2984
|
"flags": {
|
|
@@ -3013,15 +3013,15 @@
|
|
|
3013
3013
|
"hooks:list": {
|
|
3014
3014
|
"aliases": [],
|
|
3015
3015
|
"args": {},
|
|
3016
|
-
"description": "List
|
|
3016
|
+
"description": "List webhooks for the project",
|
|
3017
3017
|
"examples": [
|
|
3018
3018
|
{
|
|
3019
3019
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3020
|
-
"description": "List
|
|
3020
|
+
"description": "List webhooks for the project"
|
|
3021
3021
|
},
|
|
3022
3022
|
{
|
|
3023
3023
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3024
|
-
"description": "List
|
|
3024
|
+
"description": "List webhooks for a specific project"
|
|
3025
3025
|
}
|
|
3026
3026
|
],
|
|
3027
3027
|
"flags": {
|
|
@@ -3057,24 +3057,24 @@
|
|
|
3057
3057
|
"aliases": [],
|
|
3058
3058
|
"args": {
|
|
3059
3059
|
"name": {
|
|
3060
|
-
"description": "Name of the
|
|
3060
|
+
"description": "Name of the webhook to show logs for",
|
|
3061
3061
|
"name": "name",
|
|
3062
3062
|
"required": false
|
|
3063
3063
|
}
|
|
3064
3064
|
},
|
|
3065
|
-
"description": "
|
|
3065
|
+
"description": "Show log entries for project webhooks",
|
|
3066
3066
|
"examples": [
|
|
3067
3067
|
{
|
|
3068
3068
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3069
|
-
"description": "
|
|
3069
|
+
"description": "Show log entries for project webhooks"
|
|
3070
3070
|
},
|
|
3071
3071
|
{
|
|
3072
3072
|
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
3073
|
-
"description": "
|
|
3073
|
+
"description": "Show log entries for a specific webhook by name"
|
|
3074
3074
|
},
|
|
3075
3075
|
{
|
|
3076
3076
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3077
|
-
"description": "
|
|
3077
|
+
"description": "Show log entries for a specific project"
|
|
3078
3078
|
}
|
|
3079
3079
|
],
|
|
3080
3080
|
"flags": {
|
|
@@ -3116,7 +3116,7 @@
|
|
|
3116
3116
|
"manifest:extract": {
|
|
3117
3117
|
"aliases": [],
|
|
3118
3118
|
"args": {},
|
|
3119
|
-
"description": "
|
|
3119
|
+
"description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
|
|
3120
3120
|
"examples": [
|
|
3121
3121
|
{
|
|
3122
3122
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3213,7 +3213,7 @@
|
|
|
3213
3213
|
"required": true
|
|
3214
3214
|
}
|
|
3215
3215
|
},
|
|
3216
|
-
"description": "
|
|
3216
|
+
"description": "Delete an aspect definition",
|
|
3217
3217
|
"examples": [
|
|
3218
3218
|
{
|
|
3219
3219
|
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
@@ -3335,7 +3335,7 @@
|
|
|
3335
3335
|
"name": "destination"
|
|
3336
3336
|
}
|
|
3337
3337
|
},
|
|
3338
|
-
"description": "Export
|
|
3338
|
+
"description": "Export file and image assets from a media library (excludes video)",
|
|
3339
3339
|
"examples": [
|
|
3340
3340
|
{
|
|
3341
3341
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3673,7 +3673,7 @@
|
|
|
3673
3673
|
"projects:list": {
|
|
3674
3674
|
"aliases": [],
|
|
3675
3675
|
"args": {},
|
|
3676
|
-
"description": "
|
|
3676
|
+
"description": "List your projects",
|
|
3677
3677
|
"examples": [
|
|
3678
3678
|
{
|
|
3679
3679
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3681,11 +3681,12 @@
|
|
|
3681
3681
|
},
|
|
3682
3682
|
{
|
|
3683
3683
|
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3684
|
-
"description": "List
|
|
3684
|
+
"description": "List projects sorted by member count, ascending"
|
|
3685
3685
|
}
|
|
3686
3686
|
],
|
|
3687
3687
|
"flags": {
|
|
3688
3688
|
"order": {
|
|
3689
|
+
"description": "Sort direction",
|
|
3689
3690
|
"name": "order",
|
|
3690
3691
|
"default": "desc",
|
|
3691
3692
|
"hasDynamicHelp": false,
|
|
@@ -3697,6 +3698,7 @@
|
|
|
3697
3698
|
"type": "option"
|
|
3698
3699
|
},
|
|
3699
3700
|
"sort": {
|
|
3701
|
+
"description": "Sort field",
|
|
3700
3702
|
"name": "sort",
|
|
3701
3703
|
"default": "created",
|
|
3702
3704
|
"hasDynamicHelp": false,
|
|
@@ -3813,7 +3815,7 @@
|
|
|
3813
3815
|
"schemas:deploy": {
|
|
3814
3816
|
"aliases": [],
|
|
3815
3817
|
"args": {},
|
|
3816
|
-
"description": "Deploy schema documents into workspace datasets.\n\
|
|
3818
|
+
"description": "Deploy schema documents into workspace datasets.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To re-use an existing manifest, use --no-extract-manifest.",
|
|
3817
3819
|
"examples": [
|
|
3818
3820
|
{
|
|
3819
3821
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3826,7 +3828,7 @@
|
|
|
3826
3828
|
],
|
|
3827
3829
|
"flags": {
|
|
3828
3830
|
"extract-manifest": {
|
|
3829
|
-
"description": "
|
|
3831
|
+
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
3830
3832
|
"name": "extract-manifest",
|
|
3831
3833
|
"allowNo": true,
|
|
3832
3834
|
"type": "boolean"
|
|
@@ -3883,7 +3885,7 @@
|
|
|
3883
3885
|
"schemas:extract": {
|
|
3884
3886
|
"aliases": [],
|
|
3885
3887
|
"args": {},
|
|
3886
|
-
"description": "
|
|
3888
|
+
"description": "Extract a JSON representation of a Sanity schema within a Studio context.\n\nNote: This command is experimental and subject to change.",
|
|
3887
3889
|
"examples": [
|
|
3888
3890
|
{
|
|
3889
3891
|
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
@@ -3906,7 +3908,7 @@
|
|
|
3906
3908
|
"type": "boolean"
|
|
3907
3909
|
},
|
|
3908
3910
|
"format": {
|
|
3909
|
-
"description": "
|
|
3911
|
+
"description": "Output format (currently only groq-type-nodes)",
|
|
3910
3912
|
"name": "format",
|
|
3911
3913
|
"default": "groq-type-nodes",
|
|
3912
3914
|
"hasDynamicHelp": false,
|
|
@@ -3964,7 +3966,7 @@
|
|
|
3964
3966
|
"schemas:list": {
|
|
3965
3967
|
"aliases": [],
|
|
3966
3968
|
"args": {},
|
|
3967
|
-
"description": "
|
|
3969
|
+
"description": "List all schemas in the current dataset.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To reuse an existing manifest, use --no-extract-manifest.",
|
|
3968
3970
|
"examples": [
|
|
3969
3971
|
{
|
|
3970
3972
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3985,7 +3987,7 @@
|
|
|
3985
3987
|
],
|
|
3986
3988
|
"flags": {
|
|
3987
3989
|
"extract-manifest": {
|
|
3988
|
-
"description": "
|
|
3990
|
+
"description": "Regenerate manifest before listing (use --no-extract-manifest to skip)",
|
|
3989
3991
|
"hidden": true,
|
|
3990
3992
|
"name": "extract-manifest",
|
|
3991
3993
|
"allowNo": true,
|
|
@@ -4114,6 +4116,84 @@
|
|
|
4114
4116
|
"validate.js"
|
|
4115
4117
|
]
|
|
4116
4118
|
},
|
|
4119
|
+
"telemetry:disable": {
|
|
4120
|
+
"aliases": [],
|
|
4121
|
+
"args": {},
|
|
4122
|
+
"description": "Disable telemetry for your account",
|
|
4123
|
+
"examples": [
|
|
4124
|
+
{
|
|
4125
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4126
|
+
"description": "Disable telemetry for your account"
|
|
4127
|
+
}
|
|
4128
|
+
],
|
|
4129
|
+
"flags": {},
|
|
4130
|
+
"hasDynamicHelp": false,
|
|
4131
|
+
"hiddenAliases": [],
|
|
4132
|
+
"id": "telemetry:disable",
|
|
4133
|
+
"pluginAlias": "@sanity/cli",
|
|
4134
|
+
"pluginName": "@sanity/cli",
|
|
4135
|
+
"pluginType": "core",
|
|
4136
|
+
"strict": true,
|
|
4137
|
+
"isESM": true,
|
|
4138
|
+
"relativePath": [
|
|
4139
|
+
"dist",
|
|
4140
|
+
"commands",
|
|
4141
|
+
"telemetry",
|
|
4142
|
+
"disable.js"
|
|
4143
|
+
]
|
|
4144
|
+
},
|
|
4145
|
+
"telemetry:enable": {
|
|
4146
|
+
"aliases": [],
|
|
4147
|
+
"args": {},
|
|
4148
|
+
"description": "Enable telemetry for your account",
|
|
4149
|
+
"examples": [
|
|
4150
|
+
{
|
|
4151
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4152
|
+
"description": "Enable telemetry for your account"
|
|
4153
|
+
}
|
|
4154
|
+
],
|
|
4155
|
+
"flags": {},
|
|
4156
|
+
"hasDynamicHelp": false,
|
|
4157
|
+
"hiddenAliases": [],
|
|
4158
|
+
"id": "telemetry:enable",
|
|
4159
|
+
"pluginAlias": "@sanity/cli",
|
|
4160
|
+
"pluginName": "@sanity/cli",
|
|
4161
|
+
"pluginType": "core",
|
|
4162
|
+
"strict": true,
|
|
4163
|
+
"isESM": true,
|
|
4164
|
+
"relativePath": [
|
|
4165
|
+
"dist",
|
|
4166
|
+
"commands",
|
|
4167
|
+
"telemetry",
|
|
4168
|
+
"enable.js"
|
|
4169
|
+
]
|
|
4170
|
+
},
|
|
4171
|
+
"telemetry:status": {
|
|
4172
|
+
"aliases": [],
|
|
4173
|
+
"args": {},
|
|
4174
|
+
"description": "Check telemetry status for your account",
|
|
4175
|
+
"examples": [
|
|
4176
|
+
{
|
|
4177
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4178
|
+
"description": "Check telemetry status for your account"
|
|
4179
|
+
}
|
|
4180
|
+
],
|
|
4181
|
+
"flags": {},
|
|
4182
|
+
"hasDynamicHelp": false,
|
|
4183
|
+
"hiddenAliases": [],
|
|
4184
|
+
"id": "telemetry:status",
|
|
4185
|
+
"pluginAlias": "@sanity/cli",
|
|
4186
|
+
"pluginName": "@sanity/cli",
|
|
4187
|
+
"pluginType": "core",
|
|
4188
|
+
"strict": true,
|
|
4189
|
+
"isESM": true,
|
|
4190
|
+
"relativePath": [
|
|
4191
|
+
"dist",
|
|
4192
|
+
"commands",
|
|
4193
|
+
"telemetry",
|
|
4194
|
+
"status.js"
|
|
4195
|
+
]
|
|
4196
|
+
},
|
|
4117
4197
|
"tokens:add": {
|
|
4118
4198
|
"aliases": [],
|
|
4119
4199
|
"args": {
|
|
@@ -4123,7 +4203,7 @@
|
|
|
4123
4203
|
"required": false
|
|
4124
4204
|
}
|
|
4125
4205
|
},
|
|
4126
|
-
"description": "Create a new API token for
|
|
4206
|
+
"description": "Create a new API token for the project",
|
|
4127
4207
|
"examples": [
|
|
4128
4208
|
{
|
|
4129
4209
|
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
@@ -4205,7 +4285,7 @@
|
|
|
4205
4285
|
"required": false
|
|
4206
4286
|
}
|
|
4207
4287
|
},
|
|
4208
|
-
"description": "Delete an API token from
|
|
4288
|
+
"description": "Delete an API token from the project",
|
|
4209
4289
|
"examples": [
|
|
4210
4290
|
{
|
|
4211
4291
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4266,11 +4346,11 @@
|
|
|
4266
4346
|
"tokens:list": {
|
|
4267
4347
|
"aliases": [],
|
|
4268
4348
|
"args": {},
|
|
4269
|
-
"description": "List API tokens for the
|
|
4349
|
+
"description": "List API tokens for the project",
|
|
4270
4350
|
"examples": [
|
|
4271
4351
|
{
|
|
4272
4352
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4273
|
-
"description": "List tokens for the
|
|
4353
|
+
"description": "List tokens for the project"
|
|
4274
4354
|
},
|
|
4275
4355
|
{
|
|
4276
4356
|
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
@@ -4316,84 +4396,6 @@
|
|
|
4316
4396
|
"list.js"
|
|
4317
4397
|
]
|
|
4318
4398
|
},
|
|
4319
|
-
"telemetry:disable": {
|
|
4320
|
-
"aliases": [],
|
|
4321
|
-
"args": {},
|
|
4322
|
-
"description": "Disable telemetry for your logged in user",
|
|
4323
|
-
"examples": [
|
|
4324
|
-
{
|
|
4325
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4326
|
-
"description": "Disable telemetry for your logged in user"
|
|
4327
|
-
}
|
|
4328
|
-
],
|
|
4329
|
-
"flags": {},
|
|
4330
|
-
"hasDynamicHelp": false,
|
|
4331
|
-
"hiddenAliases": [],
|
|
4332
|
-
"id": "telemetry:disable",
|
|
4333
|
-
"pluginAlias": "@sanity/cli",
|
|
4334
|
-
"pluginName": "@sanity/cli",
|
|
4335
|
-
"pluginType": "core",
|
|
4336
|
-
"strict": true,
|
|
4337
|
-
"isESM": true,
|
|
4338
|
-
"relativePath": [
|
|
4339
|
-
"dist",
|
|
4340
|
-
"commands",
|
|
4341
|
-
"telemetry",
|
|
4342
|
-
"disable.js"
|
|
4343
|
-
]
|
|
4344
|
-
},
|
|
4345
|
-
"telemetry:enable": {
|
|
4346
|
-
"aliases": [],
|
|
4347
|
-
"args": {},
|
|
4348
|
-
"description": "Enable telemetry for your logged in user",
|
|
4349
|
-
"examples": [
|
|
4350
|
-
{
|
|
4351
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4352
|
-
"description": "Enable telemetry for your logged in user"
|
|
4353
|
-
}
|
|
4354
|
-
],
|
|
4355
|
-
"flags": {},
|
|
4356
|
-
"hasDynamicHelp": false,
|
|
4357
|
-
"hiddenAliases": [],
|
|
4358
|
-
"id": "telemetry:enable",
|
|
4359
|
-
"pluginAlias": "@sanity/cli",
|
|
4360
|
-
"pluginName": "@sanity/cli",
|
|
4361
|
-
"pluginType": "core",
|
|
4362
|
-
"strict": true,
|
|
4363
|
-
"isESM": true,
|
|
4364
|
-
"relativePath": [
|
|
4365
|
-
"dist",
|
|
4366
|
-
"commands",
|
|
4367
|
-
"telemetry",
|
|
4368
|
-
"enable.js"
|
|
4369
|
-
]
|
|
4370
|
-
},
|
|
4371
|
-
"telemetry:status": {
|
|
4372
|
-
"aliases": [],
|
|
4373
|
-
"args": {},
|
|
4374
|
-
"description": "Check telemetry consent status for your logged in user",
|
|
4375
|
-
"examples": [
|
|
4376
|
-
{
|
|
4377
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4378
|
-
"description": "Check telemetry consent status for your logged in user"
|
|
4379
|
-
}
|
|
4380
|
-
],
|
|
4381
|
-
"flags": {},
|
|
4382
|
-
"hasDynamicHelp": false,
|
|
4383
|
-
"hiddenAliases": [],
|
|
4384
|
-
"id": "telemetry:status",
|
|
4385
|
-
"pluginAlias": "@sanity/cli",
|
|
4386
|
-
"pluginName": "@sanity/cli",
|
|
4387
|
-
"pluginType": "core",
|
|
4388
|
-
"strict": true,
|
|
4389
|
-
"isESM": true,
|
|
4390
|
-
"relativePath": [
|
|
4391
|
-
"dist",
|
|
4392
|
-
"commands",
|
|
4393
|
-
"telemetry",
|
|
4394
|
-
"status.js"
|
|
4395
|
-
]
|
|
4396
|
-
},
|
|
4397
4399
|
"users:invite": {
|
|
4398
4400
|
"aliases": [],
|
|
4399
4401
|
"args": {
|
|
@@ -4462,7 +4464,7 @@
|
|
|
4462
4464
|
"users:list": {
|
|
4463
4465
|
"aliases": [],
|
|
4464
4466
|
"args": {},
|
|
4465
|
-
"description": "List
|
|
4467
|
+
"description": "List project members",
|
|
4466
4468
|
"examples": [
|
|
4467
4469
|
{
|
|
4468
4470
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4562,7 +4564,7 @@
|
|
|
4562
4564
|
"required": false
|
|
4563
4565
|
}
|
|
4564
4566
|
},
|
|
4565
|
-
"description": "Create a dataset alias
|
|
4567
|
+
"description": "Create a dataset alias for the project",
|
|
4566
4568
|
"examples": [
|
|
4567
4569
|
{
|
|
4568
4570
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
@@ -4620,7 +4622,7 @@
|
|
|
4620
4622
|
"required": true
|
|
4621
4623
|
}
|
|
4622
4624
|
},
|
|
4623
|
-
"description": "Delete a dataset alias
|
|
4625
|
+
"description": "Delete a dataset alias from the project",
|
|
4624
4626
|
"examples": [
|
|
4625
4627
|
{
|
|
4626
4628
|
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
@@ -4682,7 +4684,7 @@
|
|
|
4682
4684
|
"required": false
|
|
4683
4685
|
}
|
|
4684
4686
|
},
|
|
4685
|
-
"description": "Link a dataset alias to a dataset
|
|
4687
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
4686
4688
|
"examples": [
|
|
4687
4689
|
{
|
|
4688
4690
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4747,7 +4749,7 @@
|
|
|
4747
4749
|
"required": false
|
|
4748
4750
|
}
|
|
4749
4751
|
},
|
|
4750
|
-
"description": "Unlink a dataset alias from its dataset
|
|
4752
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
4751
4753
|
"examples": [
|
|
4752
4754
|
{
|
|
4753
4755
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -5065,5 +5067,5 @@
|
|
|
5065
5067
|
]
|
|
5066
5068
|
}
|
|
5067
5069
|
},
|
|
5068
|
-
"version": "6.3.
|
|
5070
|
+
"version": "6.3.2"
|
|
5069
5071
|
}
|