@sanity/cli 7.2.0 → 7.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/oclif.manifest.json +801 -801
- package/package.json +12 -12
package/oclif.manifest.json
CHANGED
|
@@ -1029,56 +1029,43 @@
|
|
|
1029
1029
|
"versions.js"
|
|
1030
1030
|
]
|
|
1031
1031
|
},
|
|
1032
|
-
"
|
|
1032
|
+
"backups:disable": {
|
|
1033
1033
|
"aliases": [],
|
|
1034
1034
|
"args": {
|
|
1035
|
-
"
|
|
1036
|
-
"description": "
|
|
1037
|
-
"name": "
|
|
1038
|
-
"required":
|
|
1035
|
+
"dataset": {
|
|
1036
|
+
"description": "Dataset name to disable backup for",
|
|
1037
|
+
"name": "dataset",
|
|
1038
|
+
"required": false
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
|
-
"description": "
|
|
1041
|
+
"description": "Disable backup for a dataset",
|
|
1042
1042
|
"examples": [
|
|
1043
1043
|
{
|
|
1044
1044
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1045
|
-
"description": "Interactively
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1049
|
-
"description": "Add a localhost origin without credentials"
|
|
1050
|
-
},
|
|
1051
|
-
{
|
|
1052
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1053
|
-
"description": "Add a production origin with credentials allowed"
|
|
1045
|
+
"description": "Interactively disable backup for a dataset"
|
|
1054
1046
|
},
|
|
1055
1047
|
{
|
|
1056
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1057
|
-
"description": "
|
|
1048
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
1049
|
+
"description": "Disable backup for the production dataset"
|
|
1058
1050
|
}
|
|
1059
1051
|
],
|
|
1060
1052
|
"flags": {
|
|
1061
1053
|
"project-id": {
|
|
1062
1054
|
"char": "p",
|
|
1063
|
-
"description": "Project ID to
|
|
1055
|
+
"description": "Project ID to disable backups for (overrides CLI configuration)",
|
|
1064
1056
|
"helpGroup": "OVERRIDE",
|
|
1065
1057
|
"name": "project-id",
|
|
1066
1058
|
"hasDynamicHelp": false,
|
|
1067
1059
|
"helpValue": "<id>",
|
|
1068
1060
|
"multiple": false,
|
|
1069
1061
|
"type": "option"
|
|
1070
|
-
},
|
|
1071
|
-
"credentials": {
|
|
1072
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1073
|
-
"name": "credentials",
|
|
1074
|
-
"required": false,
|
|
1075
|
-
"allowNo": true,
|
|
1076
|
-
"type": "boolean"
|
|
1077
1062
|
}
|
|
1078
1063
|
},
|
|
1079
1064
|
"hasDynamicHelp": false,
|
|
1080
|
-
"hiddenAliases": [
|
|
1081
|
-
|
|
1065
|
+
"hiddenAliases": [
|
|
1066
|
+
"backup:disable"
|
|
1067
|
+
],
|
|
1068
|
+
"id": "backups:disable",
|
|
1082
1069
|
"pluginAlias": "@sanity/cli",
|
|
1083
1070
|
"pluginName": "@sanity/cli",
|
|
1084
1071
|
"pluginType": "core",
|
|
@@ -1087,49 +1074,83 @@
|
|
|
1087
1074
|
"relativePath": [
|
|
1088
1075
|
"dist",
|
|
1089
1076
|
"commands",
|
|
1090
|
-
"
|
|
1091
|
-
"
|
|
1077
|
+
"backups",
|
|
1078
|
+
"disable.js"
|
|
1092
1079
|
]
|
|
1093
1080
|
},
|
|
1094
|
-
"
|
|
1081
|
+
"backups:download": {
|
|
1095
1082
|
"aliases": [],
|
|
1096
1083
|
"args": {
|
|
1097
|
-
"
|
|
1098
|
-
"description": "
|
|
1099
|
-
"name": "
|
|
1084
|
+
"dataset": {
|
|
1085
|
+
"description": "Dataset name to download backup from",
|
|
1086
|
+
"name": "dataset",
|
|
1100
1087
|
"required": false
|
|
1101
1088
|
}
|
|
1102
1089
|
},
|
|
1103
|
-
"description": "
|
|
1090
|
+
"description": "Download a dataset backup to a local file",
|
|
1104
1091
|
"examples": [
|
|
1105
1092
|
{
|
|
1106
1093
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1107
|
-
"description": "Interactively
|
|
1094
|
+
"description": "Interactively download a backup"
|
|
1108
1095
|
},
|
|
1109
1096
|
{
|
|
1110
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1111
|
-
"description": "
|
|
1097
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
|
|
1098
|
+
"description": "Download a specific backup for the production dataset"
|
|
1112
1099
|
},
|
|
1113
1100
|
{
|
|
1114
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
1115
|
-
"description": "
|
|
1101
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-2 --out /path/to/file",
|
|
1102
|
+
"description": "Download backup to a specific file"
|
|
1103
|
+
},
|
|
1104
|
+
{
|
|
1105
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite",
|
|
1106
|
+
"description": "Download backup and overwrite existing file"
|
|
1116
1107
|
}
|
|
1117
1108
|
],
|
|
1118
1109
|
"flags": {
|
|
1119
1110
|
"project-id": {
|
|
1120
1111
|
"char": "p",
|
|
1121
|
-
"description": "Project ID to
|
|
1112
|
+
"description": "Project ID to download backup from (overrides CLI configuration)",
|
|
1122
1113
|
"helpGroup": "OVERRIDE",
|
|
1123
1114
|
"name": "project-id",
|
|
1124
1115
|
"hasDynamicHelp": false,
|
|
1125
1116
|
"helpValue": "<id>",
|
|
1126
1117
|
"multiple": false,
|
|
1127
1118
|
"type": "option"
|
|
1119
|
+
},
|
|
1120
|
+
"backup-id": {
|
|
1121
|
+
"description": "The backup ID to download",
|
|
1122
|
+
"name": "backup-id",
|
|
1123
|
+
"hasDynamicHelp": false,
|
|
1124
|
+
"multiple": false,
|
|
1125
|
+
"type": "option"
|
|
1126
|
+
},
|
|
1127
|
+
"concurrency": {
|
|
1128
|
+
"description": "Concurrent number of backup item downloads (max: 24)",
|
|
1129
|
+
"name": "concurrency",
|
|
1130
|
+
"default": 10,
|
|
1131
|
+
"hasDynamicHelp": false,
|
|
1132
|
+
"multiple": false,
|
|
1133
|
+
"type": "option"
|
|
1134
|
+
},
|
|
1135
|
+
"out": {
|
|
1136
|
+
"description": "The file or directory path the backup should download to",
|
|
1137
|
+
"name": "out",
|
|
1138
|
+
"hasDynamicHelp": false,
|
|
1139
|
+
"multiple": false,
|
|
1140
|
+
"type": "option"
|
|
1141
|
+
},
|
|
1142
|
+
"overwrite": {
|
|
1143
|
+
"description": "Allows overwriting of existing backup file",
|
|
1144
|
+
"name": "overwrite",
|
|
1145
|
+
"allowNo": false,
|
|
1146
|
+
"type": "boolean"
|
|
1128
1147
|
}
|
|
1129
1148
|
},
|
|
1130
1149
|
"hasDynamicHelp": false,
|
|
1131
|
-
"hiddenAliases": [
|
|
1132
|
-
|
|
1150
|
+
"hiddenAliases": [
|
|
1151
|
+
"backup:download"
|
|
1152
|
+
],
|
|
1153
|
+
"id": "backups:download",
|
|
1133
1154
|
"pluginAlias": "@sanity/cli",
|
|
1134
1155
|
"pluginName": "@sanity/cli",
|
|
1135
1156
|
"pluginType": "core",
|
|
@@ -1138,28 +1159,34 @@
|
|
|
1138
1159
|
"relativePath": [
|
|
1139
1160
|
"dist",
|
|
1140
1161
|
"commands",
|
|
1141
|
-
"
|
|
1142
|
-
"
|
|
1162
|
+
"backups",
|
|
1163
|
+
"download.js"
|
|
1143
1164
|
]
|
|
1144
1165
|
},
|
|
1145
|
-
"
|
|
1166
|
+
"backups:enable": {
|
|
1146
1167
|
"aliases": [],
|
|
1147
|
-
"args": {
|
|
1148
|
-
|
|
1168
|
+
"args": {
|
|
1169
|
+
"dataset": {
|
|
1170
|
+
"description": "Dataset name to enable backup for",
|
|
1171
|
+
"name": "dataset",
|
|
1172
|
+
"required": false
|
|
1173
|
+
}
|
|
1174
|
+
},
|
|
1175
|
+
"description": "Enable backup for a dataset",
|
|
1149
1176
|
"examples": [
|
|
1150
1177
|
{
|
|
1151
1178
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1152
|
-
"description": "
|
|
1179
|
+
"description": "Interactively enable backup for a dataset"
|
|
1153
1180
|
},
|
|
1154
1181
|
{
|
|
1155
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1156
|
-
"description": "
|
|
1182
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
1183
|
+
"description": "Enable backup for the production dataset"
|
|
1157
1184
|
}
|
|
1158
1185
|
],
|
|
1159
1186
|
"flags": {
|
|
1160
1187
|
"project-id": {
|
|
1161
1188
|
"char": "p",
|
|
1162
|
-
"description": "Project ID to
|
|
1189
|
+
"description": "Project ID to enable backups for (overrides CLI configuration)",
|
|
1163
1190
|
"helpGroup": "OVERRIDE",
|
|
1164
1191
|
"name": "project-id",
|
|
1165
1192
|
"hasDynamicHelp": false,
|
|
@@ -1169,8 +1196,10 @@
|
|
|
1169
1196
|
}
|
|
1170
1197
|
},
|
|
1171
1198
|
"hasDynamicHelp": false,
|
|
1172
|
-
"hiddenAliases": [
|
|
1173
|
-
|
|
1199
|
+
"hiddenAliases": [
|
|
1200
|
+
"backup:enable"
|
|
1201
|
+
],
|
|
1202
|
+
"id": "backups:enable",
|
|
1174
1203
|
"pluginAlias": "@sanity/cli",
|
|
1175
1204
|
"pluginName": "@sanity/cli",
|
|
1176
1205
|
"pluginType": "core",
|
|
@@ -1179,67 +1208,42 @@
|
|
|
1179
1208
|
"relativePath": [
|
|
1180
1209
|
"dist",
|
|
1181
1210
|
"commands",
|
|
1182
|
-
"
|
|
1183
|
-
"
|
|
1211
|
+
"backups",
|
|
1212
|
+
"enable.js"
|
|
1184
1213
|
]
|
|
1185
1214
|
},
|
|
1186
|
-
"
|
|
1215
|
+
"backups:list": {
|
|
1187
1216
|
"aliases": [],
|
|
1188
1217
|
"args": {
|
|
1189
|
-
"
|
|
1190
|
-
"description": "
|
|
1191
|
-
"name": "
|
|
1192
|
-
"required": false
|
|
1193
|
-
},
|
|
1194
|
-
"target": {
|
|
1195
|
-
"description": "Name of the dataset to copy to",
|
|
1196
|
-
"name": "target",
|
|
1218
|
+
"dataset": {
|
|
1219
|
+
"description": "Dataset name to list backups for",
|
|
1220
|
+
"name": "dataset",
|
|
1197
1221
|
"required": false
|
|
1198
1222
|
}
|
|
1199
1223
|
},
|
|
1200
|
-
"description": "
|
|
1224
|
+
"description": "List available backups for a dataset",
|
|
1201
1225
|
"examples": [
|
|
1202
1226
|
{
|
|
1203
1227
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1204
|
-
"description": "
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1208
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
1209
|
-
},
|
|
1210
|
-
{
|
|
1211
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1212
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1216
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1220
|
-
"description": "Copy without content release documents"
|
|
1221
|
-
},
|
|
1222
|
-
{
|
|
1223
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1224
|
-
"description": "Start copy job without waiting for completion"
|
|
1228
|
+
"description": "List backups for a dataset interactively"
|
|
1225
1229
|
},
|
|
1226
1230
|
{
|
|
1227
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1228
|
-
"description": "
|
|
1231
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
1232
|
+
"description": "List backups for the production dataset"
|
|
1229
1233
|
},
|
|
1230
1234
|
{
|
|
1231
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
1232
|
-
"description": "List
|
|
1235
|
+
"command": "<%= config.bin %> <%= command.id %> production --limit 50",
|
|
1236
|
+
"description": "List up to 50 backups for the production dataset"
|
|
1233
1237
|
},
|
|
1234
1238
|
{
|
|
1235
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1236
|
-
"description": "List
|
|
1239
|
+
"command": "<%= config.bin %> <%= command.id %> production --after 2024-01-31 --limit 10",
|
|
1240
|
+
"description": "List up to 10 backups created after 2024-01-31"
|
|
1237
1241
|
}
|
|
1238
1242
|
],
|
|
1239
1243
|
"flags": {
|
|
1240
1244
|
"project-id": {
|
|
1241
1245
|
"char": "p",
|
|
1242
|
-
"description": "Project ID to
|
|
1246
|
+
"description": "Project ID to list backups for (overrides CLI configuration)",
|
|
1243
1247
|
"helpGroup": "OVERRIDE",
|
|
1244
1248
|
"name": "project-id",
|
|
1245
1249
|
"hasDynamicHelp": false,
|
|
@@ -1247,92 +1251,35 @@
|
|
|
1247
1251
|
"multiple": false,
|
|
1248
1252
|
"type": "option"
|
|
1249
1253
|
},
|
|
1250
|
-
"
|
|
1251
|
-
"description": "
|
|
1252
|
-
"
|
|
1253
|
-
"list",
|
|
1254
|
-
"detach",
|
|
1255
|
-
"skip-history"
|
|
1256
|
-
],
|
|
1257
|
-
"name": "attach",
|
|
1258
|
-
"required": false,
|
|
1254
|
+
"after": {
|
|
1255
|
+
"description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
|
|
1256
|
+
"name": "after",
|
|
1259
1257
|
"hasDynamicHelp": false,
|
|
1260
1258
|
"multiple": false,
|
|
1261
1259
|
"type": "option"
|
|
1262
1260
|
},
|
|
1263
|
-
"
|
|
1264
|
-
"description": "
|
|
1265
|
-
"
|
|
1266
|
-
"list",
|
|
1267
|
-
"attach"
|
|
1268
|
-
],
|
|
1269
|
-
"name": "detach",
|
|
1270
|
-
"required": false,
|
|
1271
|
-
"allowNo": false,
|
|
1272
|
-
"type": "boolean"
|
|
1273
|
-
},
|
|
1274
|
-
"limit": {
|
|
1275
|
-
"dependsOn": [
|
|
1276
|
-
"list"
|
|
1277
|
-
],
|
|
1278
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
1279
|
-
"name": "limit",
|
|
1280
|
-
"required": false,
|
|
1261
|
+
"before": {
|
|
1262
|
+
"description": "Only return backups before this date (exclusive, YYYY-MM-DD format)",
|
|
1263
|
+
"name": "before",
|
|
1281
1264
|
"hasDynamicHelp": false,
|
|
1282
1265
|
"multiple": false,
|
|
1283
1266
|
"type": "option"
|
|
1284
1267
|
},
|
|
1285
|
-
"
|
|
1286
|
-
"
|
|
1287
|
-
"
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
"skip-history"
|
|
1291
|
-
],
|
|
1292
|
-
"name": "list",
|
|
1293
|
-
"required": false,
|
|
1294
|
-
"allowNo": false,
|
|
1295
|
-
"type": "boolean"
|
|
1296
|
-
},
|
|
1297
|
-
"offset": {
|
|
1298
|
-
"dependsOn": [
|
|
1299
|
-
"list"
|
|
1300
|
-
],
|
|
1301
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
1302
|
-
"name": "offset",
|
|
1303
|
-
"required": false,
|
|
1268
|
+
"limit": {
|
|
1269
|
+
"char": "l",
|
|
1270
|
+
"description": "Maximum number of backups returned",
|
|
1271
|
+
"name": "limit",
|
|
1272
|
+
"default": 30,
|
|
1304
1273
|
"hasDynamicHelp": false,
|
|
1305
1274
|
"multiple": false,
|
|
1306
1275
|
"type": "option"
|
|
1307
|
-
},
|
|
1308
|
-
"skip-content-releases": {
|
|
1309
|
-
"description": "Don't copy content release documents to the target dataset",
|
|
1310
|
-
"exclusive": [
|
|
1311
|
-
"list",
|
|
1312
|
-
"attach"
|
|
1313
|
-
],
|
|
1314
|
-
"name": "skip-content-releases",
|
|
1315
|
-
"required": false,
|
|
1316
|
-
"allowNo": false,
|
|
1317
|
-
"type": "boolean"
|
|
1318
|
-
},
|
|
1319
|
-
"skip-history": {
|
|
1320
|
-
"description": "Don't preserve document history on copy",
|
|
1321
|
-
"exclusive": [
|
|
1322
|
-
"list",
|
|
1323
|
-
"attach"
|
|
1324
|
-
],
|
|
1325
|
-
"name": "skip-history",
|
|
1326
|
-
"required": false,
|
|
1327
|
-
"allowNo": false,
|
|
1328
|
-
"type": "boolean"
|
|
1329
1276
|
}
|
|
1330
1277
|
},
|
|
1331
1278
|
"hasDynamicHelp": false,
|
|
1332
1279
|
"hiddenAliases": [
|
|
1333
|
-
"
|
|
1280
|
+
"backup:list"
|
|
1334
1281
|
],
|
|
1335
|
-
"id": "
|
|
1282
|
+
"id": "backups:list",
|
|
1336
1283
|
"pluginAlias": "@sanity/cli",
|
|
1337
1284
|
"pluginName": "@sanity/cli",
|
|
1338
1285
|
"pluginType": "core",
|
|
@@ -1341,38 +1288,42 @@
|
|
|
1341
1288
|
"relativePath": [
|
|
1342
1289
|
"dist",
|
|
1343
1290
|
"commands",
|
|
1344
|
-
"
|
|
1345
|
-
"
|
|
1291
|
+
"backups",
|
|
1292
|
+
"list.js"
|
|
1346
1293
|
]
|
|
1347
1294
|
},
|
|
1348
|
-
"
|
|
1295
|
+
"cors:add": {
|
|
1349
1296
|
"aliases": [],
|
|
1350
1297
|
"args": {
|
|
1351
|
-
"
|
|
1352
|
-
"description": "
|
|
1353
|
-
"name": "
|
|
1354
|
-
"required":
|
|
1298
|
+
"origin": {
|
|
1299
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1300
|
+
"name": "origin",
|
|
1301
|
+
"required": true
|
|
1355
1302
|
}
|
|
1356
1303
|
},
|
|
1357
|
-
"description": "
|
|
1304
|
+
"description": "Add a CORS origin to the project",
|
|
1358
1305
|
"examples": [
|
|
1359
1306
|
{
|
|
1360
1307
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1361
|
-
"description": "Interactively
|
|
1308
|
+
"description": "Interactively add a CORS origin"
|
|
1362
1309
|
},
|
|
1363
1310
|
{
|
|
1364
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1365
|
-
"description": "
|
|
1311
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1312
|
+
"description": "Add a localhost origin without credentials"
|
|
1366
1313
|
},
|
|
1367
1314
|
{
|
|
1368
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1369
|
-
"description": "
|
|
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"
|
|
1370
1321
|
}
|
|
1371
1322
|
],
|
|
1372
1323
|
"flags": {
|
|
1373
1324
|
"project-id": {
|
|
1374
1325
|
"char": "p",
|
|
1375
|
-
"description": "Project ID to
|
|
1326
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1376
1327
|
"helpGroup": "OVERRIDE",
|
|
1377
1328
|
"name": "project-id",
|
|
1378
1329
|
"hasDynamicHelp": false,
|
|
@@ -1380,41 +1331,17 @@
|
|
|
1380
1331
|
"multiple": false,
|
|
1381
1332
|
"type": "option"
|
|
1382
1333
|
},
|
|
1383
|
-
"
|
|
1384
|
-
"description": "
|
|
1385
|
-
"name": "
|
|
1386
|
-
"allowNo": false,
|
|
1387
|
-
"type": "boolean"
|
|
1388
|
-
},
|
|
1389
|
-
"embeddings-projection": {
|
|
1390
|
-
"dependsOn": [
|
|
1391
|
-
"embeddings"
|
|
1392
|
-
],
|
|
1393
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1394
|
-
"name": "embeddings-projection",
|
|
1395
|
-
"hasDynamicHelp": false,
|
|
1396
|
-
"multiple": false,
|
|
1397
|
-
"type": "option"
|
|
1398
|
-
},
|
|
1399
|
-
"visibility": {
|
|
1400
|
-
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1401
|
-
"name": "visibility",
|
|
1334
|
+
"credentials": {
|
|
1335
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
1336
|
+
"name": "credentials",
|
|
1402
1337
|
"required": false,
|
|
1403
|
-
"
|
|
1404
|
-
"
|
|
1405
|
-
"options": [
|
|
1406
|
-
"custom",
|
|
1407
|
-
"private",
|
|
1408
|
-
"public"
|
|
1409
|
-
],
|
|
1410
|
-
"type": "option"
|
|
1338
|
+
"allowNo": true,
|
|
1339
|
+
"type": "boolean"
|
|
1411
1340
|
}
|
|
1412
1341
|
},
|
|
1413
1342
|
"hasDynamicHelp": false,
|
|
1414
|
-
"hiddenAliases": [
|
|
1415
|
-
|
|
1416
|
-
],
|
|
1417
|
-
"id": "datasets:create",
|
|
1343
|
+
"hiddenAliases": [],
|
|
1344
|
+
"id": "cors:add",
|
|
1418
1345
|
"pluginAlias": "@sanity/cli",
|
|
1419
1346
|
"pluginName": "@sanity/cli",
|
|
1420
1347
|
"pluginType": "core",
|
|
@@ -1423,54 +1350,49 @@
|
|
|
1423
1350
|
"relativePath": [
|
|
1424
1351
|
"dist",
|
|
1425
1352
|
"commands",
|
|
1426
|
-
"
|
|
1427
|
-
"
|
|
1353
|
+
"cors",
|
|
1354
|
+
"add.js"
|
|
1428
1355
|
]
|
|
1429
1356
|
},
|
|
1430
|
-
"
|
|
1357
|
+
"cors:delete": {
|
|
1431
1358
|
"aliases": [],
|
|
1432
1359
|
"args": {
|
|
1433
|
-
"
|
|
1434
|
-
"description": "
|
|
1435
|
-
"name": "
|
|
1436
|
-
"required":
|
|
1360
|
+
"origin": {
|
|
1361
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
1362
|
+
"name": "origin",
|
|
1363
|
+
"required": false
|
|
1437
1364
|
}
|
|
1438
1365
|
},
|
|
1439
|
-
"description": "Delete a
|
|
1366
|
+
"description": "Delete a CORS origin from the project",
|
|
1440
1367
|
"examples": [
|
|
1441
1368
|
{
|
|
1442
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1443
|
-
"description": "
|
|
1369
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1370
|
+
"description": "Interactively select and delete a CORS origin"
|
|
1444
1371
|
},
|
|
1445
1372
|
{
|
|
1446
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1447
|
-
"description": "Delete a specific
|
|
1373
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1374
|
+
"description": "Delete a specific CORS origin"
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1378
|
+
"description": "Delete a CORS origin from a specific project"
|
|
1448
1379
|
}
|
|
1449
1380
|
],
|
|
1450
1381
|
"flags": {
|
|
1451
1382
|
"project-id": {
|
|
1452
1383
|
"char": "p",
|
|
1453
|
-
"description": "Project ID to delete
|
|
1384
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1454
1385
|
"helpGroup": "OVERRIDE",
|
|
1455
1386
|
"name": "project-id",
|
|
1456
1387
|
"hasDynamicHelp": false,
|
|
1457
1388
|
"helpValue": "<id>",
|
|
1458
1389
|
"multiple": false,
|
|
1459
1390
|
"type": "option"
|
|
1460
|
-
},
|
|
1461
|
-
"force": {
|
|
1462
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
1463
|
-
"name": "force",
|
|
1464
|
-
"required": false,
|
|
1465
|
-
"allowNo": false,
|
|
1466
|
-
"type": "boolean"
|
|
1467
1391
|
}
|
|
1468
1392
|
},
|
|
1469
1393
|
"hasDynamicHelp": false,
|
|
1470
|
-
"hiddenAliases": [
|
|
1471
|
-
|
|
1472
|
-
],
|
|
1473
|
-
"id": "datasets:delete",
|
|
1394
|
+
"hiddenAliases": [],
|
|
1395
|
+
"id": "cors:delete",
|
|
1474
1396
|
"pluginAlias": "@sanity/cli",
|
|
1475
1397
|
"pluginName": "@sanity/cli",
|
|
1476
1398
|
"pluginType": "core",
|
|
@@ -1479,125 +1401,39 @@
|
|
|
1479
1401
|
"relativePath": [
|
|
1480
1402
|
"dist",
|
|
1481
1403
|
"commands",
|
|
1482
|
-
"
|
|
1404
|
+
"cors",
|
|
1483
1405
|
"delete.js"
|
|
1484
1406
|
]
|
|
1485
1407
|
},
|
|
1486
|
-
"
|
|
1408
|
+
"cors:list": {
|
|
1487
1409
|
"aliases": [],
|
|
1488
|
-
"args": {
|
|
1489
|
-
|
|
1490
|
-
"description": "Name of the dataset to export",
|
|
1491
|
-
"name": "name"
|
|
1492
|
-
},
|
|
1493
|
-
"destination": {
|
|
1494
|
-
"description": "Output destination file path",
|
|
1495
|
-
"name": "destination"
|
|
1496
|
-
}
|
|
1497
|
-
},
|
|
1498
|
-
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1410
|
+
"args": {},
|
|
1411
|
+
"description": "List CORS origins for the project",
|
|
1499
1412
|
"examples": [
|
|
1500
1413
|
{
|
|
1501
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1502
|
-
"description": "
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
1506
|
-
"description": "Export dataset without assets"
|
|
1507
|
-
},
|
|
1508
|
-
{
|
|
1509
|
-
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
1510
|
-
"description": "Export raw documents without asset reference rewriting"
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
1514
|
-
"description": "Export specific document types"
|
|
1414
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1415
|
+
"description": "List CORS origins for the project"
|
|
1515
1416
|
},
|
|
1516
1417
|
{
|
|
1517
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1518
|
-
"description": "
|
|
1418
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1419
|
+
"description": "List CORS origins for a specific project"
|
|
1519
1420
|
}
|
|
1520
1421
|
],
|
|
1521
1422
|
"flags": {
|
|
1522
1423
|
"project-id": {
|
|
1523
1424
|
"char": "p",
|
|
1524
|
-
"description": "Project ID to
|
|
1425
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
1525
1426
|
"helpGroup": "OVERRIDE",
|
|
1526
1427
|
"name": "project-id",
|
|
1527
1428
|
"hasDynamicHelp": false,
|
|
1528
1429
|
"helpValue": "<id>",
|
|
1529
1430
|
"multiple": false,
|
|
1530
1431
|
"type": "option"
|
|
1531
|
-
},
|
|
1532
|
-
"asset-concurrency": {
|
|
1533
|
-
"description": "Concurrent number of asset downloads",
|
|
1534
|
-
"name": "asset-concurrency",
|
|
1535
|
-
"default": 8,
|
|
1536
|
-
"hasDynamicHelp": false,
|
|
1537
|
-
"multiple": false,
|
|
1538
|
-
"type": "option"
|
|
1539
|
-
},
|
|
1540
|
-
"mode": {
|
|
1541
|
-
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
1542
|
-
"name": "mode",
|
|
1543
|
-
"default": "stream",
|
|
1544
|
-
"hasDynamicHelp": false,
|
|
1545
|
-
"multiple": false,
|
|
1546
|
-
"options": [
|
|
1547
|
-
"stream",
|
|
1548
|
-
"cursor"
|
|
1549
|
-
],
|
|
1550
|
-
"type": "option"
|
|
1551
|
-
},
|
|
1552
|
-
"no-assets": {
|
|
1553
|
-
"description": "Export only non-asset documents and remove references to image assets",
|
|
1554
|
-
"name": "no-assets",
|
|
1555
|
-
"allowNo": false,
|
|
1556
|
-
"type": "boolean"
|
|
1557
|
-
},
|
|
1558
|
-
"no-compress": {
|
|
1559
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
1560
|
-
"name": "no-compress",
|
|
1561
|
-
"allowNo": false,
|
|
1562
|
-
"type": "boolean"
|
|
1563
|
-
},
|
|
1564
|
-
"no-drafts": {
|
|
1565
|
-
"description": "Export only published versions of documents",
|
|
1566
|
-
"name": "no-drafts",
|
|
1567
|
-
"allowNo": false,
|
|
1568
|
-
"type": "boolean"
|
|
1569
|
-
},
|
|
1570
|
-
"no-strict-asset-verification": {
|
|
1571
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
1572
|
-
"name": "no-strict-asset-verification",
|
|
1573
|
-
"allowNo": false,
|
|
1574
|
-
"type": "boolean"
|
|
1575
|
-
},
|
|
1576
|
-
"overwrite": {
|
|
1577
|
-
"description": "Overwrite any file with the same name",
|
|
1578
|
-
"name": "overwrite",
|
|
1579
|
-
"allowNo": false,
|
|
1580
|
-
"type": "boolean"
|
|
1581
|
-
},
|
|
1582
|
-
"raw": {
|
|
1583
|
-
"description": "Extract only documents, without rewriting asset references",
|
|
1584
|
-
"name": "raw",
|
|
1585
|
-
"allowNo": false,
|
|
1586
|
-
"type": "boolean"
|
|
1587
|
-
},
|
|
1588
|
-
"types": {
|
|
1589
|
-
"description": "Defines which document types to export (comma-separated)",
|
|
1590
|
-
"name": "types",
|
|
1591
|
-
"hasDynamicHelp": false,
|
|
1592
|
-
"multiple": false,
|
|
1593
|
-
"type": "option"
|
|
1594
1432
|
}
|
|
1595
1433
|
},
|
|
1596
1434
|
"hasDynamicHelp": false,
|
|
1597
|
-
"hiddenAliases": [
|
|
1598
|
-
|
|
1599
|
-
],
|
|
1600
|
-
"id": "datasets:export",
|
|
1435
|
+
"hiddenAliases": [],
|
|
1436
|
+
"id": "cors:list",
|
|
1601
1437
|
"pluginAlias": "@sanity/cli",
|
|
1602
1438
|
"pluginName": "@sanity/cli",
|
|
1603
1439
|
"pluginType": "core",
|
|
@@ -1606,25 +1442,452 @@
|
|
|
1606
1442
|
"relativePath": [
|
|
1607
1443
|
"dist",
|
|
1608
1444
|
"commands",
|
|
1609
|
-
"
|
|
1610
|
-
"
|
|
1445
|
+
"cors",
|
|
1446
|
+
"list.js"
|
|
1611
1447
|
]
|
|
1612
1448
|
},
|
|
1613
|
-
"datasets:
|
|
1449
|
+
"datasets:copy": {
|
|
1614
1450
|
"aliases": [],
|
|
1615
1451
|
"args": {
|
|
1616
1452
|
"source": {
|
|
1617
|
-
"description": "
|
|
1453
|
+
"description": "Name of the dataset to copy from",
|
|
1618
1454
|
"name": "source",
|
|
1619
|
-
"required":
|
|
1455
|
+
"required": false
|
|
1620
1456
|
},
|
|
1621
|
-
"
|
|
1622
|
-
"description": "
|
|
1623
|
-
"name": "
|
|
1457
|
+
"target": {
|
|
1458
|
+
"description": "Name of the dataset to copy to",
|
|
1459
|
+
"name": "target",
|
|
1624
1460
|
"required": false
|
|
1625
1461
|
}
|
|
1626
1462
|
},
|
|
1627
|
-
"description": "
|
|
1463
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
1464
|
+
"examples": [
|
|
1465
|
+
{
|
|
1466
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1467
|
+
"description": "Interactively copy a dataset"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1471
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1475
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1479
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1483
|
+
"description": "Copy without content release documents"
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1487
|
+
"description": "Start copy job without waiting for completion"
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
1491
|
+
"description": "Attach to a running copy job to follow progress"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
1495
|
+
"description": "List all dataset copy jobs"
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
1499
|
+
"description": "List copy jobs with pagination"
|
|
1500
|
+
}
|
|
1501
|
+
],
|
|
1502
|
+
"flags": {
|
|
1503
|
+
"project-id": {
|
|
1504
|
+
"char": "p",
|
|
1505
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
1506
|
+
"helpGroup": "OVERRIDE",
|
|
1507
|
+
"name": "project-id",
|
|
1508
|
+
"hasDynamicHelp": false,
|
|
1509
|
+
"helpValue": "<id>",
|
|
1510
|
+
"multiple": false,
|
|
1511
|
+
"type": "option"
|
|
1512
|
+
},
|
|
1513
|
+
"attach": {
|
|
1514
|
+
"description": "Attach to the running copy process to show progress",
|
|
1515
|
+
"exclusive": [
|
|
1516
|
+
"list",
|
|
1517
|
+
"detach",
|
|
1518
|
+
"skip-history"
|
|
1519
|
+
],
|
|
1520
|
+
"name": "attach",
|
|
1521
|
+
"required": false,
|
|
1522
|
+
"hasDynamicHelp": false,
|
|
1523
|
+
"multiple": false,
|
|
1524
|
+
"type": "option"
|
|
1525
|
+
},
|
|
1526
|
+
"detach": {
|
|
1527
|
+
"description": "Start the copy without waiting for it to finish",
|
|
1528
|
+
"exclusive": [
|
|
1529
|
+
"list",
|
|
1530
|
+
"attach"
|
|
1531
|
+
],
|
|
1532
|
+
"name": "detach",
|
|
1533
|
+
"required": false,
|
|
1534
|
+
"allowNo": false,
|
|
1535
|
+
"type": "boolean"
|
|
1536
|
+
},
|
|
1537
|
+
"limit": {
|
|
1538
|
+
"dependsOn": [
|
|
1539
|
+
"list"
|
|
1540
|
+
],
|
|
1541
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
1542
|
+
"name": "limit",
|
|
1543
|
+
"required": false,
|
|
1544
|
+
"hasDynamicHelp": false,
|
|
1545
|
+
"multiple": false,
|
|
1546
|
+
"type": "option"
|
|
1547
|
+
},
|
|
1548
|
+
"list": {
|
|
1549
|
+
"description": "Lists all dataset copy jobs",
|
|
1550
|
+
"exclusive": [
|
|
1551
|
+
"attach",
|
|
1552
|
+
"detach",
|
|
1553
|
+
"skip-history"
|
|
1554
|
+
],
|
|
1555
|
+
"name": "list",
|
|
1556
|
+
"required": false,
|
|
1557
|
+
"allowNo": false,
|
|
1558
|
+
"type": "boolean"
|
|
1559
|
+
},
|
|
1560
|
+
"offset": {
|
|
1561
|
+
"dependsOn": [
|
|
1562
|
+
"list"
|
|
1563
|
+
],
|
|
1564
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
1565
|
+
"name": "offset",
|
|
1566
|
+
"required": false,
|
|
1567
|
+
"hasDynamicHelp": false,
|
|
1568
|
+
"multiple": false,
|
|
1569
|
+
"type": "option"
|
|
1570
|
+
},
|
|
1571
|
+
"skip-content-releases": {
|
|
1572
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
1573
|
+
"exclusive": [
|
|
1574
|
+
"list",
|
|
1575
|
+
"attach"
|
|
1576
|
+
],
|
|
1577
|
+
"name": "skip-content-releases",
|
|
1578
|
+
"required": false,
|
|
1579
|
+
"allowNo": false,
|
|
1580
|
+
"type": "boolean"
|
|
1581
|
+
},
|
|
1582
|
+
"skip-history": {
|
|
1583
|
+
"description": "Don't preserve document history on copy",
|
|
1584
|
+
"exclusive": [
|
|
1585
|
+
"list",
|
|
1586
|
+
"attach"
|
|
1587
|
+
],
|
|
1588
|
+
"name": "skip-history",
|
|
1589
|
+
"required": false,
|
|
1590
|
+
"allowNo": false,
|
|
1591
|
+
"type": "boolean"
|
|
1592
|
+
}
|
|
1593
|
+
},
|
|
1594
|
+
"hasDynamicHelp": false,
|
|
1595
|
+
"hiddenAliases": [
|
|
1596
|
+
"dataset:copy"
|
|
1597
|
+
],
|
|
1598
|
+
"id": "datasets:copy",
|
|
1599
|
+
"pluginAlias": "@sanity/cli",
|
|
1600
|
+
"pluginName": "@sanity/cli",
|
|
1601
|
+
"pluginType": "core",
|
|
1602
|
+
"strict": true,
|
|
1603
|
+
"isESM": true,
|
|
1604
|
+
"relativePath": [
|
|
1605
|
+
"dist",
|
|
1606
|
+
"commands",
|
|
1607
|
+
"datasets",
|
|
1608
|
+
"copy.js"
|
|
1609
|
+
]
|
|
1610
|
+
},
|
|
1611
|
+
"datasets:create": {
|
|
1612
|
+
"aliases": [],
|
|
1613
|
+
"args": {
|
|
1614
|
+
"name": {
|
|
1615
|
+
"description": "Name of the dataset to create",
|
|
1616
|
+
"name": "name",
|
|
1617
|
+
"required": false
|
|
1618
|
+
}
|
|
1619
|
+
},
|
|
1620
|
+
"description": "Create a new dataset for the project",
|
|
1621
|
+
"examples": [
|
|
1622
|
+
{
|
|
1623
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1624
|
+
"description": "Interactively create a dataset"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
1628
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
1632
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
1633
|
+
}
|
|
1634
|
+
],
|
|
1635
|
+
"flags": {
|
|
1636
|
+
"project-id": {
|
|
1637
|
+
"char": "p",
|
|
1638
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
1639
|
+
"helpGroup": "OVERRIDE",
|
|
1640
|
+
"name": "project-id",
|
|
1641
|
+
"hasDynamicHelp": false,
|
|
1642
|
+
"helpValue": "<id>",
|
|
1643
|
+
"multiple": false,
|
|
1644
|
+
"type": "option"
|
|
1645
|
+
},
|
|
1646
|
+
"embeddings": {
|
|
1647
|
+
"description": "Enable embeddings for this dataset",
|
|
1648
|
+
"name": "embeddings",
|
|
1649
|
+
"allowNo": false,
|
|
1650
|
+
"type": "boolean"
|
|
1651
|
+
},
|
|
1652
|
+
"embeddings-projection": {
|
|
1653
|
+
"dependsOn": [
|
|
1654
|
+
"embeddings"
|
|
1655
|
+
],
|
|
1656
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
1657
|
+
"name": "embeddings-projection",
|
|
1658
|
+
"hasDynamicHelp": false,
|
|
1659
|
+
"multiple": false,
|
|
1660
|
+
"type": "option"
|
|
1661
|
+
},
|
|
1662
|
+
"visibility": {
|
|
1663
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
1664
|
+
"name": "visibility",
|
|
1665
|
+
"required": false,
|
|
1666
|
+
"hasDynamicHelp": false,
|
|
1667
|
+
"multiple": false,
|
|
1668
|
+
"options": [
|
|
1669
|
+
"custom",
|
|
1670
|
+
"private",
|
|
1671
|
+
"public"
|
|
1672
|
+
],
|
|
1673
|
+
"type": "option"
|
|
1674
|
+
}
|
|
1675
|
+
},
|
|
1676
|
+
"hasDynamicHelp": false,
|
|
1677
|
+
"hiddenAliases": [
|
|
1678
|
+
"dataset:create"
|
|
1679
|
+
],
|
|
1680
|
+
"id": "datasets:create",
|
|
1681
|
+
"pluginAlias": "@sanity/cli",
|
|
1682
|
+
"pluginName": "@sanity/cli",
|
|
1683
|
+
"pluginType": "core",
|
|
1684
|
+
"strict": true,
|
|
1685
|
+
"isESM": true,
|
|
1686
|
+
"relativePath": [
|
|
1687
|
+
"dist",
|
|
1688
|
+
"commands",
|
|
1689
|
+
"datasets",
|
|
1690
|
+
"create.js"
|
|
1691
|
+
]
|
|
1692
|
+
},
|
|
1693
|
+
"datasets:delete": {
|
|
1694
|
+
"aliases": [],
|
|
1695
|
+
"args": {
|
|
1696
|
+
"datasetName": {
|
|
1697
|
+
"description": "Dataset name to delete",
|
|
1698
|
+
"name": "datasetName",
|
|
1699
|
+
"required": true
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
"description": "Delete a dataset from the project",
|
|
1703
|
+
"examples": [
|
|
1704
|
+
{
|
|
1705
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
1706
|
+
"description": "Delete a specific dataset"
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
1710
|
+
"description": "Delete a specific dataset without confirmation"
|
|
1711
|
+
}
|
|
1712
|
+
],
|
|
1713
|
+
"flags": {
|
|
1714
|
+
"project-id": {
|
|
1715
|
+
"char": "p",
|
|
1716
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
1717
|
+
"helpGroup": "OVERRIDE",
|
|
1718
|
+
"name": "project-id",
|
|
1719
|
+
"hasDynamicHelp": false,
|
|
1720
|
+
"helpValue": "<id>",
|
|
1721
|
+
"multiple": false,
|
|
1722
|
+
"type": "option"
|
|
1723
|
+
},
|
|
1724
|
+
"force": {
|
|
1725
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
1726
|
+
"name": "force",
|
|
1727
|
+
"required": false,
|
|
1728
|
+
"allowNo": false,
|
|
1729
|
+
"type": "boolean"
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
"hasDynamicHelp": false,
|
|
1733
|
+
"hiddenAliases": [
|
|
1734
|
+
"dataset:delete"
|
|
1735
|
+
],
|
|
1736
|
+
"id": "datasets:delete",
|
|
1737
|
+
"pluginAlias": "@sanity/cli",
|
|
1738
|
+
"pluginName": "@sanity/cli",
|
|
1739
|
+
"pluginType": "core",
|
|
1740
|
+
"strict": true,
|
|
1741
|
+
"isESM": true,
|
|
1742
|
+
"relativePath": [
|
|
1743
|
+
"dist",
|
|
1744
|
+
"commands",
|
|
1745
|
+
"datasets",
|
|
1746
|
+
"delete.js"
|
|
1747
|
+
]
|
|
1748
|
+
},
|
|
1749
|
+
"datasets:export": {
|
|
1750
|
+
"aliases": [],
|
|
1751
|
+
"args": {
|
|
1752
|
+
"name": {
|
|
1753
|
+
"description": "Name of the dataset to export",
|
|
1754
|
+
"name": "name"
|
|
1755
|
+
},
|
|
1756
|
+
"destination": {
|
|
1757
|
+
"description": "Output destination file path",
|
|
1758
|
+
"name": "destination"
|
|
1759
|
+
}
|
|
1760
|
+
},
|
|
1761
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
1762
|
+
"examples": [
|
|
1763
|
+
{
|
|
1764
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
1765
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
1769
|
+
"description": "Export dataset without assets"
|
|
1770
|
+
},
|
|
1771
|
+
{
|
|
1772
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
1773
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
1777
|
+
"description": "Export specific document types"
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
1781
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
1782
|
+
}
|
|
1783
|
+
],
|
|
1784
|
+
"flags": {
|
|
1785
|
+
"project-id": {
|
|
1786
|
+
"char": "p",
|
|
1787
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
1788
|
+
"helpGroup": "OVERRIDE",
|
|
1789
|
+
"name": "project-id",
|
|
1790
|
+
"hasDynamicHelp": false,
|
|
1791
|
+
"helpValue": "<id>",
|
|
1792
|
+
"multiple": false,
|
|
1793
|
+
"type": "option"
|
|
1794
|
+
},
|
|
1795
|
+
"asset-concurrency": {
|
|
1796
|
+
"description": "Concurrent number of asset downloads",
|
|
1797
|
+
"name": "asset-concurrency",
|
|
1798
|
+
"default": 8,
|
|
1799
|
+
"hasDynamicHelp": false,
|
|
1800
|
+
"multiple": false,
|
|
1801
|
+
"type": "option"
|
|
1802
|
+
},
|
|
1803
|
+
"mode": {
|
|
1804
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
1805
|
+
"name": "mode",
|
|
1806
|
+
"default": "stream",
|
|
1807
|
+
"hasDynamicHelp": false,
|
|
1808
|
+
"multiple": false,
|
|
1809
|
+
"options": [
|
|
1810
|
+
"stream",
|
|
1811
|
+
"cursor"
|
|
1812
|
+
],
|
|
1813
|
+
"type": "option"
|
|
1814
|
+
},
|
|
1815
|
+
"no-assets": {
|
|
1816
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
1817
|
+
"name": "no-assets",
|
|
1818
|
+
"allowNo": false,
|
|
1819
|
+
"type": "boolean"
|
|
1820
|
+
},
|
|
1821
|
+
"no-compress": {
|
|
1822
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
1823
|
+
"name": "no-compress",
|
|
1824
|
+
"allowNo": false,
|
|
1825
|
+
"type": "boolean"
|
|
1826
|
+
},
|
|
1827
|
+
"no-drafts": {
|
|
1828
|
+
"description": "Export only published versions of documents",
|
|
1829
|
+
"name": "no-drafts",
|
|
1830
|
+
"allowNo": false,
|
|
1831
|
+
"type": "boolean"
|
|
1832
|
+
},
|
|
1833
|
+
"no-strict-asset-verification": {
|
|
1834
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
1835
|
+
"name": "no-strict-asset-verification",
|
|
1836
|
+
"allowNo": false,
|
|
1837
|
+
"type": "boolean"
|
|
1838
|
+
},
|
|
1839
|
+
"overwrite": {
|
|
1840
|
+
"description": "Overwrite any file with the same name",
|
|
1841
|
+
"name": "overwrite",
|
|
1842
|
+
"allowNo": false,
|
|
1843
|
+
"type": "boolean"
|
|
1844
|
+
},
|
|
1845
|
+
"raw": {
|
|
1846
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
1847
|
+
"name": "raw",
|
|
1848
|
+
"allowNo": false,
|
|
1849
|
+
"type": "boolean"
|
|
1850
|
+
},
|
|
1851
|
+
"types": {
|
|
1852
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
1853
|
+
"name": "types",
|
|
1854
|
+
"hasDynamicHelp": false,
|
|
1855
|
+
"multiple": false,
|
|
1856
|
+
"type": "option"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
"hasDynamicHelp": false,
|
|
1860
|
+
"hiddenAliases": [
|
|
1861
|
+
"dataset:export"
|
|
1862
|
+
],
|
|
1863
|
+
"id": "datasets:export",
|
|
1864
|
+
"pluginAlias": "@sanity/cli",
|
|
1865
|
+
"pluginName": "@sanity/cli",
|
|
1866
|
+
"pluginType": "core",
|
|
1867
|
+
"strict": true,
|
|
1868
|
+
"isESM": true,
|
|
1869
|
+
"relativePath": [
|
|
1870
|
+
"dist",
|
|
1871
|
+
"commands",
|
|
1872
|
+
"datasets",
|
|
1873
|
+
"export.js"
|
|
1874
|
+
]
|
|
1875
|
+
},
|
|
1876
|
+
"datasets:import": {
|
|
1877
|
+
"aliases": [],
|
|
1878
|
+
"args": {
|
|
1879
|
+
"source": {
|
|
1880
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
1881
|
+
"name": "source",
|
|
1882
|
+
"required": true
|
|
1883
|
+
},
|
|
1884
|
+
"targetDataset": {
|
|
1885
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
1886
|
+
"name": "targetDataset",
|
|
1887
|
+
"required": false
|
|
1888
|
+
}
|
|
1889
|
+
},
|
|
1890
|
+
"description": "Import documents to a Sanity dataset",
|
|
1628
1891
|
"examples": [
|
|
1629
1892
|
{
|
|
1630
1893
|
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
@@ -3872,184 +4135,24 @@
|
|
|
3872
4135
|
"hasDynamicHelp": false,
|
|
3873
4136
|
"multiple": false,
|
|
3874
4137
|
"options": [
|
|
3875
|
-
"error",
|
|
3876
|
-
"warning"
|
|
3877
|
-
],
|
|
3878
|
-
"type": "option"
|
|
3879
|
-
},
|
|
3880
|
-
"workspace": {
|
|
3881
|
-
"description": "The name of the workspace to use when validating all schema types",
|
|
3882
|
-
"name": "workspace",
|
|
3883
|
-
"hasDynamicHelp": false,
|
|
3884
|
-
"multiple": false,
|
|
3885
|
-
"type": "option"
|
|
3886
|
-
}
|
|
3887
|
-
},
|
|
3888
|
-
"hasDynamicHelp": false,
|
|
3889
|
-
"hiddenAliases": [
|
|
3890
|
-
"schema:validate"
|
|
3891
|
-
],
|
|
3892
|
-
"id": "schemas:validate",
|
|
3893
|
-
"pluginAlias": "@sanity/cli",
|
|
3894
|
-
"pluginName": "@sanity/cli",
|
|
3895
|
-
"pluginType": "core",
|
|
3896
|
-
"strict": true,
|
|
3897
|
-
"isESM": true,
|
|
3898
|
-
"relativePath": [
|
|
3899
|
-
"dist",
|
|
3900
|
-
"commands",
|
|
3901
|
-
"schemas",
|
|
3902
|
-
"validate.js"
|
|
3903
|
-
]
|
|
3904
|
-
},
|
|
3905
|
-
"telemetry:disable": {
|
|
3906
|
-
"aliases": [],
|
|
3907
|
-
"args": {},
|
|
3908
|
-
"description": "Disable telemetry for your account",
|
|
3909
|
-
"examples": [
|
|
3910
|
-
{
|
|
3911
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3912
|
-
"description": "Disable telemetry for your account"
|
|
3913
|
-
}
|
|
3914
|
-
],
|
|
3915
|
-
"flags": {},
|
|
3916
|
-
"hasDynamicHelp": false,
|
|
3917
|
-
"hiddenAliases": [],
|
|
3918
|
-
"id": "telemetry:disable",
|
|
3919
|
-
"pluginAlias": "@sanity/cli",
|
|
3920
|
-
"pluginName": "@sanity/cli",
|
|
3921
|
-
"pluginType": "core",
|
|
3922
|
-
"strict": true,
|
|
3923
|
-
"isESM": true,
|
|
3924
|
-
"relativePath": [
|
|
3925
|
-
"dist",
|
|
3926
|
-
"commands",
|
|
3927
|
-
"telemetry",
|
|
3928
|
-
"disable.js"
|
|
3929
|
-
]
|
|
3930
|
-
},
|
|
3931
|
-
"telemetry:enable": {
|
|
3932
|
-
"aliases": [],
|
|
3933
|
-
"args": {},
|
|
3934
|
-
"description": "Enable telemetry for your account",
|
|
3935
|
-
"examples": [
|
|
3936
|
-
{
|
|
3937
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3938
|
-
"description": "Enable telemetry for your account"
|
|
3939
|
-
}
|
|
3940
|
-
],
|
|
3941
|
-
"flags": {},
|
|
3942
|
-
"hasDynamicHelp": false,
|
|
3943
|
-
"hiddenAliases": [],
|
|
3944
|
-
"id": "telemetry:enable",
|
|
3945
|
-
"pluginAlias": "@sanity/cli",
|
|
3946
|
-
"pluginName": "@sanity/cli",
|
|
3947
|
-
"pluginType": "core",
|
|
3948
|
-
"strict": true,
|
|
3949
|
-
"isESM": true,
|
|
3950
|
-
"relativePath": [
|
|
3951
|
-
"dist",
|
|
3952
|
-
"commands",
|
|
3953
|
-
"telemetry",
|
|
3954
|
-
"enable.js"
|
|
3955
|
-
]
|
|
3956
|
-
},
|
|
3957
|
-
"telemetry:status": {
|
|
3958
|
-
"aliases": [],
|
|
3959
|
-
"args": {},
|
|
3960
|
-
"description": "Check telemetry status for your account",
|
|
3961
|
-
"examples": [
|
|
3962
|
-
{
|
|
3963
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3964
|
-
"description": "Check telemetry status for your account"
|
|
3965
|
-
}
|
|
3966
|
-
],
|
|
3967
|
-
"flags": {},
|
|
3968
|
-
"hasDynamicHelp": false,
|
|
3969
|
-
"hiddenAliases": [],
|
|
3970
|
-
"id": "telemetry:status",
|
|
3971
|
-
"pluginAlias": "@sanity/cli",
|
|
3972
|
-
"pluginName": "@sanity/cli",
|
|
3973
|
-
"pluginType": "core",
|
|
3974
|
-
"strict": true,
|
|
3975
|
-
"isESM": true,
|
|
3976
|
-
"relativePath": [
|
|
3977
|
-
"dist",
|
|
3978
|
-
"commands",
|
|
3979
|
-
"telemetry",
|
|
3980
|
-
"status.js"
|
|
3981
|
-
]
|
|
3982
|
-
},
|
|
3983
|
-
"tokens:add": {
|
|
3984
|
-
"aliases": [],
|
|
3985
|
-
"args": {
|
|
3986
|
-
"label": {
|
|
3987
|
-
"description": "Label for the new token",
|
|
3988
|
-
"name": "label",
|
|
3989
|
-
"required": false
|
|
3990
|
-
}
|
|
3991
|
-
},
|
|
3992
|
-
"description": "Create a new API token for the project",
|
|
3993
|
-
"examples": [
|
|
3994
|
-
{
|
|
3995
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
3996
|
-
"description": "Create a token with a label"
|
|
3997
|
-
},
|
|
3998
|
-
{
|
|
3999
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
4000
|
-
"description": "Create a token with editor role"
|
|
4001
|
-
},
|
|
4002
|
-
{
|
|
4003
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
4004
|
-
"description": "Create a token in unattended mode"
|
|
4005
|
-
},
|
|
4006
|
-
{
|
|
4007
|
-
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
4008
|
-
"description": "Output token information as JSON"
|
|
4009
|
-
},
|
|
4010
|
-
{
|
|
4011
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
4012
|
-
"description": "Create a token for a specific project"
|
|
4013
|
-
}
|
|
4014
|
-
],
|
|
4015
|
-
"flags": {
|
|
4016
|
-
"project-id": {
|
|
4017
|
-
"char": "p",
|
|
4018
|
-
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
4019
|
-
"helpGroup": "OVERRIDE",
|
|
4020
|
-
"name": "project-id",
|
|
4021
|
-
"hasDynamicHelp": false,
|
|
4022
|
-
"helpValue": "<id>",
|
|
4023
|
-
"multiple": false,
|
|
4138
|
+
"error",
|
|
4139
|
+
"warning"
|
|
4140
|
+
],
|
|
4024
4141
|
"type": "option"
|
|
4025
4142
|
},
|
|
4026
|
-
"
|
|
4027
|
-
"description": "
|
|
4028
|
-
"name": "
|
|
4029
|
-
"allowNo": false,
|
|
4030
|
-
"type": "boolean"
|
|
4031
|
-
},
|
|
4032
|
-
"role": {
|
|
4033
|
-
"description": "Role to assign to the token",
|
|
4034
|
-
"name": "role",
|
|
4143
|
+
"workspace": {
|
|
4144
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
4145
|
+
"name": "workspace",
|
|
4035
4146
|
"hasDynamicHelp": false,
|
|
4036
|
-
"helpValue": "viewer",
|
|
4037
4147
|
"multiple": false,
|
|
4038
4148
|
"type": "option"
|
|
4039
|
-
},
|
|
4040
|
-
"yes": {
|
|
4041
|
-
"char": "y",
|
|
4042
|
-
"description": "Skip prompts and use defaults (unattended mode)",
|
|
4043
|
-
"name": "yes",
|
|
4044
|
-
"allowNo": false,
|
|
4045
|
-
"type": "boolean"
|
|
4046
4149
|
}
|
|
4047
4150
|
},
|
|
4048
4151
|
"hasDynamicHelp": false,
|
|
4049
4152
|
"hiddenAliases": [
|
|
4050
|
-
"
|
|
4153
|
+
"schema:validate"
|
|
4051
4154
|
],
|
|
4052
|
-
"id": "
|
|
4155
|
+
"id": "schemas:validate",
|
|
4053
4156
|
"pluginAlias": "@sanity/cli",
|
|
4054
4157
|
"pluginName": "@sanity/cli",
|
|
4055
4158
|
"pluginType": "core",
|
|
@@ -4058,65 +4161,24 @@
|
|
|
4058
4161
|
"relativePath": [
|
|
4059
4162
|
"dist",
|
|
4060
4163
|
"commands",
|
|
4061
|
-
"
|
|
4062
|
-
"
|
|
4164
|
+
"schemas",
|
|
4165
|
+
"validate.js"
|
|
4063
4166
|
]
|
|
4064
4167
|
},
|
|
4065
|
-
"
|
|
4168
|
+
"telemetry:disable": {
|
|
4066
4169
|
"aliases": [],
|
|
4067
|
-
"args": {
|
|
4068
|
-
|
|
4069
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
4070
|
-
"name": "tokenId",
|
|
4071
|
-
"required": false
|
|
4072
|
-
}
|
|
4073
|
-
},
|
|
4074
|
-
"description": "Delete an API token from the project",
|
|
4170
|
+
"args": {},
|
|
4171
|
+
"description": "Disable telemetry for your account",
|
|
4075
4172
|
"examples": [
|
|
4076
4173
|
{
|
|
4077
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4078
|
-
"description": "
|
|
4079
|
-
},
|
|
4080
|
-
{
|
|
4081
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
4082
|
-
"description": "Delete a specific token by ID"
|
|
4083
|
-
},
|
|
4084
|
-
{
|
|
4085
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
4086
|
-
"description": "Delete a specific token without confirmation prompt"
|
|
4087
|
-
},
|
|
4088
|
-
{
|
|
4089
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4090
|
-
"description": "Delete a token from a specific project"
|
|
4174
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4175
|
+
"description": "Disable telemetry for your account"
|
|
4091
4176
|
}
|
|
4092
4177
|
],
|
|
4093
|
-
"flags": {
|
|
4094
|
-
"project-id": {
|
|
4095
|
-
"char": "p",
|
|
4096
|
-
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
4097
|
-
"helpGroup": "OVERRIDE",
|
|
4098
|
-
"name": "project-id",
|
|
4099
|
-
"hasDynamicHelp": false,
|
|
4100
|
-
"helpValue": "<id>",
|
|
4101
|
-
"multiple": false,
|
|
4102
|
-
"type": "option"
|
|
4103
|
-
},
|
|
4104
|
-
"yes": {
|
|
4105
|
-
"aliases": [
|
|
4106
|
-
"y"
|
|
4107
|
-
],
|
|
4108
|
-
"description": "Skip confirmation prompt (unattended mode)",
|
|
4109
|
-
"name": "yes",
|
|
4110
|
-
"required": false,
|
|
4111
|
-
"allowNo": false,
|
|
4112
|
-
"type": "boolean"
|
|
4113
|
-
}
|
|
4114
|
-
},
|
|
4178
|
+
"flags": {},
|
|
4115
4179
|
"hasDynamicHelp": false,
|
|
4116
|
-
"hiddenAliases": [
|
|
4117
|
-
|
|
4118
|
-
],
|
|
4119
|
-
"id": "tokens:delete",
|
|
4180
|
+
"hiddenAliases": [],
|
|
4181
|
+
"id": "telemetry:disable",
|
|
4120
4182
|
"pluginAlias": "@sanity/cli",
|
|
4121
4183
|
"pluginName": "@sanity/cli",
|
|
4122
4184
|
"pluginType": "core",
|
|
@@ -4125,51 +4187,24 @@
|
|
|
4125
4187
|
"relativePath": [
|
|
4126
4188
|
"dist",
|
|
4127
4189
|
"commands",
|
|
4128
|
-
"
|
|
4129
|
-
"
|
|
4190
|
+
"telemetry",
|
|
4191
|
+
"disable.js"
|
|
4130
4192
|
]
|
|
4131
4193
|
},
|
|
4132
|
-
"
|
|
4194
|
+
"telemetry:enable": {
|
|
4133
4195
|
"aliases": [],
|
|
4134
4196
|
"args": {},
|
|
4135
|
-
"description": "
|
|
4197
|
+
"description": "Enable telemetry for your account",
|
|
4136
4198
|
"examples": [
|
|
4137
4199
|
{
|
|
4138
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4139
|
-
"description": "
|
|
4140
|
-
},
|
|
4141
|
-
{
|
|
4142
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4143
|
-
"description": "List tokens in JSON format"
|
|
4144
|
-
},
|
|
4145
|
-
{
|
|
4146
|
-
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4147
|
-
"description": "List tokens for a specific project"
|
|
4200
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4201
|
+
"description": "Enable telemetry for your account"
|
|
4148
4202
|
}
|
|
4149
4203
|
],
|
|
4150
|
-
"flags": {
|
|
4151
|
-
"project-id": {
|
|
4152
|
-
"char": "p",
|
|
4153
|
-
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
4154
|
-
"helpGroup": "OVERRIDE",
|
|
4155
|
-
"name": "project-id",
|
|
4156
|
-
"hasDynamicHelp": false,
|
|
4157
|
-
"helpValue": "<id>",
|
|
4158
|
-
"multiple": false,
|
|
4159
|
-
"type": "option"
|
|
4160
|
-
},
|
|
4161
|
-
"json": {
|
|
4162
|
-
"description": "Output tokens in JSON format",
|
|
4163
|
-
"name": "json",
|
|
4164
|
-
"allowNo": false,
|
|
4165
|
-
"type": "boolean"
|
|
4166
|
-
}
|
|
4167
|
-
},
|
|
4204
|
+
"flags": {},
|
|
4168
4205
|
"hasDynamicHelp": false,
|
|
4169
|
-
"hiddenAliases": [
|
|
4170
|
-
|
|
4171
|
-
],
|
|
4172
|
-
"id": "tokens:list",
|
|
4206
|
+
"hiddenAliases": [],
|
|
4207
|
+
"id": "telemetry:enable",
|
|
4173
4208
|
"pluginAlias": "@sanity/cli",
|
|
4174
4209
|
"pluginName": "@sanity/cli",
|
|
4175
4210
|
"pluginType": "core",
|
|
@@ -4178,63 +4213,24 @@
|
|
|
4178
4213
|
"relativePath": [
|
|
4179
4214
|
"dist",
|
|
4180
4215
|
"commands",
|
|
4181
|
-
"
|
|
4182
|
-
"
|
|
4216
|
+
"telemetry",
|
|
4217
|
+
"enable.js"
|
|
4183
4218
|
]
|
|
4184
4219
|
},
|
|
4185
|
-
"
|
|
4220
|
+
"telemetry:status": {
|
|
4186
4221
|
"aliases": [],
|
|
4187
|
-
"args": {
|
|
4188
|
-
|
|
4189
|
-
"description": "Email address to invite",
|
|
4190
|
-
"name": "email",
|
|
4191
|
-
"required": false
|
|
4192
|
-
}
|
|
4193
|
-
},
|
|
4194
|
-
"description": "Invite a new user to the project",
|
|
4222
|
+
"args": {},
|
|
4223
|
+
"description": "Check telemetry status for your account",
|
|
4195
4224
|
"examples": [
|
|
4196
4225
|
{
|
|
4197
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4198
|
-
"description": "
|
|
4199
|
-
},
|
|
4200
|
-
{
|
|
4201
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
4202
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
4203
|
-
},
|
|
4204
|
-
{
|
|
4205
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
4206
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
4207
|
-
},
|
|
4208
|
-
{
|
|
4209
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
4210
|
-
"description": "Invite a user to a specific project"
|
|
4226
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4227
|
+
"description": "Check telemetry status for your account"
|
|
4211
4228
|
}
|
|
4212
4229
|
],
|
|
4213
|
-
"flags": {
|
|
4214
|
-
"project-id": {
|
|
4215
|
-
"char": "p",
|
|
4216
|
-
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
4217
|
-
"helpGroup": "OVERRIDE",
|
|
4218
|
-
"name": "project-id",
|
|
4219
|
-
"hasDynamicHelp": false,
|
|
4220
|
-
"helpValue": "<id>",
|
|
4221
|
-
"multiple": false,
|
|
4222
|
-
"type": "option"
|
|
4223
|
-
},
|
|
4224
|
-
"role": {
|
|
4225
|
-
"description": "Role to invite the user as",
|
|
4226
|
-
"name": "role",
|
|
4227
|
-
"required": false,
|
|
4228
|
-
"hasDynamicHelp": false,
|
|
4229
|
-
"multiple": false,
|
|
4230
|
-
"type": "option"
|
|
4231
|
-
}
|
|
4232
|
-
},
|
|
4230
|
+
"flags": {},
|
|
4233
4231
|
"hasDynamicHelp": false,
|
|
4234
|
-
"hiddenAliases": [
|
|
4235
|
-
|
|
4236
|
-
],
|
|
4237
|
-
"id": "users:invite",
|
|
4232
|
+
"hiddenAliases": [],
|
|
4233
|
+
"id": "telemetry:status",
|
|
4238
4234
|
"pluginAlias": "@sanity/cli",
|
|
4239
4235
|
"pluginName": "@sanity/cli",
|
|
4240
4236
|
"pluginType": "core",
|
|
@@ -4243,36 +4239,46 @@
|
|
|
4243
4239
|
"relativePath": [
|
|
4244
4240
|
"dist",
|
|
4245
4241
|
"commands",
|
|
4246
|
-
"
|
|
4247
|
-
"
|
|
4242
|
+
"telemetry",
|
|
4243
|
+
"status.js"
|
|
4248
4244
|
]
|
|
4249
4245
|
},
|
|
4250
|
-
"
|
|
4246
|
+
"tokens:add": {
|
|
4251
4247
|
"aliases": [],
|
|
4252
|
-
"args": {
|
|
4253
|
-
|
|
4248
|
+
"args": {
|
|
4249
|
+
"label": {
|
|
4250
|
+
"description": "Label for the new token",
|
|
4251
|
+
"name": "label",
|
|
4252
|
+
"required": false
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
"description": "Create a new API token for the project",
|
|
4254
4256
|
"examples": [
|
|
4255
4257
|
{
|
|
4256
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4257
|
-
"description": "
|
|
4258
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
4259
|
+
"description": "Create a token with a label"
|
|
4258
4260
|
},
|
|
4259
4261
|
{
|
|
4260
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4261
|
-
"description": "
|
|
4262
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
4263
|
+
"description": "Create a token with editor role"
|
|
4262
4264
|
},
|
|
4263
4265
|
{
|
|
4264
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4265
|
-
"description": "
|
|
4266
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
4267
|
+
"description": "Create a token in unattended mode"
|
|
4266
4268
|
},
|
|
4267
4269
|
{
|
|
4268
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4269
|
-
"description": "
|
|
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"
|
|
4270
4276
|
}
|
|
4271
4277
|
],
|
|
4272
4278
|
"flags": {
|
|
4273
4279
|
"project-id": {
|
|
4274
4280
|
"char": "p",
|
|
4275
|
-
"description": "Project ID to
|
|
4281
|
+
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
4276
4282
|
"helpGroup": "OVERRIDE",
|
|
4277
4283
|
"name": "project-id",
|
|
4278
4284
|
"hasDynamicHelp": false,
|
|
@@ -4280,50 +4286,33 @@
|
|
|
4280
4286
|
"multiple": false,
|
|
4281
4287
|
"type": "option"
|
|
4282
4288
|
},
|
|
4283
|
-
"
|
|
4284
|
-
"description": "
|
|
4285
|
-
"name": "
|
|
4286
|
-
"allowNo":
|
|
4287
|
-
"type": "boolean"
|
|
4288
|
-
},
|
|
4289
|
-
"order": {
|
|
4290
|
-
"description": "Sort output ascending/descending",
|
|
4291
|
-
"name": "order",
|
|
4292
|
-
"default": "asc",
|
|
4293
|
-
"hasDynamicHelp": false,
|
|
4294
|
-
"multiple": false,
|
|
4295
|
-
"options": [
|
|
4296
|
-
"asc",
|
|
4297
|
-
"desc"
|
|
4298
|
-
],
|
|
4299
|
-
"type": "option"
|
|
4300
|
-
},
|
|
4301
|
-
"robots": {
|
|
4302
|
-
"description": "Includes or excludes robots (token users)",
|
|
4303
|
-
"name": "robots",
|
|
4304
|
-
"allowNo": true,
|
|
4289
|
+
"json": {
|
|
4290
|
+
"description": "Output as JSON",
|
|
4291
|
+
"name": "json",
|
|
4292
|
+
"allowNo": false,
|
|
4305
4293
|
"type": "boolean"
|
|
4306
4294
|
},
|
|
4307
|
-
"
|
|
4308
|
-
"description": "
|
|
4309
|
-
"name": "
|
|
4310
|
-
"default": "date",
|
|
4295
|
+
"role": {
|
|
4296
|
+
"description": "Role to assign to the token",
|
|
4297
|
+
"name": "role",
|
|
4311
4298
|
"hasDynamicHelp": false,
|
|
4299
|
+
"helpValue": "viewer",
|
|
4312
4300
|
"multiple": false,
|
|
4313
|
-
"options": [
|
|
4314
|
-
"id",
|
|
4315
|
-
"name",
|
|
4316
|
-
"role",
|
|
4317
|
-
"date"
|
|
4318
|
-
],
|
|
4319
4301
|
"type": "option"
|
|
4302
|
+
},
|
|
4303
|
+
"yes": {
|
|
4304
|
+
"char": "y",
|
|
4305
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
4306
|
+
"name": "yes",
|
|
4307
|
+
"allowNo": false,
|
|
4308
|
+
"type": "boolean"
|
|
4320
4309
|
}
|
|
4321
4310
|
},
|
|
4322
4311
|
"hasDynamicHelp": false,
|
|
4323
4312
|
"hiddenAliases": [
|
|
4324
|
-
"
|
|
4313
|
+
"token:add"
|
|
4325
4314
|
],
|
|
4326
|
-
"id": "
|
|
4315
|
+
"id": "tokens:add",
|
|
4327
4316
|
"pluginAlias": "@sanity/cli",
|
|
4328
4317
|
"pluginName": "@sanity/cli",
|
|
4329
4318
|
"pluginType": "core",
|
|
@@ -4332,47 +4321,65 @@
|
|
|
4332
4321
|
"relativePath": [
|
|
4333
4322
|
"dist",
|
|
4334
4323
|
"commands",
|
|
4335
|
-
"
|
|
4336
|
-
"
|
|
4324
|
+
"tokens",
|
|
4325
|
+
"add.js"
|
|
4337
4326
|
]
|
|
4338
4327
|
},
|
|
4339
|
-
"
|
|
4328
|
+
"tokens:delete": {
|
|
4340
4329
|
"aliases": [],
|
|
4341
4330
|
"args": {
|
|
4342
|
-
"
|
|
4343
|
-
"description": "
|
|
4344
|
-
"name": "
|
|
4331
|
+
"tokenId": {
|
|
4332
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
4333
|
+
"name": "tokenId",
|
|
4345
4334
|
"required": false
|
|
4346
4335
|
}
|
|
4347
4336
|
},
|
|
4348
|
-
"description": "
|
|
4337
|
+
"description": "Delete an API token from the project",
|
|
4349
4338
|
"examples": [
|
|
4350
4339
|
{
|
|
4351
4340
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4352
|
-
"description": "Interactively
|
|
4341
|
+
"description": "Interactively select and delete a token"
|
|
4353
4342
|
},
|
|
4354
4343
|
{
|
|
4355
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4356
|
-
"description": "
|
|
4344
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
4345
|
+
"description": "Delete a specific token by ID"
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
4349
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4353
|
+
"description": "Delete a token from a specific project"
|
|
4357
4354
|
}
|
|
4358
4355
|
],
|
|
4359
4356
|
"flags": {
|
|
4360
4357
|
"project-id": {
|
|
4361
4358
|
"char": "p",
|
|
4362
|
-
"description": "Project ID to
|
|
4359
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
4363
4360
|
"helpGroup": "OVERRIDE",
|
|
4364
4361
|
"name": "project-id",
|
|
4365
4362
|
"hasDynamicHelp": false,
|
|
4366
4363
|
"helpValue": "<id>",
|
|
4367
4364
|
"multiple": false,
|
|
4368
4365
|
"type": "option"
|
|
4366
|
+
},
|
|
4367
|
+
"yes": {
|
|
4368
|
+
"aliases": [
|
|
4369
|
+
"y"
|
|
4370
|
+
],
|
|
4371
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
4372
|
+
"name": "yes",
|
|
4373
|
+
"required": false,
|
|
4374
|
+
"allowNo": false,
|
|
4375
|
+
"type": "boolean"
|
|
4369
4376
|
}
|
|
4370
4377
|
},
|
|
4371
4378
|
"hasDynamicHelp": false,
|
|
4372
4379
|
"hiddenAliases": [
|
|
4373
|
-
"
|
|
4380
|
+
"token:delete"
|
|
4374
4381
|
],
|
|
4375
|
-
"id": "
|
|
4382
|
+
"id": "tokens:delete",
|
|
4376
4383
|
"pluginAlias": "@sanity/cli",
|
|
4377
4384
|
"pluginName": "@sanity/cli",
|
|
4378
4385
|
"pluginType": "core",
|
|
@@ -4381,42 +4388,32 @@
|
|
|
4381
4388
|
"relativePath": [
|
|
4382
4389
|
"dist",
|
|
4383
4390
|
"commands",
|
|
4384
|
-
"
|
|
4385
|
-
"
|
|
4391
|
+
"tokens",
|
|
4392
|
+
"delete.js"
|
|
4386
4393
|
]
|
|
4387
4394
|
},
|
|
4388
|
-
"
|
|
4395
|
+
"tokens:list": {
|
|
4389
4396
|
"aliases": [],
|
|
4390
|
-
"args": {
|
|
4391
|
-
|
|
4392
|
-
"description": "Dataset name to download backup from",
|
|
4393
|
-
"name": "dataset",
|
|
4394
|
-
"required": false
|
|
4395
|
-
}
|
|
4396
|
-
},
|
|
4397
|
-
"description": "Download a dataset backup to a local file",
|
|
4397
|
+
"args": {},
|
|
4398
|
+
"description": "List API tokens for the project",
|
|
4398
4399
|
"examples": [
|
|
4399
4400
|
{
|
|
4400
4401
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4401
|
-
"description": "
|
|
4402
|
-
},
|
|
4403
|
-
{
|
|
4404
|
-
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
|
|
4405
|
-
"description": "Download a specific backup for the production dataset"
|
|
4402
|
+
"description": "List tokens for the project"
|
|
4406
4403
|
},
|
|
4407
4404
|
{
|
|
4408
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4409
|
-
"description": "
|
|
4405
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4406
|
+
"description": "List tokens in JSON format"
|
|
4410
4407
|
},
|
|
4411
4408
|
{
|
|
4412
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4413
|
-
"description": "
|
|
4409
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4410
|
+
"description": "List tokens for a specific project"
|
|
4414
4411
|
}
|
|
4415
4412
|
],
|
|
4416
4413
|
"flags": {
|
|
4417
4414
|
"project-id": {
|
|
4418
4415
|
"char": "p",
|
|
4419
|
-
"description": "Project ID to
|
|
4416
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
4420
4417
|
"helpGroup": "OVERRIDE",
|
|
4421
4418
|
"name": "project-id",
|
|
4422
4419
|
"hasDynamicHelp": false,
|
|
@@ -4424,40 +4421,18 @@
|
|
|
4424
4421
|
"multiple": false,
|
|
4425
4422
|
"type": "option"
|
|
4426
4423
|
},
|
|
4427
|
-
"
|
|
4428
|
-
"description": "
|
|
4429
|
-
"name": "
|
|
4430
|
-
"hasDynamicHelp": false,
|
|
4431
|
-
"multiple": false,
|
|
4432
|
-
"type": "option"
|
|
4433
|
-
},
|
|
4434
|
-
"concurrency": {
|
|
4435
|
-
"description": "Concurrent number of backup item downloads (max: 24)",
|
|
4436
|
-
"name": "concurrency",
|
|
4437
|
-
"default": 10,
|
|
4438
|
-
"hasDynamicHelp": false,
|
|
4439
|
-
"multiple": false,
|
|
4440
|
-
"type": "option"
|
|
4441
|
-
},
|
|
4442
|
-
"out": {
|
|
4443
|
-
"description": "The file or directory path the backup should download to",
|
|
4444
|
-
"name": "out",
|
|
4445
|
-
"hasDynamicHelp": false,
|
|
4446
|
-
"multiple": false,
|
|
4447
|
-
"type": "option"
|
|
4448
|
-
},
|
|
4449
|
-
"overwrite": {
|
|
4450
|
-
"description": "Allows overwriting of existing backup file",
|
|
4451
|
-
"name": "overwrite",
|
|
4424
|
+
"json": {
|
|
4425
|
+
"description": "Output tokens in JSON format",
|
|
4426
|
+
"name": "json",
|
|
4452
4427
|
"allowNo": false,
|
|
4453
4428
|
"type": "boolean"
|
|
4454
4429
|
}
|
|
4455
4430
|
},
|
|
4456
4431
|
"hasDynamicHelp": false,
|
|
4457
4432
|
"hiddenAliases": [
|
|
4458
|
-
"
|
|
4433
|
+
"token:list"
|
|
4459
4434
|
],
|
|
4460
|
-
"id": "
|
|
4435
|
+
"id": "tokens:list",
|
|
4461
4436
|
"pluginAlias": "@sanity/cli",
|
|
4462
4437
|
"pluginName": "@sanity/cli",
|
|
4463
4438
|
"pluginType": "core",
|
|
@@ -4466,47 +4441,63 @@
|
|
|
4466
4441
|
"relativePath": [
|
|
4467
4442
|
"dist",
|
|
4468
4443
|
"commands",
|
|
4469
|
-
"
|
|
4470
|
-
"
|
|
4444
|
+
"tokens",
|
|
4445
|
+
"list.js"
|
|
4471
4446
|
]
|
|
4472
4447
|
},
|
|
4473
|
-
"
|
|
4448
|
+
"users:invite": {
|
|
4474
4449
|
"aliases": [],
|
|
4475
4450
|
"args": {
|
|
4476
|
-
"
|
|
4477
|
-
"description": "
|
|
4478
|
-
"name": "
|
|
4451
|
+
"email": {
|
|
4452
|
+
"description": "Email address to invite",
|
|
4453
|
+
"name": "email",
|
|
4479
4454
|
"required": false
|
|
4480
4455
|
}
|
|
4481
4456
|
},
|
|
4482
|
-
"description": "
|
|
4457
|
+
"description": "Invite a new user to the project",
|
|
4483
4458
|
"examples": [
|
|
4484
4459
|
{
|
|
4485
4460
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4486
|
-
"description": "
|
|
4461
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
4487
4462
|
},
|
|
4488
4463
|
{
|
|
4489
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4490
|
-
"description": "
|
|
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"
|
|
4491
4474
|
}
|
|
4492
4475
|
],
|
|
4493
4476
|
"flags": {
|
|
4494
4477
|
"project-id": {
|
|
4495
4478
|
"char": "p",
|
|
4496
|
-
"description": "Project ID to
|
|
4479
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
4497
4480
|
"helpGroup": "OVERRIDE",
|
|
4498
4481
|
"name": "project-id",
|
|
4499
4482
|
"hasDynamicHelp": false,
|
|
4500
4483
|
"helpValue": "<id>",
|
|
4501
4484
|
"multiple": false,
|
|
4502
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"
|
|
4503
4494
|
}
|
|
4504
4495
|
},
|
|
4505
4496
|
"hasDynamicHelp": false,
|
|
4506
4497
|
"hiddenAliases": [
|
|
4507
|
-
"
|
|
4498
|
+
"user:invite"
|
|
4508
4499
|
],
|
|
4509
|
-
"id": "
|
|
4500
|
+
"id": "users:invite",
|
|
4510
4501
|
"pluginAlias": "@sanity/cli",
|
|
4511
4502
|
"pluginName": "@sanity/cli",
|
|
4512
4503
|
"pluginType": "core",
|
|
@@ -4515,42 +4506,36 @@
|
|
|
4515
4506
|
"relativePath": [
|
|
4516
4507
|
"dist",
|
|
4517
4508
|
"commands",
|
|
4518
|
-
"
|
|
4519
|
-
"
|
|
4509
|
+
"users",
|
|
4510
|
+
"invite.js"
|
|
4520
4511
|
]
|
|
4521
4512
|
},
|
|
4522
|
-
"
|
|
4513
|
+
"users:list": {
|
|
4523
4514
|
"aliases": [],
|
|
4524
|
-
"args": {
|
|
4525
|
-
|
|
4526
|
-
"description": "Dataset name to list backups for",
|
|
4527
|
-
"name": "dataset",
|
|
4528
|
-
"required": false
|
|
4529
|
-
}
|
|
4530
|
-
},
|
|
4531
|
-
"description": "List available backups for a dataset",
|
|
4515
|
+
"args": {},
|
|
4516
|
+
"description": "List project members",
|
|
4532
4517
|
"examples": [
|
|
4533
4518
|
{
|
|
4534
4519
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4535
|
-
"description": "List
|
|
4520
|
+
"description": "List all users of the project"
|
|
4536
4521
|
},
|
|
4537
4522
|
{
|
|
4538
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4539
|
-
"description": "List
|
|
4523
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
4524
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
4540
4525
|
},
|
|
4541
4526
|
{
|
|
4542
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4543
|
-
"description": "List
|
|
4527
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
4528
|
+
"description": "List all users, sorted by role"
|
|
4544
4529
|
},
|
|
4545
4530
|
{
|
|
4546
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4547
|
-
"description": "List
|
|
4531
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4532
|
+
"description": "List users for a specific project"
|
|
4548
4533
|
}
|
|
4549
4534
|
],
|
|
4550
4535
|
"flags": {
|
|
4551
4536
|
"project-id": {
|
|
4552
4537
|
"char": "p",
|
|
4553
|
-
"description": "Project ID to list
|
|
4538
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
4554
4539
|
"helpGroup": "OVERRIDE",
|
|
4555
4540
|
"name": "project-id",
|
|
4556
4541
|
"hasDynamicHelp": false,
|
|
@@ -4558,35 +4543,50 @@
|
|
|
4558
4543
|
"multiple": false,
|
|
4559
4544
|
"type": "option"
|
|
4560
4545
|
},
|
|
4561
|
-
"
|
|
4562
|
-
"description": "
|
|
4563
|
-
"name": "
|
|
4564
|
-
"
|
|
4565
|
-
"
|
|
4566
|
-
"type": "option"
|
|
4546
|
+
"invitations": {
|
|
4547
|
+
"description": "Includes or excludes pending invitations",
|
|
4548
|
+
"name": "invitations",
|
|
4549
|
+
"allowNo": true,
|
|
4550
|
+
"type": "boolean"
|
|
4567
4551
|
},
|
|
4568
|
-
"
|
|
4569
|
-
"description": "
|
|
4570
|
-
"name": "
|
|
4552
|
+
"order": {
|
|
4553
|
+
"description": "Sort output ascending/descending",
|
|
4554
|
+
"name": "order",
|
|
4555
|
+
"default": "asc",
|
|
4571
4556
|
"hasDynamicHelp": false,
|
|
4572
4557
|
"multiple": false,
|
|
4558
|
+
"options": [
|
|
4559
|
+
"asc",
|
|
4560
|
+
"desc"
|
|
4561
|
+
],
|
|
4573
4562
|
"type": "option"
|
|
4574
4563
|
},
|
|
4575
|
-
"
|
|
4576
|
-
"
|
|
4577
|
-
"
|
|
4578
|
-
"
|
|
4579
|
-
"
|
|
4564
|
+
"robots": {
|
|
4565
|
+
"description": "Includes or excludes robots (token users)",
|
|
4566
|
+
"name": "robots",
|
|
4567
|
+
"allowNo": true,
|
|
4568
|
+
"type": "boolean"
|
|
4569
|
+
},
|
|
4570
|
+
"sort": {
|
|
4571
|
+
"description": "Sort users by specified column",
|
|
4572
|
+
"name": "sort",
|
|
4573
|
+
"default": "date",
|
|
4580
4574
|
"hasDynamicHelp": false,
|
|
4581
4575
|
"multiple": false,
|
|
4576
|
+
"options": [
|
|
4577
|
+
"id",
|
|
4578
|
+
"name",
|
|
4579
|
+
"role",
|
|
4580
|
+
"date"
|
|
4581
|
+
],
|
|
4582
4582
|
"type": "option"
|
|
4583
4583
|
}
|
|
4584
4584
|
},
|
|
4585
4585
|
"hasDynamicHelp": false,
|
|
4586
4586
|
"hiddenAliases": [
|
|
4587
|
-
"
|
|
4587
|
+
"user:list"
|
|
4588
4588
|
],
|
|
4589
|
-
"id": "
|
|
4589
|
+
"id": "users:list",
|
|
4590
4590
|
"pluginAlias": "@sanity/cli",
|
|
4591
4591
|
"pluginName": "@sanity/cli",
|
|
4592
4592
|
"pluginType": "core",
|
|
@@ -4595,7 +4595,7 @@
|
|
|
4595
4595
|
"relativePath": [
|
|
4596
4596
|
"dist",
|
|
4597
4597
|
"commands",
|
|
4598
|
-
"
|
|
4598
|
+
"users",
|
|
4599
4599
|
"list.js"
|
|
4600
4600
|
]
|
|
4601
4601
|
},
|
|
@@ -5116,5 +5116,5 @@
|
|
|
5116
5116
|
]
|
|
5117
5117
|
}
|
|
5118
5118
|
},
|
|
5119
|
-
"version": "7.2.
|
|
5119
|
+
"version": "7.2.1"
|
|
5120
5120
|
}
|