@sanity/cli 7.0.1 → 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.
- package/oclif.manifest.json +806 -806
- package/package.json +14 -14
package/oclif.manifest.json
CHANGED
|
@@ -1292,107 +1292,69 @@
|
|
|
1292
1292
|
"list.js"
|
|
1293
1293
|
]
|
|
1294
1294
|
},
|
|
1295
|
-
"
|
|
1295
|
+
"docs:browse": {
|
|
1296
1296
|
"aliases": [],
|
|
1297
|
-
"args": {
|
|
1298
|
-
|
|
1299
|
-
|
|
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": "
|
|
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
|
-
"
|
|
1354
|
-
"
|
|
1312
|
+
"docs",
|
|
1313
|
+
"browse.js"
|
|
1355
1314
|
]
|
|
1356
1315
|
},
|
|
1357
|
-
"
|
|
1316
|
+
"docs:read": {
|
|
1358
1317
|
"aliases": [],
|
|
1359
1318
|
"args": {
|
|
1360
|
-
"
|
|
1361
|
-
"description": "
|
|
1362
|
-
"name": "
|
|
1363
|
-
"required":
|
|
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": "
|
|
1325
|
+
"description": "Read an article in terminal",
|
|
1367
1326
|
"examples": [
|
|
1368
1327
|
{
|
|
1369
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1370
|
-
"description": "
|
|
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://
|
|
1374
|
-
"description": "
|
|
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 %> --
|
|
1378
|
-
"description": "
|
|
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
|
-
"
|
|
1383
|
-
"
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
"
|
|
1387
|
-
"
|
|
1388
|
-
"
|
|
1389
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
1405
|
-
"
|
|
1366
|
+
"docs",
|
|
1367
|
+
"read.js"
|
|
1406
1368
|
]
|
|
1407
1369
|
},
|
|
1408
|
-
"
|
|
1370
|
+
"docs:search": {
|
|
1409
1371
|
"aliases": [],
|
|
1410
|
-
"args": {
|
|
1411
|
-
|
|
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": "
|
|
1382
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
1383
|
+
"description": "Search for documentation about schemas"
|
|
1416
1384
|
},
|
|
1417
1385
|
{
|
|
1418
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1419
|
-
"description": "
|
|
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
|
-
"
|
|
1424
|
-
"
|
|
1425
|
-
"
|
|
1426
|
-
"
|
|
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": "
|
|
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
|
-
"
|
|
1446
|
-
"
|
|
1415
|
+
"docs",
|
|
1416
|
+
"search.js"
|
|
1447
1417
|
]
|
|
1448
1418
|
},
|
|
1449
1419
|
"datasets:copy": {
|
|
@@ -2069,69 +2039,56 @@
|
|
|
2069
2039
|
"list.js"
|
|
2070
2040
|
]
|
|
2071
2041
|
},
|
|
2072
|
-
"
|
|
2073
|
-
"aliases": [],
|
|
2074
|
-
"args": {},
|
|
2075
|
-
"description": "Open Sanity docs in your browser",
|
|
2076
|
-
"flags": {},
|
|
2077
|
-
"hasDynamicHelp": false,
|
|
2078
|
-
"hiddenAliases": [],
|
|
2079
|
-
"id": "docs:browse",
|
|
2080
|
-
"pluginAlias": "@sanity/cli",
|
|
2081
|
-
"pluginName": "@sanity/cli",
|
|
2082
|
-
"pluginType": "core",
|
|
2083
|
-
"strict": true,
|
|
2084
|
-
"enableJsonFlag": false,
|
|
2085
|
-
"isESM": true,
|
|
2086
|
-
"relativePath": [
|
|
2087
|
-
"dist",
|
|
2088
|
-
"commands",
|
|
2089
|
-
"docs",
|
|
2090
|
-
"browse.js"
|
|
2091
|
-
]
|
|
2092
|
-
},
|
|
2093
|
-
"docs:read": {
|
|
2042
|
+
"cors:add": {
|
|
2094
2043
|
"aliases": [],
|
|
2095
2044
|
"args": {
|
|
2096
|
-
"
|
|
2097
|
-
"description": "
|
|
2098
|
-
"name": "
|
|
2045
|
+
"origin": {
|
|
2046
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
2047
|
+
"name": "origin",
|
|
2099
2048
|
"required": true
|
|
2100
2049
|
}
|
|
2101
2050
|
},
|
|
2102
|
-
"description": "
|
|
2051
|
+
"description": "Add a CORS origin to the project",
|
|
2103
2052
|
"examples": [
|
|
2104
2053
|
{
|
|
2105
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2106
|
-
"description": "
|
|
2054
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2055
|
+
"description": "Interactively add a CORS origin"
|
|
2107
2056
|
},
|
|
2108
2057
|
{
|
|
2109
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2110
|
-
"description": "
|
|
2058
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2059
|
+
"description": "Add a localhost origin without credentials"
|
|
2111
2060
|
},
|
|
2112
2061
|
{
|
|
2113
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2114
|
-
"description": "
|
|
2062
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2063
|
+
"description": "Add a production origin with credentials allowed"
|
|
2115
2064
|
},
|
|
2116
2065
|
{
|
|
2117
|
-
"command": "<%= config.bin %> <%= command.id %> https://
|
|
2118
|
-
"description": "
|
|
2066
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
2067
|
+
"description": "Add a CORS origin for a specific project"
|
|
2119
2068
|
}
|
|
2120
2069
|
],
|
|
2121
2070
|
"flags": {
|
|
2122
|
-
"
|
|
2123
|
-
"
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
"
|
|
2127
|
-
"
|
|
2128
|
-
"
|
|
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,
|
|
2129
2086
|
"type": "boolean"
|
|
2130
2087
|
}
|
|
2131
2088
|
},
|
|
2132
2089
|
"hasDynamicHelp": false,
|
|
2133
2090
|
"hiddenAliases": [],
|
|
2134
|
-
"id": "
|
|
2091
|
+
"id": "cors:add",
|
|
2135
2092
|
"pluginAlias": "@sanity/cli",
|
|
2136
2093
|
"pluginName": "@sanity/cli",
|
|
2137
2094
|
"pluginType": "core",
|
|
@@ -2140,47 +2097,49 @@
|
|
|
2140
2097
|
"relativePath": [
|
|
2141
2098
|
"dist",
|
|
2142
2099
|
"commands",
|
|
2143
|
-
"
|
|
2144
|
-
"
|
|
2100
|
+
"cors",
|
|
2101
|
+
"add.js"
|
|
2145
2102
|
]
|
|
2146
2103
|
},
|
|
2147
|
-
"
|
|
2104
|
+
"cors:delete": {
|
|
2148
2105
|
"aliases": [],
|
|
2149
2106
|
"args": {
|
|
2150
|
-
"
|
|
2151
|
-
"description": "
|
|
2152
|
-
"name": "
|
|
2153
|
-
"required":
|
|
2107
|
+
"origin": {
|
|
2108
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
2109
|
+
"name": "origin",
|
|
2110
|
+
"required": false
|
|
2154
2111
|
}
|
|
2155
2112
|
},
|
|
2156
|
-
"description": "
|
|
2113
|
+
"description": "Delete a CORS origin from the project",
|
|
2157
2114
|
"examples": [
|
|
2158
2115
|
{
|
|
2159
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2160
|
-
"description": "
|
|
2116
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2117
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2161
2118
|
},
|
|
2162
2119
|
{
|
|
2163
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2164
|
-
"description": "
|
|
2120
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2121
|
+
"description": "Delete a specific CORS origin"
|
|
2165
2122
|
},
|
|
2166
2123
|
{
|
|
2167
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2168
|
-
"description": "
|
|
2124
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2125
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2169
2126
|
}
|
|
2170
2127
|
],
|
|
2171
2128
|
"flags": {
|
|
2172
|
-
"
|
|
2173
|
-
"
|
|
2174
|
-
"
|
|
2175
|
-
"
|
|
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",
|
|
2176
2134
|
"hasDynamicHelp": false,
|
|
2135
|
+
"helpValue": "<id>",
|
|
2177
2136
|
"multiple": false,
|
|
2178
2137
|
"type": "option"
|
|
2179
2138
|
}
|
|
2180
2139
|
},
|
|
2181
2140
|
"hasDynamicHelp": false,
|
|
2182
2141
|
"hiddenAliases": [],
|
|
2183
|
-
"id": "
|
|
2142
|
+
"id": "cors:delete",
|
|
2184
2143
|
"pluginAlias": "@sanity/cli",
|
|
2185
2144
|
"pluginName": "@sanity/cli",
|
|
2186
2145
|
"pluginType": "core",
|
|
@@ -2189,8 +2148,49 @@
|
|
|
2189
2148
|
"relativePath": [
|
|
2190
2149
|
"dist",
|
|
2191
2150
|
"commands",
|
|
2192
|
-
"
|
|
2193
|
-
"
|
|
2151
|
+
"cors",
|
|
2152
|
+
"delete.js"
|
|
2153
|
+
]
|
|
2154
|
+
},
|
|
2155
|
+
"cors:list": {
|
|
2156
|
+
"aliases": [],
|
|
2157
|
+
"args": {},
|
|
2158
|
+
"description": "List CORS origins for the project",
|
|
2159
|
+
"examples": [
|
|
2160
|
+
{
|
|
2161
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2162
|
+
"description": "List CORS origins for the project"
|
|
2163
|
+
},
|
|
2164
|
+
{
|
|
2165
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
2166
|
+
"description": "List CORS origins for a specific project"
|
|
2167
|
+
}
|
|
2168
|
+
],
|
|
2169
|
+
"flags": {
|
|
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",
|
|
2175
|
+
"hasDynamicHelp": false,
|
|
2176
|
+
"helpValue": "<id>",
|
|
2177
|
+
"multiple": false,
|
|
2178
|
+
"type": "option"
|
|
2179
|
+
}
|
|
2180
|
+
},
|
|
2181
|
+
"hasDynamicHelp": false,
|
|
2182
|
+
"hiddenAliases": [],
|
|
2183
|
+
"id": "cors:list",
|
|
2184
|
+
"pluginAlias": "@sanity/cli",
|
|
2185
|
+
"pluginName": "@sanity/cli",
|
|
2186
|
+
"pluginType": "core",
|
|
2187
|
+
"strict": true,
|
|
2188
|
+
"isESM": true,
|
|
2189
|
+
"relativePath": [
|
|
2190
|
+
"dist",
|
|
2191
|
+
"commands",
|
|
2192
|
+
"cors",
|
|
2193
|
+
"list.js"
|
|
2194
2194
|
]
|
|
2195
2195
|
},
|
|
2196
2196
|
"documents:create": {
|
|
@@ -3779,120 +3779,24 @@
|
|
|
3779
3779
|
"list.js"
|
|
3780
3780
|
]
|
|
3781
3781
|
},
|
|
3782
|
-
"
|
|
3783
|
-
"aliases": [],
|
|
3784
|
-
"args": {},
|
|
3785
|
-
"description": "Disable telemetry for your account",
|
|
3786
|
-
"examples": [
|
|
3787
|
-
{
|
|
3788
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3789
|
-
"description": "Disable telemetry for your account"
|
|
3790
|
-
}
|
|
3791
|
-
],
|
|
3792
|
-
"flags": {},
|
|
3793
|
-
"hasDynamicHelp": false,
|
|
3794
|
-
"hiddenAliases": [],
|
|
3795
|
-
"id": "telemetry:disable",
|
|
3796
|
-
"pluginAlias": "@sanity/cli",
|
|
3797
|
-
"pluginName": "@sanity/cli",
|
|
3798
|
-
"pluginType": "core",
|
|
3799
|
-
"strict": true,
|
|
3800
|
-
"isESM": true,
|
|
3801
|
-
"relativePath": [
|
|
3802
|
-
"dist",
|
|
3803
|
-
"commands",
|
|
3804
|
-
"telemetry",
|
|
3805
|
-
"disable.js"
|
|
3806
|
-
]
|
|
3807
|
-
},
|
|
3808
|
-
"telemetry:enable": {
|
|
3809
|
-
"aliases": [],
|
|
3810
|
-
"args": {},
|
|
3811
|
-
"description": "Enable telemetry for your account",
|
|
3812
|
-
"examples": [
|
|
3813
|
-
{
|
|
3814
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3815
|
-
"description": "Enable telemetry for your account"
|
|
3816
|
-
}
|
|
3817
|
-
],
|
|
3818
|
-
"flags": {},
|
|
3819
|
-
"hasDynamicHelp": false,
|
|
3820
|
-
"hiddenAliases": [],
|
|
3821
|
-
"id": "telemetry:enable",
|
|
3822
|
-
"pluginAlias": "@sanity/cli",
|
|
3823
|
-
"pluginName": "@sanity/cli",
|
|
3824
|
-
"pluginType": "core",
|
|
3825
|
-
"strict": true,
|
|
3826
|
-
"isESM": true,
|
|
3827
|
-
"relativePath": [
|
|
3828
|
-
"dist",
|
|
3829
|
-
"commands",
|
|
3830
|
-
"telemetry",
|
|
3831
|
-
"enable.js"
|
|
3832
|
-
]
|
|
3833
|
-
},
|
|
3834
|
-
"telemetry:status": {
|
|
3782
|
+
"schemas:delete": {
|
|
3835
3783
|
"aliases": [],
|
|
3836
3784
|
"args": {},
|
|
3837
|
-
"description": "
|
|
3838
|
-
"examples": [
|
|
3839
|
-
{
|
|
3840
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3841
|
-
"description": "Check telemetry status for your account"
|
|
3842
|
-
}
|
|
3843
|
-
],
|
|
3844
|
-
"flags": {},
|
|
3845
|
-
"hasDynamicHelp": false,
|
|
3846
|
-
"hiddenAliases": [],
|
|
3847
|
-
"id": "telemetry:status",
|
|
3848
|
-
"pluginAlias": "@sanity/cli",
|
|
3849
|
-
"pluginName": "@sanity/cli",
|
|
3850
|
-
"pluginType": "core",
|
|
3851
|
-
"strict": true,
|
|
3852
|
-
"isESM": true,
|
|
3853
|
-
"relativePath": [
|
|
3854
|
-
"dist",
|
|
3855
|
-
"commands",
|
|
3856
|
-
"telemetry",
|
|
3857
|
-
"status.js"
|
|
3858
|
-
]
|
|
3859
|
-
},
|
|
3860
|
-
"tokens:add": {
|
|
3861
|
-
"aliases": [],
|
|
3862
|
-
"args": {
|
|
3863
|
-
"label": {
|
|
3864
|
-
"description": "Label for the new token",
|
|
3865
|
-
"name": "label",
|
|
3866
|
-
"required": false
|
|
3867
|
-
}
|
|
3868
|
-
},
|
|
3869
|
-
"description": "Create a new API token for the project",
|
|
3785
|
+
"description": "Delete schema documents by id",
|
|
3870
3786
|
"examples": [
|
|
3871
3787
|
{
|
|
3872
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3873
|
-
"description": "
|
|
3874
|
-
},
|
|
3875
|
-
{
|
|
3876
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
3877
|
-
"description": "Create a token with editor role"
|
|
3878
|
-
},
|
|
3879
|
-
{
|
|
3880
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
3881
|
-
"description": "Create a token in unattended mode"
|
|
3882
|
-
},
|
|
3883
|
-
{
|
|
3884
|
-
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
3885
|
-
"description": "Output token information as JSON"
|
|
3788
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
3789
|
+
"description": "Delete a single schema"
|
|
3886
3790
|
},
|
|
3887
3791
|
{
|
|
3888
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3889
|
-
"description": "
|
|
3792
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
3793
|
+
"description": "Delete multiple schemas"
|
|
3890
3794
|
}
|
|
3891
3795
|
],
|
|
3892
3796
|
"flags": {
|
|
3893
3797
|
"project-id": {
|
|
3894
3798
|
"char": "p",
|
|
3895
|
-
"description": "Project ID to
|
|
3799
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
3896
3800
|
"helpGroup": "OVERRIDE",
|
|
3897
3801
|
"name": "project-id",
|
|
3898
3802
|
"hasDynamicHelp": false,
|
|
@@ -3900,33 +3804,51 @@
|
|
|
3900
3804
|
"multiple": false,
|
|
3901
3805
|
"type": "option"
|
|
3902
3806
|
},
|
|
3903
|
-
"
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
3906
|
-
"
|
|
3807
|
+
"dataset": {
|
|
3808
|
+
"char": "d",
|
|
3809
|
+
"description": "Delete schemas from a specific dataset",
|
|
3810
|
+
"name": "dataset",
|
|
3811
|
+
"hasDynamicHelp": false,
|
|
3812
|
+
"helpValue": "<name>",
|
|
3813
|
+
"multiple": false,
|
|
3814
|
+
"type": "option"
|
|
3815
|
+
},
|
|
3816
|
+
"extract-manifest": {
|
|
3817
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3818
|
+
"hidden": true,
|
|
3819
|
+
"name": "extract-manifest",
|
|
3820
|
+
"allowNo": true,
|
|
3907
3821
|
"type": "boolean"
|
|
3908
3822
|
},
|
|
3909
|
-
"
|
|
3910
|
-
"description": "
|
|
3911
|
-
"name": "
|
|
3823
|
+
"ids": {
|
|
3824
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
3825
|
+
"name": "ids",
|
|
3826
|
+
"required": true,
|
|
3912
3827
|
"hasDynamicHelp": false,
|
|
3913
|
-
"helpValue": "viewer",
|
|
3914
3828
|
"multiple": false,
|
|
3915
3829
|
"type": "option"
|
|
3916
3830
|
},
|
|
3917
|
-
"
|
|
3918
|
-
"
|
|
3919
|
-
"
|
|
3920
|
-
"name": "
|
|
3831
|
+
"manifest-dir": {
|
|
3832
|
+
"description": "Directory containing manifest file",
|
|
3833
|
+
"hidden": true,
|
|
3834
|
+
"name": "manifest-dir",
|
|
3835
|
+
"default": "./dist/static",
|
|
3836
|
+
"hasDynamicHelp": false,
|
|
3837
|
+
"multiple": false,
|
|
3838
|
+
"type": "option"
|
|
3839
|
+
},
|
|
3840
|
+
"verbose": {
|
|
3841
|
+
"description": "Enable verbose logging",
|
|
3842
|
+
"name": "verbose",
|
|
3921
3843
|
"allowNo": false,
|
|
3922
3844
|
"type": "boolean"
|
|
3923
3845
|
}
|
|
3924
3846
|
},
|
|
3925
3847
|
"hasDynamicHelp": false,
|
|
3926
3848
|
"hiddenAliases": [
|
|
3927
|
-
"
|
|
3849
|
+
"schema:delete"
|
|
3928
3850
|
],
|
|
3929
|
-
"id": "
|
|
3851
|
+
"id": "schemas:delete",
|
|
3930
3852
|
"pluginAlias": "@sanity/cli",
|
|
3931
3853
|
"pluginName": "@sanity/cli",
|
|
3932
3854
|
"pluginType": "core",
|
|
@@ -3935,65 +3857,68 @@
|
|
|
3935
3857
|
"relativePath": [
|
|
3936
3858
|
"dist",
|
|
3937
3859
|
"commands",
|
|
3938
|
-
"
|
|
3939
|
-
"
|
|
3860
|
+
"schemas",
|
|
3861
|
+
"delete.js"
|
|
3940
3862
|
]
|
|
3941
3863
|
},
|
|
3942
|
-
"
|
|
3864
|
+
"schemas:deploy": {
|
|
3943
3865
|
"aliases": [],
|
|
3944
|
-
"args": {
|
|
3945
|
-
|
|
3946
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
3947
|
-
"name": "tokenId",
|
|
3948
|
-
"required": false
|
|
3949
|
-
}
|
|
3950
|
-
},
|
|
3951
|
-
"description": "Delete an API token from the project",
|
|
3866
|
+
"args": {},
|
|
3867
|
+
"description": "Deploy schema documents into workspace datasets.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To re-use an existing manifest, use --no-extract-manifest.",
|
|
3952
3868
|
"examples": [
|
|
3953
3869
|
{
|
|
3954
3870
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3955
|
-
"description": "
|
|
3956
|
-
},
|
|
3957
|
-
{
|
|
3958
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
3959
|
-
"description": "Delete a specific token by ID"
|
|
3960
|
-
},
|
|
3961
|
-
{
|
|
3962
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
3963
|
-
"description": "Delete a specific token without confirmation prompt"
|
|
3871
|
+
"description": "Deploy all workspace schemas"
|
|
3964
3872
|
},
|
|
3965
3873
|
{
|
|
3966
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3967
|
-
"description": "
|
|
3874
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3875
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
3968
3876
|
}
|
|
3969
3877
|
],
|
|
3970
3878
|
"flags": {
|
|
3971
|
-
"
|
|
3972
|
-
"
|
|
3973
|
-
"
|
|
3974
|
-
"
|
|
3975
|
-
"
|
|
3879
|
+
"extract-manifest": {
|
|
3880
|
+
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
3881
|
+
"name": "extract-manifest",
|
|
3882
|
+
"allowNo": true,
|
|
3883
|
+
"type": "boolean"
|
|
3884
|
+
},
|
|
3885
|
+
"manifest-dir": {
|
|
3886
|
+
"description": "Directory containing manifest file",
|
|
3887
|
+
"name": "manifest-dir",
|
|
3888
|
+
"default": "./dist/static",
|
|
3976
3889
|
"hasDynamicHelp": false,
|
|
3977
|
-
"helpValue": "<
|
|
3890
|
+
"helpValue": "<directory>",
|
|
3978
3891
|
"multiple": false,
|
|
3979
3892
|
"type": "option"
|
|
3980
3893
|
},
|
|
3981
|
-
"
|
|
3982
|
-
"
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
"
|
|
3986
|
-
"
|
|
3987
|
-
"
|
|
3894
|
+
"tag": {
|
|
3895
|
+
"description": "Add a tag suffix to the schema id",
|
|
3896
|
+
"name": "tag",
|
|
3897
|
+
"hasDynamicHelp": false,
|
|
3898
|
+
"helpValue": "<tag>",
|
|
3899
|
+
"multiple": false,
|
|
3900
|
+
"type": "option"
|
|
3901
|
+
},
|
|
3902
|
+
"verbose": {
|
|
3903
|
+
"description": "Print detailed information during deployment",
|
|
3904
|
+
"name": "verbose",
|
|
3988
3905
|
"allowNo": false,
|
|
3989
3906
|
"type": "boolean"
|
|
3907
|
+
},
|
|
3908
|
+
"workspace": {
|
|
3909
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
3910
|
+
"name": "workspace",
|
|
3911
|
+
"hasDynamicHelp": false,
|
|
3912
|
+
"helpValue": "<name>",
|
|
3913
|
+
"multiple": false,
|
|
3914
|
+
"type": "option"
|
|
3990
3915
|
}
|
|
3991
3916
|
},
|
|
3992
3917
|
"hasDynamicHelp": false,
|
|
3993
3918
|
"hiddenAliases": [
|
|
3994
|
-
"
|
|
3919
|
+
"schema:deploy"
|
|
3995
3920
|
],
|
|
3996
|
-
"id": "
|
|
3921
|
+
"id": "schemas:deploy",
|
|
3997
3922
|
"pluginAlias": "@sanity/cli",
|
|
3998
3923
|
"pluginName": "@sanity/cli",
|
|
3999
3924
|
"pluginType": "core",
|
|
@@ -4002,51 +3927,79 @@
|
|
|
4002
3927
|
"relativePath": [
|
|
4003
3928
|
"dist",
|
|
4004
3929
|
"commands",
|
|
4005
|
-
"
|
|
4006
|
-
"
|
|
3930
|
+
"schemas",
|
|
3931
|
+
"deploy.js"
|
|
4007
3932
|
]
|
|
4008
3933
|
},
|
|
4009
|
-
"
|
|
3934
|
+
"schemas:extract": {
|
|
4010
3935
|
"aliases": [],
|
|
4011
3936
|
"args": {},
|
|
4012
|
-
"description": "
|
|
3937
|
+
"description": "Extract a JSON representation of a Sanity schema within a Studio context.\n\nNote: This command is experimental and subject to change.",
|
|
4013
3938
|
"examples": [
|
|
4014
3939
|
{
|
|
4015
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4016
|
-
"description": "
|
|
3940
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3941
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
4017
3942
|
},
|
|
4018
3943
|
{
|
|
4019
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4020
|
-
"description": "
|
|
3944
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
3945
|
+
"description": "Watch mode - re-extract on changes"
|
|
4021
3946
|
},
|
|
4022
3947
|
{
|
|
4023
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4024
|
-
"description": "
|
|
3948
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
3949
|
+
"description": "Watch with custom glob patterns"
|
|
4025
3950
|
}
|
|
4026
3951
|
],
|
|
4027
3952
|
"flags": {
|
|
4028
|
-
"
|
|
4029
|
-
"
|
|
4030
|
-
"
|
|
4031
|
-
"
|
|
4032
|
-
"
|
|
3953
|
+
"enforce-required-fields": {
|
|
3954
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
3955
|
+
"name": "enforce-required-fields",
|
|
3956
|
+
"allowNo": false,
|
|
3957
|
+
"type": "boolean"
|
|
3958
|
+
},
|
|
3959
|
+
"format": {
|
|
3960
|
+
"description": "Output format (currently only groq-type-nodes)",
|
|
3961
|
+
"name": "format",
|
|
3962
|
+
"default": "groq-type-nodes",
|
|
4033
3963
|
"hasDynamicHelp": false,
|
|
4034
|
-
"helpValue": "<
|
|
3964
|
+
"helpValue": "<format>",
|
|
4035
3965
|
"multiple": false,
|
|
4036
3966
|
"type": "option"
|
|
4037
3967
|
},
|
|
4038
|
-
"
|
|
4039
|
-
"description": "
|
|
4040
|
-
"name": "
|
|
3968
|
+
"path": {
|
|
3969
|
+
"description": "Optional path to specify destination of the schema file",
|
|
3970
|
+
"name": "path",
|
|
3971
|
+
"hasDynamicHelp": false,
|
|
3972
|
+
"multiple": false,
|
|
3973
|
+
"type": "option"
|
|
3974
|
+
},
|
|
3975
|
+
"watch": {
|
|
3976
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
3977
|
+
"name": "watch",
|
|
4041
3978
|
"allowNo": false,
|
|
4042
3979
|
"type": "boolean"
|
|
3980
|
+
},
|
|
3981
|
+
"watch-patterns": {
|
|
3982
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
3983
|
+
"name": "watch-patterns",
|
|
3984
|
+
"hasDynamicHelp": false,
|
|
3985
|
+
"helpValue": "<glob>",
|
|
3986
|
+
"multiple": true,
|
|
3987
|
+
"type": "option"
|
|
3988
|
+
},
|
|
3989
|
+
"workspace": {
|
|
3990
|
+
"description": "The name of the workspace to generate a schema for",
|
|
3991
|
+
"name": "workspace",
|
|
3992
|
+
"hasDynamicHelp": false,
|
|
3993
|
+
"helpValue": "<name>",
|
|
3994
|
+
"multiple": false,
|
|
3995
|
+
"type": "option"
|
|
4043
3996
|
}
|
|
4044
3997
|
},
|
|
4045
3998
|
"hasDynamicHelp": false,
|
|
4046
3999
|
"hiddenAliases": [
|
|
4047
|
-
"
|
|
4000
|
+
"schema:extract"
|
|
4048
4001
|
],
|
|
4049
|
-
"id": "
|
|
4002
|
+
"id": "schemas:extract",
|
|
4050
4003
|
"pluginAlias": "@sanity/cli",
|
|
4051
4004
|
"pluginName": "@sanity/cli",
|
|
4052
4005
|
"pluginType": "core",
|
|
@@ -4055,63 +4008,70 @@
|
|
|
4055
4008
|
"relativePath": [
|
|
4056
4009
|
"dist",
|
|
4057
4010
|
"commands",
|
|
4058
|
-
"
|
|
4059
|
-
"
|
|
4011
|
+
"schemas",
|
|
4012
|
+
"extract.js"
|
|
4060
4013
|
]
|
|
4061
4014
|
},
|
|
4062
|
-
"
|
|
4015
|
+
"schemas:list": {
|
|
4063
4016
|
"aliases": [],
|
|
4064
|
-
"args": {
|
|
4065
|
-
|
|
4066
|
-
"description": "Email address to invite",
|
|
4067
|
-
"name": "email",
|
|
4068
|
-
"required": false
|
|
4069
|
-
}
|
|
4070
|
-
},
|
|
4071
|
-
"description": "Invite a new user to the project",
|
|
4017
|
+
"args": {},
|
|
4018
|
+
"description": "List all schemas in the current dataset.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To reuse an existing manifest, use --no-extract-manifest.",
|
|
4072
4019
|
"examples": [
|
|
4073
4020
|
{
|
|
4074
4021
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4075
|
-
"description": "
|
|
4022
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
4076
4023
|
},
|
|
4077
4024
|
{
|
|
4078
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4079
|
-
"description": "
|
|
4025
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
4026
|
+
"description": "Get a schema for a given id"
|
|
4080
4027
|
},
|
|
4081
4028
|
{
|
|
4082
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4083
|
-
"description": "
|
|
4029
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4030
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
4084
4031
|
},
|
|
4085
4032
|
{
|
|
4086
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4087
|
-
"description": "
|
|
4033
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
4034
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
4088
4035
|
}
|
|
4089
4036
|
],
|
|
4090
4037
|
"flags": {
|
|
4091
|
-
"
|
|
4092
|
-
"
|
|
4093
|
-
"
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4038
|
+
"extract-manifest": {
|
|
4039
|
+
"description": "Regenerate manifest before listing (use --no-extract-manifest to skip)",
|
|
4040
|
+
"hidden": true,
|
|
4041
|
+
"name": "extract-manifest",
|
|
4042
|
+
"allowNo": true,
|
|
4043
|
+
"type": "boolean"
|
|
4044
|
+
},
|
|
4045
|
+
"id": {
|
|
4046
|
+
"description": "Fetch a single schema by id",
|
|
4047
|
+
"name": "id",
|
|
4096
4048
|
"hasDynamicHelp": false,
|
|
4097
|
-
"helpValue": "<
|
|
4049
|
+
"helpValue": "<schema_id>",
|
|
4098
4050
|
"multiple": false,
|
|
4099
4051
|
"type": "option"
|
|
4100
4052
|
},
|
|
4101
|
-
"
|
|
4102
|
-
"description": "
|
|
4103
|
-
"name": "
|
|
4104
|
-
"
|
|
4053
|
+
"json": {
|
|
4054
|
+
"description": "Get schema as json",
|
|
4055
|
+
"name": "json",
|
|
4056
|
+
"allowNo": false,
|
|
4057
|
+
"type": "boolean"
|
|
4058
|
+
},
|
|
4059
|
+
"manifest-dir": {
|
|
4060
|
+
"description": "Directory containing manifest file",
|
|
4061
|
+
"hidden": true,
|
|
4062
|
+
"name": "manifest-dir",
|
|
4063
|
+
"default": "./dist/static",
|
|
4105
4064
|
"hasDynamicHelp": false,
|
|
4065
|
+
"helpValue": "<directory>",
|
|
4106
4066
|
"multiple": false,
|
|
4107
4067
|
"type": "option"
|
|
4108
4068
|
}
|
|
4109
4069
|
},
|
|
4110
4070
|
"hasDynamicHelp": false,
|
|
4111
4071
|
"hiddenAliases": [
|
|
4112
|
-
"
|
|
4072
|
+
"schema:list"
|
|
4113
4073
|
],
|
|
4114
|
-
"id": "
|
|
4074
|
+
"id": "schemas:list",
|
|
4115
4075
|
"pluginAlias": "@sanity/cli",
|
|
4116
4076
|
"pluginName": "@sanity/cli",
|
|
4117
4077
|
"pluginType": "core",
|
|
@@ -4120,87 +4080,79 @@
|
|
|
4120
4080
|
"relativePath": [
|
|
4121
4081
|
"dist",
|
|
4122
4082
|
"commands",
|
|
4123
|
-
"
|
|
4124
|
-
"
|
|
4083
|
+
"schemas",
|
|
4084
|
+
"list.js"
|
|
4125
4085
|
]
|
|
4126
4086
|
},
|
|
4127
|
-
"
|
|
4087
|
+
"schemas:validate": {
|
|
4128
4088
|
"aliases": [],
|
|
4129
4089
|
"args": {},
|
|
4130
|
-
"description": "
|
|
4090
|
+
"description": "Validates all schema types specified in a workspace",
|
|
4131
4091
|
"examples": [
|
|
4132
4092
|
{
|
|
4133
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4134
|
-
"description": "
|
|
4093
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4094
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
4135
4095
|
},
|
|
4136
4096
|
{
|
|
4137
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4138
|
-
"description": "
|
|
4097
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4098
|
+
"description": "Save the results of the report into a file"
|
|
4139
4099
|
},
|
|
4140
4100
|
{
|
|
4141
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4142
|
-
"description": "
|
|
4101
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4102
|
+
"description": "Report out only errors"
|
|
4143
4103
|
},
|
|
4144
4104
|
{
|
|
4145
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4146
|
-
"description": "
|
|
4105
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4106
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
4147
4107
|
}
|
|
4148
4108
|
],
|
|
4149
4109
|
"flags": {
|
|
4150
|
-
"
|
|
4151
|
-
"
|
|
4152
|
-
"
|
|
4153
|
-
"
|
|
4154
|
-
"name": "project-id",
|
|
4110
|
+
"debug-metafile-path": {
|
|
4111
|
+
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
4112
|
+
"helpGroup": "DEBUG",
|
|
4113
|
+
"name": "debug-metafile-path",
|
|
4155
4114
|
"hasDynamicHelp": false,
|
|
4156
|
-
"helpValue": "<id>",
|
|
4157
4115
|
"multiple": false,
|
|
4158
4116
|
"type": "option"
|
|
4159
4117
|
},
|
|
4160
|
-
"
|
|
4161
|
-
"description": "
|
|
4162
|
-
"name": "
|
|
4163
|
-
"
|
|
4164
|
-
"type": "boolean"
|
|
4165
|
-
},
|
|
4166
|
-
"order": {
|
|
4167
|
-
"description": "Sort output ascending/descending",
|
|
4168
|
-
"name": "order",
|
|
4169
|
-
"default": "asc",
|
|
4118
|
+
"format": {
|
|
4119
|
+
"description": "The output format used to print schema errors and warnings",
|
|
4120
|
+
"name": "format",
|
|
4121
|
+
"default": "pretty",
|
|
4170
4122
|
"hasDynamicHelp": false,
|
|
4171
4123
|
"multiple": false,
|
|
4172
4124
|
"options": [
|
|
4173
|
-
"
|
|
4174
|
-
"
|
|
4125
|
+
"pretty",
|
|
4126
|
+
"ndjson",
|
|
4127
|
+
"json"
|
|
4175
4128
|
],
|
|
4176
4129
|
"type": "option"
|
|
4177
4130
|
},
|
|
4178
|
-
"
|
|
4179
|
-
"description": "
|
|
4180
|
-
"name": "
|
|
4181
|
-
"
|
|
4182
|
-
"type": "boolean"
|
|
4183
|
-
},
|
|
4184
|
-
"sort": {
|
|
4185
|
-
"description": "Sort users by specified column",
|
|
4186
|
-
"name": "sort",
|
|
4187
|
-
"default": "date",
|
|
4131
|
+
"level": {
|
|
4132
|
+
"description": "The minimum level reported out",
|
|
4133
|
+
"name": "level",
|
|
4134
|
+
"default": "warning",
|
|
4188
4135
|
"hasDynamicHelp": false,
|
|
4189
4136
|
"multiple": false,
|
|
4190
4137
|
"options": [
|
|
4191
|
-
"
|
|
4192
|
-
"
|
|
4193
|
-
"role",
|
|
4194
|
-
"date"
|
|
4138
|
+
"error",
|
|
4139
|
+
"warning"
|
|
4195
4140
|
],
|
|
4196
4141
|
"type": "option"
|
|
4142
|
+
},
|
|
4143
|
+
"workspace": {
|
|
4144
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
4145
|
+
"name": "workspace",
|
|
4146
|
+
"hasDynamicHelp": false,
|
|
4147
|
+
"multiple": false,
|
|
4148
|
+
"type": "option"
|
|
4197
4149
|
}
|
|
4198
4150
|
},
|
|
4199
4151
|
"hasDynamicHelp": false,
|
|
4200
4152
|
"hiddenAliases": [
|
|
4201
|
-
"
|
|
4153
|
+
"schema:validate"
|
|
4202
4154
|
],
|
|
4203
|
-
"id": "
|
|
4155
|
+
"id": "schemas:validate",
|
|
4204
4156
|
"pluginAlias": "@sanity/cli",
|
|
4205
4157
|
"pluginName": "@sanity/cli",
|
|
4206
4158
|
"pluginType": "core",
|
|
@@ -4209,60 +4161,76 @@
|
|
|
4209
4161
|
"relativePath": [
|
|
4210
4162
|
"dist",
|
|
4211
4163
|
"commands",
|
|
4212
|
-
"
|
|
4213
|
-
"
|
|
4164
|
+
"schemas",
|
|
4165
|
+
"validate.js"
|
|
4214
4166
|
]
|
|
4215
4167
|
},
|
|
4216
|
-
"
|
|
4168
|
+
"telemetry:disable": {
|
|
4217
4169
|
"aliases": [],
|
|
4218
|
-
"args": {
|
|
4219
|
-
|
|
4220
|
-
"description": "Dataset alias name to create",
|
|
4221
|
-
"name": "aliasName",
|
|
4222
|
-
"required": false
|
|
4223
|
-
},
|
|
4224
|
-
"targetDataset": {
|
|
4225
|
-
"description": "Target dataset name to link the alias to",
|
|
4226
|
-
"name": "targetDataset",
|
|
4227
|
-
"required": false
|
|
4228
|
-
}
|
|
4229
|
-
},
|
|
4230
|
-
"description": "Create a dataset alias for the project",
|
|
4170
|
+
"args": {},
|
|
4171
|
+
"description": "Disable telemetry for your account",
|
|
4231
4172
|
"examples": [
|
|
4232
4173
|
{
|
|
4233
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4234
|
-
"description": "
|
|
4235
|
-
},
|
|
4236
|
-
{
|
|
4237
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4238
|
-
"description": "Create an alias with interactive prompts"
|
|
4239
|
-
},
|
|
4240
|
-
{
|
|
4241
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4242
|
-
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
4243
|
-
},
|
|
4244
|
-
{
|
|
4245
|
-
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
4246
|
-
"description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
|
|
4174
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4175
|
+
"description": "Disable telemetry for your account"
|
|
4247
4176
|
}
|
|
4248
4177
|
],
|
|
4249
|
-
"flags": {
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4178
|
+
"flags": {},
|
|
4179
|
+
"hasDynamicHelp": false,
|
|
4180
|
+
"hiddenAliases": [],
|
|
4181
|
+
"id": "telemetry:disable",
|
|
4182
|
+
"pluginAlias": "@sanity/cli",
|
|
4183
|
+
"pluginName": "@sanity/cli",
|
|
4184
|
+
"pluginType": "core",
|
|
4185
|
+
"strict": true,
|
|
4186
|
+
"isESM": true,
|
|
4187
|
+
"relativePath": [
|
|
4188
|
+
"dist",
|
|
4189
|
+
"commands",
|
|
4190
|
+
"telemetry",
|
|
4191
|
+
"disable.js"
|
|
4192
|
+
]
|
|
4193
|
+
},
|
|
4194
|
+
"telemetry:enable": {
|
|
4195
|
+
"aliases": [],
|
|
4196
|
+
"args": {},
|
|
4197
|
+
"description": "Enable telemetry for your account",
|
|
4198
|
+
"examples": [
|
|
4199
|
+
{
|
|
4200
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4201
|
+
"description": "Enable telemetry for your account"
|
|
4259
4202
|
}
|
|
4260
|
-
|
|
4203
|
+
],
|
|
4204
|
+
"flags": {},
|
|
4261
4205
|
"hasDynamicHelp": false,
|
|
4262
|
-
"hiddenAliases": [
|
|
4263
|
-
|
|
4206
|
+
"hiddenAliases": [],
|
|
4207
|
+
"id": "telemetry:enable",
|
|
4208
|
+
"pluginAlias": "@sanity/cli",
|
|
4209
|
+
"pluginName": "@sanity/cli",
|
|
4210
|
+
"pluginType": "core",
|
|
4211
|
+
"strict": true,
|
|
4212
|
+
"isESM": true,
|
|
4213
|
+
"relativePath": [
|
|
4214
|
+
"dist",
|
|
4215
|
+
"commands",
|
|
4216
|
+
"telemetry",
|
|
4217
|
+
"enable.js"
|
|
4218
|
+
]
|
|
4219
|
+
},
|
|
4220
|
+
"telemetry:status": {
|
|
4221
|
+
"aliases": [],
|
|
4222
|
+
"args": {},
|
|
4223
|
+
"description": "Check telemetry status for your account",
|
|
4224
|
+
"examples": [
|
|
4225
|
+
{
|
|
4226
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4227
|
+
"description": "Check telemetry status for your account"
|
|
4228
|
+
}
|
|
4264
4229
|
],
|
|
4265
|
-
"
|
|
4230
|
+
"flags": {},
|
|
4231
|
+
"hasDynamicHelp": false,
|
|
4232
|
+
"hiddenAliases": [],
|
|
4233
|
+
"id": "telemetry:status",
|
|
4266
4234
|
"pluginAlias": "@sanity/cli",
|
|
4267
4235
|
"pluginName": "@sanity/cli",
|
|
4268
4236
|
"pluginType": "core",
|
|
@@ -4271,35 +4239,46 @@
|
|
|
4271
4239
|
"relativePath": [
|
|
4272
4240
|
"dist",
|
|
4273
4241
|
"commands",
|
|
4274
|
-
"
|
|
4275
|
-
"
|
|
4276
|
-
"create.js"
|
|
4242
|
+
"telemetry",
|
|
4243
|
+
"status.js"
|
|
4277
4244
|
]
|
|
4278
4245
|
},
|
|
4279
|
-
"
|
|
4246
|
+
"tokens:add": {
|
|
4280
4247
|
"aliases": [],
|
|
4281
4248
|
"args": {
|
|
4282
|
-
"
|
|
4283
|
-
"description": "
|
|
4284
|
-
"name": "
|
|
4285
|
-
"required":
|
|
4249
|
+
"label": {
|
|
4250
|
+
"description": "Label for the new token",
|
|
4251
|
+
"name": "label",
|
|
4252
|
+
"required": false
|
|
4286
4253
|
}
|
|
4287
4254
|
},
|
|
4288
|
-
"description": "
|
|
4255
|
+
"description": "Create a new API token for the project",
|
|
4289
4256
|
"examples": [
|
|
4290
4257
|
{
|
|
4291
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4292
|
-
"description": "
|
|
4258
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
4259
|
+
"description": "Create a token with a label"
|
|
4293
4260
|
},
|
|
4294
4261
|
{
|
|
4295
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4296
|
-
"description": "
|
|
4262
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
4263
|
+
"description": "Create a token with editor role"
|
|
4264
|
+
},
|
|
4265
|
+
{
|
|
4266
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
4267
|
+
"description": "Create a token in unattended mode"
|
|
4268
|
+
},
|
|
4269
|
+
{
|
|
4270
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
4271
|
+
"description": "Output token information as JSON"
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
4275
|
+
"description": "Create a token for a specific project"
|
|
4297
4276
|
}
|
|
4298
4277
|
],
|
|
4299
4278
|
"flags": {
|
|
4300
4279
|
"project-id": {
|
|
4301
4280
|
"char": "p",
|
|
4302
|
-
"description": "Project ID to
|
|
4281
|
+
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
4303
4282
|
"helpGroup": "OVERRIDE",
|
|
4304
4283
|
"name": "project-id",
|
|
4305
4284
|
"hasDynamicHelp": false,
|
|
@@ -4307,19 +4286,33 @@
|
|
|
4307
4286
|
"multiple": false,
|
|
4308
4287
|
"type": "option"
|
|
4309
4288
|
},
|
|
4310
|
-
"
|
|
4311
|
-
"description": "
|
|
4312
|
-
"name": "
|
|
4313
|
-
"
|
|
4289
|
+
"json": {
|
|
4290
|
+
"description": "Output as JSON",
|
|
4291
|
+
"name": "json",
|
|
4292
|
+
"allowNo": false,
|
|
4293
|
+
"type": "boolean"
|
|
4294
|
+
},
|
|
4295
|
+
"role": {
|
|
4296
|
+
"description": "Role to assign to the token",
|
|
4297
|
+
"name": "role",
|
|
4298
|
+
"hasDynamicHelp": false,
|
|
4299
|
+
"helpValue": "viewer",
|
|
4300
|
+
"multiple": false,
|
|
4301
|
+
"type": "option"
|
|
4302
|
+
},
|
|
4303
|
+
"yes": {
|
|
4304
|
+
"char": "y",
|
|
4305
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
4306
|
+
"name": "yes",
|
|
4314
4307
|
"allowNo": false,
|
|
4315
4308
|
"type": "boolean"
|
|
4316
4309
|
}
|
|
4317
4310
|
},
|
|
4318
4311
|
"hasDynamicHelp": false,
|
|
4319
4312
|
"hiddenAliases": [
|
|
4320
|
-
"
|
|
4313
|
+
"token:add"
|
|
4321
4314
|
],
|
|
4322
|
-
"id": "
|
|
4315
|
+
"id": "tokens:add",
|
|
4323
4316
|
"pluginAlias": "@sanity/cli",
|
|
4324
4317
|
"pluginName": "@sanity/cli",
|
|
4325
4318
|
"pluginType": "core",
|
|
@@ -4328,48 +4321,42 @@
|
|
|
4328
4321
|
"relativePath": [
|
|
4329
4322
|
"dist",
|
|
4330
4323
|
"commands",
|
|
4331
|
-
"
|
|
4332
|
-
"
|
|
4333
|
-
"delete.js"
|
|
4324
|
+
"tokens",
|
|
4325
|
+
"add.js"
|
|
4334
4326
|
]
|
|
4335
4327
|
},
|
|
4336
|
-
"
|
|
4328
|
+
"tokens:delete": {
|
|
4337
4329
|
"aliases": [],
|
|
4338
4330
|
"args": {
|
|
4339
|
-
"
|
|
4340
|
-
"description": "
|
|
4341
|
-
"name": "
|
|
4342
|
-
"required": false
|
|
4343
|
-
},
|
|
4344
|
-
"targetDataset": {
|
|
4345
|
-
"description": "Target dataset name to link the alias to",
|
|
4346
|
-
"name": "targetDataset",
|
|
4331
|
+
"tokenId": {
|
|
4332
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
4333
|
+
"name": "tokenId",
|
|
4347
4334
|
"required": false
|
|
4348
4335
|
}
|
|
4349
4336
|
},
|
|
4350
|
-
"description": "
|
|
4337
|
+
"description": "Delete an API token from the project",
|
|
4351
4338
|
"examples": [
|
|
4352
4339
|
{
|
|
4353
4340
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4354
|
-
"description": "
|
|
4341
|
+
"description": "Interactively select and delete a token"
|
|
4355
4342
|
},
|
|
4356
4343
|
{
|
|
4357
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4358
|
-
"description": "
|
|
4344
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
4345
|
+
"description": "Delete a specific token by ID"
|
|
4359
4346
|
},
|
|
4360
4347
|
{
|
|
4361
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4362
|
-
"description": "
|
|
4348
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
4349
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
4363
4350
|
},
|
|
4364
4351
|
{
|
|
4365
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4366
|
-
"description": "
|
|
4352
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4353
|
+
"description": "Delete a token from a specific project"
|
|
4367
4354
|
}
|
|
4368
4355
|
],
|
|
4369
4356
|
"flags": {
|
|
4370
4357
|
"project-id": {
|
|
4371
4358
|
"char": "p",
|
|
4372
|
-
"description": "Project ID to
|
|
4359
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
4373
4360
|
"helpGroup": "OVERRIDE",
|
|
4374
4361
|
"name": "project-id",
|
|
4375
4362
|
"hasDynamicHelp": false,
|
|
@@ -4377,9 +4364,12 @@
|
|
|
4377
4364
|
"multiple": false,
|
|
4378
4365
|
"type": "option"
|
|
4379
4366
|
},
|
|
4380
|
-
"
|
|
4381
|
-
"
|
|
4382
|
-
|
|
4367
|
+
"yes": {
|
|
4368
|
+
"aliases": [
|
|
4369
|
+
"y"
|
|
4370
|
+
],
|
|
4371
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
4372
|
+
"name": "yes",
|
|
4383
4373
|
"required": false,
|
|
4384
4374
|
"allowNo": false,
|
|
4385
4375
|
"type": "boolean"
|
|
@@ -4387,9 +4377,9 @@
|
|
|
4387
4377
|
},
|
|
4388
4378
|
"hasDynamicHelp": false,
|
|
4389
4379
|
"hiddenAliases": [
|
|
4390
|
-
"
|
|
4380
|
+
"token:delete"
|
|
4391
4381
|
],
|
|
4392
|
-
"id": "
|
|
4382
|
+
"id": "tokens:delete",
|
|
4393
4383
|
"pluginAlias": "@sanity/cli",
|
|
4394
4384
|
"pluginName": "@sanity/cli",
|
|
4395
4385
|
"pluginType": "core",
|
|
@@ -4398,39 +4388,32 @@
|
|
|
4398
4388
|
"relativePath": [
|
|
4399
4389
|
"dist",
|
|
4400
4390
|
"commands",
|
|
4401
|
-
"
|
|
4402
|
-
"
|
|
4403
|
-
"link.js"
|
|
4391
|
+
"tokens",
|
|
4392
|
+
"delete.js"
|
|
4404
4393
|
]
|
|
4405
4394
|
},
|
|
4406
|
-
"
|
|
4395
|
+
"tokens:list": {
|
|
4407
4396
|
"aliases": [],
|
|
4408
|
-
"args": {
|
|
4409
|
-
|
|
4410
|
-
"description": "Dataset alias name to unlink",
|
|
4411
|
-
"name": "aliasName",
|
|
4412
|
-
"required": false
|
|
4413
|
-
}
|
|
4414
|
-
},
|
|
4415
|
-
"description": "Unlink a dataset alias from its dataset in the project",
|
|
4397
|
+
"args": {},
|
|
4398
|
+
"description": "List API tokens for the project",
|
|
4416
4399
|
"examples": [
|
|
4417
4400
|
{
|
|
4418
4401
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4419
|
-
"description": "
|
|
4402
|
+
"description": "List tokens for the project"
|
|
4420
4403
|
},
|
|
4421
4404
|
{
|
|
4422
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4423
|
-
"description": "
|
|
4405
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4406
|
+
"description": "List tokens in JSON format"
|
|
4424
4407
|
},
|
|
4425
4408
|
{
|
|
4426
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4427
|
-
"description": "
|
|
4409
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4410
|
+
"description": "List tokens for a specific project"
|
|
4428
4411
|
}
|
|
4429
4412
|
],
|
|
4430
4413
|
"flags": {
|
|
4431
4414
|
"project-id": {
|
|
4432
4415
|
"char": "p",
|
|
4433
|
-
"description": "Project ID to
|
|
4416
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
4434
4417
|
"helpGroup": "OVERRIDE",
|
|
4435
4418
|
"name": "project-id",
|
|
4436
4419
|
"hasDynamicHelp": false,
|
|
@@ -4438,19 +4421,18 @@
|
|
|
4438
4421
|
"multiple": false,
|
|
4439
4422
|
"type": "option"
|
|
4440
4423
|
},
|
|
4441
|
-
"
|
|
4442
|
-
"description": "
|
|
4443
|
-
"name": "
|
|
4444
|
-
"required": false,
|
|
4424
|
+
"json": {
|
|
4425
|
+
"description": "Output tokens in JSON format",
|
|
4426
|
+
"name": "json",
|
|
4445
4427
|
"allowNo": false,
|
|
4446
4428
|
"type": "boolean"
|
|
4447
4429
|
}
|
|
4448
4430
|
},
|
|
4449
4431
|
"hasDynamicHelp": false,
|
|
4450
4432
|
"hiddenAliases": [
|
|
4451
|
-
"
|
|
4433
|
+
"token:list"
|
|
4452
4434
|
],
|
|
4453
|
-
"id": "
|
|
4435
|
+
"id": "tokens:list",
|
|
4454
4436
|
"pluginAlias": "@sanity/cli",
|
|
4455
4437
|
"pluginName": "@sanity/cli",
|
|
4456
4438
|
"pluginType": "core",
|
|
@@ -4459,44 +4441,63 @@
|
|
|
4459
4441
|
"relativePath": [
|
|
4460
4442
|
"dist",
|
|
4461
4443
|
"commands",
|
|
4462
|
-
"
|
|
4463
|
-
"
|
|
4464
|
-
"unlink.js"
|
|
4444
|
+
"tokens",
|
|
4445
|
+
"list.js"
|
|
4465
4446
|
]
|
|
4466
4447
|
},
|
|
4467
|
-
"
|
|
4448
|
+
"users:invite": {
|
|
4468
4449
|
"aliases": [],
|
|
4469
4450
|
"args": {
|
|
4470
|
-
"
|
|
4471
|
-
"description": "
|
|
4472
|
-
"name": "
|
|
4451
|
+
"email": {
|
|
4452
|
+
"description": "Email address to invite",
|
|
4453
|
+
"name": "email",
|
|
4473
4454
|
"required": false
|
|
4474
4455
|
}
|
|
4475
4456
|
},
|
|
4476
|
-
"description": "
|
|
4457
|
+
"description": "Invite a new user to the project",
|
|
4477
4458
|
"examples": [
|
|
4478
4459
|
{
|
|
4479
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4480
|
-
"description": "
|
|
4460
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4461
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
4465
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
4466
|
+
},
|
|
4467
|
+
{
|
|
4468
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
4469
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
4473
|
+
"description": "Invite a user to a specific project"
|
|
4481
4474
|
}
|
|
4482
4475
|
],
|
|
4483
4476
|
"flags": {
|
|
4484
4477
|
"project-id": {
|
|
4485
4478
|
"char": "p",
|
|
4486
|
-
"description": "Project ID to
|
|
4479
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
4487
4480
|
"helpGroup": "OVERRIDE",
|
|
4488
4481
|
"name": "project-id",
|
|
4489
4482
|
"hasDynamicHelp": false,
|
|
4490
4483
|
"helpValue": "<id>",
|
|
4491
4484
|
"multiple": false,
|
|
4492
4485
|
"type": "option"
|
|
4486
|
+
},
|
|
4487
|
+
"role": {
|
|
4488
|
+
"description": "Role to invite the user as",
|
|
4489
|
+
"name": "role",
|
|
4490
|
+
"required": false,
|
|
4491
|
+
"hasDynamicHelp": false,
|
|
4492
|
+
"multiple": false,
|
|
4493
|
+
"type": "option"
|
|
4493
4494
|
}
|
|
4494
4495
|
},
|
|
4495
4496
|
"hasDynamicHelp": false,
|
|
4496
4497
|
"hiddenAliases": [
|
|
4497
|
-
"
|
|
4498
|
+
"user:invite"
|
|
4498
4499
|
],
|
|
4499
|
-
"id": "
|
|
4500
|
+
"id": "users:invite",
|
|
4500
4501
|
"pluginAlias": "@sanity/cli",
|
|
4501
4502
|
"pluginName": "@sanity/cli",
|
|
4502
4503
|
"pluginType": "core",
|
|
@@ -4505,39 +4506,36 @@
|
|
|
4505
4506
|
"relativePath": [
|
|
4506
4507
|
"dist",
|
|
4507
4508
|
"commands",
|
|
4508
|
-
"
|
|
4509
|
-
"
|
|
4510
|
-
"disable.js"
|
|
4509
|
+
"users",
|
|
4510
|
+
"invite.js"
|
|
4511
4511
|
]
|
|
4512
4512
|
},
|
|
4513
|
-
"
|
|
4513
|
+
"users:list": {
|
|
4514
4514
|
"aliases": [],
|
|
4515
|
-
"args": {
|
|
4516
|
-
|
|
4517
|
-
"description": "Dataset name to enable embeddings for",
|
|
4518
|
-
"name": "dataset",
|
|
4519
|
-
"required": false
|
|
4520
|
-
}
|
|
4521
|
-
},
|
|
4522
|
-
"description": "Enable embeddings for a dataset",
|
|
4515
|
+
"args": {},
|
|
4516
|
+
"description": "List project members",
|
|
4523
4517
|
"examples": [
|
|
4524
4518
|
{
|
|
4525
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4526
|
-
"description": "
|
|
4519
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4520
|
+
"description": "List all users of the project"
|
|
4527
4521
|
},
|
|
4528
4522
|
{
|
|
4529
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4530
|
-
"description": "
|
|
4523
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
4524
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
4531
4525
|
},
|
|
4532
4526
|
{
|
|
4533
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4534
|
-
"description": "
|
|
4527
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
4528
|
+
"description": "List all users, sorted by role"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4532
|
+
"description": "List users for a specific project"
|
|
4535
4533
|
}
|
|
4536
4534
|
],
|
|
4537
4535
|
"flags": {
|
|
4538
4536
|
"project-id": {
|
|
4539
4537
|
"char": "p",
|
|
4540
|
-
"description": "Project ID to
|
|
4538
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
4541
4539
|
"helpGroup": "OVERRIDE",
|
|
4542
4540
|
"name": "project-id",
|
|
4543
4541
|
"hasDynamicHelp": false,
|
|
@@ -4545,26 +4543,50 @@
|
|
|
4545
4543
|
"multiple": false,
|
|
4546
4544
|
"type": "option"
|
|
4547
4545
|
},
|
|
4548
|
-
"
|
|
4549
|
-
"description": "
|
|
4550
|
-
"name": "
|
|
4551
|
-
"
|
|
4546
|
+
"invitations": {
|
|
4547
|
+
"description": "Includes or excludes pending invitations",
|
|
4548
|
+
"name": "invitations",
|
|
4549
|
+
"allowNo": true,
|
|
4550
|
+
"type": "boolean"
|
|
4551
|
+
},
|
|
4552
|
+
"order": {
|
|
4553
|
+
"description": "Sort output ascending/descending",
|
|
4554
|
+
"name": "order",
|
|
4555
|
+
"default": "asc",
|
|
4552
4556
|
"hasDynamicHelp": false,
|
|
4553
4557
|
"multiple": false,
|
|
4558
|
+
"options": [
|
|
4559
|
+
"asc",
|
|
4560
|
+
"desc"
|
|
4561
|
+
],
|
|
4554
4562
|
"type": "option"
|
|
4555
4563
|
},
|
|
4556
|
-
"
|
|
4557
|
-
"description": "
|
|
4558
|
-
"name": "
|
|
4559
|
-
"allowNo":
|
|
4564
|
+
"robots": {
|
|
4565
|
+
"description": "Includes or excludes robots (token users)",
|
|
4566
|
+
"name": "robots",
|
|
4567
|
+
"allowNo": true,
|
|
4560
4568
|
"type": "boolean"
|
|
4569
|
+
},
|
|
4570
|
+
"sort": {
|
|
4571
|
+
"description": "Sort users by specified column",
|
|
4572
|
+
"name": "sort",
|
|
4573
|
+
"default": "date",
|
|
4574
|
+
"hasDynamicHelp": false,
|
|
4575
|
+
"multiple": false,
|
|
4576
|
+
"options": [
|
|
4577
|
+
"id",
|
|
4578
|
+
"name",
|
|
4579
|
+
"role",
|
|
4580
|
+
"date"
|
|
4581
|
+
],
|
|
4582
|
+
"type": "option"
|
|
4561
4583
|
}
|
|
4562
4584
|
},
|
|
4563
4585
|
"hasDynamicHelp": false,
|
|
4564
4586
|
"hiddenAliases": [
|
|
4565
|
-
"
|
|
4587
|
+
"user:list"
|
|
4566
4588
|
],
|
|
4567
|
-
"id": "
|
|
4589
|
+
"id": "users:list",
|
|
4568
4590
|
"pluginAlias": "@sanity/cli",
|
|
4569
4591
|
"pluginName": "@sanity/cli",
|
|
4570
4592
|
"pluginType": "core",
|
|
@@ -4573,31 +4595,47 @@
|
|
|
4573
4595
|
"relativePath": [
|
|
4574
4596
|
"dist",
|
|
4575
4597
|
"commands",
|
|
4576
|
-
"
|
|
4577
|
-
"
|
|
4578
|
-
"enable.js"
|
|
4598
|
+
"users",
|
|
4599
|
+
"list.js"
|
|
4579
4600
|
]
|
|
4580
4601
|
},
|
|
4581
|
-
"datasets:
|
|
4602
|
+
"datasets:alias:create": {
|
|
4582
4603
|
"aliases": [],
|
|
4583
4604
|
"args": {
|
|
4584
|
-
"
|
|
4585
|
-
"description": "
|
|
4586
|
-
"name": "
|
|
4605
|
+
"aliasName": {
|
|
4606
|
+
"description": "Dataset alias name to create",
|
|
4607
|
+
"name": "aliasName",
|
|
4608
|
+
"required": false
|
|
4609
|
+
},
|
|
4610
|
+
"targetDataset": {
|
|
4611
|
+
"description": "Target dataset name to link the alias to",
|
|
4612
|
+
"name": "targetDataset",
|
|
4587
4613
|
"required": false
|
|
4588
4614
|
}
|
|
4589
4615
|
},
|
|
4590
|
-
"description": "
|
|
4616
|
+
"description": "Create a dataset alias for the project",
|
|
4591
4617
|
"examples": [
|
|
4592
4618
|
{
|
|
4593
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4594
|
-
"description": "
|
|
4619
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
4620
|
+
"description": "Create alias in a specific project"
|
|
4621
|
+
},
|
|
4622
|
+
{
|
|
4623
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4624
|
+
"description": "Create an alias with interactive prompts"
|
|
4625
|
+
},
|
|
4626
|
+
{
|
|
4627
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4628
|
+
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
4629
|
+
},
|
|
4630
|
+
{
|
|
4631
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
4632
|
+
"description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
|
|
4595
4633
|
}
|
|
4596
4634
|
],
|
|
4597
4635
|
"flags": {
|
|
4598
4636
|
"project-id": {
|
|
4599
4637
|
"char": "p",
|
|
4600
|
-
"description": "Project ID to
|
|
4638
|
+
"description": "Project ID to create dataset alias in (overrides CLI configuration)",
|
|
4601
4639
|
"helpGroup": "OVERRIDE",
|
|
4602
4640
|
"name": "project-id",
|
|
4603
4641
|
"hasDynamicHelp": false,
|
|
@@ -4608,9 +4646,9 @@
|
|
|
4608
4646
|
},
|
|
4609
4647
|
"hasDynamicHelp": false,
|
|
4610
4648
|
"hiddenAliases": [
|
|
4611
|
-
"dataset:
|
|
4649
|
+
"dataset:alias:create"
|
|
4612
4650
|
],
|
|
4613
|
-
"id": "datasets:
|
|
4651
|
+
"id": "datasets:alias:create",
|
|
4614
4652
|
"pluginAlias": "@sanity/cli",
|
|
4615
4653
|
"pluginName": "@sanity/cli",
|
|
4616
4654
|
"pluginType": "core",
|
|
@@ -4620,28 +4658,34 @@
|
|
|
4620
4658
|
"dist",
|
|
4621
4659
|
"commands",
|
|
4622
4660
|
"datasets",
|
|
4623
|
-
"
|
|
4624
|
-
"
|
|
4661
|
+
"alias",
|
|
4662
|
+
"create.js"
|
|
4625
4663
|
]
|
|
4626
4664
|
},
|
|
4627
|
-
"
|
|
4665
|
+
"datasets:alias:delete": {
|
|
4628
4666
|
"aliases": [],
|
|
4629
|
-
"args": {
|
|
4630
|
-
|
|
4667
|
+
"args": {
|
|
4668
|
+
"aliasName": {
|
|
4669
|
+
"description": "Dataset alias name to delete",
|
|
4670
|
+
"name": "aliasName",
|
|
4671
|
+
"required": true
|
|
4672
|
+
}
|
|
4673
|
+
},
|
|
4674
|
+
"description": "Delete a dataset alias from the project",
|
|
4631
4675
|
"examples": [
|
|
4632
4676
|
{
|
|
4633
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4634
|
-
"description": "Delete
|
|
4677
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4678
|
+
"description": "Delete alias named \"conference\" with confirmation prompt"
|
|
4635
4679
|
},
|
|
4636
4680
|
{
|
|
4637
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4638
|
-
"description": "Delete
|
|
4681
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
4682
|
+
"description": "Delete alias named \"conference\" without confirmation prompt"
|
|
4639
4683
|
}
|
|
4640
4684
|
],
|
|
4641
4685
|
"flags": {
|
|
4642
4686
|
"project-id": {
|
|
4643
4687
|
"char": "p",
|
|
4644
|
-
"description": "Project ID to delete
|
|
4688
|
+
"description": "Project ID to delete dataset alias from (overrides CLI configuration)",
|
|
4645
4689
|
"helpGroup": "OVERRIDE",
|
|
4646
4690
|
"name": "project-id",
|
|
4647
4691
|
"hasDynamicHelp": false,
|
|
@@ -4649,51 +4693,19 @@
|
|
|
4649
4693
|
"multiple": false,
|
|
4650
4694
|
"type": "option"
|
|
4651
4695
|
},
|
|
4652
|
-
"
|
|
4653
|
-
"
|
|
4654
|
-
"
|
|
4655
|
-
"
|
|
4656
|
-
"hasDynamicHelp": false,
|
|
4657
|
-
"helpValue": "<name>",
|
|
4658
|
-
"multiple": false,
|
|
4659
|
-
"type": "option"
|
|
4660
|
-
},
|
|
4661
|
-
"extract-manifest": {
|
|
4662
|
-
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
4663
|
-
"hidden": true,
|
|
4664
|
-
"name": "extract-manifest",
|
|
4665
|
-
"allowNo": true,
|
|
4666
|
-
"type": "boolean"
|
|
4667
|
-
},
|
|
4668
|
-
"ids": {
|
|
4669
|
-
"description": "Comma-separated list of schema ids to delete",
|
|
4670
|
-
"name": "ids",
|
|
4671
|
-
"required": true,
|
|
4672
|
-
"hasDynamicHelp": false,
|
|
4673
|
-
"multiple": false,
|
|
4674
|
-
"type": "option"
|
|
4675
|
-
},
|
|
4676
|
-
"manifest-dir": {
|
|
4677
|
-
"description": "Directory containing manifest file",
|
|
4678
|
-
"hidden": true,
|
|
4679
|
-
"name": "manifest-dir",
|
|
4680
|
-
"default": "./dist/static",
|
|
4681
|
-
"hasDynamicHelp": false,
|
|
4682
|
-
"multiple": false,
|
|
4683
|
-
"type": "option"
|
|
4684
|
-
},
|
|
4685
|
-
"verbose": {
|
|
4686
|
-
"description": "Enable verbose logging",
|
|
4687
|
-
"name": "verbose",
|
|
4696
|
+
"force": {
|
|
4697
|
+
"description": "Skip confirmation prompt and delete immediately",
|
|
4698
|
+
"name": "force",
|
|
4699
|
+
"required": false,
|
|
4688
4700
|
"allowNo": false,
|
|
4689
4701
|
"type": "boolean"
|
|
4690
4702
|
}
|
|
4691
4703
|
},
|
|
4692
4704
|
"hasDynamicHelp": false,
|
|
4693
4705
|
"hiddenAliases": [
|
|
4694
|
-
"
|
|
4706
|
+
"dataset:alias:delete"
|
|
4695
4707
|
],
|
|
4696
|
-
"id": "
|
|
4708
|
+
"id": "datasets:alias:delete",
|
|
4697
4709
|
"pluginAlias": "@sanity/cli",
|
|
4698
4710
|
"pluginName": "@sanity/cli",
|
|
4699
4711
|
"pluginType": "core",
|
|
@@ -4702,68 +4714,68 @@
|
|
|
4702
4714
|
"relativePath": [
|
|
4703
4715
|
"dist",
|
|
4704
4716
|
"commands",
|
|
4705
|
-
"
|
|
4717
|
+
"datasets",
|
|
4718
|
+
"alias",
|
|
4706
4719
|
"delete.js"
|
|
4707
4720
|
]
|
|
4708
4721
|
},
|
|
4709
|
-
"
|
|
4722
|
+
"datasets:alias:link": {
|
|
4710
4723
|
"aliases": [],
|
|
4711
|
-
"args": {
|
|
4712
|
-
|
|
4724
|
+
"args": {
|
|
4725
|
+
"aliasName": {
|
|
4726
|
+
"description": "Dataset alias name to link",
|
|
4727
|
+
"name": "aliasName",
|
|
4728
|
+
"required": false
|
|
4729
|
+
},
|
|
4730
|
+
"targetDataset": {
|
|
4731
|
+
"description": "Target dataset name to link the alias to",
|
|
4732
|
+
"name": "targetDataset",
|
|
4733
|
+
"required": false
|
|
4734
|
+
}
|
|
4735
|
+
},
|
|
4736
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
4713
4737
|
"examples": [
|
|
4714
4738
|
{
|
|
4715
4739
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4716
|
-
"description": "
|
|
4740
|
+
"description": "Link an alias with interactive prompts"
|
|
4717
4741
|
},
|
|
4718
4742
|
{
|
|
4719
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4720
|
-
"description": "
|
|
4721
|
-
}
|
|
4722
|
-
],
|
|
4723
|
-
"flags": {
|
|
4724
|
-
"extract-manifest": {
|
|
4725
|
-
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
4726
|
-
"name": "extract-manifest",
|
|
4727
|
-
"allowNo": true,
|
|
4728
|
-
"type": "boolean"
|
|
4743
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4744
|
+
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
4729
4745
|
},
|
|
4730
|
-
|
|
4731
|
-
"
|
|
4732
|
-
"
|
|
4733
|
-
"default": "./dist/static",
|
|
4734
|
-
"hasDynamicHelp": false,
|
|
4735
|
-
"helpValue": "<directory>",
|
|
4736
|
-
"multiple": false,
|
|
4737
|
-
"type": "option"
|
|
4746
|
+
{
|
|
4747
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
4748
|
+
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
4738
4749
|
},
|
|
4739
|
-
|
|
4740
|
-
"
|
|
4741
|
-
"
|
|
4750
|
+
{
|
|
4751
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
|
|
4752
|
+
"description": "Force link without confirmation (skip relink prompt)"
|
|
4753
|
+
}
|
|
4754
|
+
],
|
|
4755
|
+
"flags": {
|
|
4756
|
+
"project-id": {
|
|
4757
|
+
"char": "p",
|
|
4758
|
+
"description": "Project ID to link dataset alias in (overrides CLI configuration)",
|
|
4759
|
+
"helpGroup": "OVERRIDE",
|
|
4760
|
+
"name": "project-id",
|
|
4742
4761
|
"hasDynamicHelp": false,
|
|
4743
|
-
"helpValue": "<
|
|
4762
|
+
"helpValue": "<id>",
|
|
4744
4763
|
"multiple": false,
|
|
4745
4764
|
"type": "option"
|
|
4746
4765
|
},
|
|
4747
|
-
"
|
|
4748
|
-
"description": "
|
|
4749
|
-
"name": "
|
|
4766
|
+
"force": {
|
|
4767
|
+
"description": "Skip confirmation prompt when relinking existing alias",
|
|
4768
|
+
"name": "force",
|
|
4769
|
+
"required": false,
|
|
4750
4770
|
"allowNo": false,
|
|
4751
4771
|
"type": "boolean"
|
|
4752
|
-
},
|
|
4753
|
-
"workspace": {
|
|
4754
|
-
"description": "The name of the workspace to deploy a schema for",
|
|
4755
|
-
"name": "workspace",
|
|
4756
|
-
"hasDynamicHelp": false,
|
|
4757
|
-
"helpValue": "<name>",
|
|
4758
|
-
"multiple": false,
|
|
4759
|
-
"type": "option"
|
|
4760
4772
|
}
|
|
4761
4773
|
},
|
|
4762
4774
|
"hasDynamicHelp": false,
|
|
4763
4775
|
"hiddenAliases": [
|
|
4764
|
-
"
|
|
4776
|
+
"dataset:alias:link"
|
|
4765
4777
|
],
|
|
4766
|
-
"id": "
|
|
4778
|
+
"id": "datasets:alias:link",
|
|
4767
4779
|
"pluginAlias": "@sanity/cli",
|
|
4768
4780
|
"pluginName": "@sanity/cli",
|
|
4769
4781
|
"pluginType": "core",
|
|
@@ -4772,79 +4784,59 @@
|
|
|
4772
4784
|
"relativePath": [
|
|
4773
4785
|
"dist",
|
|
4774
4786
|
"commands",
|
|
4775
|
-
"
|
|
4776
|
-
"
|
|
4787
|
+
"datasets",
|
|
4788
|
+
"alias",
|
|
4789
|
+
"link.js"
|
|
4777
4790
|
]
|
|
4778
4791
|
},
|
|
4779
|
-
"
|
|
4792
|
+
"datasets:alias:unlink": {
|
|
4780
4793
|
"aliases": [],
|
|
4781
|
-
"args": {
|
|
4782
|
-
|
|
4794
|
+
"args": {
|
|
4795
|
+
"aliasName": {
|
|
4796
|
+
"description": "Dataset alias name to unlink",
|
|
4797
|
+
"name": "aliasName",
|
|
4798
|
+
"required": false
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4801
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
4783
4802
|
"examples": [
|
|
4784
4803
|
{
|
|
4785
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4786
|
-
"description": "
|
|
4804
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4805
|
+
"description": "Unlink an alias with interactive selection"
|
|
4787
4806
|
},
|
|
4788
4807
|
{
|
|
4789
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4790
|
-
"description": "
|
|
4808
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4809
|
+
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
4791
4810
|
},
|
|
4792
4811
|
{
|
|
4793
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4794
|
-
"description": "
|
|
4812
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
4813
|
+
"description": "Unlink alias \"conference\" without confirmation prompt"
|
|
4795
4814
|
}
|
|
4796
4815
|
],
|
|
4797
4816
|
"flags": {
|
|
4798
|
-
"
|
|
4799
|
-
"
|
|
4800
|
-
"
|
|
4801
|
-
"
|
|
4802
|
-
"
|
|
4803
|
-
},
|
|
4804
|
-
"format": {
|
|
4805
|
-
"description": "Output format (currently only groq-type-nodes)",
|
|
4806
|
-
"name": "format",
|
|
4807
|
-
"default": "groq-type-nodes",
|
|
4808
|
-
"hasDynamicHelp": false,
|
|
4809
|
-
"helpValue": "<format>",
|
|
4810
|
-
"multiple": false,
|
|
4811
|
-
"type": "option"
|
|
4812
|
-
},
|
|
4813
|
-
"path": {
|
|
4814
|
-
"description": "Optional path to specify destination of the schema file",
|
|
4815
|
-
"name": "path",
|
|
4817
|
+
"project-id": {
|
|
4818
|
+
"char": "p",
|
|
4819
|
+
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
4820
|
+
"helpGroup": "OVERRIDE",
|
|
4821
|
+
"name": "project-id",
|
|
4816
4822
|
"hasDynamicHelp": false,
|
|
4823
|
+
"helpValue": "<id>",
|
|
4817
4824
|
"multiple": false,
|
|
4818
4825
|
"type": "option"
|
|
4819
4826
|
},
|
|
4820
|
-
"
|
|
4821
|
-
"description": "
|
|
4822
|
-
"name": "
|
|
4827
|
+
"force": {
|
|
4828
|
+
"description": "Skip confirmation prompt and unlink immediately",
|
|
4829
|
+
"name": "force",
|
|
4830
|
+
"required": false,
|
|
4823
4831
|
"allowNo": false,
|
|
4824
4832
|
"type": "boolean"
|
|
4825
|
-
},
|
|
4826
|
-
"watch-patterns": {
|
|
4827
|
-
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
4828
|
-
"name": "watch-patterns",
|
|
4829
|
-
"hasDynamicHelp": false,
|
|
4830
|
-
"helpValue": "<glob>",
|
|
4831
|
-
"multiple": true,
|
|
4832
|
-
"type": "option"
|
|
4833
|
-
},
|
|
4834
|
-
"workspace": {
|
|
4835
|
-
"description": "The name of the workspace to generate a schema for",
|
|
4836
|
-
"name": "workspace",
|
|
4837
|
-
"hasDynamicHelp": false,
|
|
4838
|
-
"helpValue": "<name>",
|
|
4839
|
-
"multiple": false,
|
|
4840
|
-
"type": "option"
|
|
4841
4833
|
}
|
|
4842
4834
|
},
|
|
4843
4835
|
"hasDynamicHelp": false,
|
|
4844
4836
|
"hiddenAliases": [
|
|
4845
|
-
"
|
|
4837
|
+
"dataset:alias:unlink"
|
|
4846
4838
|
],
|
|
4847
|
-
"id": "
|
|
4839
|
+
"id": "datasets:alias:unlink",
|
|
4848
4840
|
"pluginAlias": "@sanity/cli",
|
|
4849
4841
|
"pluginName": "@sanity/cli",
|
|
4850
4842
|
"pluginType": "core",
|
|
@@ -4853,70 +4845,44 @@
|
|
|
4853
4845
|
"relativePath": [
|
|
4854
4846
|
"dist",
|
|
4855
4847
|
"commands",
|
|
4856
|
-
"
|
|
4857
|
-
"
|
|
4848
|
+
"datasets",
|
|
4849
|
+
"alias",
|
|
4850
|
+
"unlink.js"
|
|
4858
4851
|
]
|
|
4859
4852
|
},
|
|
4860
|
-
"
|
|
4853
|
+
"datasets:embeddings:disable": {
|
|
4861
4854
|
"aliases": [],
|
|
4862
|
-
"args": {
|
|
4863
|
-
|
|
4855
|
+
"args": {
|
|
4856
|
+
"dataset": {
|
|
4857
|
+
"description": "Dataset name to disable embeddings for",
|
|
4858
|
+
"name": "dataset",
|
|
4859
|
+
"required": false
|
|
4860
|
+
}
|
|
4861
|
+
},
|
|
4862
|
+
"description": "Disable embeddings for a dataset",
|
|
4864
4863
|
"examples": [
|
|
4865
4864
|
{
|
|
4866
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4867
|
-
"description": "
|
|
4868
|
-
},
|
|
4869
|
-
{
|
|
4870
|
-
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
4871
|
-
"description": "Get a schema for a given id"
|
|
4872
|
-
},
|
|
4873
|
-
{
|
|
4874
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4875
|
-
"description": "Get stored schemas as pretty-printed json-array"
|
|
4876
|
-
},
|
|
4877
|
-
{
|
|
4878
|
-
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
4879
|
-
"description": "Get singular stored schema as pretty-printed json-object"
|
|
4865
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4866
|
+
"description": "Disable embeddings for the production dataset"
|
|
4880
4867
|
}
|
|
4881
4868
|
],
|
|
4882
4869
|
"flags": {
|
|
4883
|
-
"
|
|
4884
|
-
"
|
|
4885
|
-
"
|
|
4886
|
-
"
|
|
4887
|
-
"
|
|
4888
|
-
"type": "boolean"
|
|
4889
|
-
},
|
|
4890
|
-
"id": {
|
|
4891
|
-
"description": "Fetch a single schema by id",
|
|
4892
|
-
"name": "id",
|
|
4893
|
-
"hasDynamicHelp": false,
|
|
4894
|
-
"helpValue": "<schema_id>",
|
|
4895
|
-
"multiple": false,
|
|
4896
|
-
"type": "option"
|
|
4897
|
-
},
|
|
4898
|
-
"json": {
|
|
4899
|
-
"description": "Get schema as json",
|
|
4900
|
-
"name": "json",
|
|
4901
|
-
"allowNo": false,
|
|
4902
|
-
"type": "boolean"
|
|
4903
|
-
},
|
|
4904
|
-
"manifest-dir": {
|
|
4905
|
-
"description": "Directory containing manifest file",
|
|
4906
|
-
"hidden": true,
|
|
4907
|
-
"name": "manifest-dir",
|
|
4908
|
-
"default": "./dist/static",
|
|
4870
|
+
"project-id": {
|
|
4871
|
+
"char": "p",
|
|
4872
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
4873
|
+
"helpGroup": "OVERRIDE",
|
|
4874
|
+
"name": "project-id",
|
|
4909
4875
|
"hasDynamicHelp": false,
|
|
4910
|
-
"helpValue": "<
|
|
4876
|
+
"helpValue": "<id>",
|
|
4911
4877
|
"multiple": false,
|
|
4912
4878
|
"type": "option"
|
|
4913
4879
|
}
|
|
4914
4880
|
},
|
|
4915
4881
|
"hasDynamicHelp": false,
|
|
4916
4882
|
"hiddenAliases": [
|
|
4917
|
-
"
|
|
4883
|
+
"dataset:embeddings:disable"
|
|
4918
4884
|
],
|
|
4919
|
-
"id": "
|
|
4885
|
+
"id": "datasets:embeddings:disable",
|
|
4920
4886
|
"pluginAlias": "@sanity/cli",
|
|
4921
4887
|
"pluginName": "@sanity/cli",
|
|
4922
4888
|
"pluginType": "core",
|
|
@@ -4925,79 +4891,112 @@
|
|
|
4925
4891
|
"relativePath": [
|
|
4926
4892
|
"dist",
|
|
4927
4893
|
"commands",
|
|
4928
|
-
"
|
|
4929
|
-
"
|
|
4894
|
+
"datasets",
|
|
4895
|
+
"embeddings",
|
|
4896
|
+
"disable.js"
|
|
4930
4897
|
]
|
|
4931
4898
|
},
|
|
4932
|
-
"
|
|
4899
|
+
"datasets:embeddings:enable": {
|
|
4933
4900
|
"aliases": [],
|
|
4934
|
-
"args": {
|
|
4935
|
-
|
|
4901
|
+
"args": {
|
|
4902
|
+
"dataset": {
|
|
4903
|
+
"description": "Dataset name to enable embeddings for",
|
|
4904
|
+
"name": "dataset",
|
|
4905
|
+
"required": false
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
"description": "Enable embeddings for a dataset",
|
|
4936
4909
|
"examples": [
|
|
4937
4910
|
{
|
|
4938
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4939
|
-
"description": "
|
|
4940
|
-
},
|
|
4941
|
-
{
|
|
4942
|
-
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4943
|
-
"description": "Save the results of the report into a file"
|
|
4911
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4912
|
+
"description": "Enable embeddings for the production dataset"
|
|
4944
4913
|
},
|
|
4945
4914
|
{
|
|
4946
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4947
|
-
"description": "
|
|
4915
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
4916
|
+
"description": "Enable embeddings with a specific projection"
|
|
4948
4917
|
},
|
|
4949
4918
|
{
|
|
4950
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4951
|
-
"description": "
|
|
4919
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
4920
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
4952
4921
|
}
|
|
4953
4922
|
],
|
|
4954
4923
|
"flags": {
|
|
4955
|
-
"
|
|
4956
|
-
"
|
|
4957
|
-
"
|
|
4958
|
-
"
|
|
4959
|
-
"
|
|
4960
|
-
"multiple": false,
|
|
4961
|
-
"type": "option"
|
|
4962
|
-
},
|
|
4963
|
-
"format": {
|
|
4964
|
-
"description": "The output format used to print schema errors and warnings",
|
|
4965
|
-
"name": "format",
|
|
4966
|
-
"default": "pretty",
|
|
4924
|
+
"project-id": {
|
|
4925
|
+
"char": "p",
|
|
4926
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
4927
|
+
"helpGroup": "OVERRIDE",
|
|
4928
|
+
"name": "project-id",
|
|
4967
4929
|
"hasDynamicHelp": false,
|
|
4930
|
+
"helpValue": "<id>",
|
|
4968
4931
|
"multiple": false,
|
|
4969
|
-
"options": [
|
|
4970
|
-
"pretty",
|
|
4971
|
-
"ndjson",
|
|
4972
|
-
"json"
|
|
4973
|
-
],
|
|
4974
4932
|
"type": "option"
|
|
4975
4933
|
},
|
|
4976
|
-
"
|
|
4977
|
-
"description": "
|
|
4978
|
-
"name": "
|
|
4979
|
-
"
|
|
4934
|
+
"projection": {
|
|
4935
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4936
|
+
"name": "projection",
|
|
4937
|
+
"required": false,
|
|
4980
4938
|
"hasDynamicHelp": false,
|
|
4981
4939
|
"multiple": false,
|
|
4982
|
-
"options": [
|
|
4983
|
-
"error",
|
|
4984
|
-
"warning"
|
|
4985
|
-
],
|
|
4986
4940
|
"type": "option"
|
|
4987
4941
|
},
|
|
4988
|
-
"
|
|
4989
|
-
"description": "
|
|
4990
|
-
"name": "
|
|
4942
|
+
"wait": {
|
|
4943
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
4944
|
+
"name": "wait",
|
|
4945
|
+
"allowNo": false,
|
|
4946
|
+
"type": "boolean"
|
|
4947
|
+
}
|
|
4948
|
+
},
|
|
4949
|
+
"hasDynamicHelp": false,
|
|
4950
|
+
"hiddenAliases": [
|
|
4951
|
+
"dataset:embeddings:enable"
|
|
4952
|
+
],
|
|
4953
|
+
"id": "datasets:embeddings:enable",
|
|
4954
|
+
"pluginAlias": "@sanity/cli",
|
|
4955
|
+
"pluginName": "@sanity/cli",
|
|
4956
|
+
"pluginType": "core",
|
|
4957
|
+
"strict": true,
|
|
4958
|
+
"isESM": true,
|
|
4959
|
+
"relativePath": [
|
|
4960
|
+
"dist",
|
|
4961
|
+
"commands",
|
|
4962
|
+
"datasets",
|
|
4963
|
+
"embeddings",
|
|
4964
|
+
"enable.js"
|
|
4965
|
+
]
|
|
4966
|
+
},
|
|
4967
|
+
"datasets:embeddings:status": {
|
|
4968
|
+
"aliases": [],
|
|
4969
|
+
"args": {
|
|
4970
|
+
"dataset": {
|
|
4971
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
4972
|
+
"name": "dataset",
|
|
4973
|
+
"required": false
|
|
4974
|
+
}
|
|
4975
|
+
},
|
|
4976
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
4977
|
+
"examples": [
|
|
4978
|
+
{
|
|
4979
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4980
|
+
"description": "Show embeddings status for the production dataset"
|
|
4981
|
+
}
|
|
4982
|
+
],
|
|
4983
|
+
"flags": {
|
|
4984
|
+
"project-id": {
|
|
4985
|
+
"char": "p",
|
|
4986
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
4987
|
+
"helpGroup": "OVERRIDE",
|
|
4988
|
+
"name": "project-id",
|
|
4991
4989
|
"hasDynamicHelp": false,
|
|
4990
|
+
"helpValue": "<id>",
|
|
4992
4991
|
"multiple": false,
|
|
4993
4992
|
"type": "option"
|
|
4994
4993
|
}
|
|
4995
4994
|
},
|
|
4996
4995
|
"hasDynamicHelp": false,
|
|
4997
4996
|
"hiddenAliases": [
|
|
4998
|
-
"
|
|
4997
|
+
"dataset:embeddings:status"
|
|
4999
4998
|
],
|
|
5000
|
-
"id": "
|
|
4999
|
+
"id": "datasets:embeddings:status",
|
|
5001
5000
|
"pluginAlias": "@sanity/cli",
|
|
5002
5001
|
"pluginName": "@sanity/cli",
|
|
5003
5002
|
"pluginType": "core",
|
|
@@ -5006,8 +5005,9 @@
|
|
|
5006
5005
|
"relativePath": [
|
|
5007
5006
|
"dist",
|
|
5008
5007
|
"commands",
|
|
5009
|
-
"
|
|
5010
|
-
"
|
|
5008
|
+
"datasets",
|
|
5009
|
+
"embeddings",
|
|
5010
|
+
"status.js"
|
|
5011
5011
|
]
|
|
5012
5012
|
},
|
|
5013
5013
|
"datasets:visibility:get": {
|
|
@@ -5116,5 +5116,5 @@
|
|
|
5116
5116
|
]
|
|
5117
5117
|
}
|
|
5118
5118
|
},
|
|
5119
|
-
"version": "7.0.
|
|
5119
|
+
"version": "7.0.2"
|
|
5120
5120
|
}
|