@sanity/cli 7.12.0 → 7.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/build/buildApp.js +1 -1
- package/dist/actions/build/buildApp.js.map +1 -1
- package/dist/actions/build/buildStudio.js +1 -1
- package/dist/actions/build/buildStudio.js.map +1 -1
- package/dist/commands/backups/disable.js +4 -4
- package/dist/commands/backups/disable.js.map +1 -1
- package/dist/commands/backups/download.js +7 -7
- package/dist/commands/backups/download.js.map +1 -1
- package/dist/commands/backups/enable.js +4 -4
- package/dist/commands/backups/enable.js.map +1 -1
- package/dist/commands/backups/list.js +7 -7
- package/dist/commands/backups/list.js.map +1 -1
- package/dist/commands/codemod.js +5 -5
- package/dist/commands/codemod.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 +4 -4
- 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 +5 -5
- package/dist/commands/datasets/alias/create.js.map +1 -1
- package/dist/commands/datasets/alias/delete.js +2 -2
- package/dist/commands/datasets/alias/delete.js.map +1 -1
- package/dist/commands/datasets/alias/link.js +5 -5
- package/dist/commands/datasets/alias/link.js.map +1 -1
- package/dist/commands/datasets/alias/unlink.js +3 -3
- package/dist/commands/datasets/alias/unlink.js.map +1 -1
- package/dist/commands/datasets/copy.js +7 -7
- package/dist/commands/datasets/copy.js.map +1 -1
- package/dist/commands/datasets/create.js +3 -3
- package/dist/commands/datasets/create.js.map +1 -1
- package/dist/commands/datasets/delete.js +2 -2
- package/dist/commands/datasets/delete.js.map +1 -1
- package/dist/commands/datasets/embeddings/disable.js +3 -3
- package/dist/commands/datasets/embeddings/disable.js.map +1 -1
- package/dist/commands/datasets/embeddings/enable.js +5 -5
- package/dist/commands/datasets/embeddings/enable.js.map +1 -1
- package/dist/commands/datasets/embeddings/status.js +3 -3
- package/dist/commands/datasets/embeddings/status.js.map +1 -1
- package/dist/commands/datasets/export.js +6 -6
- package/dist/commands/datasets/export.js.map +1 -1
- package/dist/commands/datasets/import.js +3 -3
- package/dist/commands/datasets/import.js.map +1 -1
- package/dist/commands/datasets/list.js +2 -2
- package/dist/commands/datasets/list.js.map +1 -1
- package/dist/commands/datasets/visibility/get.js +2 -2
- package/dist/commands/datasets/visibility/get.js.map +1 -1
- package/dist/commands/datasets/visibility/set.js +3 -3
- package/dist/commands/datasets/visibility/set.js.map +1 -1
- package/dist/commands/deploy.js +2 -2
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/dev.js +2 -2
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/docs/read.js +1 -1
- package/dist/commands/docs/read.js.map +1 -1
- package/dist/commands/docs/search.js +3 -3
- package/dist/commands/docs/search.js.map +1 -1
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/documents/create.js +3 -3
- package/dist/commands/documents/create.js.map +1 -1
- package/dist/commands/documents/delete.js +3 -3
- package/dist/commands/documents/delete.js.map +1 -1
- package/dist/commands/documents/get.js +2 -2
- package/dist/commands/documents/get.js.map +1 -1
- package/dist/commands/documents/query.js +2 -2
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/commands/documents/validate.js +3 -3
- package/dist/commands/documents/validate.js.map +1 -1
- package/dist/commands/graphql/deploy.js +13 -13
- 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/graphql/undeploy.js +2 -2
- package/dist/commands/graphql/undeploy.js.map +1 -1
- package/dist/commands/hooks/attempt.js +2 -2
- package/dist/commands/hooks/attempt.js.map +1 -1
- package/dist/commands/hooks/create.js +3 -3
- package/dist/commands/hooks/create.js.map +1 -1
- package/dist/commands/hooks/delete.js +4 -4
- package/dist/commands/hooks/delete.js.map +1 -1
- package/dist/commands/hooks/list.js +2 -2
- 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/login.js +2 -2
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +2 -2
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/manifest/extract.js +3 -3
- package/dist/commands/manifest/extract.js.map +1 -1
- package/dist/commands/mcp/configure.js +4 -4
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/media/create-aspect.js +3 -3
- package/dist/commands/media/create-aspect.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/deploy-aspect.js +4 -4
- package/dist/commands/media/deploy-aspect.js.map +1 -1
- package/dist/commands/media/export.js +7 -7
- package/dist/commands/media/export.js.map +1 -1
- package/dist/commands/media/import.js +6 -6
- package/dist/commands/media/import.js.map +1 -1
- package/dist/commands/migrations/create.js +4 -4
- package/dist/commands/migrations/create.js.map +1 -1
- package/dist/commands/migrations/list.js +2 -2
- package/dist/commands/migrations/list.js.map +1 -1
- package/dist/commands/migrations/run.js +14 -14
- package/dist/commands/migrations/run.js.map +1 -1
- package/dist/commands/openapi/get.js +3 -3
- package/dist/commands/openapi/get.js.map +1 -1
- package/dist/commands/openapi/list.js +2 -2
- package/dist/commands/openapi/list.js.map +1 -1
- package/dist/commands/organizations/create.js +5 -5
- package/dist/commands/organizations/create.js.map +1 -1
- package/dist/commands/organizations/delete.js +6 -6
- package/dist/commands/organizations/delete.js.map +1 -1
- package/dist/commands/organizations/get.js +3 -3
- package/dist/commands/organizations/get.js.map +1 -1
- package/dist/commands/organizations/list.js +2 -2
- package/dist/commands/organizations/list.js.map +1 -1
- package/dist/commands/organizations/update.js +6 -6
- package/dist/commands/organizations/update.js.map +1 -1
- package/dist/commands/preview.js +2 -2
- package/dist/commands/preview.js.map +1 -1
- package/dist/commands/projects/create.js +2 -2
- package/dist/commands/projects/create.js.map +1 -1
- package/dist/commands/projects/list.js +2 -2
- package/dist/commands/projects/list.js.map +1 -1
- package/dist/commands/schemas/delete.js +2 -2
- package/dist/commands/schemas/delete.js.map +1 -1
- package/dist/commands/schemas/deploy.js +2 -2
- package/dist/commands/schemas/deploy.js.map +1 -1
- package/dist/commands/schemas/list.js +1 -1
- package/dist/commands/schemas/list.js.map +1 -1
- package/dist/commands/schemas/validate.js +2 -1
- package/dist/commands/schemas/validate.js.map +1 -1
- package/dist/commands/skills/install.js +2 -2
- package/dist/commands/skills/install.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/tokens/create.js +2 -2
- package/dist/commands/tokens/create.js.map +1 -1
- package/dist/commands/tokens/delete.js +2 -2
- 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/invite.js +3 -3
- package/dist/commands/users/invite.js.map +1 -1
- package/oclif.manifest.json +512 -512
- package/package.json +6 -6
package/oclif.manifest.json
CHANGED
|
@@ -1346,167 +1346,6 @@
|
|
|
1346
1346
|
"list.js"
|
|
1347
1347
|
]
|
|
1348
1348
|
},
|
|
1349
|
-
"cors:add": {
|
|
1350
|
-
"aliases": [],
|
|
1351
|
-
"args": {
|
|
1352
|
-
"origin": {
|
|
1353
|
-
"description": "Origin to allow (e.g., https://example.com)",
|
|
1354
|
-
"name": "origin",
|
|
1355
|
-
"required": true
|
|
1356
|
-
}
|
|
1357
|
-
},
|
|
1358
|
-
"description": "Add a CORS origin to the project",
|
|
1359
|
-
"examples": [
|
|
1360
|
-
{
|
|
1361
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1362
|
-
"description": "Interactively add a CORS origin"
|
|
1363
|
-
},
|
|
1364
|
-
{
|
|
1365
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1366
|
-
"description": "Add a localhost origin without credentials"
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1370
|
-
"description": "Add a production origin with credentials allowed"
|
|
1371
|
-
},
|
|
1372
|
-
{
|
|
1373
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
1374
|
-
"description": "Add a CORS origin for a specific project"
|
|
1375
|
-
}
|
|
1376
|
-
],
|
|
1377
|
-
"flags": {
|
|
1378
|
-
"project-id": {
|
|
1379
|
-
"char": "p",
|
|
1380
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1381
|
-
"helpGroup": "OVERRIDE",
|
|
1382
|
-
"name": "project-id",
|
|
1383
|
-
"hasDynamicHelp": false,
|
|
1384
|
-
"helpValue": "<id>",
|
|
1385
|
-
"multiple": false,
|
|
1386
|
-
"type": "option"
|
|
1387
|
-
},
|
|
1388
|
-
"credentials": {
|
|
1389
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1390
|
-
"name": "credentials",
|
|
1391
|
-
"required": false,
|
|
1392
|
-
"allowNo": true,
|
|
1393
|
-
"type": "boolean"
|
|
1394
|
-
},
|
|
1395
|
-
"yes": {
|
|
1396
|
-
"char": "y",
|
|
1397
|
-
"description": "Confirm risky wildcard origins without prompting",
|
|
1398
|
-
"name": "yes",
|
|
1399
|
-
"allowNo": false,
|
|
1400
|
-
"type": "boolean"
|
|
1401
|
-
}
|
|
1402
|
-
},
|
|
1403
|
-
"hasDynamicHelp": false,
|
|
1404
|
-
"hiddenAliases": [],
|
|
1405
|
-
"id": "cors:add",
|
|
1406
|
-
"pluginAlias": "@sanity/cli",
|
|
1407
|
-
"pluginName": "@sanity/cli",
|
|
1408
|
-
"pluginType": "core",
|
|
1409
|
-
"strict": true,
|
|
1410
|
-
"isESM": true,
|
|
1411
|
-
"relativePath": [
|
|
1412
|
-
"dist",
|
|
1413
|
-
"commands",
|
|
1414
|
-
"cors",
|
|
1415
|
-
"add.js"
|
|
1416
|
-
]
|
|
1417
|
-
},
|
|
1418
|
-
"cors:delete": {
|
|
1419
|
-
"aliases": [],
|
|
1420
|
-
"args": {
|
|
1421
|
-
"origin": {
|
|
1422
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
1423
|
-
"name": "origin",
|
|
1424
|
-
"required": false
|
|
1425
|
-
}
|
|
1426
|
-
},
|
|
1427
|
-
"description": "Delete a CORS origin from the project",
|
|
1428
|
-
"examples": [
|
|
1429
|
-
{
|
|
1430
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1431
|
-
"description": "Interactively select and delete a CORS origin"
|
|
1432
|
-
},
|
|
1433
|
-
{
|
|
1434
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1435
|
-
"description": "Delete a specific CORS origin"
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1439
|
-
"description": "Delete a CORS origin from a specific project"
|
|
1440
|
-
}
|
|
1441
|
-
],
|
|
1442
|
-
"flags": {
|
|
1443
|
-
"project-id": {
|
|
1444
|
-
"char": "p",
|
|
1445
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1446
|
-
"helpGroup": "OVERRIDE",
|
|
1447
|
-
"name": "project-id",
|
|
1448
|
-
"hasDynamicHelp": false,
|
|
1449
|
-
"helpValue": "<id>",
|
|
1450
|
-
"multiple": false,
|
|
1451
|
-
"type": "option"
|
|
1452
|
-
}
|
|
1453
|
-
},
|
|
1454
|
-
"hasDynamicHelp": false,
|
|
1455
|
-
"hiddenAliases": [],
|
|
1456
|
-
"id": "cors:delete",
|
|
1457
|
-
"pluginAlias": "@sanity/cli",
|
|
1458
|
-
"pluginName": "@sanity/cli",
|
|
1459
|
-
"pluginType": "core",
|
|
1460
|
-
"strict": true,
|
|
1461
|
-
"isESM": true,
|
|
1462
|
-
"relativePath": [
|
|
1463
|
-
"dist",
|
|
1464
|
-
"commands",
|
|
1465
|
-
"cors",
|
|
1466
|
-
"delete.js"
|
|
1467
|
-
]
|
|
1468
|
-
},
|
|
1469
|
-
"cors:list": {
|
|
1470
|
-
"aliases": [],
|
|
1471
|
-
"args": {},
|
|
1472
|
-
"description": "List CORS origins for the project",
|
|
1473
|
-
"examples": [
|
|
1474
|
-
{
|
|
1475
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1476
|
-
"description": "List CORS origins for the project"
|
|
1477
|
-
},
|
|
1478
|
-
{
|
|
1479
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1480
|
-
"description": "List CORS origins for a specific project"
|
|
1481
|
-
}
|
|
1482
|
-
],
|
|
1483
|
-
"flags": {
|
|
1484
|
-
"project-id": {
|
|
1485
|
-
"char": "p",
|
|
1486
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
1487
|
-
"helpGroup": "OVERRIDE",
|
|
1488
|
-
"name": "project-id",
|
|
1489
|
-
"hasDynamicHelp": false,
|
|
1490
|
-
"helpValue": "<id>",
|
|
1491
|
-
"multiple": false,
|
|
1492
|
-
"type": "option"
|
|
1493
|
-
}
|
|
1494
|
-
},
|
|
1495
|
-
"hasDynamicHelp": false,
|
|
1496
|
-
"hiddenAliases": [],
|
|
1497
|
-
"id": "cors:list",
|
|
1498
|
-
"pluginAlias": "@sanity/cli",
|
|
1499
|
-
"pluginName": "@sanity/cli",
|
|
1500
|
-
"pluginType": "core",
|
|
1501
|
-
"strict": true,
|
|
1502
|
-
"isESM": true,
|
|
1503
|
-
"relativePath": [
|
|
1504
|
-
"dist",
|
|
1505
|
-
"commands",
|
|
1506
|
-
"cors",
|
|
1507
|
-
"list.js"
|
|
1508
|
-
]
|
|
1509
|
-
},
|
|
1510
1349
|
"datasets:copy": {
|
|
1511
1350
|
"aliases": [],
|
|
1512
1351
|
"args": {
|
|
@@ -2130,193 +1969,69 @@
|
|
|
2130
1969
|
"list.js"
|
|
2131
1970
|
]
|
|
2132
1971
|
},
|
|
2133
|
-
"
|
|
2134
|
-
"aliases": [],
|
|
2135
|
-
"args": {},
|
|
2136
|
-
"description": "Open Sanity docs in your browser",
|
|
2137
|
-
"flags": {},
|
|
2138
|
-
"hasDynamicHelp": false,
|
|
2139
|
-
"hiddenAliases": [],
|
|
2140
|
-
"id": "docs:browse",
|
|
2141
|
-
"pluginAlias": "@sanity/cli",
|
|
2142
|
-
"pluginName": "@sanity/cli",
|
|
2143
|
-
"pluginType": "core",
|
|
2144
|
-
"strict": true,
|
|
2145
|
-
"enableJsonFlag": false,
|
|
2146
|
-
"isESM": true,
|
|
2147
|
-
"relativePath": [
|
|
2148
|
-
"dist",
|
|
2149
|
-
"commands",
|
|
2150
|
-
"docs",
|
|
2151
|
-
"browse.js"
|
|
2152
|
-
]
|
|
2153
|
-
},
|
|
2154
|
-
"docs:read": {
|
|
1972
|
+
"documents:create": {
|
|
2155
1973
|
"aliases": [],
|
|
2156
1974
|
"args": {
|
|
2157
|
-
"
|
|
2158
|
-
"description": "
|
|
2159
|
-
"name": "
|
|
2160
|
-
"required":
|
|
1975
|
+
"file": {
|
|
1976
|
+
"description": "JSON file to create document(s) from",
|
|
1977
|
+
"name": "file",
|
|
1978
|
+
"required": false
|
|
2161
1979
|
}
|
|
2162
1980
|
},
|
|
2163
|
-
"description": "
|
|
1981
|
+
"description": "Create one or more documents",
|
|
2164
1982
|
"examples": [
|
|
2165
1983
|
{
|
|
2166
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2167
|
-
"description": "
|
|
1984
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
1985
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
2168
1986
|
},
|
|
2169
1987
|
{
|
|
2170
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2171
|
-
"description": "
|
|
1988
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1989
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
2172
1990
|
},
|
|
2173
1991
|
{
|
|
2174
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2175
|
-
"description": "
|
|
1992
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
1993
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
2176
1994
|
},
|
|
2177
1995
|
{
|
|
2178
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2179
|
-
"description": "Open
|
|
1996
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
1997
|
+
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
2001
|
+
"description": "Create documents in a specific project"
|
|
2180
2002
|
}
|
|
2181
2003
|
],
|
|
2182
2004
|
"flags": {
|
|
2183
|
-
"
|
|
2184
|
-
"
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
"
|
|
2188
|
-
"
|
|
2189
|
-
"
|
|
2190
|
-
"
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
"
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
"
|
|
2213
|
-
"name": "query",
|
|
2214
|
-
"required": true
|
|
2215
|
-
}
|
|
2216
|
-
},
|
|
2217
|
-
"description": "Search Sanity docs",
|
|
2218
|
-
"examples": [
|
|
2219
|
-
{
|
|
2220
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2221
|
-
"description": "Search for documentation about schemas"
|
|
2222
|
-
},
|
|
2223
|
-
{
|
|
2224
|
-
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2225
|
-
"description": "Search with phrase"
|
|
2226
|
-
},
|
|
2227
|
-
{
|
|
2228
|
-
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2229
|
-
"description": "Limit search results"
|
|
2230
|
-
}
|
|
2231
|
-
],
|
|
2232
|
-
"flags": {
|
|
2233
|
-
"limit": {
|
|
2234
|
-
"description": "Maximum number of results to return",
|
|
2235
|
-
"name": "limit",
|
|
2236
|
-
"default": 10,
|
|
2237
|
-
"hasDynamicHelp": false,
|
|
2238
|
-
"multiple": false,
|
|
2239
|
-
"type": "option"
|
|
2240
|
-
}
|
|
2241
|
-
},
|
|
2242
|
-
"hasDynamicHelp": false,
|
|
2243
|
-
"hiddenAliases": [],
|
|
2244
|
-
"id": "docs:search",
|
|
2245
|
-
"pluginAlias": "@sanity/cli",
|
|
2246
|
-
"pluginName": "@sanity/cli",
|
|
2247
|
-
"pluginType": "core",
|
|
2248
|
-
"strict": true,
|
|
2249
|
-
"isESM": true,
|
|
2250
|
-
"relativePath": [
|
|
2251
|
-
"dist",
|
|
2252
|
-
"commands",
|
|
2253
|
-
"docs",
|
|
2254
|
-
"search.js"
|
|
2255
|
-
]
|
|
2256
|
-
},
|
|
2257
|
-
"documents:create": {
|
|
2258
|
-
"aliases": [],
|
|
2259
|
-
"args": {
|
|
2260
|
-
"file": {
|
|
2261
|
-
"description": "JSON file to create document(s) from",
|
|
2262
|
-
"name": "file",
|
|
2263
|
-
"required": false
|
|
2264
|
-
}
|
|
2265
|
-
},
|
|
2266
|
-
"description": "Create one or more documents",
|
|
2267
|
-
"examples": [
|
|
2268
|
-
{
|
|
2269
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
2270
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
2271
|
-
},
|
|
2272
|
-
{
|
|
2273
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2274
|
-
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
2275
|
-
},
|
|
2276
|
-
{
|
|
2277
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
2278
|
-
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
2279
|
-
},
|
|
2280
|
-
{
|
|
2281
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
2282
|
-
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
2283
|
-
},
|
|
2284
|
-
{
|
|
2285
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project-id abc123",
|
|
2286
|
-
"description": "Create documents in a specific project"
|
|
2287
|
-
}
|
|
2288
|
-
],
|
|
2289
|
-
"flags": {
|
|
2290
|
-
"project-id": {
|
|
2291
|
-
"char": "p",
|
|
2292
|
-
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
2293
|
-
"helpGroup": "OVERRIDE",
|
|
2294
|
-
"name": "project-id",
|
|
2295
|
-
"hasDynamicHelp": false,
|
|
2296
|
-
"helpValue": "<id>",
|
|
2297
|
-
"multiple": false,
|
|
2298
|
-
"type": "option"
|
|
2299
|
-
},
|
|
2300
|
-
"dataset": {
|
|
2301
|
-
"char": "d",
|
|
2302
|
-
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
2303
|
-
"helpGroup": "OVERRIDE",
|
|
2304
|
-
"name": "dataset",
|
|
2305
|
-
"hasDynamicHelp": false,
|
|
2306
|
-
"helpValue": "<name>",
|
|
2307
|
-
"multiple": false,
|
|
2308
|
-
"type": "option"
|
|
2309
|
-
},
|
|
2310
|
-
"id": {
|
|
2311
|
-
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
2312
|
-
"name": "id",
|
|
2313
|
-
"hasDynamicHelp": false,
|
|
2314
|
-
"multiple": false,
|
|
2315
|
-
"type": "option"
|
|
2316
|
-
},
|
|
2317
|
-
"json5": {
|
|
2318
|
-
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
2319
|
-
"name": "json5",
|
|
2005
|
+
"project-id": {
|
|
2006
|
+
"char": "p",
|
|
2007
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
2008
|
+
"helpGroup": "OVERRIDE",
|
|
2009
|
+
"name": "project-id",
|
|
2010
|
+
"hasDynamicHelp": false,
|
|
2011
|
+
"helpValue": "<id>",
|
|
2012
|
+
"multiple": false,
|
|
2013
|
+
"type": "option"
|
|
2014
|
+
},
|
|
2015
|
+
"dataset": {
|
|
2016
|
+
"char": "d",
|
|
2017
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
2018
|
+
"helpGroup": "OVERRIDE",
|
|
2019
|
+
"name": "dataset",
|
|
2020
|
+
"hasDynamicHelp": false,
|
|
2021
|
+
"helpValue": "<name>",
|
|
2022
|
+
"multiple": false,
|
|
2023
|
+
"type": "option"
|
|
2024
|
+
},
|
|
2025
|
+
"id": {
|
|
2026
|
+
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
2027
|
+
"name": "id",
|
|
2028
|
+
"hasDynamicHelp": false,
|
|
2029
|
+
"multiple": false,
|
|
2030
|
+
"type": "option"
|
|
2031
|
+
},
|
|
2032
|
+
"json5": {
|
|
2033
|
+
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
2034
|
+
"name": "json5",
|
|
2320
2035
|
"allowNo": false,
|
|
2321
2036
|
"type": "boolean"
|
|
2322
2037
|
},
|
|
@@ -2728,6 +2443,382 @@
|
|
|
2728
2443
|
"validate.js"
|
|
2729
2444
|
]
|
|
2730
2445
|
},
|
|
2446
|
+
"graphql:deploy": {
|
|
2447
|
+
"aliases": [],
|
|
2448
|
+
"args": {},
|
|
2449
|
+
"description": "Deploy a GraphQL API from the current Sanity schema",
|
|
2450
|
+
"examples": [
|
|
2451
|
+
{
|
|
2452
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2453
|
+
"description": "Deploy all defined GraphQL APIs"
|
|
2454
|
+
},
|
|
2455
|
+
{
|
|
2456
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
2457
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
"command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
|
|
2461
|
+
"description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
|
|
2462
|
+
},
|
|
2463
|
+
{
|
|
2464
|
+
"command": "<%= config.bin %> <%= command.id %> --playground",
|
|
2465
|
+
"description": "Deploy all defined GraphQL APIs, overriding any playground setting"
|
|
2466
|
+
}
|
|
2467
|
+
],
|
|
2468
|
+
"flags": {
|
|
2469
|
+
"api": {
|
|
2470
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
2471
|
+
"name": "api",
|
|
2472
|
+
"hasDynamicHelp": false,
|
|
2473
|
+
"multiple": true,
|
|
2474
|
+
"type": "option"
|
|
2475
|
+
},
|
|
2476
|
+
"dataset": {
|
|
2477
|
+
"char": "d",
|
|
2478
|
+
"description": "Deploy API for the given dataset",
|
|
2479
|
+
"name": "dataset",
|
|
2480
|
+
"hasDynamicHelp": false,
|
|
2481
|
+
"helpValue": "<name>",
|
|
2482
|
+
"multiple": false,
|
|
2483
|
+
"type": "option"
|
|
2484
|
+
},
|
|
2485
|
+
"dry-run": {
|
|
2486
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
2487
|
+
"name": "dry-run",
|
|
2488
|
+
"allowNo": false,
|
|
2489
|
+
"type": "boolean"
|
|
2490
|
+
},
|
|
2491
|
+
"force": {
|
|
2492
|
+
"description": "Deploy API without confirming breaking changes",
|
|
2493
|
+
"name": "force",
|
|
2494
|
+
"allowNo": false,
|
|
2495
|
+
"type": "boolean"
|
|
2496
|
+
},
|
|
2497
|
+
"generation": {
|
|
2498
|
+
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
2499
|
+
"name": "generation",
|
|
2500
|
+
"hasDynamicHelp": false,
|
|
2501
|
+
"multiple": false,
|
|
2502
|
+
"options": [
|
|
2503
|
+
"gen1",
|
|
2504
|
+
"gen2",
|
|
2505
|
+
"gen3"
|
|
2506
|
+
],
|
|
2507
|
+
"type": "option"
|
|
2508
|
+
},
|
|
2509
|
+
"non-null-document-fields": {
|
|
2510
|
+
"description": "Use non-null document fields (_id, _type etc)",
|
|
2511
|
+
"name": "non-null-document-fields",
|
|
2512
|
+
"allowNo": false,
|
|
2513
|
+
"type": "boolean"
|
|
2514
|
+
},
|
|
2515
|
+
"playground": {
|
|
2516
|
+
"description": "Enable GraphQL playground for easier debugging",
|
|
2517
|
+
"name": "playground",
|
|
2518
|
+
"allowNo": true,
|
|
2519
|
+
"type": "boolean"
|
|
2520
|
+
},
|
|
2521
|
+
"tag": {
|
|
2522
|
+
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
2523
|
+
"name": "tag",
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"multiple": false,
|
|
2526
|
+
"type": "option"
|
|
2527
|
+
},
|
|
2528
|
+
"with-union-cache": {
|
|
2529
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
2530
|
+
"name": "with-union-cache",
|
|
2531
|
+
"allowNo": false,
|
|
2532
|
+
"type": "boolean"
|
|
2533
|
+
}
|
|
2534
|
+
},
|
|
2535
|
+
"hasDynamicHelp": false,
|
|
2536
|
+
"hiddenAliases": [],
|
|
2537
|
+
"id": "graphql:deploy",
|
|
2538
|
+
"pluginAlias": "@sanity/cli",
|
|
2539
|
+
"pluginName": "@sanity/cli",
|
|
2540
|
+
"pluginType": "core",
|
|
2541
|
+
"strict": true,
|
|
2542
|
+
"isESM": true,
|
|
2543
|
+
"relativePath": [
|
|
2544
|
+
"dist",
|
|
2545
|
+
"commands",
|
|
2546
|
+
"graphql",
|
|
2547
|
+
"deploy.js"
|
|
2548
|
+
]
|
|
2549
|
+
},
|
|
2550
|
+
"graphql:list": {
|
|
2551
|
+
"aliases": [],
|
|
2552
|
+
"args": {},
|
|
2553
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
2554
|
+
"examples": [
|
|
2555
|
+
{
|
|
2556
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2557
|
+
"description": "List GraphQL endpoints for the project"
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2561
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
"flags": {
|
|
2565
|
+
"project-id": {
|
|
2566
|
+
"char": "p",
|
|
2567
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
2568
|
+
"helpGroup": "OVERRIDE",
|
|
2569
|
+
"name": "project-id",
|
|
2570
|
+
"hasDynamicHelp": false,
|
|
2571
|
+
"helpValue": "<id>",
|
|
2572
|
+
"multiple": false,
|
|
2573
|
+
"type": "option"
|
|
2574
|
+
}
|
|
2575
|
+
},
|
|
2576
|
+
"hasDynamicHelp": false,
|
|
2577
|
+
"hiddenAliases": [],
|
|
2578
|
+
"id": "graphql:list",
|
|
2579
|
+
"pluginAlias": "@sanity/cli",
|
|
2580
|
+
"pluginName": "@sanity/cli",
|
|
2581
|
+
"pluginType": "core",
|
|
2582
|
+
"strict": true,
|
|
2583
|
+
"isESM": true,
|
|
2584
|
+
"relativePath": [
|
|
2585
|
+
"dist",
|
|
2586
|
+
"commands",
|
|
2587
|
+
"graphql",
|
|
2588
|
+
"list.js"
|
|
2589
|
+
]
|
|
2590
|
+
},
|
|
2591
|
+
"graphql:undeploy": {
|
|
2592
|
+
"aliases": [],
|
|
2593
|
+
"args": {},
|
|
2594
|
+
"description": "Remove a deployed GraphQL API",
|
|
2595
|
+
"examples": [
|
|
2596
|
+
{
|
|
2597
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2598
|
+
"description": "Undeploy GraphQL API for current project and dataset"
|
|
2599
|
+
},
|
|
2600
|
+
{
|
|
2601
|
+
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
2602
|
+
"description": "Undeploy API with ID \"ios\""
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
2606
|
+
"description": "Undeploy GraphQL API for staging dataset"
|
|
2607
|
+
},
|
|
2608
|
+
{
|
|
2609
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
2610
|
+
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
2614
|
+
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
|
|
2618
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
2619
|
+
}
|
|
2620
|
+
],
|
|
2621
|
+
"flags": {
|
|
2622
|
+
"project-id": {
|
|
2623
|
+
"char": "p",
|
|
2624
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2625
|
+
"helpGroup": "OVERRIDE",
|
|
2626
|
+
"name": "project-id",
|
|
2627
|
+
"hasDynamicHelp": false,
|
|
2628
|
+
"helpValue": "<id>",
|
|
2629
|
+
"multiple": false,
|
|
2630
|
+
"type": "option"
|
|
2631
|
+
},
|
|
2632
|
+
"api": {
|
|
2633
|
+
"description": "Undeploy API with this ID",
|
|
2634
|
+
"exclusive": [
|
|
2635
|
+
"project-id",
|
|
2636
|
+
"project"
|
|
2637
|
+
],
|
|
2638
|
+
"name": "api",
|
|
2639
|
+
"required": false,
|
|
2640
|
+
"hasDynamicHelp": false,
|
|
2641
|
+
"multiple": false,
|
|
2642
|
+
"type": "option"
|
|
2643
|
+
},
|
|
2644
|
+
"dataset": {
|
|
2645
|
+
"char": "d",
|
|
2646
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
2647
|
+
"helpGroup": "OVERRIDE",
|
|
2648
|
+
"name": "dataset",
|
|
2649
|
+
"hasDynamicHelp": false,
|
|
2650
|
+
"helpValue": "<name>",
|
|
2651
|
+
"multiple": false,
|
|
2652
|
+
"type": "option"
|
|
2653
|
+
},
|
|
2654
|
+
"force": {
|
|
2655
|
+
"description": "Skip confirmation prompt",
|
|
2656
|
+
"name": "force",
|
|
2657
|
+
"required": false,
|
|
2658
|
+
"allowNo": false,
|
|
2659
|
+
"type": "boolean"
|
|
2660
|
+
},
|
|
2661
|
+
"project": {
|
|
2662
|
+
"deprecated": {
|
|
2663
|
+
"to": "project-id"
|
|
2664
|
+
},
|
|
2665
|
+
"description": "Project ID to delete GraphQL API for",
|
|
2666
|
+
"hidden": true,
|
|
2667
|
+
"name": "project",
|
|
2668
|
+
"required": false,
|
|
2669
|
+
"hasDynamicHelp": false,
|
|
2670
|
+
"multiple": false,
|
|
2671
|
+
"type": "option"
|
|
2672
|
+
},
|
|
2673
|
+
"tag": {
|
|
2674
|
+
"description": "Tag to undeploy GraphQL API from",
|
|
2675
|
+
"name": "tag",
|
|
2676
|
+
"required": false,
|
|
2677
|
+
"default": "default",
|
|
2678
|
+
"hasDynamicHelp": false,
|
|
2679
|
+
"multiple": false,
|
|
2680
|
+
"type": "option"
|
|
2681
|
+
}
|
|
2682
|
+
},
|
|
2683
|
+
"hasDynamicHelp": false,
|
|
2684
|
+
"hiddenAliases": [],
|
|
2685
|
+
"id": "graphql:undeploy",
|
|
2686
|
+
"pluginAlias": "@sanity/cli",
|
|
2687
|
+
"pluginName": "@sanity/cli",
|
|
2688
|
+
"pluginType": "core",
|
|
2689
|
+
"strict": true,
|
|
2690
|
+
"isESM": true,
|
|
2691
|
+
"relativePath": [
|
|
2692
|
+
"dist",
|
|
2693
|
+
"commands",
|
|
2694
|
+
"graphql",
|
|
2695
|
+
"undeploy.js"
|
|
2696
|
+
]
|
|
2697
|
+
},
|
|
2698
|
+
"docs:browse": {
|
|
2699
|
+
"aliases": [],
|
|
2700
|
+
"args": {},
|
|
2701
|
+
"description": "Open Sanity docs in your browser",
|
|
2702
|
+
"flags": {},
|
|
2703
|
+
"hasDynamicHelp": false,
|
|
2704
|
+
"hiddenAliases": [],
|
|
2705
|
+
"id": "docs:browse",
|
|
2706
|
+
"pluginAlias": "@sanity/cli",
|
|
2707
|
+
"pluginName": "@sanity/cli",
|
|
2708
|
+
"pluginType": "core",
|
|
2709
|
+
"strict": true,
|
|
2710
|
+
"enableJsonFlag": false,
|
|
2711
|
+
"isESM": true,
|
|
2712
|
+
"relativePath": [
|
|
2713
|
+
"dist",
|
|
2714
|
+
"commands",
|
|
2715
|
+
"docs",
|
|
2716
|
+
"browse.js"
|
|
2717
|
+
]
|
|
2718
|
+
},
|
|
2719
|
+
"docs:read": {
|
|
2720
|
+
"aliases": [],
|
|
2721
|
+
"args": {
|
|
2722
|
+
"path": {
|
|
2723
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
2724
|
+
"name": "path",
|
|
2725
|
+
"required": true
|
|
2726
|
+
}
|
|
2727
|
+
},
|
|
2728
|
+
"description": "Read an article in terminal",
|
|
2729
|
+
"examples": [
|
|
2730
|
+
{
|
|
2731
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
2732
|
+
"description": "Read as markdown in terminal"
|
|
2733
|
+
},
|
|
2734
|
+
{
|
|
2735
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
2736
|
+
"description": "Read using full URL"
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
2740
|
+
"description": "Open in web browser"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
2744
|
+
"description": "Open using full URL in web browser"
|
|
2745
|
+
}
|
|
2746
|
+
],
|
|
2747
|
+
"flags": {
|
|
2748
|
+
"web": {
|
|
2749
|
+
"aliases": [
|
|
2750
|
+
"w"
|
|
2751
|
+
],
|
|
2752
|
+
"description": "Open in a web browser",
|
|
2753
|
+
"name": "web",
|
|
2754
|
+
"allowNo": false,
|
|
2755
|
+
"type": "boolean"
|
|
2756
|
+
}
|
|
2757
|
+
},
|
|
2758
|
+
"hasDynamicHelp": false,
|
|
2759
|
+
"hiddenAliases": [],
|
|
2760
|
+
"id": "docs:read",
|
|
2761
|
+
"pluginAlias": "@sanity/cli",
|
|
2762
|
+
"pluginName": "@sanity/cli",
|
|
2763
|
+
"pluginType": "core",
|
|
2764
|
+
"strict": true,
|
|
2765
|
+
"isESM": true,
|
|
2766
|
+
"relativePath": [
|
|
2767
|
+
"dist",
|
|
2768
|
+
"commands",
|
|
2769
|
+
"docs",
|
|
2770
|
+
"read.js"
|
|
2771
|
+
]
|
|
2772
|
+
},
|
|
2773
|
+
"docs:search": {
|
|
2774
|
+
"aliases": [],
|
|
2775
|
+
"args": {
|
|
2776
|
+
"query": {
|
|
2777
|
+
"description": "Search query for documentation",
|
|
2778
|
+
"name": "query",
|
|
2779
|
+
"required": true
|
|
2780
|
+
}
|
|
2781
|
+
},
|
|
2782
|
+
"description": "Search Sanity docs",
|
|
2783
|
+
"examples": [
|
|
2784
|
+
{
|
|
2785
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2786
|
+
"description": "Search for documentation about schemas"
|
|
2787
|
+
},
|
|
2788
|
+
{
|
|
2789
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
2790
|
+
"description": "Search with phrase"
|
|
2791
|
+
},
|
|
2792
|
+
{
|
|
2793
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2794
|
+
"description": "Limit search results"
|
|
2795
|
+
}
|
|
2796
|
+
],
|
|
2797
|
+
"flags": {
|
|
2798
|
+
"limit": {
|
|
2799
|
+
"description": "Maximum number of results to return",
|
|
2800
|
+
"name": "limit",
|
|
2801
|
+
"default": 10,
|
|
2802
|
+
"hasDynamicHelp": false,
|
|
2803
|
+
"multiple": false,
|
|
2804
|
+
"type": "option"
|
|
2805
|
+
}
|
|
2806
|
+
},
|
|
2807
|
+
"hasDynamicHelp": false,
|
|
2808
|
+
"hiddenAliases": [],
|
|
2809
|
+
"id": "docs:search",
|
|
2810
|
+
"pluginAlias": "@sanity/cli",
|
|
2811
|
+
"pluginName": "@sanity/cli",
|
|
2812
|
+
"pluginType": "core",
|
|
2813
|
+
"strict": true,
|
|
2814
|
+
"isESM": true,
|
|
2815
|
+
"relativePath": [
|
|
2816
|
+
"dist",
|
|
2817
|
+
"commands",
|
|
2818
|
+
"docs",
|
|
2819
|
+
"search.js"
|
|
2820
|
+
]
|
|
2821
|
+
},
|
|
2731
2822
|
"hooks:attempt": {
|
|
2732
2823
|
"aliases": [],
|
|
2733
2824
|
"args": {
|
|
@@ -2976,98 +3067,63 @@
|
|
|
2976
3067
|
"logs.js"
|
|
2977
3068
|
]
|
|
2978
3069
|
},
|
|
2979
|
-
"
|
|
3070
|
+
"cors:add": {
|
|
2980
3071
|
"aliases": [],
|
|
2981
|
-
"args": {
|
|
2982
|
-
|
|
3072
|
+
"args": {
|
|
3073
|
+
"origin": {
|
|
3074
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
3075
|
+
"name": "origin",
|
|
3076
|
+
"required": true
|
|
3077
|
+
}
|
|
3078
|
+
},
|
|
3079
|
+
"description": "Add a CORS origin to the project",
|
|
2983
3080
|
"examples": [
|
|
2984
3081
|
{
|
|
2985
3082
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2986
|
-
"description": "
|
|
3083
|
+
"description": "Interactively add a CORS origin"
|
|
2987
3084
|
},
|
|
2988
3085
|
{
|
|
2989
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2990
|
-
"description": "
|
|
3086
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
3087
|
+
"description": "Add a localhost origin without credentials"
|
|
2991
3088
|
},
|
|
2992
3089
|
{
|
|
2993
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2994
|
-
"description": "
|
|
3090
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
3091
|
+
"description": "Add a production origin with credentials allowed"
|
|
2995
3092
|
},
|
|
2996
3093
|
{
|
|
2997
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2998
|
-
"description": "
|
|
3094
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
3095
|
+
"description": "Add a CORS origin for a specific project"
|
|
2999
3096
|
}
|
|
3000
3097
|
],
|
|
3001
3098
|
"flags": {
|
|
3002
|
-
"
|
|
3003
|
-
"
|
|
3004
|
-
"
|
|
3005
|
-
"
|
|
3006
|
-
"
|
|
3007
|
-
"type": "option"
|
|
3008
|
-
},
|
|
3009
|
-
"dataset": {
|
|
3010
|
-
"char": "d",
|
|
3011
|
-
"description": "Deploy API for the given dataset",
|
|
3012
|
-
"name": "dataset",
|
|
3013
|
-
"hasDynamicHelp": false,
|
|
3014
|
-
"helpValue": "<name>",
|
|
3015
|
-
"multiple": false,
|
|
3016
|
-
"type": "option"
|
|
3017
|
-
},
|
|
3018
|
-
"dry-run": {
|
|
3019
|
-
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
3020
|
-
"name": "dry-run",
|
|
3021
|
-
"allowNo": false,
|
|
3022
|
-
"type": "boolean"
|
|
3023
|
-
},
|
|
3024
|
-
"force": {
|
|
3025
|
-
"description": "Deploy API without confirming breaking changes",
|
|
3026
|
-
"name": "force",
|
|
3027
|
-
"allowNo": false,
|
|
3028
|
-
"type": "boolean"
|
|
3029
|
-
},
|
|
3030
|
-
"generation": {
|
|
3031
|
-
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
3032
|
-
"name": "generation",
|
|
3099
|
+
"project-id": {
|
|
3100
|
+
"char": "p",
|
|
3101
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
3102
|
+
"helpGroup": "OVERRIDE",
|
|
3103
|
+
"name": "project-id",
|
|
3033
3104
|
"hasDynamicHelp": false,
|
|
3105
|
+
"helpValue": "<id>",
|
|
3034
3106
|
"multiple": false,
|
|
3035
|
-
"options": [
|
|
3036
|
-
"gen1",
|
|
3037
|
-
"gen2",
|
|
3038
|
-
"gen3"
|
|
3039
|
-
],
|
|
3040
3107
|
"type": "option"
|
|
3041
3108
|
},
|
|
3042
|
-
"
|
|
3043
|
-
"description": "
|
|
3044
|
-
"name": "
|
|
3045
|
-
"
|
|
3046
|
-
"type": "boolean"
|
|
3047
|
-
},
|
|
3048
|
-
"playground": {
|
|
3049
|
-
"description": "Enable GraphQL playground for easier debugging",
|
|
3050
|
-
"name": "playground",
|
|
3109
|
+
"credentials": {
|
|
3110
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
3111
|
+
"name": "credentials",
|
|
3112
|
+
"required": false,
|
|
3051
3113
|
"allowNo": true,
|
|
3052
3114
|
"type": "boolean"
|
|
3053
3115
|
},
|
|
3054
|
-
"
|
|
3055
|
-
"
|
|
3056
|
-
"
|
|
3057
|
-
"
|
|
3058
|
-
"multiple": false,
|
|
3059
|
-
"type": "option"
|
|
3060
|
-
},
|
|
3061
|
-
"with-union-cache": {
|
|
3062
|
-
"description": "Cache union types (faster for schemas with many self-references)",
|
|
3063
|
-
"name": "with-union-cache",
|
|
3116
|
+
"yes": {
|
|
3117
|
+
"char": "y",
|
|
3118
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
3119
|
+
"name": "yes",
|
|
3064
3120
|
"allowNo": false,
|
|
3065
3121
|
"type": "boolean"
|
|
3066
3122
|
}
|
|
3067
3123
|
},
|
|
3068
3124
|
"hasDynamicHelp": false,
|
|
3069
3125
|
"hiddenAliases": [],
|
|
3070
|
-
"id": "
|
|
3126
|
+
"id": "cors:add",
|
|
3071
3127
|
"pluginAlias": "@sanity/cli",
|
|
3072
3128
|
"pluginName": "@sanity/cli",
|
|
3073
3129
|
"pluginType": "core",
|
|
@@ -3076,28 +3132,38 @@
|
|
|
3076
3132
|
"relativePath": [
|
|
3077
3133
|
"dist",
|
|
3078
3134
|
"commands",
|
|
3079
|
-
"
|
|
3080
|
-
"
|
|
3135
|
+
"cors",
|
|
3136
|
+
"add.js"
|
|
3081
3137
|
]
|
|
3082
3138
|
},
|
|
3083
|
-
"
|
|
3139
|
+
"cors:delete": {
|
|
3084
3140
|
"aliases": [],
|
|
3085
|
-
"args": {
|
|
3086
|
-
|
|
3141
|
+
"args": {
|
|
3142
|
+
"origin": {
|
|
3143
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
3144
|
+
"name": "origin",
|
|
3145
|
+
"required": false
|
|
3146
|
+
}
|
|
3147
|
+
},
|
|
3148
|
+
"description": "Delete a CORS origin from the project",
|
|
3087
3149
|
"examples": [
|
|
3088
3150
|
{
|
|
3089
3151
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3090
|
-
"description": "
|
|
3152
|
+
"description": "Interactively select and delete a CORS origin"
|
|
3153
|
+
},
|
|
3154
|
+
{
|
|
3155
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
3156
|
+
"description": "Delete a specific CORS origin"
|
|
3091
3157
|
},
|
|
3092
3158
|
{
|
|
3093
3159
|
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3094
|
-
"description": "
|
|
3160
|
+
"description": "Delete a CORS origin from a specific project"
|
|
3095
3161
|
}
|
|
3096
3162
|
],
|
|
3097
3163
|
"flags": {
|
|
3098
3164
|
"project-id": {
|
|
3099
3165
|
"char": "p",
|
|
3100
|
-
"description": "Project ID to
|
|
3166
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
3101
3167
|
"helpGroup": "OVERRIDE",
|
|
3102
3168
|
"name": "project-id",
|
|
3103
3169
|
"hasDynamicHelp": false,
|
|
@@ -3108,7 +3174,7 @@
|
|
|
3108
3174
|
},
|
|
3109
3175
|
"hasDynamicHelp": false,
|
|
3110
3176
|
"hiddenAliases": [],
|
|
3111
|
-
"id": "
|
|
3177
|
+
"id": "cors:delete",
|
|
3112
3178
|
"pluginAlias": "@sanity/cli",
|
|
3113
3179
|
"pluginName": "@sanity/cli",
|
|
3114
3180
|
"pluginType": "core",
|
|
@@ -3117,105 +3183,39 @@
|
|
|
3117
3183
|
"relativePath": [
|
|
3118
3184
|
"dist",
|
|
3119
3185
|
"commands",
|
|
3120
|
-
"
|
|
3121
|
-
"
|
|
3186
|
+
"cors",
|
|
3187
|
+
"delete.js"
|
|
3122
3188
|
]
|
|
3123
3189
|
},
|
|
3124
|
-
"
|
|
3190
|
+
"cors:list": {
|
|
3125
3191
|
"aliases": [],
|
|
3126
3192
|
"args": {},
|
|
3127
|
-
"description": "
|
|
3193
|
+
"description": "List CORS origins for the project",
|
|
3128
3194
|
"examples": [
|
|
3129
3195
|
{
|
|
3130
3196
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3131
|
-
"description": "
|
|
3132
|
-
},
|
|
3133
|
-
{
|
|
3134
|
-
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
3135
|
-
"description": "Undeploy API with ID \"ios\""
|
|
3136
|
-
},
|
|
3137
|
-
{
|
|
3138
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
3139
|
-
"description": "Undeploy GraphQL API for staging dataset"
|
|
3140
|
-
},
|
|
3141
|
-
{
|
|
3142
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
3143
|
-
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
3144
|
-
},
|
|
3145
|
-
{
|
|
3146
|
-
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
3147
|
-
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
3197
|
+
"description": "List CORS origins for the project"
|
|
3148
3198
|
},
|
|
3149
3199
|
{
|
|
3150
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123
|
|
3151
|
-
"description": "
|
|
3200
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
3201
|
+
"description": "List CORS origins for a specific project"
|
|
3152
3202
|
}
|
|
3153
3203
|
],
|
|
3154
3204
|
"flags": {
|
|
3155
3205
|
"project-id": {
|
|
3156
3206
|
"char": "p",
|
|
3157
|
-
"description": "Project ID to
|
|
3207
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
3158
3208
|
"helpGroup": "OVERRIDE",
|
|
3159
3209
|
"name": "project-id",
|
|
3160
3210
|
"hasDynamicHelp": false,
|
|
3161
3211
|
"helpValue": "<id>",
|
|
3162
3212
|
"multiple": false,
|
|
3163
3213
|
"type": "option"
|
|
3164
|
-
},
|
|
3165
|
-
"api": {
|
|
3166
|
-
"description": "Undeploy API with this ID",
|
|
3167
|
-
"exclusive": [
|
|
3168
|
-
"project-id",
|
|
3169
|
-
"project"
|
|
3170
|
-
],
|
|
3171
|
-
"name": "api",
|
|
3172
|
-
"required": false,
|
|
3173
|
-
"hasDynamicHelp": false,
|
|
3174
|
-
"multiple": false,
|
|
3175
|
-
"type": "option"
|
|
3176
|
-
},
|
|
3177
|
-
"dataset": {
|
|
3178
|
-
"char": "d",
|
|
3179
|
-
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
3180
|
-
"helpGroup": "OVERRIDE",
|
|
3181
|
-
"name": "dataset",
|
|
3182
|
-
"hasDynamicHelp": false,
|
|
3183
|
-
"helpValue": "<name>",
|
|
3184
|
-
"multiple": false,
|
|
3185
|
-
"type": "option"
|
|
3186
|
-
},
|
|
3187
|
-
"force": {
|
|
3188
|
-
"description": "Skip confirmation prompt",
|
|
3189
|
-
"name": "force",
|
|
3190
|
-
"required": false,
|
|
3191
|
-
"allowNo": false,
|
|
3192
|
-
"type": "boolean"
|
|
3193
|
-
},
|
|
3194
|
-
"project": {
|
|
3195
|
-
"deprecated": {
|
|
3196
|
-
"to": "project-id"
|
|
3197
|
-
},
|
|
3198
|
-
"description": "Project ID to delete GraphQL API for",
|
|
3199
|
-
"hidden": true,
|
|
3200
|
-
"name": "project",
|
|
3201
|
-
"required": false,
|
|
3202
|
-
"hasDynamicHelp": false,
|
|
3203
|
-
"multiple": false,
|
|
3204
|
-
"type": "option"
|
|
3205
|
-
},
|
|
3206
|
-
"tag": {
|
|
3207
|
-
"description": "Tag to undeploy GraphQL API from",
|
|
3208
|
-
"name": "tag",
|
|
3209
|
-
"required": false,
|
|
3210
|
-
"default": "default",
|
|
3211
|
-
"hasDynamicHelp": false,
|
|
3212
|
-
"multiple": false,
|
|
3213
|
-
"type": "option"
|
|
3214
3214
|
}
|
|
3215
3215
|
},
|
|
3216
3216
|
"hasDynamicHelp": false,
|
|
3217
3217
|
"hiddenAliases": [],
|
|
3218
|
-
"id": "
|
|
3218
|
+
"id": "cors:list",
|
|
3219
3219
|
"pluginAlias": "@sanity/cli",
|
|
3220
3220
|
"pluginName": "@sanity/cli",
|
|
3221
3221
|
"pluginType": "core",
|
|
@@ -3224,8 +3224,8 @@
|
|
|
3224
3224
|
"relativePath": [
|
|
3225
3225
|
"dist",
|
|
3226
3226
|
"commands",
|
|
3227
|
-
"
|
|
3228
|
-
"
|
|
3227
|
+
"cors",
|
|
3228
|
+
"list.js"
|
|
3229
3229
|
]
|
|
3230
3230
|
},
|
|
3231
3231
|
"manifest:extract": {
|
|
@@ -4670,32 +4670,6 @@
|
|
|
4670
4670
|
"validate.js"
|
|
4671
4671
|
]
|
|
4672
4672
|
},
|
|
4673
|
-
"skills:install": {
|
|
4674
|
-
"aliases": [],
|
|
4675
|
-
"args": {},
|
|
4676
|
-
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
4677
|
-
"examples": [
|
|
4678
|
-
{
|
|
4679
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4680
|
-
"description": "Install Sanity agent skills for detected AI editors"
|
|
4681
|
-
}
|
|
4682
|
-
],
|
|
4683
|
-
"flags": {},
|
|
4684
|
-
"hasDynamicHelp": false,
|
|
4685
|
-
"hiddenAliases": [],
|
|
4686
|
-
"id": "skills:install",
|
|
4687
|
-
"pluginAlias": "@sanity/cli",
|
|
4688
|
-
"pluginName": "@sanity/cli",
|
|
4689
|
-
"pluginType": "core",
|
|
4690
|
-
"strict": true,
|
|
4691
|
-
"isESM": true,
|
|
4692
|
-
"relativePath": [
|
|
4693
|
-
"dist",
|
|
4694
|
-
"commands",
|
|
4695
|
-
"skills",
|
|
4696
|
-
"install.js"
|
|
4697
|
-
]
|
|
4698
|
-
},
|
|
4699
4673
|
"telemetry:disable": {
|
|
4700
4674
|
"aliases": [],
|
|
4701
4675
|
"args": {},
|
|
@@ -4978,6 +4952,32 @@
|
|
|
4978
4952
|
"list.js"
|
|
4979
4953
|
]
|
|
4980
4954
|
},
|
|
4955
|
+
"skills:install": {
|
|
4956
|
+
"aliases": [],
|
|
4957
|
+
"args": {},
|
|
4958
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
4959
|
+
"examples": [
|
|
4960
|
+
{
|
|
4961
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4962
|
+
"description": "Install Sanity agent skills for detected AI editors"
|
|
4963
|
+
}
|
|
4964
|
+
],
|
|
4965
|
+
"flags": {},
|
|
4966
|
+
"hasDynamicHelp": false,
|
|
4967
|
+
"hiddenAliases": [],
|
|
4968
|
+
"id": "skills:install",
|
|
4969
|
+
"pluginAlias": "@sanity/cli",
|
|
4970
|
+
"pluginName": "@sanity/cli",
|
|
4971
|
+
"pluginType": "core",
|
|
4972
|
+
"strict": true,
|
|
4973
|
+
"isESM": true,
|
|
4974
|
+
"relativePath": [
|
|
4975
|
+
"dist",
|
|
4976
|
+
"commands",
|
|
4977
|
+
"skills",
|
|
4978
|
+
"install.js"
|
|
4979
|
+
]
|
|
4980
|
+
},
|
|
4981
4981
|
"users:invite": {
|
|
4982
4982
|
"aliases": [],
|
|
4983
4983
|
"args": {
|
|
@@ -5649,5 +5649,5 @@
|
|
|
5649
5649
|
]
|
|
5650
5650
|
}
|
|
5651
5651
|
},
|
|
5652
|
-
"version": "7.12.
|
|
5652
|
+
"version": "7.12.1"
|
|
5653
5653
|
}
|