@sanity/cli 6.3.1 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +311 -452
- 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/bootstrapLocalTemplate.js +16 -1
- package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
- package/dist/actions/init/initApp.js +72 -0
- package/dist/actions/init/initApp.js.map +1 -0
- package/dist/actions/init/initHelpers.js +37 -0
- package/dist/actions/init/initHelpers.js.map +1 -0
- package/dist/actions/init/initNextJs.js +246 -0
- package/dist/actions/init/initNextJs.js.map +1 -0
- package/dist/actions/init/initStudio.js +127 -0
- package/dist/actions/init/initStudio.js.map +1 -0
- package/dist/actions/init/scaffoldTemplate.js +114 -0
- package/dist/actions/init/scaffoldTemplate.js.map +1 -0
- package/dist/actions/init/templates/appQuickstart.js +2 -1
- package/dist/actions/init/templates/appQuickstart.js.map +1 -1
- package/dist/actions/init/templates/appSanityUi.js +2 -1
- package/dist/actions/init/templates/appSanityUi.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/init/templates/shopify.js +6 -6
- package/dist/actions/init/templates/shopify.js.map +1 -1
- package/dist/actions/init/templates/shopifyOnline.js +2 -2
- package/dist/actions/init/templates/shopifyOnline.js.map +1 -1
- package/dist/actions/manifest/types.js +1 -1
- package/dist/actions/manifest/types.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +16 -3
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +192 -132
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +4 -1
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/writeMCPConfig.js +2 -2
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/actions/schema/extractSchema.js +5 -7
- package/dist/actions/schema/extractSchema.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 +15 -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 +175 -490
- 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/mcp/configure.js +1 -1
- package/dist/commands/mcp/configure.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/hooks/prerun/injectEnvVariables.js +3 -5
- package/dist/hooks/prerun/injectEnvVariables.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/services/datasets.js +2 -1
- package/dist/services/datasets.js.map +1 -1
- package/dist/telemetry/init.telemetry.js.map +1 -1
- package/dist/util/packageManager/installationInfo/detectPackages.js +13 -7
- package/dist/util/packageManager/installationInfo/detectPackages.js.map +1 -1
- package/dist/util/telemetry/createTelemetryStore.js +27 -12
- package/dist/util/telemetry/createTelemetryStore.js.map +1 -1
- package/dist/util/update/fetchUpdateInfo.js +40 -0
- package/dist/util/update/fetchUpdateInfo.js.map +1 -0
- package/dist/util/update/fetchUpdateInfo.worker.js +19 -0
- package/dist/util/update/fetchUpdateInfo.worker.js.map +1 -0
- package/dist/util/update/getRunnerUpdateCommand.js +33 -0
- package/dist/util/update/getRunnerUpdateCommand.js.map +1 -0
- package/dist/util/update/getUpdateCommand.js +6 -7
- package/dist/util/update/getUpdateCommand.js.map +1 -1
- package/dist/util/update/packageRunner.js +10 -0
- package/dist/util/update/packageRunner.js.map +1 -0
- package/dist/util/update/resolveRunnerPackage.js +45 -0
- package/dist/util/update/resolveRunnerPackage.js.map +1 -0
- package/dist/util/update/resolveUpdateTarget.js +31 -0
- package/dist/util/update/resolveUpdateTarget.js.map +1 -0
- package/dist/util/update/showNotificationUpdate.js +8 -6
- package/dist/util/update/showNotificationUpdate.js.map +1 -1
- package/dist/util/update/updateChecker.js +73 -38
- package/dist/util/update/updateChecker.js.map +1 -1
- package/dist/util/validateProjection.js +121 -0
- package/dist/util/validateProjection.js.map +1 -0
- package/oclif.manifest.json +698 -681
- package/package.json +24 -23
- package/templates/app-quickstart/src/App.tsx +2 -2
- package/templates/app-sanity-ui/src/App.tsx +2 -2
- package/templates/shopify/schemaTypes/objects/hotspot/imageWithProductHotspotsType.ts +1 -1
- package/dist/util/update/fetchLatestVersion.js +0 -21
- package/dist/util/update/fetchLatestVersion.js.map +0 -1
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 %>",
|
|
@@ -1454,6 +1454,10 @@
|
|
|
1454
1454
|
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1455
1455
|
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1456
1456
|
},
|
|
1457
|
+
{
|
|
1458
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1459
|
+
"description": "Copy without content release documents"
|
|
1460
|
+
},
|
|
1457
1461
|
{
|
|
1458
1462
|
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1459
1463
|
"description": "Start copy job without waiting for completion"
|
|
@@ -1540,6 +1544,17 @@
|
|
|
1540
1544
|
"multiple": false,
|
|
1541
1545
|
"type": "option"
|
|
1542
1546
|
},
|
|
1547
|
+
"skip-content-releases": {
|
|
1548
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
1549
|
+
"exclusive": [
|
|
1550
|
+
"list",
|
|
1551
|
+
"attach"
|
|
1552
|
+
],
|
|
1553
|
+
"name": "skip-content-releases",
|
|
1554
|
+
"required": false,
|
|
1555
|
+
"allowNo": false,
|
|
1556
|
+
"type": "boolean"
|
|
1557
|
+
},
|
|
1543
1558
|
"skip-history": {
|
|
1544
1559
|
"description": "Don't preserve document history on copy",
|
|
1545
1560
|
"exclusive": [
|
|
@@ -1578,7 +1593,7 @@
|
|
|
1578
1593
|
"required": false
|
|
1579
1594
|
}
|
|
1580
1595
|
},
|
|
1581
|
-
"description": "Create a new dataset
|
|
1596
|
+
"description": "Create a new dataset for the project",
|
|
1582
1597
|
"examples": [
|
|
1583
1598
|
{
|
|
1584
1599
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -1660,7 +1675,7 @@
|
|
|
1660
1675
|
"required": true
|
|
1661
1676
|
}
|
|
1662
1677
|
},
|
|
1663
|
-
"description": "Delete a dataset
|
|
1678
|
+
"description": "Delete a dataset from the project",
|
|
1664
1679
|
"examples": [
|
|
1665
1680
|
{
|
|
1666
1681
|
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
@@ -1719,7 +1734,7 @@
|
|
|
1719
1734
|
"name": "destination"
|
|
1720
1735
|
}
|
|
1721
1736
|
},
|
|
1722
|
-
"description": "Export dataset to local
|
|
1737
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1723
1738
|
"examples": [
|
|
1724
1739
|
{
|
|
1725
1740
|
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
@@ -1758,7 +1773,7 @@
|
|
|
1758
1773
|
"type": "option"
|
|
1759
1774
|
},
|
|
1760
1775
|
"mode": {
|
|
1761
|
-
"description": "
|
|
1776
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
1762
1777
|
"name": "mode",
|
|
1763
1778
|
"default": "stream",
|
|
1764
1779
|
"hasDynamicHelp": false,
|
|
@@ -1980,11 +1995,11 @@
|
|
|
1980
1995
|
"datasets:list": {
|
|
1981
1996
|
"aliases": [],
|
|
1982
1997
|
"args": {},
|
|
1983
|
-
"description": "List datasets
|
|
1998
|
+
"description": "List datasets for the project",
|
|
1984
1999
|
"examples": [
|
|
1985
2000
|
{
|
|
1986
2001
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1987
|
-
"description": "List datasets
|
|
2002
|
+
"description": "List datasets for the project"
|
|
1988
2003
|
},
|
|
1989
2004
|
{
|
|
1990
2005
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2023,7 +2038,7 @@
|
|
|
2023
2038
|
"docs:browse": {
|
|
2024
2039
|
"aliases": [],
|
|
2025
2040
|
"args": {},
|
|
2026
|
-
"description": "Open Sanity docs in
|
|
2041
|
+
"description": "Open Sanity docs in your browser",
|
|
2027
2042
|
"flags": {},
|
|
2028
2043
|
"hasDynamicHelp": false,
|
|
2029
2044
|
"hiddenAliases": [],
|
|
@@ -2260,7 +2275,7 @@
|
|
|
2260
2275
|
"required": false
|
|
2261
2276
|
}
|
|
2262
2277
|
},
|
|
2263
|
-
"description": "Delete one or more documents from the
|
|
2278
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
2264
2279
|
"examples": [
|
|
2265
2280
|
{
|
|
2266
2281
|
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
@@ -2637,7 +2652,7 @@
|
|
|
2637
2652
|
],
|
|
2638
2653
|
"flags": {
|
|
2639
2654
|
"api": {
|
|
2640
|
-
"description": "Only deploy API with this ID
|
|
2655
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
2641
2656
|
"name": "api",
|
|
2642
2657
|
"hasDynamicHelp": false,
|
|
2643
2658
|
"multiple": true,
|
|
@@ -2696,7 +2711,7 @@
|
|
|
2696
2711
|
"type": "option"
|
|
2697
2712
|
},
|
|
2698
2713
|
"with-union-cache": {
|
|
2699
|
-
"description": "
|
|
2714
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2700
2715
|
"name": "with-union-cache",
|
|
2701
2716
|
"allowNo": false,
|
|
2702
2717
|
"type": "boolean"
|
|
@@ -2720,11 +2735,11 @@
|
|
|
2720
2735
|
"graphql:list": {
|
|
2721
2736
|
"aliases": [],
|
|
2722
2737
|
"args": {},
|
|
2723
|
-
"description": "List
|
|
2738
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
2724
2739
|
"examples": [
|
|
2725
2740
|
{
|
|
2726
2741
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2727
|
-
"description": "List GraphQL endpoints for the
|
|
2742
|
+
"description": "List GraphQL endpoints for the project"
|
|
2728
2743
|
},
|
|
2729
2744
|
{
|
|
2730
2745
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2917,11 +2932,11 @@
|
|
|
2917
2932
|
"hooks:create": {
|
|
2918
2933
|
"aliases": [],
|
|
2919
2934
|
"args": {},
|
|
2920
|
-
"description": "Create a new webhook for the
|
|
2935
|
+
"description": "Create a new webhook for the project",
|
|
2921
2936
|
"examples": [
|
|
2922
2937
|
{
|
|
2923
2938
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2924
|
-
"description": "Create a new webhook for the
|
|
2939
|
+
"description": "Create a new webhook for the project"
|
|
2925
2940
|
},
|
|
2926
2941
|
{
|
|
2927
2942
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
@@ -2961,24 +2976,24 @@
|
|
|
2961
2976
|
"aliases": [],
|
|
2962
2977
|
"args": {
|
|
2963
2978
|
"name": {
|
|
2964
|
-
"description": "Name of
|
|
2979
|
+
"description": "Name of webhook to delete (will prompt if not provided)",
|
|
2965
2980
|
"name": "name",
|
|
2966
2981
|
"required": false
|
|
2967
2982
|
}
|
|
2968
2983
|
},
|
|
2969
|
-
"description": "Delete a
|
|
2984
|
+
"description": "Delete a webhook from the project",
|
|
2970
2985
|
"examples": [
|
|
2971
2986
|
{
|
|
2972
2987
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2973
|
-
"description": "Interactively select and delete a
|
|
2988
|
+
"description": "Interactively select and delete a webhook"
|
|
2974
2989
|
},
|
|
2975
2990
|
{
|
|
2976
2991
|
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2977
|
-
"description": "Delete a specific
|
|
2992
|
+
"description": "Delete a specific webhook by name"
|
|
2978
2993
|
},
|
|
2979
2994
|
{
|
|
2980
2995
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2981
|
-
"description": "Delete a
|
|
2996
|
+
"description": "Delete a webhook from a specific project"
|
|
2982
2997
|
}
|
|
2983
2998
|
],
|
|
2984
2999
|
"flags": {
|
|
@@ -3013,15 +3028,15 @@
|
|
|
3013
3028
|
"hooks:list": {
|
|
3014
3029
|
"aliases": [],
|
|
3015
3030
|
"args": {},
|
|
3016
|
-
"description": "List
|
|
3031
|
+
"description": "List webhooks for the project",
|
|
3017
3032
|
"examples": [
|
|
3018
3033
|
{
|
|
3019
3034
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3020
|
-
"description": "List
|
|
3035
|
+
"description": "List webhooks for the project"
|
|
3021
3036
|
},
|
|
3022
3037
|
{
|
|
3023
3038
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3024
|
-
"description": "List
|
|
3039
|
+
"description": "List webhooks for a specific project"
|
|
3025
3040
|
}
|
|
3026
3041
|
],
|
|
3027
3042
|
"flags": {
|
|
@@ -3057,24 +3072,24 @@
|
|
|
3057
3072
|
"aliases": [],
|
|
3058
3073
|
"args": {
|
|
3059
3074
|
"name": {
|
|
3060
|
-
"description": "Name of the
|
|
3075
|
+
"description": "Name of the webhook to show logs for",
|
|
3061
3076
|
"name": "name",
|
|
3062
3077
|
"required": false
|
|
3063
3078
|
}
|
|
3064
3079
|
},
|
|
3065
|
-
"description": "
|
|
3080
|
+
"description": "Show log entries for project webhooks",
|
|
3066
3081
|
"examples": [
|
|
3067
3082
|
{
|
|
3068
3083
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3069
|
-
"description": "
|
|
3084
|
+
"description": "Show log entries for project webhooks"
|
|
3070
3085
|
},
|
|
3071
3086
|
{
|
|
3072
3087
|
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
3073
|
-
"description": "
|
|
3088
|
+
"description": "Show log entries for a specific webhook by name"
|
|
3074
3089
|
},
|
|
3075
3090
|
{
|
|
3076
3091
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3077
|
-
"description": "
|
|
3092
|
+
"description": "Show log entries for a specific project"
|
|
3078
3093
|
}
|
|
3079
3094
|
],
|
|
3080
3095
|
"flags": {
|
|
@@ -3116,7 +3131,7 @@
|
|
|
3116
3131
|
"manifest:extract": {
|
|
3117
3132
|
"aliases": [],
|
|
3118
3133
|
"args": {},
|
|
3119
|
-
"description": "
|
|
3134
|
+
"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
3135
|
"examples": [
|
|
3121
3136
|
{
|
|
3122
3137
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3155,7 +3170,7 @@
|
|
|
3155
3170
|
"mcp:configure": {
|
|
3156
3171
|
"aliases": [],
|
|
3157
3172
|
"args": {},
|
|
3158
|
-
"description": "Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)",
|
|
3173
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
3159
3174
|
"examples": [
|
|
3160
3175
|
{
|
|
3161
3176
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -3178,81 +3193,58 @@
|
|
|
3178
3193
|
"configure.js"
|
|
3179
3194
|
]
|
|
3180
3195
|
},
|
|
3181
|
-
"
|
|
3182
|
-
"aliases": [],
|
|
3183
|
-
"args": {},
|
|
3184
|
-
"description": "Create a new aspect definition file",
|
|
3185
|
-
"examples": [
|
|
3186
|
-
{
|
|
3187
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3188
|
-
"description": "Create a new aspect definition file"
|
|
3189
|
-
}
|
|
3190
|
-
],
|
|
3191
|
-
"flags": {},
|
|
3192
|
-
"hasDynamicHelp": false,
|
|
3193
|
-
"hiddenAliases": [],
|
|
3194
|
-
"id": "media:create-aspect",
|
|
3195
|
-
"pluginAlias": "@sanity/cli",
|
|
3196
|
-
"pluginName": "@sanity/cli",
|
|
3197
|
-
"pluginType": "core",
|
|
3198
|
-
"strict": true,
|
|
3199
|
-
"isESM": true,
|
|
3200
|
-
"relativePath": [
|
|
3201
|
-
"dist",
|
|
3202
|
-
"commands",
|
|
3203
|
-
"media",
|
|
3204
|
-
"create-aspect.js"
|
|
3205
|
-
]
|
|
3206
|
-
},
|
|
3207
|
-
"media:delete-aspect": {
|
|
3196
|
+
"openapi:get": {
|
|
3208
3197
|
"aliases": [],
|
|
3209
3198
|
"args": {
|
|
3210
|
-
"
|
|
3211
|
-
"description": "
|
|
3212
|
-
"name": "
|
|
3199
|
+
"slug": {
|
|
3200
|
+
"description": "Slug of the OpenAPI specification to retrieve",
|
|
3201
|
+
"name": "slug",
|
|
3213
3202
|
"required": true
|
|
3214
3203
|
}
|
|
3215
3204
|
},
|
|
3216
|
-
"description": "
|
|
3205
|
+
"description": "Get an OpenAPI specification by slug",
|
|
3217
3206
|
"examples": [
|
|
3218
3207
|
{
|
|
3219
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3220
|
-
"description": "
|
|
3208
|
+
"command": "<%= config.bin %> <%= command.id %> query",
|
|
3209
|
+
"description": "Get a specification (YAML format, default)"
|
|
3210
|
+
},
|
|
3211
|
+
{
|
|
3212
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
3213
|
+
"description": "Get specification in JSON format"
|
|
3214
|
+
},
|
|
3215
|
+
{
|
|
3216
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
3217
|
+
"description": "Open specification in browser"
|
|
3218
|
+
},
|
|
3219
|
+
{
|
|
3220
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
3221
|
+
"description": "Pipe to file"
|
|
3221
3222
|
}
|
|
3222
3223
|
],
|
|
3223
3224
|
"flags": {
|
|
3224
|
-
"
|
|
3225
|
-
"
|
|
3226
|
-
"
|
|
3227
|
-
"
|
|
3228
|
-
"name": "project-id",
|
|
3229
|
-
"hasDynamicHelp": false,
|
|
3230
|
-
"helpValue": "<id>",
|
|
3231
|
-
"multiple": false,
|
|
3232
|
-
"type": "option"
|
|
3233
|
-
},
|
|
3234
|
-
"media-library-id": {
|
|
3235
|
-
"description": "The id of the target media library",
|
|
3236
|
-
"name": "media-library-id",
|
|
3237
|
-
"required": false,
|
|
3225
|
+
"format": {
|
|
3226
|
+
"description": "Output format: yaml (default), json",
|
|
3227
|
+
"name": "format",
|
|
3228
|
+
"default": "yaml",
|
|
3238
3229
|
"hasDynamicHelp": false,
|
|
3239
3230
|
"multiple": false,
|
|
3231
|
+
"options": [
|
|
3232
|
+
"yaml",
|
|
3233
|
+
"json"
|
|
3234
|
+
],
|
|
3240
3235
|
"type": "option"
|
|
3241
3236
|
},
|
|
3242
|
-
"
|
|
3243
|
-
"
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
"description": "Skip confirmation prompt",
|
|
3247
|
-
"name": "yes",
|
|
3248
|
-
"required": false,
|
|
3237
|
+
"web": {
|
|
3238
|
+
"char": "w",
|
|
3239
|
+
"description": "Open in web browser",
|
|
3240
|
+
"name": "web",
|
|
3249
3241
|
"allowNo": false,
|
|
3250
3242
|
"type": "boolean"
|
|
3251
3243
|
}
|
|
3252
3244
|
},
|
|
3253
3245
|
"hasDynamicHelp": false,
|
|
3254
3246
|
"hiddenAliases": [],
|
|
3255
|
-
"id": "
|
|
3247
|
+
"id": "openapi:get",
|
|
3256
3248
|
"pluginAlias": "@sanity/cli",
|
|
3257
3249
|
"pluginName": "@sanity/cli",
|
|
3258
3250
|
"pluginType": "core",
|
|
@@ -3261,60 +3253,46 @@
|
|
|
3261
3253
|
"relativePath": [
|
|
3262
3254
|
"dist",
|
|
3263
3255
|
"commands",
|
|
3264
|
-
"
|
|
3265
|
-
"
|
|
3256
|
+
"openapi",
|
|
3257
|
+
"get.js"
|
|
3266
3258
|
]
|
|
3267
3259
|
},
|
|
3268
|
-
"
|
|
3260
|
+
"openapi:list": {
|
|
3269
3261
|
"aliases": [],
|
|
3270
|
-
"args": {
|
|
3271
|
-
|
|
3272
|
-
"description": "Name of the aspect to deploy",
|
|
3273
|
-
"name": "aspectName",
|
|
3274
|
-
"required": false
|
|
3275
|
-
}
|
|
3276
|
-
},
|
|
3277
|
-
"description": "Deploy an aspect",
|
|
3262
|
+
"args": {},
|
|
3263
|
+
"description": "List all available OpenAPI specifications",
|
|
3278
3264
|
"examples": [
|
|
3279
3265
|
{
|
|
3280
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3281
|
-
"description": "
|
|
3266
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3267
|
+
"description": "List all available OpenAPI specs"
|
|
3282
3268
|
},
|
|
3283
3269
|
{
|
|
3284
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3285
|
-
"description": "
|
|
3270
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3271
|
+
"description": "List with JSON output"
|
|
3272
|
+
},
|
|
3273
|
+
{
|
|
3274
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
3275
|
+
"description": "Open HTTP Reference in browser"
|
|
3286
3276
|
}
|
|
3287
3277
|
],
|
|
3288
3278
|
"flags": {
|
|
3289
|
-
"
|
|
3290
|
-
"
|
|
3291
|
-
"
|
|
3292
|
-
"helpGroup": "OVERRIDE",
|
|
3293
|
-
"name": "project-id",
|
|
3294
|
-
"hasDynamicHelp": false,
|
|
3295
|
-
"helpValue": "<id>",
|
|
3296
|
-
"multiple": false,
|
|
3297
|
-
"type": "option"
|
|
3298
|
-
},
|
|
3299
|
-
"all": {
|
|
3300
|
-
"description": "Deploy all aspects",
|
|
3301
|
-
"name": "all",
|
|
3302
|
-
"required": false,
|
|
3279
|
+
"json": {
|
|
3280
|
+
"description": "Output JSON",
|
|
3281
|
+
"name": "json",
|
|
3303
3282
|
"allowNo": false,
|
|
3304
3283
|
"type": "boolean"
|
|
3305
3284
|
},
|
|
3306
|
-
"
|
|
3307
|
-
"
|
|
3308
|
-
"
|
|
3309
|
-
"
|
|
3310
|
-
"
|
|
3311
|
-
"
|
|
3312
|
-
"type": "option"
|
|
3285
|
+
"web": {
|
|
3286
|
+
"char": "w",
|
|
3287
|
+
"description": "Open HTTP Reference in web browser",
|
|
3288
|
+
"name": "web",
|
|
3289
|
+
"allowNo": false,
|
|
3290
|
+
"type": "boolean"
|
|
3313
3291
|
}
|
|
3314
3292
|
},
|
|
3315
3293
|
"hasDynamicHelp": false,
|
|
3316
3294
|
"hiddenAliases": [],
|
|
3317
|
-
"id": "
|
|
3295
|
+
"id": "openapi:list",
|
|
3318
3296
|
"pluginAlias": "@sanity/cli",
|
|
3319
3297
|
"pluginName": "@sanity/cli",
|
|
3320
3298
|
"pluginType": "core",
|
|
@@ -3323,75 +3301,88 @@
|
|
|
3323
3301
|
"relativePath": [
|
|
3324
3302
|
"dist",
|
|
3325
3303
|
"commands",
|
|
3326
|
-
"
|
|
3327
|
-
"
|
|
3304
|
+
"openapi",
|
|
3305
|
+
"list.js"
|
|
3328
3306
|
]
|
|
3329
3307
|
},
|
|
3330
|
-
"
|
|
3308
|
+
"projects:create": {
|
|
3331
3309
|
"aliases": [],
|
|
3332
3310
|
"args": {
|
|
3333
|
-
"
|
|
3334
|
-
"description": "
|
|
3335
|
-
"name": "
|
|
3311
|
+
"projectName": {
|
|
3312
|
+
"description": "Name of the project to create",
|
|
3313
|
+
"name": "projectName",
|
|
3314
|
+
"required": false
|
|
3336
3315
|
}
|
|
3337
3316
|
},
|
|
3338
|
-
"description": "
|
|
3317
|
+
"description": "Create a new Sanity project",
|
|
3339
3318
|
"examples": [
|
|
3340
3319
|
{
|
|
3341
3320
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3342
|
-
"description": "
|
|
3321
|
+
"description": "Interactively create a project"
|
|
3343
3322
|
},
|
|
3344
3323
|
{
|
|
3345
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3346
|
-
"description": "
|
|
3324
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3325
|
+
"description": "Create a project named \"My New Project\""
|
|
3347
3326
|
},
|
|
3348
3327
|
{
|
|
3349
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3350
|
-
"description": "
|
|
3328
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3329
|
+
"description": "Create a project in a specific organization"
|
|
3330
|
+
},
|
|
3331
|
+
{
|
|
3332
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3333
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3337
|
+
"description": "Create a project non-interactively with JSON output"
|
|
3351
3338
|
}
|
|
3352
3339
|
],
|
|
3353
3340
|
"flags": {
|
|
3354
|
-
"
|
|
3355
|
-
"
|
|
3356
|
-
"
|
|
3357
|
-
"helpGroup": "OVERRIDE",
|
|
3358
|
-
"name": "project-id",
|
|
3341
|
+
"dataset": {
|
|
3342
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3343
|
+
"name": "dataset",
|
|
3359
3344
|
"hasDynamicHelp": false,
|
|
3360
|
-
"helpValue": "<id>",
|
|
3361
3345
|
"multiple": false,
|
|
3362
3346
|
"type": "option"
|
|
3363
3347
|
},
|
|
3364
|
-
"
|
|
3365
|
-
"description": "
|
|
3366
|
-
"name": "
|
|
3367
|
-
"default": 8,
|
|
3348
|
+
"dataset-visibility": {
|
|
3349
|
+
"description": "Dataset visibility: public or private",
|
|
3350
|
+
"name": "dataset-visibility",
|
|
3368
3351
|
"hasDynamicHelp": false,
|
|
3369
3352
|
"multiple": false,
|
|
3353
|
+
"options": [
|
|
3354
|
+
"private",
|
|
3355
|
+
"public"
|
|
3356
|
+
],
|
|
3370
3357
|
"type": "option"
|
|
3371
3358
|
},
|
|
3372
|
-
"
|
|
3373
|
-
"description": "
|
|
3374
|
-
"name": "
|
|
3359
|
+
"json": {
|
|
3360
|
+
"description": "Output in JSON format",
|
|
3361
|
+
"name": "json",
|
|
3362
|
+
"allowNo": false,
|
|
3363
|
+
"type": "boolean"
|
|
3364
|
+
},
|
|
3365
|
+
"organization": {
|
|
3366
|
+
"description": "Organization to create the project in",
|
|
3367
|
+
"name": "organization",
|
|
3375
3368
|
"hasDynamicHelp": false,
|
|
3369
|
+
"helpValue": "<slug|id>",
|
|
3376
3370
|
"multiple": false,
|
|
3377
3371
|
"type": "option"
|
|
3378
3372
|
},
|
|
3379
|
-
"
|
|
3380
|
-
"
|
|
3381
|
-
"
|
|
3382
|
-
"
|
|
3383
|
-
"type": "boolean"
|
|
3384
|
-
},
|
|
3385
|
-
"overwrite": {
|
|
3386
|
-
"description": "Overwrite any file with the same name",
|
|
3387
|
-
"name": "overwrite",
|
|
3373
|
+
"yes": {
|
|
3374
|
+
"char": "y",
|
|
3375
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3376
|
+
"name": "yes",
|
|
3388
3377
|
"allowNo": false,
|
|
3389
3378
|
"type": "boolean"
|
|
3390
3379
|
}
|
|
3391
3380
|
},
|
|
3392
3381
|
"hasDynamicHelp": false,
|
|
3393
|
-
"hiddenAliases": [
|
|
3394
|
-
|
|
3382
|
+
"hiddenAliases": [
|
|
3383
|
+
"project:create"
|
|
3384
|
+
],
|
|
3385
|
+
"id": "projects:create",
|
|
3395
3386
|
"pluginAlias": "@sanity/cli",
|
|
3396
3387
|
"pluginName": "@sanity/cli",
|
|
3397
3388
|
"pluginType": "core",
|
|
@@ -3400,38 +3391,88 @@
|
|
|
3400
3391
|
"relativePath": [
|
|
3401
3392
|
"dist",
|
|
3402
3393
|
"commands",
|
|
3403
|
-
"
|
|
3404
|
-
"
|
|
3394
|
+
"projects",
|
|
3395
|
+
"create.js"
|
|
3405
3396
|
]
|
|
3406
3397
|
},
|
|
3407
|
-
"
|
|
3398
|
+
"projects:list": {
|
|
3408
3399
|
"aliases": [],
|
|
3409
|
-
"args": {
|
|
3410
|
-
|
|
3411
|
-
"description": "Image file or folder to import from",
|
|
3412
|
-
"name": "source",
|
|
3413
|
-
"required": true
|
|
3414
|
-
}
|
|
3415
|
-
},
|
|
3416
|
-
"description": "Import a set of assets to the target media library.",
|
|
3400
|
+
"args": {},
|
|
3401
|
+
"description": "List your projects",
|
|
3417
3402
|
"examples": [
|
|
3418
3403
|
{
|
|
3419
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3420
|
-
"description": "
|
|
3404
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3405
|
+
"description": "List projects"
|
|
3421
3406
|
},
|
|
3422
3407
|
{
|
|
3423
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3424
|
-
"description": "
|
|
3408
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3409
|
+
"description": "List projects sorted by member count, ascending"
|
|
3410
|
+
}
|
|
3411
|
+
],
|
|
3412
|
+
"flags": {
|
|
3413
|
+
"order": {
|
|
3414
|
+
"description": "Sort direction",
|
|
3415
|
+
"name": "order",
|
|
3416
|
+
"default": "desc",
|
|
3417
|
+
"hasDynamicHelp": false,
|
|
3418
|
+
"multiple": false,
|
|
3419
|
+
"options": [
|
|
3420
|
+
"asc",
|
|
3421
|
+
"desc"
|
|
3422
|
+
],
|
|
3423
|
+
"type": "option"
|
|
3425
3424
|
},
|
|
3425
|
+
"sort": {
|
|
3426
|
+
"description": "Sort field",
|
|
3427
|
+
"name": "sort",
|
|
3428
|
+
"default": "created",
|
|
3429
|
+
"hasDynamicHelp": false,
|
|
3430
|
+
"multiple": false,
|
|
3431
|
+
"options": [
|
|
3432
|
+
"id",
|
|
3433
|
+
"members",
|
|
3434
|
+
"name",
|
|
3435
|
+
"url",
|
|
3436
|
+
"created"
|
|
3437
|
+
],
|
|
3438
|
+
"type": "option"
|
|
3439
|
+
}
|
|
3440
|
+
},
|
|
3441
|
+
"hasDynamicHelp": false,
|
|
3442
|
+
"hiddenAliases": [
|
|
3443
|
+
"project:list"
|
|
3444
|
+
],
|
|
3445
|
+
"id": "projects:list",
|
|
3446
|
+
"pluginAlias": "@sanity/cli",
|
|
3447
|
+
"pluginName": "@sanity/cli",
|
|
3448
|
+
"pluginType": "core",
|
|
3449
|
+
"strict": true,
|
|
3450
|
+
"isESM": true,
|
|
3451
|
+
"relativePath": [
|
|
3452
|
+
"dist",
|
|
3453
|
+
"commands",
|
|
3454
|
+
"projects",
|
|
3455
|
+
"list.js"
|
|
3456
|
+
]
|
|
3457
|
+
},
|
|
3458
|
+
"schemas:delete": {
|
|
3459
|
+
"aliases": [],
|
|
3460
|
+
"args": {},
|
|
3461
|
+
"description": "Delete schema documents by id",
|
|
3462
|
+
"examples": [
|
|
3426
3463
|
{
|
|
3427
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3428
|
-
"description": "
|
|
3464
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
3465
|
+
"description": "Delete a single schema"
|
|
3466
|
+
},
|
|
3467
|
+
{
|
|
3468
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
3469
|
+
"description": "Delete multiple schemas"
|
|
3429
3470
|
}
|
|
3430
3471
|
],
|
|
3431
3472
|
"flags": {
|
|
3432
3473
|
"project-id": {
|
|
3433
3474
|
"char": "p",
|
|
3434
|
-
"description": "Project ID to
|
|
3475
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
3435
3476
|
"helpGroup": "OVERRIDE",
|
|
3436
3477
|
"name": "project-id",
|
|
3437
3478
|
"hasDynamicHelp": false,
|
|
@@ -3439,23 +3480,51 @@
|
|
|
3439
3480
|
"multiple": false,
|
|
3440
3481
|
"type": "option"
|
|
3441
3482
|
},
|
|
3442
|
-
"
|
|
3443
|
-
"
|
|
3444
|
-
"
|
|
3483
|
+
"dataset": {
|
|
3484
|
+
"char": "d",
|
|
3485
|
+
"description": "Delete schemas from a specific dataset",
|
|
3486
|
+
"name": "dataset",
|
|
3445
3487
|
"hasDynamicHelp": false,
|
|
3488
|
+
"helpValue": "<name>",
|
|
3446
3489
|
"multiple": false,
|
|
3447
3490
|
"type": "option"
|
|
3448
3491
|
},
|
|
3449
|
-
"
|
|
3450
|
-
"description": "
|
|
3451
|
-
"
|
|
3492
|
+
"extract-manifest": {
|
|
3493
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3494
|
+
"hidden": true,
|
|
3495
|
+
"name": "extract-manifest",
|
|
3496
|
+
"allowNo": true,
|
|
3497
|
+
"type": "boolean"
|
|
3498
|
+
},
|
|
3499
|
+
"ids": {
|
|
3500
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
3501
|
+
"name": "ids",
|
|
3502
|
+
"required": true,
|
|
3503
|
+
"hasDynamicHelp": false,
|
|
3504
|
+
"multiple": false,
|
|
3505
|
+
"type": "option"
|
|
3506
|
+
},
|
|
3507
|
+
"manifest-dir": {
|
|
3508
|
+
"description": "Directory containing manifest file",
|
|
3509
|
+
"hidden": true,
|
|
3510
|
+
"name": "manifest-dir",
|
|
3511
|
+
"default": "./dist/static",
|
|
3512
|
+
"hasDynamicHelp": false,
|
|
3513
|
+
"multiple": false,
|
|
3514
|
+
"type": "option"
|
|
3515
|
+
},
|
|
3516
|
+
"verbose": {
|
|
3517
|
+
"description": "Enable verbose logging",
|
|
3518
|
+
"name": "verbose",
|
|
3452
3519
|
"allowNo": false,
|
|
3453
3520
|
"type": "boolean"
|
|
3454
3521
|
}
|
|
3455
3522
|
},
|
|
3456
3523
|
"hasDynamicHelp": false,
|
|
3457
|
-
"hiddenAliases": [
|
|
3458
|
-
|
|
3524
|
+
"hiddenAliases": [
|
|
3525
|
+
"schema:delete"
|
|
3526
|
+
],
|
|
3527
|
+
"id": "schemas:delete",
|
|
3459
3528
|
"pluginAlias": "@sanity/cli",
|
|
3460
3529
|
"pluginName": "@sanity/cli",
|
|
3461
3530
|
"pluginType": "core",
|
|
@@ -3464,62 +3533,149 @@
|
|
|
3464
3533
|
"relativePath": [
|
|
3465
3534
|
"dist",
|
|
3466
3535
|
"commands",
|
|
3467
|
-
"
|
|
3468
|
-
"
|
|
3536
|
+
"schemas",
|
|
3537
|
+
"delete.js"
|
|
3469
3538
|
]
|
|
3470
3539
|
},
|
|
3471
|
-
"
|
|
3540
|
+
"schemas:deploy": {
|
|
3472
3541
|
"aliases": [],
|
|
3473
|
-
"args": {
|
|
3474
|
-
|
|
3475
|
-
"description": "Slug of the OpenAPI specification to retrieve",
|
|
3476
|
-
"name": "slug",
|
|
3477
|
-
"required": true
|
|
3478
|
-
}
|
|
3479
|
-
},
|
|
3480
|
-
"description": "Get an OpenAPI specification by slug",
|
|
3542
|
+
"args": {},
|
|
3543
|
+
"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.",
|
|
3481
3544
|
"examples": [
|
|
3482
3545
|
{
|
|
3483
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3484
|
-
"description": "
|
|
3546
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3547
|
+
"description": "Deploy all workspace schemas"
|
|
3485
3548
|
},
|
|
3486
3549
|
{
|
|
3487
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3488
|
-
"description": "
|
|
3550
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3551
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
3552
|
+
}
|
|
3553
|
+
],
|
|
3554
|
+
"flags": {
|
|
3555
|
+
"extract-manifest": {
|
|
3556
|
+
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
3557
|
+
"name": "extract-manifest",
|
|
3558
|
+
"allowNo": true,
|
|
3559
|
+
"type": "boolean"
|
|
3560
|
+
},
|
|
3561
|
+
"manifest-dir": {
|
|
3562
|
+
"description": "Directory containing manifest file",
|
|
3563
|
+
"name": "manifest-dir",
|
|
3564
|
+
"default": "./dist/static",
|
|
3565
|
+
"hasDynamicHelp": false,
|
|
3566
|
+
"helpValue": "<directory>",
|
|
3567
|
+
"multiple": false,
|
|
3568
|
+
"type": "option"
|
|
3489
3569
|
},
|
|
3570
|
+
"tag": {
|
|
3571
|
+
"description": "Add a tag suffix to the schema id",
|
|
3572
|
+
"name": "tag",
|
|
3573
|
+
"hasDynamicHelp": false,
|
|
3574
|
+
"helpValue": "<tag>",
|
|
3575
|
+
"multiple": false,
|
|
3576
|
+
"type": "option"
|
|
3577
|
+
},
|
|
3578
|
+
"verbose": {
|
|
3579
|
+
"description": "Print detailed information during deployment",
|
|
3580
|
+
"name": "verbose",
|
|
3581
|
+
"allowNo": false,
|
|
3582
|
+
"type": "boolean"
|
|
3583
|
+
},
|
|
3584
|
+
"workspace": {
|
|
3585
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
3586
|
+
"name": "workspace",
|
|
3587
|
+
"hasDynamicHelp": false,
|
|
3588
|
+
"helpValue": "<name>",
|
|
3589
|
+
"multiple": false,
|
|
3590
|
+
"type": "option"
|
|
3591
|
+
}
|
|
3592
|
+
},
|
|
3593
|
+
"hasDynamicHelp": false,
|
|
3594
|
+
"hiddenAliases": [
|
|
3595
|
+
"schema:deploy"
|
|
3596
|
+
],
|
|
3597
|
+
"id": "schemas:deploy",
|
|
3598
|
+
"pluginAlias": "@sanity/cli",
|
|
3599
|
+
"pluginName": "@sanity/cli",
|
|
3600
|
+
"pluginType": "core",
|
|
3601
|
+
"strict": true,
|
|
3602
|
+
"isESM": true,
|
|
3603
|
+
"relativePath": [
|
|
3604
|
+
"dist",
|
|
3605
|
+
"commands",
|
|
3606
|
+
"schemas",
|
|
3607
|
+
"deploy.js"
|
|
3608
|
+
]
|
|
3609
|
+
},
|
|
3610
|
+
"schemas:extract": {
|
|
3611
|
+
"aliases": [],
|
|
3612
|
+
"args": {},
|
|
3613
|
+
"description": "Extract a JSON representation of a Sanity schema within a Studio context.\n\nNote: This command is experimental and subject to change.",
|
|
3614
|
+
"examples": [
|
|
3490
3615
|
{
|
|
3491
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3492
|
-
"description": "
|
|
3616
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3617
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
3493
3618
|
},
|
|
3494
3619
|
{
|
|
3495
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3496
|
-
"description": "
|
|
3620
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
3621
|
+
"description": "Watch mode - re-extract on changes"
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
3625
|
+
"description": "Watch with custom glob patterns"
|
|
3497
3626
|
}
|
|
3498
3627
|
],
|
|
3499
3628
|
"flags": {
|
|
3629
|
+
"enforce-required-fields": {
|
|
3630
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
3631
|
+
"name": "enforce-required-fields",
|
|
3632
|
+
"allowNo": false,
|
|
3633
|
+
"type": "boolean"
|
|
3634
|
+
},
|
|
3500
3635
|
"format": {
|
|
3501
|
-
"description": "Output format
|
|
3636
|
+
"description": "Output format (currently only groq-type-nodes)",
|
|
3502
3637
|
"name": "format",
|
|
3503
|
-
"default": "
|
|
3638
|
+
"default": "groq-type-nodes",
|
|
3504
3639
|
"hasDynamicHelp": false,
|
|
3640
|
+
"helpValue": "<format>",
|
|
3505
3641
|
"multiple": false,
|
|
3506
|
-
"options": [
|
|
3507
|
-
"yaml",
|
|
3508
|
-
"json"
|
|
3509
|
-
],
|
|
3510
3642
|
"type": "option"
|
|
3511
3643
|
},
|
|
3512
|
-
"
|
|
3513
|
-
"
|
|
3514
|
-
"
|
|
3515
|
-
"
|
|
3644
|
+
"path": {
|
|
3645
|
+
"description": "Optional path to specify destination of the schema file",
|
|
3646
|
+
"name": "path",
|
|
3647
|
+
"hasDynamicHelp": false,
|
|
3648
|
+
"multiple": false,
|
|
3649
|
+
"type": "option"
|
|
3650
|
+
},
|
|
3651
|
+
"watch": {
|
|
3652
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
3653
|
+
"name": "watch",
|
|
3516
3654
|
"allowNo": false,
|
|
3517
3655
|
"type": "boolean"
|
|
3656
|
+
},
|
|
3657
|
+
"watch-patterns": {
|
|
3658
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
3659
|
+
"name": "watch-patterns",
|
|
3660
|
+
"hasDynamicHelp": false,
|
|
3661
|
+
"helpValue": "<glob>",
|
|
3662
|
+
"multiple": true,
|
|
3663
|
+
"type": "option"
|
|
3664
|
+
},
|
|
3665
|
+
"workspace": {
|
|
3666
|
+
"description": "The name of the workspace to generate a schema for",
|
|
3667
|
+
"name": "workspace",
|
|
3668
|
+
"hasDynamicHelp": false,
|
|
3669
|
+
"helpValue": "<name>",
|
|
3670
|
+
"multiple": false,
|
|
3671
|
+
"type": "option"
|
|
3518
3672
|
}
|
|
3519
3673
|
},
|
|
3520
3674
|
"hasDynamicHelp": false,
|
|
3521
|
-
"hiddenAliases": [
|
|
3522
|
-
|
|
3675
|
+
"hiddenAliases": [
|
|
3676
|
+
"schema:extract"
|
|
3677
|
+
],
|
|
3678
|
+
"id": "schemas:extract",
|
|
3523
3679
|
"pluginAlias": "@sanity/cli",
|
|
3524
3680
|
"pluginName": "@sanity/cli",
|
|
3525
3681
|
"pluginType": "core",
|
|
@@ -3528,46 +3684,70 @@
|
|
|
3528
3684
|
"relativePath": [
|
|
3529
3685
|
"dist",
|
|
3530
3686
|
"commands",
|
|
3531
|
-
"
|
|
3532
|
-
"
|
|
3687
|
+
"schemas",
|
|
3688
|
+
"extract.js"
|
|
3533
3689
|
]
|
|
3534
3690
|
},
|
|
3535
|
-
"
|
|
3691
|
+
"schemas:list": {
|
|
3536
3692
|
"aliases": [],
|
|
3537
3693
|
"args": {},
|
|
3538
|
-
"description": "List all
|
|
3694
|
+
"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.",
|
|
3539
3695
|
"examples": [
|
|
3540
3696
|
{
|
|
3541
3697
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3542
|
-
"description": "List all
|
|
3698
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
3702
|
+
"description": "Get a schema for a given id"
|
|
3543
3703
|
},
|
|
3544
3704
|
{
|
|
3545
3705
|
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3546
|
-
"description": "
|
|
3706
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
3547
3707
|
},
|
|
3548
3708
|
{
|
|
3549
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3550
|
-
"description": "
|
|
3709
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
3710
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
3551
3711
|
}
|
|
3552
3712
|
],
|
|
3553
3713
|
"flags": {
|
|
3714
|
+
"extract-manifest": {
|
|
3715
|
+
"description": "Regenerate manifest before listing (use --no-extract-manifest to skip)",
|
|
3716
|
+
"hidden": true,
|
|
3717
|
+
"name": "extract-manifest",
|
|
3718
|
+
"allowNo": true,
|
|
3719
|
+
"type": "boolean"
|
|
3720
|
+
},
|
|
3721
|
+
"id": {
|
|
3722
|
+
"description": "Fetch a single schema by id",
|
|
3723
|
+
"name": "id",
|
|
3724
|
+
"hasDynamicHelp": false,
|
|
3725
|
+
"helpValue": "<schema_id>",
|
|
3726
|
+
"multiple": false,
|
|
3727
|
+
"type": "option"
|
|
3728
|
+
},
|
|
3554
3729
|
"json": {
|
|
3555
|
-
"description": "
|
|
3730
|
+
"description": "Get schema as json",
|
|
3556
3731
|
"name": "json",
|
|
3557
3732
|
"allowNo": false,
|
|
3558
3733
|
"type": "boolean"
|
|
3559
3734
|
},
|
|
3560
|
-
"
|
|
3561
|
-
"
|
|
3562
|
-
"
|
|
3563
|
-
"name": "
|
|
3564
|
-
"
|
|
3565
|
-
"
|
|
3735
|
+
"manifest-dir": {
|
|
3736
|
+
"description": "Directory containing manifest file",
|
|
3737
|
+
"hidden": true,
|
|
3738
|
+
"name": "manifest-dir",
|
|
3739
|
+
"default": "./dist/static",
|
|
3740
|
+
"hasDynamicHelp": false,
|
|
3741
|
+
"helpValue": "<directory>",
|
|
3742
|
+
"multiple": false,
|
|
3743
|
+
"type": "option"
|
|
3566
3744
|
}
|
|
3567
3745
|
},
|
|
3568
3746
|
"hasDynamicHelp": false,
|
|
3569
|
-
"hiddenAliases": [
|
|
3570
|
-
|
|
3747
|
+
"hiddenAliases": [
|
|
3748
|
+
"schema:list"
|
|
3749
|
+
],
|
|
3750
|
+
"id": "schemas:list",
|
|
3571
3751
|
"pluginAlias": "@sanity/cli",
|
|
3572
3752
|
"pluginName": "@sanity/cli",
|
|
3573
3753
|
"pluginType": "core",
|
|
@@ -3576,88 +3756,79 @@
|
|
|
3576
3756
|
"relativePath": [
|
|
3577
3757
|
"dist",
|
|
3578
3758
|
"commands",
|
|
3579
|
-
"
|
|
3759
|
+
"schemas",
|
|
3580
3760
|
"list.js"
|
|
3581
3761
|
]
|
|
3582
3762
|
},
|
|
3583
|
-
"
|
|
3763
|
+
"schemas:validate": {
|
|
3584
3764
|
"aliases": [],
|
|
3585
|
-
"args": {
|
|
3586
|
-
|
|
3587
|
-
"description": "Name of the project to create",
|
|
3588
|
-
"name": "projectName",
|
|
3589
|
-
"required": false
|
|
3590
|
-
}
|
|
3591
|
-
},
|
|
3592
|
-
"description": "Create a new Sanity project",
|
|
3765
|
+
"args": {},
|
|
3766
|
+
"description": "Validates all schema types specified in a workspace",
|
|
3593
3767
|
"examples": [
|
|
3594
3768
|
{
|
|
3595
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3596
|
-
"description": "
|
|
3597
|
-
},
|
|
3598
|
-
{
|
|
3599
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3600
|
-
"description": "Create a project named \"My New Project\""
|
|
3769
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3770
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
3601
3771
|
},
|
|
3602
3772
|
{
|
|
3603
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3604
|
-
"description": "
|
|
3773
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
3774
|
+
"description": "Save the results of the report into a file"
|
|
3605
3775
|
},
|
|
3606
3776
|
{
|
|
3607
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3608
|
-
"description": "
|
|
3777
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
3778
|
+
"description": "Report out only errors"
|
|
3609
3779
|
},
|
|
3610
3780
|
{
|
|
3611
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3612
|
-
"description": "
|
|
3781
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
3782
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
3613
3783
|
}
|
|
3614
3784
|
],
|
|
3615
3785
|
"flags": {
|
|
3616
|
-
"
|
|
3617
|
-
"description": "
|
|
3618
|
-
"
|
|
3786
|
+
"debug-metafile-path": {
|
|
3787
|
+
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
3788
|
+
"helpGroup": "DEBUG",
|
|
3789
|
+
"name": "debug-metafile-path",
|
|
3619
3790
|
"hasDynamicHelp": false,
|
|
3620
3791
|
"multiple": false,
|
|
3621
3792
|
"type": "option"
|
|
3622
3793
|
},
|
|
3623
|
-
"
|
|
3624
|
-
"description": "
|
|
3625
|
-
"name": "
|
|
3794
|
+
"format": {
|
|
3795
|
+
"description": "The output format used to print schema errors and warnings",
|
|
3796
|
+
"name": "format",
|
|
3797
|
+
"default": "pretty",
|
|
3626
3798
|
"hasDynamicHelp": false,
|
|
3627
3799
|
"multiple": false,
|
|
3628
3800
|
"options": [
|
|
3629
|
-
"
|
|
3630
|
-
"
|
|
3801
|
+
"pretty",
|
|
3802
|
+
"ndjson",
|
|
3803
|
+
"json"
|
|
3631
3804
|
],
|
|
3632
3805
|
"type": "option"
|
|
3633
3806
|
},
|
|
3634
|
-
"
|
|
3635
|
-
"description": "
|
|
3636
|
-
"name": "
|
|
3637
|
-
"
|
|
3638
|
-
"type": "boolean"
|
|
3639
|
-
},
|
|
3640
|
-
"organization": {
|
|
3641
|
-
"description": "Organization to create the project in",
|
|
3642
|
-
"name": "organization",
|
|
3807
|
+
"level": {
|
|
3808
|
+
"description": "The minimum level reported out",
|
|
3809
|
+
"name": "level",
|
|
3810
|
+
"default": "warning",
|
|
3643
3811
|
"hasDynamicHelp": false,
|
|
3644
|
-
"helpValue": "<slug|id>",
|
|
3645
3812
|
"multiple": false,
|
|
3813
|
+
"options": [
|
|
3814
|
+
"error",
|
|
3815
|
+
"warning"
|
|
3816
|
+
],
|
|
3646
3817
|
"type": "option"
|
|
3647
3818
|
},
|
|
3648
|
-
"
|
|
3649
|
-
"
|
|
3650
|
-
"
|
|
3651
|
-
"
|
|
3652
|
-
"
|
|
3653
|
-
"type": "
|
|
3819
|
+
"workspace": {
|
|
3820
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
3821
|
+
"name": "workspace",
|
|
3822
|
+
"hasDynamicHelp": false,
|
|
3823
|
+
"multiple": false,
|
|
3824
|
+
"type": "option"
|
|
3654
3825
|
}
|
|
3655
3826
|
},
|
|
3656
3827
|
"hasDynamicHelp": false,
|
|
3657
3828
|
"hiddenAliases": [
|
|
3658
|
-
"
|
|
3829
|
+
"schema:validate"
|
|
3659
3830
|
],
|
|
3660
|
-
"id": "
|
|
3831
|
+
"id": "schemas:validate",
|
|
3661
3832
|
"pluginAlias": "@sanity/cli",
|
|
3662
3833
|
"pluginName": "@sanity/cli",
|
|
3663
3834
|
"pluginType": "core",
|
|
@@ -3666,56 +3837,85 @@
|
|
|
3666
3837
|
"relativePath": [
|
|
3667
3838
|
"dist",
|
|
3668
3839
|
"commands",
|
|
3669
|
-
"
|
|
3670
|
-
"
|
|
3840
|
+
"schemas",
|
|
3841
|
+
"validate.js"
|
|
3671
3842
|
]
|
|
3672
3843
|
},
|
|
3673
|
-
"
|
|
3844
|
+
"media:create-aspect": {
|
|
3674
3845
|
"aliases": [],
|
|
3675
3846
|
"args": {},
|
|
3676
|
-
"description": "
|
|
3847
|
+
"description": "Create a new aspect definition file",
|
|
3677
3848
|
"examples": [
|
|
3678
3849
|
{
|
|
3679
3850
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3680
|
-
"description": "
|
|
3681
|
-
}
|
|
3851
|
+
"description": "Create a new aspect definition file"
|
|
3852
|
+
}
|
|
3853
|
+
],
|
|
3854
|
+
"flags": {},
|
|
3855
|
+
"hasDynamicHelp": false,
|
|
3856
|
+
"hiddenAliases": [],
|
|
3857
|
+
"id": "media:create-aspect",
|
|
3858
|
+
"pluginAlias": "@sanity/cli",
|
|
3859
|
+
"pluginName": "@sanity/cli",
|
|
3860
|
+
"pluginType": "core",
|
|
3861
|
+
"strict": true,
|
|
3862
|
+
"isESM": true,
|
|
3863
|
+
"relativePath": [
|
|
3864
|
+
"dist",
|
|
3865
|
+
"commands",
|
|
3866
|
+
"media",
|
|
3867
|
+
"create-aspect.js"
|
|
3868
|
+
]
|
|
3869
|
+
},
|
|
3870
|
+
"media:delete-aspect": {
|
|
3871
|
+
"aliases": [],
|
|
3872
|
+
"args": {
|
|
3873
|
+
"aspectName": {
|
|
3874
|
+
"description": "Name of the aspect to delete",
|
|
3875
|
+
"name": "aspectName",
|
|
3876
|
+
"required": true
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3879
|
+
"description": "Delete an aspect definition",
|
|
3880
|
+
"examples": [
|
|
3682
3881
|
{
|
|
3683
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3684
|
-
"description": "
|
|
3882
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
3883
|
+
"description": "Delete the aspect named \"someAspect\""
|
|
3685
3884
|
}
|
|
3686
3885
|
],
|
|
3687
3886
|
"flags": {
|
|
3688
|
-
"
|
|
3689
|
-
"
|
|
3690
|
-
"
|
|
3887
|
+
"project-id": {
|
|
3888
|
+
"char": "p",
|
|
3889
|
+
"description": "Project ID to delete media aspect from (overrides CLI configuration)",
|
|
3890
|
+
"helpGroup": "OVERRIDE",
|
|
3891
|
+
"name": "project-id",
|
|
3691
3892
|
"hasDynamicHelp": false,
|
|
3893
|
+
"helpValue": "<id>",
|
|
3692
3894
|
"multiple": false,
|
|
3693
|
-
"options": [
|
|
3694
|
-
"asc",
|
|
3695
|
-
"desc"
|
|
3696
|
-
],
|
|
3697
3895
|
"type": "option"
|
|
3698
3896
|
},
|
|
3699
|
-
"
|
|
3700
|
-
"
|
|
3701
|
-
"
|
|
3897
|
+
"media-library-id": {
|
|
3898
|
+
"description": "The id of the target media library",
|
|
3899
|
+
"name": "media-library-id",
|
|
3900
|
+
"required": false,
|
|
3702
3901
|
"hasDynamicHelp": false,
|
|
3703
3902
|
"multiple": false,
|
|
3704
|
-
"options": [
|
|
3705
|
-
"id",
|
|
3706
|
-
"members",
|
|
3707
|
-
"name",
|
|
3708
|
-
"url",
|
|
3709
|
-
"created"
|
|
3710
|
-
],
|
|
3711
3903
|
"type": "option"
|
|
3904
|
+
},
|
|
3905
|
+
"yes": {
|
|
3906
|
+
"aliases": [
|
|
3907
|
+
"y"
|
|
3908
|
+
],
|
|
3909
|
+
"description": "Skip confirmation prompt",
|
|
3910
|
+
"name": "yes",
|
|
3911
|
+
"required": false,
|
|
3912
|
+
"allowNo": false,
|
|
3913
|
+
"type": "boolean"
|
|
3712
3914
|
}
|
|
3713
3915
|
},
|
|
3714
3916
|
"hasDynamicHelp": false,
|
|
3715
|
-
"hiddenAliases": [
|
|
3716
|
-
|
|
3717
|
-
],
|
|
3718
|
-
"id": "projects:list",
|
|
3917
|
+
"hiddenAliases": [],
|
|
3918
|
+
"id": "media:delete-aspect",
|
|
3719
3919
|
"pluginAlias": "@sanity/cli",
|
|
3720
3920
|
"pluginName": "@sanity/cli",
|
|
3721
3921
|
"pluginType": "core",
|
|
@@ -3724,28 +3924,34 @@
|
|
|
3724
3924
|
"relativePath": [
|
|
3725
3925
|
"dist",
|
|
3726
3926
|
"commands",
|
|
3727
|
-
"
|
|
3728
|
-
"
|
|
3927
|
+
"media",
|
|
3928
|
+
"delete-aspect.js"
|
|
3729
3929
|
]
|
|
3730
3930
|
},
|
|
3731
|
-
"
|
|
3931
|
+
"media:deploy-aspect": {
|
|
3732
3932
|
"aliases": [],
|
|
3733
|
-
"args": {
|
|
3734
|
-
|
|
3933
|
+
"args": {
|
|
3934
|
+
"aspectName": {
|
|
3935
|
+
"description": "Name of the aspect to deploy",
|
|
3936
|
+
"name": "aspectName",
|
|
3937
|
+
"required": false
|
|
3938
|
+
}
|
|
3939
|
+
},
|
|
3940
|
+
"description": "Deploy an aspect",
|
|
3735
3941
|
"examples": [
|
|
3736
3942
|
{
|
|
3737
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3738
|
-
"description": "
|
|
3943
|
+
"command": "<%= config.bin %> <%= command.id %> someAspect",
|
|
3944
|
+
"description": "Deploy the aspect named \"someAspect\""
|
|
3739
3945
|
},
|
|
3740
3946
|
{
|
|
3741
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3742
|
-
"description": "
|
|
3947
|
+
"command": "<%= config.bin %> <%= command.id %> --all",
|
|
3948
|
+
"description": "Deploy all aspects"
|
|
3743
3949
|
}
|
|
3744
3950
|
],
|
|
3745
3951
|
"flags": {
|
|
3746
3952
|
"project-id": {
|
|
3747
3953
|
"char": "p",
|
|
3748
|
-
"description": "Project ID to
|
|
3954
|
+
"description": "Project ID to deploy media aspect to (overrides CLI configuration)",
|
|
3749
3955
|
"helpGroup": "OVERRIDE",
|
|
3750
3956
|
"name": "project-id",
|
|
3751
3957
|
"hasDynamicHelp": false,
|
|
@@ -3753,51 +3959,25 @@
|
|
|
3753
3959
|
"multiple": false,
|
|
3754
3960
|
"type": "option"
|
|
3755
3961
|
},
|
|
3756
|
-
"
|
|
3757
|
-
"
|
|
3758
|
-
"
|
|
3759
|
-
"
|
|
3760
|
-
"
|
|
3761
|
-
"helpValue": "<name>",
|
|
3762
|
-
"multiple": false,
|
|
3763
|
-
"type": "option"
|
|
3764
|
-
},
|
|
3765
|
-
"extract-manifest": {
|
|
3766
|
-
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3767
|
-
"hidden": true,
|
|
3768
|
-
"name": "extract-manifest",
|
|
3769
|
-
"allowNo": true,
|
|
3962
|
+
"all": {
|
|
3963
|
+
"description": "Deploy all aspects",
|
|
3964
|
+
"name": "all",
|
|
3965
|
+
"required": false,
|
|
3966
|
+
"allowNo": false,
|
|
3770
3967
|
"type": "boolean"
|
|
3771
3968
|
},
|
|
3772
|
-
"
|
|
3773
|
-
"description": "
|
|
3774
|
-
"name": "
|
|
3775
|
-
"required":
|
|
3776
|
-
"hasDynamicHelp": false,
|
|
3777
|
-
"multiple": false,
|
|
3778
|
-
"type": "option"
|
|
3779
|
-
},
|
|
3780
|
-
"manifest-dir": {
|
|
3781
|
-
"description": "Directory containing manifest file",
|
|
3782
|
-
"hidden": true,
|
|
3783
|
-
"name": "manifest-dir",
|
|
3784
|
-
"default": "./dist/static",
|
|
3969
|
+
"media-library-id": {
|
|
3970
|
+
"description": "The id of the target media library",
|
|
3971
|
+
"name": "media-library-id",
|
|
3972
|
+
"required": false,
|
|
3785
3973
|
"hasDynamicHelp": false,
|
|
3786
3974
|
"multiple": false,
|
|
3787
3975
|
"type": "option"
|
|
3788
|
-
},
|
|
3789
|
-
"verbose": {
|
|
3790
|
-
"description": "Enable verbose logging",
|
|
3791
|
-
"name": "verbose",
|
|
3792
|
-
"allowNo": false,
|
|
3793
|
-
"type": "boolean"
|
|
3794
3976
|
}
|
|
3795
3977
|
},
|
|
3796
3978
|
"hasDynamicHelp": false,
|
|
3797
|
-
"hiddenAliases": [
|
|
3798
|
-
|
|
3799
|
-
],
|
|
3800
|
-
"id": "schemas:delete",
|
|
3979
|
+
"hiddenAliases": [],
|
|
3980
|
+
"id": "media:deploy-aspect",
|
|
3801
3981
|
"pluginAlias": "@sanity/cli",
|
|
3802
3982
|
"pluginName": "@sanity/cli",
|
|
3803
3983
|
"pluginType": "core",
|
|
@@ -3806,68 +3986,75 @@
|
|
|
3806
3986
|
"relativePath": [
|
|
3807
3987
|
"dist",
|
|
3808
3988
|
"commands",
|
|
3809
|
-
"
|
|
3810
|
-
"
|
|
3989
|
+
"media",
|
|
3990
|
+
"deploy-aspect.js"
|
|
3811
3991
|
]
|
|
3812
3992
|
},
|
|
3813
|
-
"
|
|
3993
|
+
"media:export": {
|
|
3814
3994
|
"aliases": [],
|
|
3815
|
-
"args": {
|
|
3816
|
-
|
|
3995
|
+
"args": {
|
|
3996
|
+
"destination": {
|
|
3997
|
+
"description": "Output destination file path",
|
|
3998
|
+
"name": "destination"
|
|
3999
|
+
}
|
|
4000
|
+
},
|
|
4001
|
+
"description": "Export file and image assets from a media library (excludes video)",
|
|
3817
4002
|
"examples": [
|
|
3818
4003
|
{
|
|
3819
4004
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3820
|
-
"description": "
|
|
4005
|
+
"description": "Export media library interactively"
|
|
3821
4006
|
},
|
|
3822
4007
|
{
|
|
3823
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3824
|
-
"description": "
|
|
4008
|
+
"command": "<%= config.bin %> <%= command.id %> output.tar.gz",
|
|
4009
|
+
"description": "Export media library to output.tar.gz"
|
|
4010
|
+
},
|
|
4011
|
+
{
|
|
4012
|
+
"command": "<%= config.bin %> <%= command.id %> --media-library-id my-library-id",
|
|
4013
|
+
"description": "Export specific media library"
|
|
3825
4014
|
}
|
|
3826
4015
|
],
|
|
3827
4016
|
"flags": {
|
|
3828
|
-
"
|
|
3829
|
-
"
|
|
3830
|
-
"
|
|
3831
|
-
"
|
|
3832
|
-
"
|
|
4017
|
+
"project-id": {
|
|
4018
|
+
"char": "p",
|
|
4019
|
+
"description": "Project ID to export media from (overrides CLI configuration)",
|
|
4020
|
+
"helpGroup": "OVERRIDE",
|
|
4021
|
+
"name": "project-id",
|
|
4022
|
+
"hasDynamicHelp": false,
|
|
4023
|
+
"helpValue": "<id>",
|
|
4024
|
+
"multiple": false,
|
|
4025
|
+
"type": "option"
|
|
3833
4026
|
},
|
|
3834
|
-
"
|
|
3835
|
-
"description": "
|
|
3836
|
-
"name": "
|
|
3837
|
-
"default":
|
|
4027
|
+
"asset-concurrency": {
|
|
4028
|
+
"description": "Concurrent number of asset downloads",
|
|
4029
|
+
"name": "asset-concurrency",
|
|
4030
|
+
"default": 8,
|
|
3838
4031
|
"hasDynamicHelp": false,
|
|
3839
|
-
"helpValue": "<directory>",
|
|
3840
4032
|
"multiple": false,
|
|
3841
4033
|
"type": "option"
|
|
3842
4034
|
},
|
|
3843
|
-
"
|
|
3844
|
-
"description": "
|
|
3845
|
-
"name": "
|
|
4035
|
+
"media-library-id": {
|
|
4036
|
+
"description": "The id of the target media library",
|
|
4037
|
+
"name": "media-library-id",
|
|
3846
4038
|
"hasDynamicHelp": false,
|
|
3847
|
-
"helpValue": "<tag>",
|
|
3848
4039
|
"multiple": false,
|
|
3849
4040
|
"type": "option"
|
|
3850
4041
|
},
|
|
3851
|
-
"
|
|
3852
|
-
"description": "
|
|
3853
|
-
"name": "
|
|
4042
|
+
"no-compress": {
|
|
4043
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
4044
|
+
"name": "no-compress",
|
|
3854
4045
|
"allowNo": false,
|
|
3855
4046
|
"type": "boolean"
|
|
3856
4047
|
},
|
|
3857
|
-
"
|
|
3858
|
-
"description": "
|
|
3859
|
-
"name": "
|
|
3860
|
-
"
|
|
3861
|
-
"
|
|
3862
|
-
"multiple": false,
|
|
3863
|
-
"type": "option"
|
|
4048
|
+
"overwrite": {
|
|
4049
|
+
"description": "Overwrite any file with the same name",
|
|
4050
|
+
"name": "overwrite",
|
|
4051
|
+
"allowNo": false,
|
|
4052
|
+
"type": "boolean"
|
|
3864
4053
|
}
|
|
3865
4054
|
},
|
|
3866
4055
|
"hasDynamicHelp": false,
|
|
3867
|
-
"hiddenAliases": [
|
|
3868
|
-
|
|
3869
|
-
],
|
|
3870
|
-
"id": "schemas:deploy",
|
|
4056
|
+
"hiddenAliases": [],
|
|
4057
|
+
"id": "media:export",
|
|
3871
4058
|
"pluginAlias": "@sanity/cli",
|
|
3872
4059
|
"pluginName": "@sanity/cli",
|
|
3873
4060
|
"pluginType": "core",
|
|
@@ -3876,79 +4063,62 @@
|
|
|
3876
4063
|
"relativePath": [
|
|
3877
4064
|
"dist",
|
|
3878
4065
|
"commands",
|
|
3879
|
-
"
|
|
3880
|
-
"
|
|
4066
|
+
"media",
|
|
4067
|
+
"export.js"
|
|
3881
4068
|
]
|
|
3882
4069
|
},
|
|
3883
|
-
"
|
|
4070
|
+
"media:import": {
|
|
3884
4071
|
"aliases": [],
|
|
3885
|
-
"args": {
|
|
3886
|
-
|
|
4072
|
+
"args": {
|
|
4073
|
+
"source": {
|
|
4074
|
+
"description": "Image file or folder to import from",
|
|
4075
|
+
"name": "source",
|
|
4076
|
+
"required": true
|
|
4077
|
+
}
|
|
4078
|
+
},
|
|
4079
|
+
"description": "Import a set of assets to the target media library.",
|
|
3887
4080
|
"examples": [
|
|
3888
4081
|
{
|
|
3889
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3890
|
-
"description": "
|
|
4082
|
+
"command": "<%= config.bin %> <%= command.id %> products",
|
|
4083
|
+
"description": "Import all assets from the \"products\" directory"
|
|
3891
4084
|
},
|
|
3892
4085
|
{
|
|
3893
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3894
|
-
"description": "
|
|
4086
|
+
"command": "<%= config.bin %> <%= command.id %> gallery.tar.gz",
|
|
4087
|
+
"description": "Import all assets from \"gallery\" archive"
|
|
3895
4088
|
},
|
|
3896
4089
|
{
|
|
3897
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3898
|
-
"description": "
|
|
4090
|
+
"command": "<%= config.bin %> <%= command.id %> products --replace-aspects",
|
|
4091
|
+
"description": "Import all assets from the \"products\" directory and replace aspects"
|
|
3899
4092
|
}
|
|
3900
4093
|
],
|
|
3901
4094
|
"flags": {
|
|
3902
|
-
"
|
|
3903
|
-
"
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
3906
|
-
"
|
|
3907
|
-
},
|
|
3908
|
-
"format": {
|
|
3909
|
-
"description": "Format the schema as GROQ type nodes. Only available format at the moment.",
|
|
3910
|
-
"name": "format",
|
|
3911
|
-
"default": "groq-type-nodes",
|
|
3912
|
-
"hasDynamicHelp": false,
|
|
3913
|
-
"helpValue": "<format>",
|
|
3914
|
-
"multiple": false,
|
|
3915
|
-
"type": "option"
|
|
3916
|
-
},
|
|
3917
|
-
"path": {
|
|
3918
|
-
"description": "Optional path to specify destination of the schema file",
|
|
3919
|
-
"name": "path",
|
|
3920
|
-
"hasDynamicHelp": false,
|
|
3921
|
-
"multiple": false,
|
|
3922
|
-
"type": "option"
|
|
3923
|
-
},
|
|
3924
|
-
"watch": {
|
|
3925
|
-
"description": "Enable watch mode to re-extract schema on file changes",
|
|
3926
|
-
"name": "watch",
|
|
3927
|
-
"allowNo": false,
|
|
3928
|
-
"type": "boolean"
|
|
3929
|
-
},
|
|
3930
|
-
"watch-patterns": {
|
|
3931
|
-
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
3932
|
-
"name": "watch-patterns",
|
|
4095
|
+
"project-id": {
|
|
4096
|
+
"char": "p",
|
|
4097
|
+
"description": "Project ID to import media to (overrides CLI configuration)",
|
|
4098
|
+
"helpGroup": "OVERRIDE",
|
|
4099
|
+
"name": "project-id",
|
|
3933
4100
|
"hasDynamicHelp": false,
|
|
3934
|
-
"helpValue": "<
|
|
3935
|
-
"multiple":
|
|
4101
|
+
"helpValue": "<id>",
|
|
4102
|
+
"multiple": false,
|
|
3936
4103
|
"type": "option"
|
|
3937
4104
|
},
|
|
3938
|
-
"
|
|
3939
|
-
"description": "The
|
|
3940
|
-
"name": "
|
|
4105
|
+
"media-library-id": {
|
|
4106
|
+
"description": "The id of the target media library",
|
|
4107
|
+
"name": "media-library-id",
|
|
3941
4108
|
"hasDynamicHelp": false,
|
|
3942
|
-
"helpValue": "<name>",
|
|
3943
4109
|
"multiple": false,
|
|
3944
4110
|
"type": "option"
|
|
4111
|
+
},
|
|
4112
|
+
"replace-aspects": {
|
|
4113
|
+
"description": "Replace existing aspect data. All versions will be replaced (e.g. published and draft aspect data)",
|
|
4114
|
+
"name": "replace-aspects",
|
|
4115
|
+
"allowNo": false,
|
|
4116
|
+
"type": "boolean"
|
|
3945
4117
|
}
|
|
3946
4118
|
},
|
|
3947
4119
|
"hasDynamicHelp": false,
|
|
3948
|
-
"hiddenAliases": [
|
|
3949
|
-
|
|
3950
|
-
],
|
|
3951
|
-
"id": "schemas:extract",
|
|
4120
|
+
"hiddenAliases": [],
|
|
4121
|
+
"id": "media:import",
|
|
3952
4122
|
"pluginAlias": "@sanity/cli",
|
|
3953
4123
|
"pluginName": "@sanity/cli",
|
|
3954
4124
|
"pluginType": "core",
|
|
@@ -3957,70 +4127,24 @@
|
|
|
3957
4127
|
"relativePath": [
|
|
3958
4128
|
"dist",
|
|
3959
4129
|
"commands",
|
|
3960
|
-
"
|
|
3961
|
-
"
|
|
4130
|
+
"media",
|
|
4131
|
+
"import.js"
|
|
3962
4132
|
]
|
|
3963
4133
|
},
|
|
3964
|
-
"
|
|
4134
|
+
"telemetry:disable": {
|
|
3965
4135
|
"aliases": [],
|
|
3966
4136
|
"args": {},
|
|
3967
|
-
"description": "
|
|
4137
|
+
"description": "Disable telemetry for your account",
|
|
3968
4138
|
"examples": [
|
|
3969
4139
|
{
|
|
3970
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3971
|
-
"description": "
|
|
3972
|
-
},
|
|
3973
|
-
{
|
|
3974
|
-
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
3975
|
-
"description": "Get a schema for a given id"
|
|
3976
|
-
},
|
|
3977
|
-
{
|
|
3978
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3979
|
-
"description": "Get stored schemas as pretty-printed json-array"
|
|
3980
|
-
},
|
|
3981
|
-
{
|
|
3982
|
-
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
3983
|
-
"description": "Get singular stored schema as pretty-printed json-object"
|
|
4140
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4141
|
+
"description": "Disable telemetry for your account"
|
|
3984
4142
|
}
|
|
3985
4143
|
],
|
|
3986
|
-
"flags": {
|
|
3987
|
-
"extract-manifest": {
|
|
3988
|
-
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
3989
|
-
"hidden": true,
|
|
3990
|
-
"name": "extract-manifest",
|
|
3991
|
-
"allowNo": true,
|
|
3992
|
-
"type": "boolean"
|
|
3993
|
-
},
|
|
3994
|
-
"id": {
|
|
3995
|
-
"description": "Fetch a single schema by id",
|
|
3996
|
-
"name": "id",
|
|
3997
|
-
"hasDynamicHelp": false,
|
|
3998
|
-
"helpValue": "<schema_id>",
|
|
3999
|
-
"multiple": false,
|
|
4000
|
-
"type": "option"
|
|
4001
|
-
},
|
|
4002
|
-
"json": {
|
|
4003
|
-
"description": "Get schema as json",
|
|
4004
|
-
"name": "json",
|
|
4005
|
-
"allowNo": false,
|
|
4006
|
-
"type": "boolean"
|
|
4007
|
-
},
|
|
4008
|
-
"manifest-dir": {
|
|
4009
|
-
"description": "Directory containing manifest file",
|
|
4010
|
-
"hidden": true,
|
|
4011
|
-
"name": "manifest-dir",
|
|
4012
|
-
"default": "./dist/static",
|
|
4013
|
-
"hasDynamicHelp": false,
|
|
4014
|
-
"helpValue": "<directory>",
|
|
4015
|
-
"multiple": false,
|
|
4016
|
-
"type": "option"
|
|
4017
|
-
}
|
|
4018
|
-
},
|
|
4144
|
+
"flags": {},
|
|
4019
4145
|
"hasDynamicHelp": false,
|
|
4020
|
-
"hiddenAliases": [
|
|
4021
|
-
|
|
4022
|
-
],
|
|
4023
|
-
"id": "schemas:list",
|
|
4146
|
+
"hiddenAliases": [],
|
|
4147
|
+
"id": "telemetry:disable",
|
|
4024
4148
|
"pluginAlias": "@sanity/cli",
|
|
4025
4149
|
"pluginName": "@sanity/cli",
|
|
4026
4150
|
"pluginType": "core",
|
|
@@ -4029,79 +4153,50 @@
|
|
|
4029
4153
|
"relativePath": [
|
|
4030
4154
|
"dist",
|
|
4031
4155
|
"commands",
|
|
4032
|
-
"
|
|
4033
|
-
"
|
|
4156
|
+
"telemetry",
|
|
4157
|
+
"disable.js"
|
|
4034
4158
|
]
|
|
4035
4159
|
},
|
|
4036
|
-
"
|
|
4160
|
+
"telemetry:enable": {
|
|
4037
4161
|
"aliases": [],
|
|
4038
4162
|
"args": {},
|
|
4039
|
-
"description": "
|
|
4163
|
+
"description": "Enable telemetry for your account",
|
|
4040
4164
|
"examples": [
|
|
4041
4165
|
{
|
|
4042
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4043
|
-
"description": "
|
|
4044
|
-
},
|
|
4045
|
-
{
|
|
4046
|
-
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4047
|
-
"description": "Save the results of the report into a file"
|
|
4048
|
-
},
|
|
4049
|
-
{
|
|
4050
|
-
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4051
|
-
"description": "Report out only errors"
|
|
4052
|
-
},
|
|
4053
|
-
{
|
|
4054
|
-
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4055
|
-
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
4166
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4167
|
+
"description": "Enable telemetry for your account"
|
|
4056
4168
|
}
|
|
4057
4169
|
],
|
|
4058
|
-
"flags": {
|
|
4059
|
-
"debug-metafile-path": {
|
|
4060
|
-
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
4061
|
-
"helpGroup": "DEBUG",
|
|
4062
|
-
"name": "debug-metafile-path",
|
|
4063
|
-
"hasDynamicHelp": false,
|
|
4064
|
-
"multiple": false,
|
|
4065
|
-
"type": "option"
|
|
4066
|
-
},
|
|
4067
|
-
"format": {
|
|
4068
|
-
"description": "The output format used to print schema errors and warnings",
|
|
4069
|
-
"name": "format",
|
|
4070
|
-
"default": "pretty",
|
|
4071
|
-
"hasDynamicHelp": false,
|
|
4072
|
-
"multiple": false,
|
|
4073
|
-
"options": [
|
|
4074
|
-
"pretty",
|
|
4075
|
-
"ndjson",
|
|
4076
|
-
"json"
|
|
4077
|
-
],
|
|
4078
|
-
"type": "option"
|
|
4079
|
-
},
|
|
4080
|
-
"level": {
|
|
4081
|
-
"description": "The minimum level reported out",
|
|
4082
|
-
"name": "level",
|
|
4083
|
-
"default": "warning",
|
|
4084
|
-
"hasDynamicHelp": false,
|
|
4085
|
-
"multiple": false,
|
|
4086
|
-
"options": [
|
|
4087
|
-
"error",
|
|
4088
|
-
"warning"
|
|
4089
|
-
],
|
|
4090
|
-
"type": "option"
|
|
4091
|
-
},
|
|
4092
|
-
"workspace": {
|
|
4093
|
-
"description": "The name of the workspace to use when validating all schema types",
|
|
4094
|
-
"name": "workspace",
|
|
4095
|
-
"hasDynamicHelp": false,
|
|
4096
|
-
"multiple": false,
|
|
4097
|
-
"type": "option"
|
|
4098
|
-
}
|
|
4099
|
-
},
|
|
4170
|
+
"flags": {},
|
|
4100
4171
|
"hasDynamicHelp": false,
|
|
4101
|
-
"hiddenAliases": [
|
|
4102
|
-
|
|
4172
|
+
"hiddenAliases": [],
|
|
4173
|
+
"id": "telemetry:enable",
|
|
4174
|
+
"pluginAlias": "@sanity/cli",
|
|
4175
|
+
"pluginName": "@sanity/cli",
|
|
4176
|
+
"pluginType": "core",
|
|
4177
|
+
"strict": true,
|
|
4178
|
+
"isESM": true,
|
|
4179
|
+
"relativePath": [
|
|
4180
|
+
"dist",
|
|
4181
|
+
"commands",
|
|
4182
|
+
"telemetry",
|
|
4183
|
+
"enable.js"
|
|
4184
|
+
]
|
|
4185
|
+
},
|
|
4186
|
+
"telemetry:status": {
|
|
4187
|
+
"aliases": [],
|
|
4188
|
+
"args": {},
|
|
4189
|
+
"description": "Check telemetry status for your account",
|
|
4190
|
+
"examples": [
|
|
4191
|
+
{
|
|
4192
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4193
|
+
"description": "Check telemetry status for your account"
|
|
4194
|
+
}
|
|
4103
4195
|
],
|
|
4104
|
-
"
|
|
4196
|
+
"flags": {},
|
|
4197
|
+
"hasDynamicHelp": false,
|
|
4198
|
+
"hiddenAliases": [],
|
|
4199
|
+
"id": "telemetry:status",
|
|
4105
4200
|
"pluginAlias": "@sanity/cli",
|
|
4106
4201
|
"pluginName": "@sanity/cli",
|
|
4107
4202
|
"pluginType": "core",
|
|
@@ -4110,8 +4205,8 @@
|
|
|
4110
4205
|
"relativePath": [
|
|
4111
4206
|
"dist",
|
|
4112
4207
|
"commands",
|
|
4113
|
-
"
|
|
4114
|
-
"
|
|
4208
|
+
"telemetry",
|
|
4209
|
+
"status.js"
|
|
4115
4210
|
]
|
|
4116
4211
|
},
|
|
4117
4212
|
"tokens:add": {
|
|
@@ -4123,7 +4218,7 @@
|
|
|
4123
4218
|
"required": false
|
|
4124
4219
|
}
|
|
4125
4220
|
},
|
|
4126
|
-
"description": "Create a new API token for
|
|
4221
|
+
"description": "Create a new API token for the project",
|
|
4127
4222
|
"examples": [
|
|
4128
4223
|
{
|
|
4129
4224
|
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
@@ -4205,7 +4300,7 @@
|
|
|
4205
4300
|
"required": false
|
|
4206
4301
|
}
|
|
4207
4302
|
},
|
|
4208
|
-
"description": "Delete an API token from
|
|
4303
|
+
"description": "Delete an API token from the project",
|
|
4209
4304
|
"examples": [
|
|
4210
4305
|
{
|
|
4211
4306
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4266,11 +4361,11 @@
|
|
|
4266
4361
|
"tokens:list": {
|
|
4267
4362
|
"aliases": [],
|
|
4268
4363
|
"args": {},
|
|
4269
|
-
"description": "List API tokens for the
|
|
4364
|
+
"description": "List API tokens for the project",
|
|
4270
4365
|
"examples": [
|
|
4271
4366
|
{
|
|
4272
4367
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4273
|
-
"description": "List tokens for the
|
|
4368
|
+
"description": "List tokens for the project"
|
|
4274
4369
|
},
|
|
4275
4370
|
{
|
|
4276
4371
|
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
@@ -4316,84 +4411,6 @@
|
|
|
4316
4411
|
"list.js"
|
|
4317
4412
|
]
|
|
4318
4413
|
},
|
|
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
4414
|
"users:invite": {
|
|
4398
4415
|
"aliases": [],
|
|
4399
4416
|
"args": {
|
|
@@ -4462,7 +4479,7 @@
|
|
|
4462
4479
|
"users:list": {
|
|
4463
4480
|
"aliases": [],
|
|
4464
4481
|
"args": {},
|
|
4465
|
-
"description": "List
|
|
4482
|
+
"description": "List project members",
|
|
4466
4483
|
"examples": [
|
|
4467
4484
|
{
|
|
4468
4485
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4562,7 +4579,7 @@
|
|
|
4562
4579
|
"required": false
|
|
4563
4580
|
}
|
|
4564
4581
|
},
|
|
4565
|
-
"description": "Create a dataset alias
|
|
4582
|
+
"description": "Create a dataset alias for the project",
|
|
4566
4583
|
"examples": [
|
|
4567
4584
|
{
|
|
4568
4585
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
@@ -4620,7 +4637,7 @@
|
|
|
4620
4637
|
"required": true
|
|
4621
4638
|
}
|
|
4622
4639
|
},
|
|
4623
|
-
"description": "Delete a dataset alias
|
|
4640
|
+
"description": "Delete a dataset alias from the project",
|
|
4624
4641
|
"examples": [
|
|
4625
4642
|
{
|
|
4626
4643
|
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
@@ -4682,7 +4699,7 @@
|
|
|
4682
4699
|
"required": false
|
|
4683
4700
|
}
|
|
4684
4701
|
},
|
|
4685
|
-
"description": "Link a dataset alias to a dataset
|
|
4702
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
4686
4703
|
"examples": [
|
|
4687
4704
|
{
|
|
4688
4705
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -4747,7 +4764,7 @@
|
|
|
4747
4764
|
"required": false
|
|
4748
4765
|
}
|
|
4749
4766
|
},
|
|
4750
|
-
"description": "Unlink a dataset alias from its dataset
|
|
4767
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
4751
4768
|
"examples": [
|
|
4752
4769
|
{
|
|
4753
4770
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -5065,5 +5082,5 @@
|
|
|
5065
5082
|
]
|
|
5066
5083
|
}
|
|
5067
5084
|
},
|
|
5068
|
-
"version": "6.
|
|
5085
|
+
"version": "6.4.0"
|
|
5069
5086
|
}
|