@sanity/cli 7.12.1 → 7.14.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.
Files changed (63) hide show
  1. package/README.md +88 -0
  2. package/dist/actions/api/constants.js +13 -0
  3. package/dist/actions/api/constants.js.map +1 -0
  4. package/dist/actions/api/distillApiRoutes.js +106 -0
  5. package/dist/actions/api/distillApiRoutes.js.map +1 -0
  6. package/dist/actions/api/errors.js +18 -0
  7. package/dist/actions/api/errors.js.map +1 -0
  8. package/dist/actions/api/parseFields.js +183 -0
  9. package/dist/actions/api/parseFields.js.map +1 -0
  10. package/dist/actions/api/resolveEndpoint.js +159 -0
  11. package/dist/actions/api/resolveEndpoint.js.map +1 -0
  12. package/dist/actions/api/types.js +10 -0
  13. package/dist/actions/api/types.js.map +1 -0
  14. package/dist/actions/auth/getProviderName.js +13 -0
  15. package/dist/actions/auth/getProviderName.js.map +1 -1
  16. package/dist/actions/build/buildApp.js +3 -1
  17. package/dist/actions/build/buildApp.js.map +1 -1
  18. package/dist/actions/build/buildStudio.js +104 -13
  19. package/dist/actions/build/buildStudio.js.map +1 -1
  20. package/dist/actions/build/eventListenerFactory.js +70 -0
  21. package/dist/actions/build/eventListenerFactory.js.map +1 -0
  22. package/dist/actions/debug/types.js.map +1 -1
  23. package/dist/actions/deploy/deployApp.js +1 -0
  24. package/dist/actions/deploy/deployApp.js.map +1 -1
  25. package/dist/actions/deploy/deployChecks.js +25 -4
  26. package/dist/actions/deploy/deployChecks.js.map +1 -1
  27. package/dist/actions/deploy/resolveDeployTarget.js +23 -4
  28. package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
  29. package/dist/actions/dev/servers/startStudioDevServer.js +5 -1
  30. package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
  31. package/dist/actions/init/initAction.js +3 -3
  32. package/dist/actions/init/initAction.js.map +1 -1
  33. package/dist/commands/api.js +294 -0
  34. package/dist/commands/api.js.map +1 -0
  35. package/dist/commands/cors/add.js +13 -7
  36. package/dist/commands/cors/add.js.map +1 -1
  37. package/dist/commands/datasets/copy.js +6 -3
  38. package/dist/commands/datasets/copy.js.map +1 -1
  39. package/dist/commands/debug.js +1 -1
  40. package/dist/commands/debug.js.map +1 -1
  41. package/dist/exports/invokeSanityCli/commandPolicies/index.js +6 -0
  42. package/dist/exports/invokeSanityCli/commandPolicies/index.js.map +1 -0
  43. package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js +167 -0
  44. package/dist/exports/invokeSanityCli/commandPolicies/mcpPolicy.js.map +1 -0
  45. package/dist/exports/invokeSanityCli/commandPolicies/policy.js +46 -0
  46. package/dist/exports/invokeSanityCli/commandPolicies/policy.js.map +1 -0
  47. package/dist/exports/invokeSanityCli/help.js +146 -0
  48. package/dist/exports/invokeSanityCli/help.js.map +1 -0
  49. package/dist/exports/invokeSanityCli/index.d.ts +60 -0
  50. package/dist/exports/invokeSanityCli/index.js +177 -0
  51. package/dist/exports/invokeSanityCli/index.js.map +1 -0
  52. package/dist/generated/apiRoutes.js +401 -0
  53. package/dist/generated/apiRoutes.js.map +1 -0
  54. package/dist/server/devServer.js +16 -2
  55. package/dist/server/devServer.js.map +1 -1
  56. package/dist/services/api.js +116 -0
  57. package/dist/services/api.js.map +1 -0
  58. package/dist/util/getProjectDefaults.js +4 -1
  59. package/dist/util/getProjectDefaults.js.map +1 -1
  60. package/dist/util/packageManager/preferredPm.js +45 -6
  61. package/dist/util/packageManager/preferredPm.js.map +1 -1
  62. package/oclif.manifest.json +709 -528
  63. package/package.json +14 -7
