@sanity/cli 7.0.0 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/oclif.manifest.json +149 -149
  2. package/package.json +22 -22
@@ -1292,107 +1292,69 @@
1292
1292
  "list.js"
1293
1293
  ]
1294
1294
  },
1295
- "cors:add": {
1295
+ "docs:browse": {
1296
1296
  "aliases": [],
1297
- "args": {
1298
- "origin": {
1299
- "description": "Origin to allow (e.g., https://example.com)",
1300
- "name": "origin",
1301
- "required": true
1302
- }
1303
- },
1304
- "description": "Add a CORS origin to the project",
1305
- "examples": [
1306
- {
1307
- "command": "<%= config.bin %> <%= command.id %>",
1308
- "description": "Interactively add a CORS origin"
1309
- },
1310
- {
1311
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1312
- "description": "Add a localhost origin without credentials"
1313
- },
1314
- {
1315
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1316
- "description": "Add a production origin with credentials allowed"
1317
- },
1318
- {
1319
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1320
- "description": "Add a CORS origin for a specific project"
1321
- }
1322
- ],
1323
- "flags": {
1324
- "project-id": {
1325
- "char": "p",
1326
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1327
- "helpGroup": "OVERRIDE",
1328
- "name": "project-id",
1329
- "hasDynamicHelp": false,
1330
- "helpValue": "<id>",
1331
- "multiple": false,
1332
- "type": "option"
1333
- },
1334
- "credentials": {
1335
- "description": "Allow credentials (token/cookie) to be sent from this origin",
1336
- "name": "credentials",
1337
- "required": false,
1338
- "allowNo": true,
1339
- "type": "boolean"
1340
- }
1341
- },
1297
+ "args": {},
1298
+ "description": "Open Sanity docs in your browser",
1299
+ "flags": {},
1342
1300
  "hasDynamicHelp": false,
1343
1301
  "hiddenAliases": [],
1344
- "id": "cors:add",
1302
+ "id": "docs:browse",
1345
1303
  "pluginAlias": "@sanity/cli",
1346
1304
  "pluginName": "@sanity/cli",
1347
1305
  "pluginType": "core",
1348
1306
  "strict": true,
1307
+ "enableJsonFlag": false,
1349
1308
  "isESM": true,
1350
1309
  "relativePath": [
1351
1310
  "dist",
1352
1311
  "commands",
1353
- "cors",
1354
- "add.js"
1312
+ "docs",
1313
+ "browse.js"
1355
1314
  ]
1356
1315
  },
1357
- "cors:delete": {
1316
+ "docs:read": {
1358
1317
  "aliases": [],
1359
1318
  "args": {
1360
- "origin": {
1361
- "description": "Origin to delete (will prompt if not provided)",
1362
- "name": "origin",
1363
- "required": false
1319
+ "path": {
1320
+ "description": "Path or URL to article, found in search results and docs content as links",
1321
+ "name": "path",
1322
+ "required": true
1364
1323
  }
1365
1324
  },
1366
- "description": "Delete a CORS origin from the project",
1325
+ "description": "Read an article in terminal",
1367
1326
  "examples": [
1368
1327
  {
1369
- "command": "<%= config.bin %> <%= command.id %>",
1370
- "description": "Interactively select and delete a CORS origin"
1328
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
1329
+ "description": "Read as markdown in terminal"
1371
1330
  },
1372
1331
  {
1373
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
1374
- "description": "Delete a specific CORS origin"
1332
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
1333
+ "description": "Read using full URL"
1375
1334
  },
1376
1335
  {
1377
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1378
- "description": "Delete a CORS origin from a specific project"
1336
+ "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
1337
+ "description": "Open in web browser"
1338
+ },
1339
+ {
1340
+ "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
1341
+ "description": "Open using full URL in web browser"
1379
1342
  }
1380
1343
  ],
1381
1344
  "flags": {
1382
- "project-id": {
1383
- "char": "p",
1384
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1385
- "helpGroup": "OVERRIDE",
1386
- "name": "project-id",
1387
- "hasDynamicHelp": false,
1388
- "helpValue": "<id>",
1389
- "multiple": false,
1390
- "type": "option"
1345
+ "web": {
1346
+ "aliases": [
1347
+ "w"
1348
+ ],
1349
+ "description": "Open in a web browser",
1350
+ "name": "web",
1351
+ "allowNo": false,
1352
+ "type": "boolean"
1391
1353
  }
1392
1354
  },
1393
1355
  "hasDynamicHelp": false,
1394
1356
  "hiddenAliases": [],
1395
- "id": "cors:delete",
1357
+ "id": "docs:read",
1396
1358
  "pluginAlias": "@sanity/cli",
1397
1359
  "pluginName": "@sanity/cli",
1398
1360
  "pluginType": "core",
@@ -1401,39 +1363,47 @@
1401
1363
  "relativePath": [
1402
1364
  "dist",
1403
1365
  "commands",
1404
- "cors",
1405
- "delete.js"
1366
+ "docs",
1367
+ "read.js"
1406
1368
  ]
1407
1369
  },
1408
- "cors:list": {
1370
+ "docs:search": {
1409
1371
  "aliases": [],
1410
- "args": {},
1411
- "description": "List CORS origins for the project",
1372
+ "args": {
1373
+ "query": {
1374
+ "description": "Search query for documentation",
1375
+ "name": "query",
1376
+ "required": true
1377
+ }
1378
+ },
1379
+ "description": "Search Sanity docs",
1412
1380
  "examples": [
1413
1381
  {
1414
- "command": "<%= config.bin %> <%= command.id %>",
1415
- "description": "List CORS origins for the project"
1382
+ "command": "<%= config.bin %> <%= command.id %> schema",
1383
+ "description": "Search for documentation about schemas"
1416
1384
  },
1417
1385
  {
1418
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1419
- "description": "List CORS origins for a specific project"
1386
+ "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
1387
+ "description": "Search with phrase"
1388
+ },
1389
+ {
1390
+ "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
1391
+ "description": "Limit search results"
1420
1392
  }
1421
1393
  ],
1422
1394
  "flags": {
1423
- "project-id": {
1424
- "char": "p",
1425
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1426
- "helpGroup": "OVERRIDE",
1427
- "name": "project-id",
1395
+ "limit": {
1396
+ "description": "Maximum number of results to return",
1397
+ "name": "limit",
1398
+ "default": 10,
1428
1399
  "hasDynamicHelp": false,
1429
- "helpValue": "<id>",
1430
1400
  "multiple": false,
1431
1401
  "type": "option"
1432
1402
  }
1433
1403
  },
1434
1404
  "hasDynamicHelp": false,
1435
1405
  "hiddenAliases": [],
1436
- "id": "cors:list",
1406
+ "id": "docs:search",
1437
1407
  "pluginAlias": "@sanity/cli",
1438
1408
  "pluginName": "@sanity/cli",
1439
1409
  "pluginType": "core",
@@ -1442,8 +1412,8 @@
1442
1412
  "relativePath": [
1443
1413
  "dist",
1444
1414
  "commands",
1445
- "cors",
1446
- "list.js"
1415
+ "docs",
1416
+ "search.js"
1447
1417
  ]
1448
1418
  },
1449
1419
  "datasets:copy": {
@@ -2069,69 +2039,107 @@
2069
2039
  "list.js"
2070
2040
  ]
2071
2041
  },
2072
- "docs:browse": {
2042
+ "cors:add": {
2073
2043
  "aliases": [],
2074
- "args": {},
2075
- "description": "Open Sanity docs in your browser",
2076
- "flags": {},
2044
+ "args": {
2045
+ "origin": {
2046
+ "description": "Origin to allow (e.g., https://example.com)",
2047
+ "name": "origin",
2048
+ "required": true
2049
+ }
2050
+ },
2051
+ "description": "Add a CORS origin to the project",
2052
+ "examples": [
2053
+ {
2054
+ "command": "<%= config.bin %> <%= command.id %>",
2055
+ "description": "Interactively add a CORS origin"
2056
+ },
2057
+ {
2058
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
2059
+ "description": "Add a localhost origin without credentials"
2060
+ },
2061
+ {
2062
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
2063
+ "description": "Add a production origin with credentials allowed"
2064
+ },
2065
+ {
2066
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
2067
+ "description": "Add a CORS origin for a specific project"
2068
+ }
2069
+ ],
2070
+ "flags": {
2071
+ "project-id": {
2072
+ "char": "p",
2073
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
2074
+ "helpGroup": "OVERRIDE",
2075
+ "name": "project-id",
2076
+ "hasDynamicHelp": false,
2077
+ "helpValue": "<id>",
2078
+ "multiple": false,
2079
+ "type": "option"
2080
+ },
2081
+ "credentials": {
2082
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
2083
+ "name": "credentials",
2084
+ "required": false,
2085
+ "allowNo": true,
2086
+ "type": "boolean"
2087
+ }
2088
+ },
2077
2089
  "hasDynamicHelp": false,
2078
2090
  "hiddenAliases": [],
2079
- "id": "docs:browse",
2091
+ "id": "cors:add",
2080
2092
  "pluginAlias": "@sanity/cli",
2081
2093
  "pluginName": "@sanity/cli",
2082
2094
  "pluginType": "core",
2083
2095
  "strict": true,
2084
- "enableJsonFlag": false,
2085
2096
  "isESM": true,
2086
2097
  "relativePath": [
2087
2098
  "dist",
2088
2099
  "commands",
2089
- "docs",
2090
- "browse.js"
2100
+ "cors",
2101
+ "add.js"
2091
2102
  ]
2092
2103
  },
2093
- "docs:read": {
2104
+ "cors:delete": {
2094
2105
  "aliases": [],
2095
2106
  "args": {
2096
- "path": {
2097
- "description": "Path or URL to article, found in search results and docs content as links",
2098
- "name": "path",
2099
- "required": true
2107
+ "origin": {
2108
+ "description": "Origin to delete (will prompt if not provided)",
2109
+ "name": "origin",
2110
+ "required": false
2100
2111
  }
2101
2112
  },
2102
- "description": "Read an article in terminal",
2113
+ "description": "Delete a CORS origin from the project",
2103
2114
  "examples": [
2104
2115
  {
2105
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
2106
- "description": "Read as markdown in terminal"
2107
- },
2108
- {
2109
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
2110
- "description": "Read using full URL"
2116
+ "command": "<%= config.bin %> <%= command.id %>",
2117
+ "description": "Interactively select and delete a CORS origin"
2111
2118
  },
2112
2119
  {
2113
- "command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
2114
- "description": "Open in web browser"
2120
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
2121
+ "description": "Delete a specific CORS origin"
2115
2122
  },
2116
2123
  {
2117
- "command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
2118
- "description": "Open using full URL in web browser"
2124
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2125
+ "description": "Delete a CORS origin from a specific project"
2119
2126
  }
2120
2127
  ],
2121
2128
  "flags": {
2122
- "web": {
2123
- "aliases": [
2124
- "w"
2125
- ],
2126
- "description": "Open in a web browser",
2127
- "name": "web",
2128
- "allowNo": false,
2129
- "type": "boolean"
2129
+ "project-id": {
2130
+ "char": "p",
2131
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
2132
+ "helpGroup": "OVERRIDE",
2133
+ "name": "project-id",
2134
+ "hasDynamicHelp": false,
2135
+ "helpValue": "<id>",
2136
+ "multiple": false,
2137
+ "type": "option"
2130
2138
  }
2131
2139
  },
2132
2140
  "hasDynamicHelp": false,
2133
2141
  "hiddenAliases": [],
2134
- "id": "docs:read",
2142
+ "id": "cors:delete",
2135
2143
  "pluginAlias": "@sanity/cli",
2136
2144
  "pluginName": "@sanity/cli",
2137
2145
  "pluginType": "core",
@@ -2140,47 +2148,39 @@
2140
2148
  "relativePath": [
2141
2149
  "dist",
2142
2150
  "commands",
2143
- "docs",
2144
- "read.js"
2151
+ "cors",
2152
+ "delete.js"
2145
2153
  ]
2146
2154
  },
2147
- "docs:search": {
2155
+ "cors:list": {
2148
2156
  "aliases": [],
2149
- "args": {
2150
- "query": {
2151
- "description": "Search query for documentation",
2152
- "name": "query",
2153
- "required": true
2154
- }
2155
- },
2156
- "description": "Search Sanity docs",
2157
+ "args": {},
2158
+ "description": "List CORS origins for the project",
2157
2159
  "examples": [
2158
2160
  {
2159
- "command": "<%= config.bin %> <%= command.id %> schema",
2160
- "description": "Search for documentation about schemas"
2161
- },
2162
- {
2163
- "command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
2164
- "description": "Search with phrase"
2161
+ "command": "<%= config.bin %> <%= command.id %>",
2162
+ "description": "List CORS origins for the project"
2165
2163
  },
2166
2164
  {
2167
- "command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
2168
- "description": "Limit search results"
2165
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2166
+ "description": "List CORS origins for a specific project"
2169
2167
  }
2170
2168
  ],
2171
2169
  "flags": {
2172
- "limit": {
2173
- "description": "Maximum number of results to return",
2174
- "name": "limit",
2175
- "default": 10,
2170
+ "project-id": {
2171
+ "char": "p",
2172
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
2173
+ "helpGroup": "OVERRIDE",
2174
+ "name": "project-id",
2176
2175
  "hasDynamicHelp": false,
2176
+ "helpValue": "<id>",
2177
2177
  "multiple": false,
2178
2178
  "type": "option"
2179
2179
  }
2180
2180
  },
2181
2181
  "hasDynamicHelp": false,
2182
2182
  "hiddenAliases": [],
2183
- "id": "docs:search",
2183
+ "id": "cors:list",
2184
2184
  "pluginAlias": "@sanity/cli",
2185
2185
  "pluginName": "@sanity/cli",
2186
2186
  "pluginType": "core",
@@ -2189,8 +2189,8 @@
2189
2189
  "relativePath": [
2190
2190
  "dist",
2191
2191
  "commands",
2192
- "docs",
2193
- "search.js"
2192
+ "cors",
2193
+ "list.js"
2194
2194
  ]
2195
2195
  },
2196
2196
  "documents:create": {
@@ -5116,5 +5116,5 @@
5116
5116
  ]
5117
5117
  }
5118
5118
  },
5119
- "version": "7.0.0"
5119
+ "version": "7.0.2"
5120
5120
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/cli",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "Sanity CLI tool for managing Sanity projects and organizations",
5
5
  "keywords": [
6
6
  "cli",
@@ -55,13 +55,13 @@
55
55
  "@oclif/plugin-help": "^6.2.50",
56
56
  "@oclif/plugin-not-found": "^3.2.87",
57
57
  "@sanity/client": "^7.22.1",
58
- "@sanity/codegen": "^6.1.1",
58
+ "@sanity/codegen": "^7.0.1",
59
59
  "@sanity/descriptors": "^1.3.0",
60
60
  "@sanity/export": "^6.2.0",
61
61
  "@sanity/generate-help-url": "^4.0.0",
62
62
  "@sanity/id-utils": "^1.0.0",
63
63
  "@sanity/import": "^6.0.2",
64
- "@sanity/migrate": "^6.1.2",
64
+ "@sanity/migrate": "^7.0.1",
65
65
  "@sanity/runtime-cli": "^15.1.3",
66
66
  "@sanity/schema": "^5.30.0",
67
67
  "@sanity/telemetry": "^1.1.0",
@@ -71,9 +71,9 @@
71
71
  "@vercel/frameworks": "3.21.1",
72
72
  "chokidar": "^5.0.0",
73
73
  "console-table-printer": "^2.15.0",
74
- "date-fns": "^4.1.0",
74
+ "date-fns": "^4.4.0",
75
75
  "debug": "^4.4.3",
76
- "dotenv": "^17.3.1",
76
+ "dotenv": "^17.4.2",
77
77
  "eventsource": "^4.1.0",
78
78
  "execa": "^9.6.0",
79
79
  "form-data": "^4.0.5",
@@ -82,16 +82,16 @@
82
82
  "gunzip-maybe": "^1.4.2",
83
83
  "import-meta-resolve": "^4.2.0",
84
84
  "is-installed-globally": "^1.0.0",
85
- "isomorphic-dompurify": "^2.32.0",
85
+ "isomorphic-dompurify": "^2.36.0",
86
86
  "json5": "^2.2.3",
87
87
  "jsonc-parser": "^3.3.1",
88
88
  "lodash-es": "^4.18.1",
89
89
  "minimist": "^1.2.8",
90
- "nanoid": "^5.1.6",
90
+ "nanoid": "^5.1.11",
91
91
  "oneline": "^2.0.0",
92
92
  "open": "^11.0.0",
93
93
  "p-map": "^7.0.3",
94
- "package-directory": "^8.1.0",
94
+ "package-directory": "^8.2.0",
95
95
  "peek-stream": "^1.1.3",
96
96
  "picomatch": "^4.0.4",
97
97
  "pluralize-esm": "^9.0.5",
@@ -101,28 +101,28 @@
101
101
  "react-dom": "^19.2.6",
102
102
  "react-is": "^19.2.6",
103
103
  "rxjs": "^7.8.2",
104
- "semver": "^7.7.4",
105
- "skills": "^1.5.7",
104
+ "semver": "^7.8.1",
105
+ "skills": "^1.5.9",
106
106
  "smol-toml": "^1.6.1",
107
- "tar": "^7.5.13",
107
+ "tar": "^7.5.15",
108
108
  "tar-fs": "^3.1.2",
109
- "tar-stream": "^3.1.8",
110
- "tinyglobby": "^0.2.16",
109
+ "tar-stream": "^3.2.0",
110
+ "tinyglobby": "^0.2.17",
111
111
  "tsx": "^4.22.4",
112
112
  "typeid-js": "^1.2.0",
113
113
  "vite": "^8.0.16",
114
114
  "which": "^6.0.1",
115
- "yaml": "^2.8.4",
115
+ "yaml": "^2.9.0",
116
116
  "zod": "^4.3.6",
117
- "@sanity/cli-build": "^1.0.0",
118
- "@sanity/cli-core": "^2.0.0"
117
+ "@sanity/cli-build": "^1.0.1",
118
+ "@sanity/cli-core": "^2.0.1"
119
119
  },
120
120
  "devDependencies": {
121
- "@eslint/compat": "^2.0.5",
121
+ "@eslint/compat": "^2.1.0",
122
122
  "@sanity/pkg-utils": "^10.5.2",
123
123
  "@sanity/ui": "^3.2.0",
124
124
  "@swc/cli": "^0.8.1",
125
- "@swc/core": "^1.15.33",
125
+ "@swc/core": "^1.15.40",
126
126
  "@types/debug": "^4.1.13",
127
127
  "@types/gunzip-maybe": "^1.4.3",
128
128
  "@types/jsdom": "^28.0.3",
@@ -139,7 +139,7 @@
139
139
  "@types/which": "^3.0.4",
140
140
  "@vitest/coverage-istanbul": "^4.1.8",
141
141
  "babel-plugin-react-compiler": "^1.0.0",
142
- "eslint": "^10.2.1",
142
+ "eslint": "^10.4.1",
143
143
  "jsdom": "^29.1.1",
144
144
  "nock": "^14.0.15",
145
145
  "oclif": "^4.23.10",
@@ -148,10 +148,10 @@
148
148
  "sanity": "^5.30.0",
149
149
  "typescript": "^5.9.3",
150
150
  "vitest": "^4.1.8",
151
+ "@sanity/cli-test": "1.0.1",
151
152
  "@repo/tsconfig": "3.70.0",
152
- "@repo/package.config": "0.0.1",
153
- "@sanity/cli-test": "1.0.0",
154
- "@sanity/eslint-config-cli": "1.1.1"
153
+ "@sanity/eslint-config-cli": "1.1.2",
154
+ "@repo/package.config": "0.0.1"
155
155
  },
156
156
  "peerDependencies": {
157
157
  "babel-plugin-react-compiler": "*"