@@ -1,5 +1,186 @@
1
1
  {
2
2
  "commands": {
3
+ "api": {
4
+ "aliases": [],
5
+ "args": {
6
+ "endpoint": {
7
+ "description": "API path (eg \"projects\" or \"data/query/{dataset}\"), optionally with placeholders, or a full https://*.api.sanity.io URL",
8
+ "name": "endpoint",
9
+ "required": true
10
+ }
11
+ },
12
+ "description": "Make an authenticated HTTP request to a Sanity API\n\nThe endpoint argument is an API path as documented in the published OpenAPI\nspecifications - list them with \"sanity openapi list\" and inspect one with\n\"sanity openapi get <slug>\". Paths can be copied verbatim from the specs:\n{projectId} and {dataset} placeholders are filled in from flags or the CLI\nconfiguration, and the API host (api.sanity.io or <projectId>.api.sanity.io)\nis chosen based on the specs' routing information.\n\nThe default request method is GET, or POST when fields or --input are\nprovided. For GET/HEAD requests, fields are sent as query parameters;\notherwise they are combined into a JSON request body sent with\n\"Content-Type: application/json\". Raw --input bodies are sent without a\ndefault Content-Type - provide one with -H when the API requires it. The\nresponse body is written to stdout.\n\nRequests are authenticated with the token from \"sanity login\". To use a\nspecific token instead - for example in CI or when the CLI is not logged in\n- pass --token or set the SANITY_AUTH_TOKEN environment variable. Pass\n--anonymous to send no token at all.",
13
+ "examples": [
14
+ {
15
+ "command": "<%= config.bin %> <%= command.id %> users/me",
16
+ "description": "Get the current user"
17
+ },
18
+ {
19
+ "command": "<%= config.bin %> <%= command.id %> projects/{projectId}",
20
+ "description": "Get the current project (placeholder filled from CLI config)"
21
+ },
22
+ {
23
+ "command": "<%= config.bin %> <%= command.id %> 'data/query/{dataset}' -f query='*[_type == \"movie\"][0..2]'",
24
+ "description": "Run a GROQ query against the project host"
25
+ },
26
+ {
27
+ "command": "<%= config.bin %> <%= command.id %> projects/{projectId} -X PATCH -F displayName=\"My project\"",
28
+ "description": "Send a JSON body built from typed fields"
29
+ },
30
+ {
31
+ "command": "echo '{\"mutations\": []}' | <%= config.bin %> <%= command.id %> 'data/mutate/{dataset}' --input - -H 'Content-Type: application/json'",
32
+ "description": "Send a raw request body from stdin"
33
+ },
34
+ {
35
+ "command": "<%= config.bin %> <%= command.id %> jobs/123 --include --api-version v2025-02-19",
36
+ "description": "Include the response status and headers, pinning the API version"
37
+ },
38
+ {
39
+ "command": "SANITY_AUTH_TOKEN=<token> <%= config.bin %> <%= command.id %> users/me",
40
+ "description": "Authenticate with a specific token instead of the logged-in session"
41
+ }
42
+ ],
43
+ "flags": {
44
+ "project-id": {
45
+ "char": "p",
46
+ "description": "Project ID for {projectId} placeholders and project-hosted APIs (overrides CLI configuration)",
47
+ "helpGroup": "OVERRIDE",
48
+ "name": "project-id",
49
+ "hasDynamicHelp": false,
50
+ "helpValue": "<id>",
51
+ "multiple": false,
52
+ "type": "option"
53
+ },
54
+ "dataset": {
55
+ "char": "d",
56
+ "description": "Dataset for {dataset} placeholders (overrides CLI configuration)",
57
+ "helpGroup": "OVERRIDE",
58
+ "name": "dataset",
59
+ "hasDynamicHelp": false,
60
+ "helpValue": "<name>",
61
+ "multiple": false,
62
+ "type": "option"
63
+ },
64
+ "anonymous": {
65
+ "description": "Send the request without an authorization token",
66
+ "name": "anonymous",
67
+ "allowNo": false,
68
+ "type": "boolean"
69
+ },
70
+ "api-version": {
71
+ "description": "API version to use (eg v2025-02-19). Defaults to a version embedded in the endpoint path, or the version from the matching OpenAPI spec",
72
+ "name": "api-version",
73
+ "hasDynamicHelp": false,
74
+ "helpValue": "<version>",
75
+ "multiple": false,
76
+ "type": "option"
77
+ },
78
+ "field": {
79
+ "char": "F",
80
+ "description": "Add a typed parameter (key=value): true/false/null and numbers are converted, @file reads the value from a file, @- from stdin",
81
+ "name": "field",
82
+ "hasDynamicHelp": false,
83
+ "helpValue": "<key=value>",
84
+ "multiple": true,
85
+ "type": "option"
86
+ },
87
+ "global": {
88
+ "description": "Force the request to the global API host (api.sanity.io)",
89
+ "exclusive": [
90
+ "project-hosted"
91
+ ],
92
+ "name": "global",
93
+ "allowNo": false,
94
+ "type": "boolean"
95
+ },
96
+ "header": {
97
+ "char": "H",
98
+ "description": "Add an HTTP request header (key: value)",
99
+ "name": "header",
100
+ "hasDynamicHelp": false,
101
+ "helpValue": "<key:value>",
102
+ "multiple": true,
103
+ "type": "option"
104
+ },
105
+ "include": {
106
+ "char": "i",
107
+ "description": "Include the HTTP response status and headers in the output",
108
+ "name": "include",
109
+ "allowNo": false,
110
+ "type": "boolean"
111
+ },
112
+ "input": {
113
+ "description": "Read the raw request body from a file (use \"-\" for stdin). Sent without a default Content-Type - provide one with -H when the API requires it",
114
+ "exclusive": [
115
+ "field",
116
+ "raw-field"
117
+ ],
118
+ "name": "input",
119
+ "hasDynamicHelp": false,
120
+ "helpValue": "<file>",
121
+ "multiple": false,
122
+ "type": "option"
123
+ },
124
+ "method": {
125
+ "char": "X",
126
+ "description": "HTTP method to use (default GET, or POST when fields or --input are provided)",
127
+ "name": "method",
128
+ "hasDynamicHelp": false,
129
+ "helpValue": "<method>",
130
+ "multiple": false,
131
+ "type": "option"
132
+ },
133
+ "pretty": {
134
+ "description": "Colorize JSON output",
135
+ "name": "pretty",
136
+ "allowNo": false,
137
+ "type": "boolean"
138
+ },
139
+ "project-hosted": {
140
+ "description": "Force the request to the project API host (<projectId>.api.sanity.io)",
141
+ "exclusive": [
142
+ "global"
143
+ ],
144
+ "name": "project-hosted",
145
+ "allowNo": false,
146
+ "type": "boolean"
147
+ },
148
+ "raw-field": {
149
+ "char": "f",
150
+ "description": "Add a string parameter (key=value)",
151
+ "name": "raw-field",
152
+ "hasDynamicHelp": false,
153
+ "helpValue": "<key=value>",
154
+ "multiple": true,
155
+ "type": "option"
156
+ },
157
+ "token": {
158
+ "char": "t",
159
+ "description": "API token to authenticate with, instead of the logged-in user token",
160
+ "exclusive": [
161
+ "anonymous"
162
+ ],
163
+ "name": "token",
164
+ "hasDynamicHelp": false,
165
+ "helpValue": "<token>",
166
+ "multiple": false,
167
+ "type": "option"
168
+ }
169
+ },
170
+ "hasDynamicHelp": false,
171
+ "hiddenAliases": [],
172
+ "id": "api",
173
+ "pluginAlias": "@sanity/cli",
174
+ "pluginName": "@sanity/cli",
175
+ "pluginType": "core",
176
+ "strict": true,
177
+ "isESM": true,
178
+ "relativePath": [
179
+ "dist",
180
+ "commands",
181
+ "api.js"
182
+ ]
183
+ },
3
184
  "build": {
4
185
  "aliases": [],
5
186
  "args": {
@@ -1346,63 +1527,38 @@
1346
1527
  "list.js"
1347
1528
  ]
1348
1529
  },
1349
- "datasets:copy": {
1530
+ "cors:add": {
1350
1531
  "aliases": [],
1351
1532
  "args": {
1352
- "source": {
1353
- "description": "Name of the dataset to copy from",
1354
- "name": "source",
1355
- "required": false
1356
- },
1357
- "target": {
1358
- "description": "Name of the dataset to copy to",
1359
- "name": "target",
1360
- "required": false
1533
+ "origin": {
1534
+ "description": "Origin to allow (e.g., https://example.com)",
1535
+ "name": "origin",
1536
+ "required": true
1361
1537
  }
1362
1538
  },
1363
- "description": "Copy a dataset or manage copy jobs",
1539
+ "description": "Add a CORS origin to the project",
1364
1540
  "examples": [
1365
1541
  {
1366
1542
  "command": "<%= config.bin %> <%= command.id %>",
1367
- "description": "Interactively copy a dataset"
1368
- },
1369
- {
1370
- "command": "<%= config.bin %> <%= command.id %> source-dataset",
1371
- "description": "Copy from source-dataset (prompts for target)"
1372
- },
1373
- {
1374
- "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
1375
- "description": "Copy from source-dataset to target-dataset"
1376
- },
1377
- {
1378
- "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
1379
- "description": "Copy without preserving document history (faster for large datasets)"
1380
- },
1381
- {
1382
- "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
1383
- "description": "Copy without content release documents"
1384
- },
1385
- {
1386
- "command": "<%= config.bin %> <%= command.id %> --detach source target",
1387
- "description": "Start copy job without waiting for completion"
1543
+ "description": "Interactively add a CORS origin"
1388
1544
  },
1389
1545
  {
1390
- "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
1391
- "description": "Attach to a running copy job to follow progress"
1546
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1547
+ "description": "Add a localhost origin without credentials"
1392
1548
  },
1393
1549
  {
1394
- "command": "<%= config.bin %> <%= command.id %> --list",
1395
- "description": "List all dataset copy jobs"
1550
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1551
+ "description": "Add a production origin with credentials allowed"
1396
1552
  },
1397
1553
  {
1398
- "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
1399
- "description": "List copy jobs with pagination"
1554
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1555
+ "description": "Add a CORS origin for a specific project"
1400
1556
  }
1401
1557
  ],
1402
1558
  "flags": {
1403
1559
  "project-id": {
1404
1560
  "char": "p",
1405
- "description": "Project ID to copy dataset in (overrides CLI configuration)",
1561
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1406
1562
  "helpGroup": "OVERRIDE",
1407
1563
  "name": "project-id",
1408
1564
  "hasDynamicHelp": false,
@@ -1410,92 +1566,24 @@
1410
1566
  "multiple": false,
1411
1567
  "type": "option"
1412
1568
  },
1413
- "attach": {
1414
- "description": "Attach to the running copy process to show progress",
1415
- "exclusive": [
1416
- "list",
1417
- "detach",
1418
- "skip-history"
1419
- ],
1420
- "name": "attach",
1421
- "required": false,
1422
- "hasDynamicHelp": false,
1423
- "multiple": false,
1424
- "type": "option"
1425
- },
1426
- "detach": {
1427
- "description": "Start the copy without waiting for it to finish",
1428
- "exclusive": [
1429
- "list",
1430
- "attach"
1431
- ],
1432
- "name": "detach",
1433
- "required": false,
1434
- "allowNo": false,
1435
- "type": "boolean"
1436
- },
1437
- "limit": {
1438
- "dependsOn": [
1439
- "list"
1440
- ],
1441
- "description": "Maximum number of jobs returned (default 10, max 1000)",
1442
- "name": "limit",
1443
- "required": false,
1444
- "hasDynamicHelp": false,
1445
- "multiple": false,
1446
- "type": "option"
1447
- },
1448
- "list": {
1449
- "description": "Lists all dataset copy jobs",
1450
- "exclusive": [
1451
- "attach",
1452
- "detach",
1453
- "skip-history"
1454
- ],
1455
- "name": "list",
1456
- "required": false,
1457
- "allowNo": false,
1458
- "type": "boolean"
1459
- },
1460
- "offset": {
1461
- "dependsOn": [
1462
- "list"
1463
- ],
1464
- "description": "Start position in the list of jobs (default 0)",
1465
- "name": "offset",
1466
- "required": false,
1467
- "hasDynamicHelp": false,
1468
- "multiple": false,
1469
- "type": "option"
1470
- },
1471
- "skip-content-releases": {
1472
- "description": "Don't copy content release documents to the target dataset",
1473
- "exclusive": [
1474
- "list",
1475
- "attach"
1476
- ],
1477
- "name": "skip-content-releases",
1569
+ "credentials": {
1570
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1571
+ "name": "credentials",
1478
1572
  "required": false,
1479
- "allowNo": false,
1573
+ "allowNo": true,
1480
1574
  "type": "boolean"
1481
1575
  },
1482
- "skip-history": {
1483
- "description": "Don't preserve document history on copy",
1484
- "exclusive": [
1485
- "list",
1486
- "attach"
1487
- ],
1488
- "name": "skip-history",
1489
- "required": false,
1576
+ "yes": {
1577
+ "char": "y",
1578
+ "description": "Confirm risky wildcard origins without prompting",
1579
+ "name": "yes",
1490
1580
  "allowNo": false,
1491
1581
  "type": "boolean"
1492
1582
  }
1493
1583
  },
1494
1584
  "hasDynamicHelp": false,
1495
- "hiddenAliases": [
1496
- "dataset:copy"
1497
- ],
1498
- "id": "datasets:copy",
1585
+ "hiddenAliases": [],
1586
+ "id": "cors:add",
1499
1587
  "pluginAlias": "@sanity/cli",
1500
1588
  "pluginName": "@sanity/cli",
1501
1589
  "pluginType": "core",
@@ -1504,7 +1592,261 @@
1504
1592
  "relativePath": [
1505
1593
  "dist",
1506
1594
  "commands",
1507
- "datasets",
1595
+ "cors",
1596
+ "add.js"
1597
+ ]
1598
+ },
1599
+ "cors:delete": {
1600
+ "aliases": [],
1601
+ "args": {
1602
+ "origin": {
1603
+ "description": "Origin to delete (will prompt if not provided)",
1604
+ "name": "origin",
1605
+ "required": false
1606
+ }
1607
+ },
1608
+ "description": "Delete a CORS origin from the project",
1609
+ "examples": [
1610
+ {
1611
+ "command": "<%= config.bin %> <%= command.id %>",
1612
+ "description": "Interactively select and delete a CORS origin"
1613
+ },
1614
+ {
1615
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1616
+ "description": "Delete a specific CORS origin"
1617
+ },
1618
+ {
1619
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1620
+ "description": "Delete a CORS origin from a specific project"
1621
+ }
1622
+ ],
1623
+ "flags": {
1624
+ "project-id": {
1625
+ "char": "p",
1626
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1627
+ "helpGroup": "OVERRIDE",
1628
+ "name": "project-id",
1629
+ "hasDynamicHelp": false,
1630
+ "helpValue": "<id>",
1631
+ "multiple": false,
1632
+ "type": "option"
1633
+ }
1634
+ },
1635
+ "hasDynamicHelp": false,
1636
+ "hiddenAliases": [],
1637
+ "id": "cors:delete",
1638
+ "pluginAlias": "@sanity/cli",
1639
+ "pluginName": "@sanity/cli",
1640
+ "pluginType": "core",
1641
+ "strict": true,
1642
+ "isESM": true,
1643
+ "relativePath": [
1644
+ "dist",
1645
+ "commands",
1646
+ "cors",
1647
+ "delete.js"
1648
+ ]
1649
+ },
1650
+ "cors:list": {
1651
+ "aliases": [],
1652
+ "args": {},
1653
+ "description": "List CORS origins for the project",
1654
+ "examples": [
1655
+ {
1656
+ "command": "<%= config.bin %> <%= command.id %>",
1657
+ "description": "List CORS origins for the project"
1658
+ },
1659
+ {
1660
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1661
+ "description": "List CORS origins for a specific project"
1662
+ }
1663
+ ],
1664
+ "flags": {
1665
+ "project-id": {
1666
+ "char": "p",
1667
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1668
+ "helpGroup": "OVERRIDE",
1669
+ "name": "project-id",
1670
+ "hasDynamicHelp": false,
1671
+ "helpValue": "<id>",
1672
+ "multiple": false,
1673
+ "type": "option"
1674
+ }
1675
+ },
1676
+ "hasDynamicHelp": false,
1677
+ "hiddenAliases": [],
1678
+ "id": "cors:list",
1679
+ "pluginAlias": "@sanity/cli",
1680
+ "pluginName": "@sanity/cli",
1681
+ "pluginType": "core",
1682
+ "strict": true,
1683
+ "isESM": true,
1684
+ "relativePath": [
1685
+ "dist",
1686
+ "commands",
1687
+ "cors",
1688
+ "list.js"
1689
+ ]
1690
+ },
1691
+ "datasets:copy": {
1692
+ "aliases": [],
1693
+ "args": {
1694
+ "source": {
1695
+ "description": "Name of the dataset to copy from",
1696
+ "name": "source",
1697
+ "required": false
1698
+ },
1699
+ "target": {
1700
+ "description": "Name of the dataset to copy to",
1701
+ "name": "target",
1702
+ "required": false
1703
+ }
1704
+ },
1705
+ "description": "Copy a dataset or manage copy jobs",
1706
+ "examples": [
1707
+ {
1708
+ "command": "<%= config.bin %> <%= command.id %>",
1709
+ "description": "Interactively copy a dataset"
1710
+ },
1711
+ {
1712
+ "command": "<%= config.bin %> <%= command.id %> source-dataset",
1713
+ "description": "Copy from source-dataset (prompts for target)"
1714
+ },
1715
+ {
1716
+ "command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
1717
+ "description": "Copy from source-dataset to target-dataset"
1718
+ },
1719
+ {
1720
+ "command": "<%= config.bin %> <%= command.id %> --skip-history source target",
1721
+ "description": "Copy without preserving document history (faster for large datasets)"
1722
+ },
1723
+ {
1724
+ "command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
1725
+ "description": "Copy without content release documents"
1726
+ },
1727
+ {
1728
+ "command": "<%= config.bin %> <%= command.id %> --detach source target",
1729
+ "description": "Start copy job without waiting for completion"
1730
+ },
1731
+ {
1732
+ "command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
1733
+ "description": "Attach to a running copy job to follow progress"
1734
+ },
1735
+ {
1736
+ "command": "<%= config.bin %> <%= command.id %> --list",
1737
+ "description": "List all dataset copy jobs"
1738
+ },
1739
+ {
1740
+ "command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
1741
+ "description": "List copy jobs with pagination"
1742
+ }
1743
+ ],
1744
+ "flags": {
1745
+ "project-id": {
1746
+ "char": "p",
1747
+ "description": "Project ID to copy dataset in (overrides CLI configuration)",
1748
+ "helpGroup": "OVERRIDE",
1749
+ "name": "project-id",
1750
+ "hasDynamicHelp": false,
1751
+ "helpValue": "<id>",
1752
+ "multiple": false,
1753
+ "type": "option"
1754
+ },
1755
+ "attach": {
1756
+ "description": "Attach to the running copy process to show progress",
1757
+ "exclusive": [
1758
+ "list",
1759
+ "detach",
1760
+ "skip-history"
1761
+ ],
1762
+ "name": "attach",
1763
+ "required": false,
1764
+ "hasDynamicHelp": false,
1765
+ "multiple": false,
1766
+ "type": "option"
1767
+ },
1768
+ "detach": {
1769
+ "description": "Start the copy without waiting for it to finish",
1770
+ "exclusive": [
1771
+ "list",
1772
+ "attach"
1773
+ ],
1774
+ "name": "detach",
1775
+ "required": false,
1776
+ "allowNo": false,
1777
+ "type": "boolean"
1778
+ },
1779
+ "limit": {
1780
+ "dependsOn": [
1781
+ "list"
1782
+ ],
1783
+ "description": "Maximum number of jobs returned (default 10, max 1000)",
1784
+ "name": "limit",
1785
+ "required": false,
1786
+ "hasDynamicHelp": false,
1787
+ "multiple": false,
1788
+ "type": "option"
1789
+ },
1790
+ "list": {
1791
+ "description": "Lists all dataset copy jobs",
1792
+ "exclusive": [
1793
+ "attach",
1794
+ "detach",
1795
+ "skip-history"
1796
+ ],
1797
+ "name": "list",
1798
+ "required": false,
1799
+ "allowNo": false,
1800
+ "type": "boolean"
1801
+ },
1802
+ "offset": {
1803
+ "dependsOn": [
1804
+ "list"
1805
+ ],
1806
+ "description": "Start position in the list of jobs (default 0)",
1807
+ "name": "offset",
1808
+ "required": false,
1809
+ "hasDynamicHelp": false,
1810
+ "multiple": false,
1811
+ "type": "option"
1812
+ },
1813
+ "skip-content-releases": {
1814
+ "description": "Don't copy content release documents to the target dataset",
1815
+ "exclusive": [
1816
+ "list",
1817
+ "attach"
1818
+ ],
1819
+ "name": "skip-content-releases",
1820
+ "required": false,
1821
+ "allowNo": false,
1822
+ "type": "boolean"
1823
+ },
1824
+ "skip-history": {
1825
+ "description": "Don't preserve document history on copy",
1826
+ "exclusive": [
1827
+ "list",
1828
+ "attach"
1829
+ ],
1830
+ "name": "skip-history",
1831
+ "required": false,
1832
+ "allowNo": false,
1833
+ "type": "boolean"
1834
+ }
1835
+ },
1836
+ "hasDynamicHelp": false,
1837
+ "hiddenAliases": [
1838
+ "dataset:copy"
1839
+ ],
1840
+ "id": "datasets:copy",
1841
+ "pluginAlias": "@sanity/cli",
1842
+ "pluginName": "@sanity/cli",
1843
+ "pluginType": "core",
1844
+ "strict": true,
1845
+ "isESM": true,
1846
+ "relativePath": [
1847
+ "dist",
1848
+ "commands",
1849
+ "datasets",
1508
1850
  "copy.js"
1509
1851
  ]
1510
1852
  },
@@ -1856,64 +2198,182 @@
1856
2198
  "allowNo": false,
1857
2199
  "type": "boolean"
1858
2200
  },
1859
- "project-id": {
1860
- "char": "p",
1861
- "description": "Project ID to import to (overrides CLI configuration)",
1862
- "helpGroup": "OVERRIDE",
1863
- "name": "project-id",
1864
- "hasDynamicHelp": false,
1865
- "helpValue": "<id>",
1866
- "multiple": false,
1867
- "type": "option"
2201
+ "project-id": {
2202
+ "char": "p",
2203
+ "description": "Project ID to import to (overrides CLI configuration)",
2204
+ "helpGroup": "OVERRIDE",
2205
+ "name": "project-id",
2206
+ "hasDynamicHelp": false,
2207
+ "helpValue": "<id>",
2208
+ "multiple": false,
2209
+ "type": "option"
2210
+ },
2211
+ "project": {
2212
+ "deprecated": {
2213
+ "to": "project-id"
2214
+ },
2215
+ "description": "Project ID to import to",
2216
+ "hidden": true,
2217
+ "name": "project",
2218
+ "hasDynamicHelp": false,
2219
+ "multiple": false,
2220
+ "type": "option"
2221
+ },
2222
+ "replace": {
2223
+ "description": "Replace documents with the same IDs",
2224
+ "exclusive": [
2225
+ "missing"
2226
+ ],
2227
+ "name": "replace",
2228
+ "allowNo": false,
2229
+ "type": "boolean"
2230
+ },
2231
+ "replace-assets": {
2232
+ "description": "Skip reuse of existing assets",
2233
+ "name": "replace-assets",
2234
+ "allowNo": false,
2235
+ "type": "boolean"
2236
+ },
2237
+ "skip-cross-dataset-references": {
2238
+ "description": "Skips references to other datasets",
2239
+ "name": "skip-cross-dataset-references",
2240
+ "allowNo": false,
2241
+ "type": "boolean"
2242
+ },
2243
+ "token": {
2244
+ "char": "t",
2245
+ "description": "Token to authenticate with",
2246
+ "env": "SANITY_IMPORT_TOKEN",
2247
+ "name": "token",
2248
+ "required": false,
2249
+ "hasDynamicHelp": false,
2250
+ "multiple": false,
2251
+ "type": "option"
2252
+ }
2253
+ },
2254
+ "hasDynamicHelp": false,
2255
+ "hiddenAliases": [
2256
+ "dataset:import"
2257
+ ],
2258
+ "id": "datasets:import",
2259
+ "pluginAlias": "@sanity/cli",
2260
+ "pluginName": "@sanity/cli",
2261
+ "pluginType": "core",
2262
+ "strict": true,
2263
+ "isESM": true,
2264
+ "relativePath": [
2265
+ "dist",
2266
+ "commands",
2267
+ "datasets",
2268
+ "import.js"
2269
+ ]
2270
+ },
2271
+ "datasets:list": {
2272
+ "aliases": [],
2273
+ "args": {},
2274
+ "description": "List datasets for the project",
2275
+ "examples": [
2276
+ {
2277
+ "command": "<%= config.bin %> <%= command.id %>",
2278
+ "description": "List datasets for the project"
2279
+ },
2280
+ {
2281
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2282
+ "description": "List datasets for a specific project"
2283
+ }
2284
+ ],
2285
+ "flags": {
2286
+ "project-id": {
2287
+ "char": "p",
2288
+ "description": "Project ID to list datasets for (overrides CLI configuration)",
2289
+ "helpGroup": "OVERRIDE",
2290
+ "name": "project-id",
2291
+ "hasDynamicHelp": false,
2292
+ "helpValue": "<id>",
2293
+ "multiple": false,
2294
+ "type": "option"
2295
+ }
2296
+ },
2297
+ "hasDynamicHelp": false,
2298
+ "hiddenAliases": [
2299
+ "dataset:list"
2300
+ ],
2301
+ "id": "datasets:list",
2302
+ "pluginAlias": "@sanity/cli",
2303
+ "pluginName": "@sanity/cli",
2304
+ "pluginType": "core",
2305
+ "strict": true,
2306
+ "isESM": true,
2307
+ "relativePath": [
2308
+ "dist",
2309
+ "commands",
2310
+ "datasets",
2311
+ "list.js"
2312
+ ]
2313
+ },
2314
+ "docs:browse": {
2315
+ "aliases": [],
2316
+ "args": {},
2317
+ "description": "Open Sanity docs in your browser",
2318
+ "flags": {},
2319
+ "hasDynamicHelp": false,
2320
+ "hiddenAliases": [],
2321
+ "id": "docs:browse",
2322
+ "pluginAlias": "@sanity/cli",
2323
+ "pluginName": "@sanity/cli",
2324
+ "pluginType": "core",
2325
+ "strict": true,
2326
+ "enableJsonFlag": false,
2327
+ "isESM": true,
2328
+ "relativePath": [
2329
+ "dist",
2330
+ "commands",
2331
+ "docs",
2332
+ "browse.js"
2333
+ ]
2334
+ },
2335
+ "docs:read": {
2336
+ "aliases": [],
2337
+ "args": {
2338
+ "path": {
2339
+ "description": "Path or URL to article, found in search results and docs content as links",
2340
+ "name": "path",
2341
+ "required": true
2342
+ }
2343
+ },
2344
+ "description": "Read an article in terminal",
2345
+ "examples": [
2346
+ {
2347
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2348
+ "description": "Read as markdown in terminal"
2349
+ },
2350
+ {
2351
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2352
+ "description": "Read using full URL"
1868
2353
  },
1869
- "project": {
1870
- "deprecated": {
1871
- "to": "project-id"
1872
- },
1873
- "description": "Project ID to import to",
1874
- "hidden": true,
1875
- "name": "project",
1876
- "hasDynamicHelp": false,
1877
- "multiple": false,
1878
- "type": "option"
2354
+ {
2355
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2356
+ "description": "Open in web browser"
1879
2357
  },
1880
- "replace": {
1881
- "description": "Replace documents with the same IDs",
1882
- "exclusive": [
1883
- "missing"
2358
+ {
2359
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2360
+ "description": "Open using full URL in web browser"
2361
+ }
2362
+ ],
2363
+ "flags": {
2364
+ "web": {
2365
+ "aliases": [
2366
+ "w"
1884
2367
  ],
1885
- "name": "replace",
1886
- "allowNo": false,
1887
- "type": "boolean"
1888
- },
1889
- "replace-assets": {
1890
- "description": "Skip reuse of existing assets",
1891
- "name": "replace-assets",
1892
- "allowNo": false,
1893
- "type": "boolean"
1894
- },
1895
- "skip-cross-dataset-references": {
1896
- "description": "Skips references to other datasets",
1897
- "name": "skip-cross-dataset-references",
2368
+ "description": "Open in a web browser",
2369
+ "name": "web",
1898
2370
  "allowNo": false,
1899
2371
  "type": "boolean"
1900
- },
1901
- "token": {
1902
- "char": "t",
1903
- "description": "Token to authenticate with",
1904
- "env": "SANITY_IMPORT_TOKEN",
1905
- "name": "token",
1906
- "required": false,
1907
- "hasDynamicHelp": false,
1908
- "multiple": false,
1909
- "type": "option"
1910
2372
  }
1911
2373
  },
1912
2374
  "hasDynamicHelp": false,
1913
- "hiddenAliases": [
1914
- "dataset:import"
1915
- ],
1916
- "id": "datasets:import",
2375
+ "hiddenAliases": [],
2376
+ "id": "docs:read",
1917
2377
  "pluginAlias": "@sanity/cli",
1918
2378
  "pluginName": "@sanity/cli",
1919
2379
  "pluginType": "core",
@@ -1922,41 +2382,47 @@
1922
2382
  "relativePath": [
1923
2383
  "dist",
1924
2384
  "commands",
1925
- "datasets",
1926
- "import.js"
2385
+ "docs",
2386
+ "read.js"
1927
2387
  ]
1928
2388
  },
1929
- "datasets:list": {
2389
+ "docs:search": {
1930
2390
  "aliases": [],
1931
- "args": {},
1932
- "description": "List datasets for the project",
2391
+ "args": {
2392
+ "query": {
2393
+ "description": "Search query for documentation",
2394
+ "name": "query",
2395
+ "required": true
2396
+ }
2397
+ },
2398
+ "description": "Search Sanity docs",
1933
2399
  "examples": [
1934
2400
  {
1935
- "command": "<%= config.bin %> <%= command.id %>",
1936
- "description": "List datasets for the project"
2401
+ "command": "<%= config.bin %> <%= command.id %> schema",
2402
+ "description": "Search for documentation about schemas"
1937
2403
  },
1938
2404
  {
1939
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1940
- "description": "List datasets for a specific project"
2405
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2406
+ "description": "Search with phrase"
2407
+ },
2408
+ {
2409
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2410
+ "description": "Limit search results"
1941
2411
  }
1942
2412
  ],
1943
2413
  "flags": {
1944
- "project-id": {
1945
- "char": "p",
1946
- "description": "Project ID to list datasets for (overrides CLI configuration)",
1947
- "helpGroup": "OVERRIDE",
1948
- "name": "project-id",
2414
+ "limit": {
2415
+ "description": "Maximum number of results to return",
2416
+ "name": "limit",
2417
+ "default": 10,
1949
2418
  "hasDynamicHelp": false,
1950
- "helpValue": "<id>",
1951
2419
  "multiple": false,
1952
2420
  "type": "option"
1953
2421
  }
1954
2422
  },
1955
2423
  "hasDynamicHelp": false,
1956
- "hiddenAliases": [
1957
- "dataset:list"
1958
- ],
1959
- "id": "datasets:list",
2424
+ "hiddenAliases": [],
2425
+ "id": "docs:search",
1960
2426
  "pluginAlias": "@sanity/cli",
1961
2427
  "pluginName": "@sanity/cli",
1962
2428
  "pluginType": "core",
@@ -1965,8 +2431,8 @@
1965
2431
  "relativePath": [
1966
2432
  "dist",
1967
2433
  "commands",
1968
- "datasets",
1969
- "list.js"
2434
+ "docs",
2435
+ "search.js"
1970
2436
  ]
1971
2437
  },
1972
2438
  "documents:create": {
@@ -2649,156 +3115,32 @@
2649
3115
  "hasDynamicHelp": false,
2650
3116
  "helpValue": "<name>",
2651
3117
  "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"
3118
+ "type": "option"
2787
3119
  },
2788
- {
2789
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2790
- "description": "Search with phrase"
3120
+ "force": {
3121
+ "description": "Skip confirmation prompt",
3122
+ "name": "force",
3123
+ "required": false,
3124
+ "allowNo": false,
3125
+ "type": "boolean"
2791
3126
  },
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,
3127
+ "project": {
3128
+ "deprecated": {
3129
+ "to": "project-id"
3130
+ },
3131
+ "description": "Project ID to delete GraphQL API for",
3132
+ "hidden": true,
3133
+ "name": "project",
3134
+ "required": false,
3135
+ "hasDynamicHelp": false,
3136
+ "multiple": false,
3137
+ "type": "option"
3138
+ },
3139
+ "tag": {
3140
+ "description": "Tag to undeploy GraphQL API from",
3141
+ "name": "tag",
3142
+ "required": false,
3143
+ "default": "default",
2802
3144
  "hasDynamicHelp": false,
2803
3145
  "multiple": false,
2804
3146
  "type": "option"
@@ -2806,7 +3148,7 @@
2806
3148
  },
2807
3149
  "hasDynamicHelp": false,
2808
3150
  "hiddenAliases": [],
2809
- "id": "docs:search",
3151
+ "id": "graphql:undeploy",
2810
3152
  "pluginAlias": "@sanity/cli",
2811
3153
  "pluginName": "@sanity/cli",
2812
3154
  "pluginType": "core",
@@ -2815,8 +3157,8 @@
2815
3157
  "relativePath": [
2816
3158
  "dist",
2817
3159
  "commands",
2818
- "docs",
2819
- "search.js"
3160
+ "graphql",
3161
+ "undeploy.js"
2820
3162
  ]
2821
3163
  },
2822
3164
  "hooks:attempt": {
@@ -3067,167 +3409,6 @@
3067
3409
  "logs.js"
3068
3410
  ]
3069
3411
  },
3070
- "cors:add": {
3071
- "aliases": [],
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",
3080
- "examples": [
3081
- {
3082
- "command": "<%= config.bin %> <%= command.id %>",
3083
- "description": "Interactively add a CORS origin"
3084
- },
3085
- {
3086
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
3087
- "description": "Add a localhost origin without credentials"
3088
- },
3089
- {
3090
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
3091
- "description": "Add a production origin with credentials allowed"
3092
- },
3093
- {
3094
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
3095
- "description": "Add a CORS origin for a specific project"
3096
- }
3097
- ],
3098
- "flags": {
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",
3104
- "hasDynamicHelp": false,
3105
- "helpValue": "<id>",
3106
- "multiple": false,
3107
- "type": "option"
3108
- },
3109
- "credentials": {
3110
- "description": "Allow credentials (token/cookie) to be sent from this origin",
3111
- "name": "credentials",
3112
- "required": false,
3113
- "allowNo": true,
3114
- "type": "boolean"
3115
- },
3116
- "yes": {
3117
- "char": "y",
3118
- "description": "Confirm risky wildcard origins without prompting",
3119
- "name": "yes",
3120
- "allowNo": false,
3121
- "type": "boolean"
3122
- }
3123
- },
3124
- "hasDynamicHelp": false,
3125
- "hiddenAliases": [],
3126
- "id": "cors:add",
3127
- "pluginAlias": "@sanity/cli",
3128
- "pluginName": "@sanity/cli",
3129
- "pluginType": "core",
3130
- "strict": true,
3131
- "isESM": true,
3132
- "relativePath": [
3133
- "dist",
3134
- "commands",
3135
- "cors",
3136
- "add.js"
3137
- ]
3138
- },
3139
- "cors:delete": {
3140
- "aliases": [],
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",
3149
- "examples": [
3150
- {
3151
- "command": "<%= config.bin %> <%= command.id %>",
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"
3157
- },
3158
- {
3159
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3160
- "description": "Delete a CORS origin from a specific project"
3161
- }
3162
- ],
3163
- "flags": {
3164
- "project-id": {
3165
- "char": "p",
3166
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
3167
- "helpGroup": "OVERRIDE",
3168
- "name": "project-id",
3169
- "hasDynamicHelp": false,
3170
- "helpValue": "<id>",
3171
- "multiple": false,
3172
- "type": "option"
3173
- }
3174
- },
3175
- "hasDynamicHelp": false,
3176
- "hiddenAliases": [],
3177
- "id": "cors:delete",
3178
- "pluginAlias": "@sanity/cli",
3179
- "pluginName": "@sanity/cli",
3180
- "pluginType": "core",
3181
- "strict": true,
3182
- "isESM": true,
3183
- "relativePath": [
3184
- "dist",
3185
- "commands",
3186
- "cors",
3187
- "delete.js"
3188
- ]
3189
- },
3190
- "cors:list": {
3191
- "aliases": [],
3192
- "args": {},
3193
- "description": "List CORS origins for the project",
3194
- "examples": [
3195
- {
3196
- "command": "<%= config.bin %> <%= command.id %>",
3197
- "description": "List CORS origins for the project"
3198
- },
3199
- {
3200
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3201
- "description": "List CORS origins for a specific project"
3202
- }
3203
- ],
3204
- "flags": {
3205
- "project-id": {
3206
- "char": "p",
3207
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
3208
- "helpGroup": "OVERRIDE",
3209
- "name": "project-id",
3210
- "hasDynamicHelp": false,
3211
- "helpValue": "<id>",
3212
- "multiple": false,
3213
- "type": "option"
3214
- }
3215
- },
3216
- "hasDynamicHelp": false,
3217
- "hiddenAliases": [],
3218
- "id": "cors:list",
3219
- "pluginAlias": "@sanity/cli",
3220
- "pluginName": "@sanity/cli",
3221
- "pluginType": "core",
3222
- "strict": true,
3223
- "isESM": true,
3224
- "relativePath": [
3225
- "dist",
3226
- "commands",
3227
- "cors",
3228
- "list.js"
3229
- ]
3230
- },
3231
3412
  "manifest:extract": {
3232
3413
  "aliases": [],
3233
3414
  "args": {},
@@ -4670,6 +4851,32 @@
4670
4851
  "validate.js"
4671
4852
  ]
4672
4853
  },
4854
+ "skills:install": {
4855
+ "aliases": [],
4856
+ "args": {},
4857
+ "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)",
4858
+ "examples": [
4859
+ {
4860
+ "command": "<%= config.bin %> <%= command.id %>",
4861
+ "description": "Install Sanity agent skills for detected AI editors"
4862
+ }
4863
+ ],
4864
+ "flags": {},
4865
+ "hasDynamicHelp": false,
4866
+ "hiddenAliases": [],
4867
+ "id": "skills:install",
4868
+ "pluginAlias": "@sanity/cli",
4869
+ "pluginName": "@sanity/cli",
4870
+ "pluginType": "core",
4871
+ "strict": true,
4872
+ "isESM": true,
4873
+ "relativePath": [
4874
+ "dist",
4875
+ "commands",
4876
+ "skills",
4877
+ "install.js"
4878
+ ]
4879
+ },
4673
4880
  "telemetry:disable": {
4674
4881
  "aliases": [],
4675
4882
  "args": {},
@@ -4952,32 +5159,6 @@
4952
5159
  "list.js"
4953
5160
  ]
4954
5161
  },
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
5162
  "users:invite": {
4982
5163
  "aliases": [],
4983
5164
  "args": {
@@ -5649,5 +5830,5 @@
5649
5830
  ]
5650
5831
  }
5651
5832
  },
5652
- "version": "7.12.1"
5833
+ "version": "7.14.0"
5653
5834
  }