@sanity/cli 7.0.2 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -12
- package/dist/actions/dev/getDevServerConfig.js +1 -1
- package/dist/actions/dev/getDevServerConfig.js.map +1 -1
- package/dist/actions/init/initAction.js +23 -23
- package/dist/actions/init/initAction.js.map +1 -1
- package/dist/actions/init/initNextJs.js +4 -4
- package/dist/actions/init/initNextJs.js.map +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +5 -5
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/skills/readSkillState.js +14 -7
- package/dist/actions/skills/readSkillState.js.map +1 -1
- package/dist/actions/skills/setupSkills.js +5 -2
- package/dist/actions/skills/setupSkills.js.map +1 -1
- package/dist/commands/init.js +4 -5
- package/dist/commands/init.js.map +1 -1
- package/dist/server/devServer.js.map +1 -1
- package/dist/util/packageManager/getPeerDependencies.js +2 -2
- package/dist/util/packageManager/getPeerDependencies.js.map +1 -1
- package/dist/util/packageManager/installPackages.js +41 -1
- package/dist/util/packageManager/installPackages.js.map +1 -1
- package/oclif.manifest.json +596 -596
- package/package.json +7 -7
package/oclif.manifest.json
CHANGED
|
@@ -1029,43 +1029,56 @@
|
|
|
1029
1029
|
"versions.js"
|
|
1030
1030
|
]
|
|
1031
1031
|
},
|
|
1032
|
-
"
|
|
1032
|
+
"cors:add": {
|
|
1033
1033
|
"aliases": [],
|
|
1034
1034
|
"args": {
|
|
1035
|
-
"
|
|
1036
|
-
"description": "
|
|
1037
|
-
"name": "
|
|
1038
|
-
"required":
|
|
1035
|
+
"origin": {
|
|
1036
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1037
|
+
"name": "origin",
|
|
1038
|
+
"required": true
|
|
1039
1039
|
}
|
|
1040
1040
|
},
|
|
1041
|
-
"description": "
|
|
1041
|
+
"description": "Add a CORS origin to the project",
|
|
1042
1042
|
"examples": [
|
|
1043
1043
|
{
|
|
1044
1044
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1045
|
-
"description": "Interactively
|
|
1045
|
+
"description": "Interactively add a CORS origin"
|
|
1046
1046
|
},
|
|
1047
1047
|
{
|
|
1048
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1049
|
-
"description": "
|
|
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"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
1057
|
+
"description": "Add a CORS origin for a specific project"
|
|
1050
1058
|
}
|
|
1051
1059
|
],
|
|
1052
1060
|
"flags": {
|
|
1053
1061
|
"project-id": {
|
|
1054
1062
|
"char": "p",
|
|
1055
|
-
"description": "Project ID to
|
|
1063
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
1056
1064
|
"helpGroup": "OVERRIDE",
|
|
1057
1065
|
"name": "project-id",
|
|
1058
1066
|
"hasDynamicHelp": false,
|
|
1059
1067
|
"helpValue": "<id>",
|
|
1060
1068
|
"multiple": false,
|
|
1061
1069
|
"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"
|
|
1062
1077
|
}
|
|
1063
1078
|
},
|
|
1064
1079
|
"hasDynamicHelp": false,
|
|
1065
|
-
"hiddenAliases": [
|
|
1066
|
-
|
|
1067
|
-
],
|
|
1068
|
-
"id": "backups:disable",
|
|
1080
|
+
"hiddenAliases": [],
|
|
1081
|
+
"id": "cors:add",
|
|
1069
1082
|
"pluginAlias": "@sanity/cli",
|
|
1070
1083
|
"pluginName": "@sanity/cli",
|
|
1071
1084
|
"pluginType": "core",
|
|
@@ -1074,83 +1087,49 @@
|
|
|
1074
1087
|
"relativePath": [
|
|
1075
1088
|
"dist",
|
|
1076
1089
|
"commands",
|
|
1077
|
-
"
|
|
1078
|
-
"
|
|
1090
|
+
"cors",
|
|
1091
|
+
"add.js"
|
|
1079
1092
|
]
|
|
1080
1093
|
},
|
|
1081
|
-
"
|
|
1094
|
+
"cors:delete": {
|
|
1082
1095
|
"aliases": [],
|
|
1083
1096
|
"args": {
|
|
1084
|
-
"
|
|
1085
|
-
"description": "
|
|
1086
|
-
"name": "
|
|
1097
|
+
"origin": {
|
|
1098
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
1099
|
+
"name": "origin",
|
|
1087
1100
|
"required": false
|
|
1088
1101
|
}
|
|
1089
1102
|
},
|
|
1090
|
-
"description": "
|
|
1103
|
+
"description": "Delete a CORS origin from the project",
|
|
1091
1104
|
"examples": [
|
|
1092
1105
|
{
|
|
1093
1106
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1094
|
-
"description": "Interactively
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
|
|
1098
|
-
"description": "Download a specific backup for the production dataset"
|
|
1107
|
+
"description": "Interactively select and delete a CORS origin"
|
|
1099
1108
|
},
|
|
1100
1109
|
{
|
|
1101
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1102
|
-
"description": "
|
|
1110
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
1111
|
+
"description": "Delete a specific CORS origin"
|
|
1103
1112
|
},
|
|
1104
1113
|
{
|
|
1105
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1106
|
-
"description": "
|
|
1114
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1115
|
+
"description": "Delete a CORS origin from a specific project"
|
|
1107
1116
|
}
|
|
1108
1117
|
],
|
|
1109
1118
|
"flags": {
|
|
1110
1119
|
"project-id": {
|
|
1111
1120
|
"char": "p",
|
|
1112
|
-
"description": "Project ID to
|
|
1121
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
1113
1122
|
"helpGroup": "OVERRIDE",
|
|
1114
1123
|
"name": "project-id",
|
|
1115
1124
|
"hasDynamicHelp": false,
|
|
1116
1125
|
"helpValue": "<id>",
|
|
1117
1126
|
"multiple": false,
|
|
1118
1127
|
"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"
|
|
1147
1128
|
}
|
|
1148
1129
|
},
|
|
1149
1130
|
"hasDynamicHelp": false,
|
|
1150
|
-
"hiddenAliases": [
|
|
1151
|
-
|
|
1152
|
-
],
|
|
1153
|
-
"id": "backups:download",
|
|
1131
|
+
"hiddenAliases": [],
|
|
1132
|
+
"id": "cors:delete",
|
|
1154
1133
|
"pluginAlias": "@sanity/cli",
|
|
1155
1134
|
"pluginName": "@sanity/cli",
|
|
1156
1135
|
"pluginType": "core",
|
|
@@ -1159,34 +1138,28 @@
|
|
|
1159
1138
|
"relativePath": [
|
|
1160
1139
|
"dist",
|
|
1161
1140
|
"commands",
|
|
1162
|
-
"
|
|
1163
|
-
"
|
|
1141
|
+
"cors",
|
|
1142
|
+
"delete.js"
|
|
1164
1143
|
]
|
|
1165
1144
|
},
|
|
1166
|
-
"
|
|
1145
|
+
"cors:list": {
|
|
1167
1146
|
"aliases": [],
|
|
1168
|
-
"args": {
|
|
1169
|
-
|
|
1170
|
-
"description": "Dataset name to enable backup for",
|
|
1171
|
-
"name": "dataset",
|
|
1172
|
-
"required": false
|
|
1173
|
-
}
|
|
1174
|
-
},
|
|
1175
|
-
"description": "Enable backup for a dataset",
|
|
1147
|
+
"args": {},
|
|
1148
|
+
"description": "List CORS origins for the project",
|
|
1176
1149
|
"examples": [
|
|
1177
1150
|
{
|
|
1178
1151
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1179
|
-
"description": "
|
|
1152
|
+
"description": "List CORS origins for the project"
|
|
1180
1153
|
},
|
|
1181
1154
|
{
|
|
1182
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1183
|
-
"description": "
|
|
1155
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
1156
|
+
"description": "List CORS origins for a specific project"
|
|
1184
1157
|
}
|
|
1185
1158
|
],
|
|
1186
1159
|
"flags": {
|
|
1187
1160
|
"project-id": {
|
|
1188
1161
|
"char": "p",
|
|
1189
|
-
"description": "Project ID to
|
|
1162
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
1190
1163
|
"helpGroup": "OVERRIDE",
|
|
1191
1164
|
"name": "project-id",
|
|
1192
1165
|
"hasDynamicHelp": false,
|
|
@@ -1196,10 +1169,8 @@
|
|
|
1196
1169
|
}
|
|
1197
1170
|
},
|
|
1198
1171
|
"hasDynamicHelp": false,
|
|
1199
|
-
"hiddenAliases": [
|
|
1200
|
-
|
|
1201
|
-
],
|
|
1202
|
-
"id": "backups:enable",
|
|
1172
|
+
"hiddenAliases": [],
|
|
1173
|
+
"id": "cors:list",
|
|
1203
1174
|
"pluginAlias": "@sanity/cli",
|
|
1204
1175
|
"pluginName": "@sanity/cli",
|
|
1205
1176
|
"pluginType": "core",
|
|
@@ -1208,42 +1179,67 @@
|
|
|
1208
1179
|
"relativePath": [
|
|
1209
1180
|
"dist",
|
|
1210
1181
|
"commands",
|
|
1211
|
-
"
|
|
1212
|
-
"
|
|
1182
|
+
"cors",
|
|
1183
|
+
"list.js"
|
|
1213
1184
|
]
|
|
1214
1185
|
},
|
|
1215
|
-
"
|
|
1186
|
+
"datasets:copy": {
|
|
1216
1187
|
"aliases": [],
|
|
1217
1188
|
"args": {
|
|
1218
|
-
"
|
|
1219
|
-
"description": "
|
|
1220
|
-
"name": "
|
|
1189
|
+
"source": {
|
|
1190
|
+
"description": "Name of the dataset to copy from",
|
|
1191
|
+
"name": "source",
|
|
1192
|
+
"required": false
|
|
1193
|
+
},
|
|
1194
|
+
"target": {
|
|
1195
|
+
"description": "Name of the dataset to copy to",
|
|
1196
|
+
"name": "target",
|
|
1221
1197
|
"required": false
|
|
1222
1198
|
}
|
|
1223
1199
|
},
|
|
1224
|
-
"description": "
|
|
1200
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
1225
1201
|
"examples": [
|
|
1226
1202
|
{
|
|
1227
1203
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
1228
|
-
"description": "
|
|
1204
|
+
"description": "Interactively copy a dataset"
|
|
1229
1205
|
},
|
|
1230
1206
|
{
|
|
1231
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1232
|
-
"description": "
|
|
1207
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1208
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
1233
1209
|
},
|
|
1234
1210
|
{
|
|
1235
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1236
|
-
"description": "
|
|
1211
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1212
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
1237
1213
|
},
|
|
1238
1214
|
{
|
|
1239
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
1240
|
-
"description": "
|
|
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"
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
1228
|
+
"description": "Attach to a running copy job to follow progress"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
1232
|
+
"description": "List all dataset copy jobs"
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
1236
|
+
"description": "List copy jobs with pagination"
|
|
1241
1237
|
}
|
|
1242
1238
|
],
|
|
1243
1239
|
"flags": {
|
|
1244
1240
|
"project-id": {
|
|
1245
1241
|
"char": "p",
|
|
1246
|
-
"description": "Project ID to
|
|
1242
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
1247
1243
|
"helpGroup": "OVERRIDE",
|
|
1248
1244
|
"name": "project-id",
|
|
1249
1245
|
"hasDynamicHelp": false,
|
|
@@ -1251,289 +1247,60 @@
|
|
|
1251
1247
|
"multiple": false,
|
|
1252
1248
|
"type": "option"
|
|
1253
1249
|
},
|
|
1254
|
-
"
|
|
1255
|
-
"description": "
|
|
1256
|
-
"
|
|
1250
|
+
"attach": {
|
|
1251
|
+
"description": "Attach to the running copy process to show progress",
|
|
1252
|
+
"exclusive": [
|
|
1253
|
+
"list",
|
|
1254
|
+
"detach",
|
|
1255
|
+
"skip-history"
|
|
1256
|
+
],
|
|
1257
|
+
"name": "attach",
|
|
1258
|
+
"required": false,
|
|
1257
1259
|
"hasDynamicHelp": false,
|
|
1258
1260
|
"multiple": false,
|
|
1259
1261
|
"type": "option"
|
|
1260
1262
|
},
|
|
1261
|
-
"
|
|
1262
|
-
"description": "
|
|
1263
|
-
"
|
|
1263
|
+
"detach": {
|
|
1264
|
+
"description": "Start the copy without waiting for it to finish",
|
|
1265
|
+
"exclusive": [
|
|
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,
|
|
1264
1281
|
"hasDynamicHelp": false,
|
|
1265
1282
|
"multiple": false,
|
|
1266
1283
|
"type": "option"
|
|
1267
1284
|
},
|
|
1268
|
-
"
|
|
1269
|
-
"
|
|
1270
|
-
"
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
"
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
"
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
"isESM": true,
|
|
1288
|
-
"relativePath": [
|
|
1289
|
-
"dist",
|
|
1290
|
-
"commands",
|
|
1291
|
-
"backups",
|
|
1292
|
-
"list.js"
|
|
1293
|
-
]
|
|
1294
|
-
},
|
|
1295
|
-
"docs:browse": {
|
|
1296
|
-
"aliases": [],
|
|
1297
|
-
"args": {},
|
|
1298
|
-
"description": "Open Sanity docs in your browser",
|
|
1299
|
-
"flags": {},
|
|
1300
|
-
"hasDynamicHelp": false,
|
|
1301
|
-
"hiddenAliases": [],
|
|
1302
|
-
"id": "docs:browse",
|
|
1303
|
-
"pluginAlias": "@sanity/cli",
|
|
1304
|
-
"pluginName": "@sanity/cli",
|
|
1305
|
-
"pluginType": "core",
|
|
1306
|
-
"strict": true,
|
|
1307
|
-
"enableJsonFlag": false,
|
|
1308
|
-
"isESM": true,
|
|
1309
|
-
"relativePath": [
|
|
1310
|
-
"dist",
|
|
1311
|
-
"commands",
|
|
1312
|
-
"docs",
|
|
1313
|
-
"browse.js"
|
|
1314
|
-
]
|
|
1315
|
-
},
|
|
1316
|
-
"docs:read": {
|
|
1317
|
-
"aliases": [],
|
|
1318
|
-
"args": {
|
|
1319
|
-
"path": {
|
|
1320
|
-
"description": "Path or URL to article, found in search results and docs content as links",
|
|
1321
|
-
"name": "path",
|
|
1322
|
-
"required": true
|
|
1323
|
-
}
|
|
1324
|
-
},
|
|
1325
|
-
"description": "Read an article in terminal",
|
|
1326
|
-
"examples": [
|
|
1327
|
-
{
|
|
1328
|
-
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
1329
|
-
"description": "Read as markdown in terminal"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
1333
|
-
"description": "Read using full URL"
|
|
1334
|
-
},
|
|
1335
|
-
{
|
|
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"
|
|
1342
|
-
}
|
|
1343
|
-
],
|
|
1344
|
-
"flags": {
|
|
1345
|
-
"web": {
|
|
1346
|
-
"aliases": [
|
|
1347
|
-
"w"
|
|
1348
|
-
],
|
|
1349
|
-
"description": "Open in a web browser",
|
|
1350
|
-
"name": "web",
|
|
1351
|
-
"allowNo": false,
|
|
1352
|
-
"type": "boolean"
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
"hasDynamicHelp": false,
|
|
1356
|
-
"hiddenAliases": [],
|
|
1357
|
-
"id": "docs:read",
|
|
1358
|
-
"pluginAlias": "@sanity/cli",
|
|
1359
|
-
"pluginName": "@sanity/cli",
|
|
1360
|
-
"pluginType": "core",
|
|
1361
|
-
"strict": true,
|
|
1362
|
-
"isESM": true,
|
|
1363
|
-
"relativePath": [
|
|
1364
|
-
"dist",
|
|
1365
|
-
"commands",
|
|
1366
|
-
"docs",
|
|
1367
|
-
"read.js"
|
|
1368
|
-
]
|
|
1369
|
-
},
|
|
1370
|
-
"docs:search": {
|
|
1371
|
-
"aliases": [],
|
|
1372
|
-
"args": {
|
|
1373
|
-
"query": {
|
|
1374
|
-
"description": "Search query for documentation",
|
|
1375
|
-
"name": "query",
|
|
1376
|
-
"required": true
|
|
1377
|
-
}
|
|
1378
|
-
},
|
|
1379
|
-
"description": "Search Sanity docs",
|
|
1380
|
-
"examples": [
|
|
1381
|
-
{
|
|
1382
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
1383
|
-
"description": "Search for documentation about schemas"
|
|
1384
|
-
},
|
|
1385
|
-
{
|
|
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"
|
|
1392
|
-
}
|
|
1393
|
-
],
|
|
1394
|
-
"flags": {
|
|
1395
|
-
"limit": {
|
|
1396
|
-
"description": "Maximum number of results to return",
|
|
1397
|
-
"name": "limit",
|
|
1398
|
-
"default": 10,
|
|
1399
|
-
"hasDynamicHelp": false,
|
|
1400
|
-
"multiple": false,
|
|
1401
|
-
"type": "option"
|
|
1402
|
-
}
|
|
1403
|
-
},
|
|
1404
|
-
"hasDynamicHelp": false,
|
|
1405
|
-
"hiddenAliases": [],
|
|
1406
|
-
"id": "docs:search",
|
|
1407
|
-
"pluginAlias": "@sanity/cli",
|
|
1408
|
-
"pluginName": "@sanity/cli",
|
|
1409
|
-
"pluginType": "core",
|
|
1410
|
-
"strict": true,
|
|
1411
|
-
"isESM": true,
|
|
1412
|
-
"relativePath": [
|
|
1413
|
-
"dist",
|
|
1414
|
-
"commands",
|
|
1415
|
-
"docs",
|
|
1416
|
-
"search.js"
|
|
1417
|
-
]
|
|
1418
|
-
},
|
|
1419
|
-
"datasets:copy": {
|
|
1420
|
-
"aliases": [],
|
|
1421
|
-
"args": {
|
|
1422
|
-
"source": {
|
|
1423
|
-
"description": "Name of the dataset to copy from",
|
|
1424
|
-
"name": "source",
|
|
1425
|
-
"required": false
|
|
1426
|
-
},
|
|
1427
|
-
"target": {
|
|
1428
|
-
"description": "Name of the dataset to copy to",
|
|
1429
|
-
"name": "target",
|
|
1430
|
-
"required": false
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
|
-
"description": "Copy a dataset or manage copy jobs",
|
|
1434
|
-
"examples": [
|
|
1435
|
-
{
|
|
1436
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
1437
|
-
"description": "Interactively copy a dataset"
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
1441
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
1442
|
-
},
|
|
1443
|
-
{
|
|
1444
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
1445
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
1446
|
-
},
|
|
1447
|
-
{
|
|
1448
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
1449
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
1450
|
-
},
|
|
1451
|
-
{
|
|
1452
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
1453
|
-
"description": "Copy without content release documents"
|
|
1454
|
-
},
|
|
1455
|
-
{
|
|
1456
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
1457
|
-
"description": "Start copy job without waiting for completion"
|
|
1458
|
-
},
|
|
1459
|
-
{
|
|
1460
|
-
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
1461
|
-
"description": "Attach to a running copy job to follow progress"
|
|
1462
|
-
},
|
|
1463
|
-
{
|
|
1464
|
-
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
1465
|
-
"description": "List all dataset copy jobs"
|
|
1466
|
-
},
|
|
1467
|
-
{
|
|
1468
|
-
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
1469
|
-
"description": "List copy jobs with pagination"
|
|
1470
|
-
}
|
|
1471
|
-
],
|
|
1472
|
-
"flags": {
|
|
1473
|
-
"project-id": {
|
|
1474
|
-
"char": "p",
|
|
1475
|
-
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
1476
|
-
"helpGroup": "OVERRIDE",
|
|
1477
|
-
"name": "project-id",
|
|
1478
|
-
"hasDynamicHelp": false,
|
|
1479
|
-
"helpValue": "<id>",
|
|
1480
|
-
"multiple": false,
|
|
1481
|
-
"type": "option"
|
|
1482
|
-
},
|
|
1483
|
-
"attach": {
|
|
1484
|
-
"description": "Attach to the running copy process to show progress",
|
|
1485
|
-
"exclusive": [
|
|
1486
|
-
"list",
|
|
1487
|
-
"detach",
|
|
1488
|
-
"skip-history"
|
|
1489
|
-
],
|
|
1490
|
-
"name": "attach",
|
|
1491
|
-
"required": false,
|
|
1492
|
-
"hasDynamicHelp": false,
|
|
1493
|
-
"multiple": false,
|
|
1494
|
-
"type": "option"
|
|
1495
|
-
},
|
|
1496
|
-
"detach": {
|
|
1497
|
-
"description": "Start the copy without waiting for it to finish",
|
|
1498
|
-
"exclusive": [
|
|
1499
|
-
"list",
|
|
1500
|
-
"attach"
|
|
1501
|
-
],
|
|
1502
|
-
"name": "detach",
|
|
1503
|
-
"required": false,
|
|
1504
|
-
"allowNo": false,
|
|
1505
|
-
"type": "boolean"
|
|
1506
|
-
},
|
|
1507
|
-
"limit": {
|
|
1508
|
-
"dependsOn": [
|
|
1509
|
-
"list"
|
|
1510
|
-
],
|
|
1511
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
1512
|
-
"name": "limit",
|
|
1513
|
-
"required": false,
|
|
1514
|
-
"hasDynamicHelp": false,
|
|
1515
|
-
"multiple": false,
|
|
1516
|
-
"type": "option"
|
|
1517
|
-
},
|
|
1518
|
-
"list": {
|
|
1519
|
-
"description": "Lists all dataset copy jobs",
|
|
1520
|
-
"exclusive": [
|
|
1521
|
-
"attach",
|
|
1522
|
-
"detach",
|
|
1523
|
-
"skip-history"
|
|
1524
|
-
],
|
|
1525
|
-
"name": "list",
|
|
1526
|
-
"required": false,
|
|
1527
|
-
"allowNo": false,
|
|
1528
|
-
"type": "boolean"
|
|
1529
|
-
},
|
|
1530
|
-
"offset": {
|
|
1531
|
-
"dependsOn": [
|
|
1532
|
-
"list"
|
|
1533
|
-
],
|
|
1534
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
1535
|
-
"name": "offset",
|
|
1536
|
-
"required": false,
|
|
1285
|
+
"list": {
|
|
1286
|
+
"description": "Lists all dataset copy jobs",
|
|
1287
|
+
"exclusive": [
|
|
1288
|
+
"attach",
|
|
1289
|
+
"detach",
|
|
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,
|
|
1537
1304
|
"hasDynamicHelp": false,
|
|
1538
1305
|
"multiple": false,
|
|
1539
1306
|
"type": "option"
|
|
@@ -2039,107 +1806,69 @@
|
|
|
2039
1806
|
"list.js"
|
|
2040
1807
|
]
|
|
2041
1808
|
},
|
|
2042
|
-
"
|
|
1809
|
+
"docs:browse": {
|
|
2043
1810
|
"aliases": [],
|
|
2044
|
-
"args": {
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
"name": "origin",
|
|
2048
|
-
"required": true
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
"description": "Add a CORS origin to the project",
|
|
2052
|
-
"examples": [
|
|
2053
|
-
{
|
|
2054
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2055
|
-
"description": "Interactively add a CORS origin"
|
|
2056
|
-
},
|
|
2057
|
-
{
|
|
2058
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2059
|
-
"description": "Add a localhost origin without credentials"
|
|
2060
|
-
},
|
|
2061
|
-
{
|
|
2062
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2063
|
-
"description": "Add a production origin with credentials allowed"
|
|
2064
|
-
},
|
|
2065
|
-
{
|
|
2066
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
|
|
2067
|
-
"description": "Add a CORS origin for a specific project"
|
|
2068
|
-
}
|
|
2069
|
-
],
|
|
2070
|
-
"flags": {
|
|
2071
|
-
"project-id": {
|
|
2072
|
-
"char": "p",
|
|
2073
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2074
|
-
"helpGroup": "OVERRIDE",
|
|
2075
|
-
"name": "project-id",
|
|
2076
|
-
"hasDynamicHelp": false,
|
|
2077
|
-
"helpValue": "<id>",
|
|
2078
|
-
"multiple": false,
|
|
2079
|
-
"type": "option"
|
|
2080
|
-
},
|
|
2081
|
-
"credentials": {
|
|
2082
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2083
|
-
"name": "credentials",
|
|
2084
|
-
"required": false,
|
|
2085
|
-
"allowNo": true,
|
|
2086
|
-
"type": "boolean"
|
|
2087
|
-
}
|
|
2088
|
-
},
|
|
1811
|
+
"args": {},
|
|
1812
|
+
"description": "Open Sanity docs in your browser",
|
|
1813
|
+
"flags": {},
|
|
2089
1814
|
"hasDynamicHelp": false,
|
|
2090
1815
|
"hiddenAliases": [],
|
|
2091
|
-
"id": "
|
|
1816
|
+
"id": "docs:browse",
|
|
2092
1817
|
"pluginAlias": "@sanity/cli",
|
|
2093
1818
|
"pluginName": "@sanity/cli",
|
|
2094
1819
|
"pluginType": "core",
|
|
2095
1820
|
"strict": true,
|
|
1821
|
+
"enableJsonFlag": false,
|
|
2096
1822
|
"isESM": true,
|
|
2097
1823
|
"relativePath": [
|
|
2098
1824
|
"dist",
|
|
2099
1825
|
"commands",
|
|
2100
|
-
"
|
|
2101
|
-
"
|
|
1826
|
+
"docs",
|
|
1827
|
+
"browse.js"
|
|
2102
1828
|
]
|
|
2103
1829
|
},
|
|
2104
|
-
"
|
|
1830
|
+
"docs:read": {
|
|
2105
1831
|
"aliases": [],
|
|
2106
1832
|
"args": {
|
|
2107
|
-
"
|
|
2108
|
-
"description": "
|
|
2109
|
-
"name": "
|
|
2110
|
-
"required":
|
|
1833
|
+
"path": {
|
|
1834
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
1835
|
+
"name": "path",
|
|
1836
|
+
"required": true
|
|
2111
1837
|
}
|
|
2112
1838
|
},
|
|
2113
|
-
"description": "
|
|
1839
|
+
"description": "Read an article in terminal",
|
|
2114
1840
|
"examples": [
|
|
2115
1841
|
{
|
|
2116
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2117
|
-
"description": "
|
|
1842
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
1843
|
+
"description": "Read as markdown in terminal"
|
|
2118
1844
|
},
|
|
2119
1845
|
{
|
|
2120
|
-
"command": "<%= config.bin %> <%= command.id %> https://
|
|
2121
|
-
"description": "
|
|
1846
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
1847
|
+
"description": "Read using full URL"
|
|
2122
1848
|
},
|
|
2123
1849
|
{
|
|
2124
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
2125
|
-
"description": "
|
|
1850
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
1851
|
+
"description": "Open in web browser"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
1855
|
+
"description": "Open using full URL in web browser"
|
|
2126
1856
|
}
|
|
2127
1857
|
],
|
|
2128
1858
|
"flags": {
|
|
2129
|
-
"
|
|
2130
|
-
"
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
"
|
|
2134
|
-
"
|
|
2135
|
-
"
|
|
2136
|
-
"
|
|
2137
|
-
"type": "option"
|
|
1859
|
+
"web": {
|
|
1860
|
+
"aliases": [
|
|
1861
|
+
"w"
|
|
1862
|
+
],
|
|
1863
|
+
"description": "Open in a web browser",
|
|
1864
|
+
"name": "web",
|
|
1865
|
+
"allowNo": false,
|
|
1866
|
+
"type": "boolean"
|
|
2138
1867
|
}
|
|
2139
1868
|
},
|
|
2140
1869
|
"hasDynamicHelp": false,
|
|
2141
1870
|
"hiddenAliases": [],
|
|
2142
|
-
"id": "
|
|
1871
|
+
"id": "docs:read",
|
|
2143
1872
|
"pluginAlias": "@sanity/cli",
|
|
2144
1873
|
"pluginName": "@sanity/cli",
|
|
2145
1874
|
"pluginType": "core",
|
|
@@ -2148,39 +1877,47 @@
|
|
|
2148
1877
|
"relativePath": [
|
|
2149
1878
|
"dist",
|
|
2150
1879
|
"commands",
|
|
2151
|
-
"
|
|
2152
|
-
"
|
|
1880
|
+
"docs",
|
|
1881
|
+
"read.js"
|
|
2153
1882
|
]
|
|
2154
1883
|
},
|
|
2155
|
-
"
|
|
1884
|
+
"docs:search": {
|
|
2156
1885
|
"aliases": [],
|
|
2157
|
-
"args": {
|
|
2158
|
-
|
|
1886
|
+
"args": {
|
|
1887
|
+
"query": {
|
|
1888
|
+
"description": "Search query for documentation",
|
|
1889
|
+
"name": "query",
|
|
1890
|
+
"required": true
|
|
1891
|
+
}
|
|
1892
|
+
},
|
|
1893
|
+
"description": "Search Sanity docs",
|
|
2159
1894
|
"examples": [
|
|
2160
1895
|
{
|
|
2161
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2162
|
-
"description": "
|
|
1896
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
1897
|
+
"description": "Search for documentation about schemas"
|
|
2163
1898
|
},
|
|
2164
1899
|
{
|
|
2165
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2166
|
-
"description": "
|
|
1900
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
1901
|
+
"description": "Search with phrase"
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
1905
|
+
"description": "Limit search results"
|
|
2167
1906
|
}
|
|
2168
1907
|
],
|
|
2169
1908
|
"flags": {
|
|
2170
|
-
"
|
|
2171
|
-
"
|
|
2172
|
-
"
|
|
2173
|
-
"
|
|
2174
|
-
"name": "project-id",
|
|
1909
|
+
"limit": {
|
|
1910
|
+
"description": "Maximum number of results to return",
|
|
1911
|
+
"name": "limit",
|
|
1912
|
+
"default": 10,
|
|
2175
1913
|
"hasDynamicHelp": false,
|
|
2176
|
-
"helpValue": "<id>",
|
|
2177
1914
|
"multiple": false,
|
|
2178
1915
|
"type": "option"
|
|
2179
1916
|
}
|
|
2180
1917
|
},
|
|
2181
1918
|
"hasDynamicHelp": false,
|
|
2182
1919
|
"hiddenAliases": [],
|
|
2183
|
-
"id": "
|
|
1920
|
+
"id": "docs:search",
|
|
2184
1921
|
"pluginAlias": "@sanity/cli",
|
|
2185
1922
|
"pluginName": "@sanity/cli",
|
|
2186
1923
|
"pluginType": "core",
|
|
@@ -2189,8 +1926,8 @@
|
|
|
2189
1926
|
"relativePath": [
|
|
2190
1927
|
"dist",
|
|
2191
1928
|
"commands",
|
|
2192
|
-
"
|
|
2193
|
-
"
|
|
1929
|
+
"docs",
|
|
1930
|
+
"search.js"
|
|
2194
1931
|
]
|
|
2195
1932
|
},
|
|
2196
1933
|
"documents:create": {
|
|
@@ -4292,27 +4029,301 @@
|
|
|
4292
4029
|
"allowNo": false,
|
|
4293
4030
|
"type": "boolean"
|
|
4294
4031
|
},
|
|
4295
|
-
"role": {
|
|
4296
|
-
"description": "Role to assign to the token",
|
|
4297
|
-
"name": "role",
|
|
4032
|
+
"role": {
|
|
4033
|
+
"description": "Role to assign to the token",
|
|
4034
|
+
"name": "role",
|
|
4035
|
+
"hasDynamicHelp": false,
|
|
4036
|
+
"helpValue": "viewer",
|
|
4037
|
+
"multiple": false,
|
|
4038
|
+
"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
|
+
}
|
|
4047
|
+
},
|
|
4048
|
+
"hasDynamicHelp": false,
|
|
4049
|
+
"hiddenAliases": [
|
|
4050
|
+
"token:add"
|
|
4051
|
+
],
|
|
4052
|
+
"id": "tokens:add",
|
|
4053
|
+
"pluginAlias": "@sanity/cli",
|
|
4054
|
+
"pluginName": "@sanity/cli",
|
|
4055
|
+
"pluginType": "core",
|
|
4056
|
+
"strict": true,
|
|
4057
|
+
"isESM": true,
|
|
4058
|
+
"relativePath": [
|
|
4059
|
+
"dist",
|
|
4060
|
+
"commands",
|
|
4061
|
+
"tokens",
|
|
4062
|
+
"add.js"
|
|
4063
|
+
]
|
|
4064
|
+
},
|
|
4065
|
+
"tokens:delete": {
|
|
4066
|
+
"aliases": [],
|
|
4067
|
+
"args": {
|
|
4068
|
+
"tokenId": {
|
|
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",
|
|
4075
|
+
"examples": [
|
|
4076
|
+
{
|
|
4077
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4078
|
+
"description": "Interactively select and delete a token"
|
|
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"
|
|
4091
|
+
}
|
|
4092
|
+
],
|
|
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
|
+
},
|
|
4115
|
+
"hasDynamicHelp": false,
|
|
4116
|
+
"hiddenAliases": [
|
|
4117
|
+
"token:delete"
|
|
4118
|
+
],
|
|
4119
|
+
"id": "tokens:delete",
|
|
4120
|
+
"pluginAlias": "@sanity/cli",
|
|
4121
|
+
"pluginName": "@sanity/cli",
|
|
4122
|
+
"pluginType": "core",
|
|
4123
|
+
"strict": true,
|
|
4124
|
+
"isESM": true,
|
|
4125
|
+
"relativePath": [
|
|
4126
|
+
"dist",
|
|
4127
|
+
"commands",
|
|
4128
|
+
"tokens",
|
|
4129
|
+
"delete.js"
|
|
4130
|
+
]
|
|
4131
|
+
},
|
|
4132
|
+
"tokens:list": {
|
|
4133
|
+
"aliases": [],
|
|
4134
|
+
"args": {},
|
|
4135
|
+
"description": "List API tokens for the project",
|
|
4136
|
+
"examples": [
|
|
4137
|
+
{
|
|
4138
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4139
|
+
"description": "List tokens for the project"
|
|
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"
|
|
4148
|
+
}
|
|
4149
|
+
],
|
|
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
|
+
},
|
|
4168
|
+
"hasDynamicHelp": false,
|
|
4169
|
+
"hiddenAliases": [
|
|
4170
|
+
"token:list"
|
|
4171
|
+
],
|
|
4172
|
+
"id": "tokens:list",
|
|
4173
|
+
"pluginAlias": "@sanity/cli",
|
|
4174
|
+
"pluginName": "@sanity/cli",
|
|
4175
|
+
"pluginType": "core",
|
|
4176
|
+
"strict": true,
|
|
4177
|
+
"isESM": true,
|
|
4178
|
+
"relativePath": [
|
|
4179
|
+
"dist",
|
|
4180
|
+
"commands",
|
|
4181
|
+
"tokens",
|
|
4182
|
+
"list.js"
|
|
4183
|
+
]
|
|
4184
|
+
},
|
|
4185
|
+
"users:invite": {
|
|
4186
|
+
"aliases": [],
|
|
4187
|
+
"args": {
|
|
4188
|
+
"email": {
|
|
4189
|
+
"description": "Email address to invite",
|
|
4190
|
+
"name": "email",
|
|
4191
|
+
"required": false
|
|
4192
|
+
}
|
|
4193
|
+
},
|
|
4194
|
+
"description": "Invite a new user to the project",
|
|
4195
|
+
"examples": [
|
|
4196
|
+
{
|
|
4197
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4198
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
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"
|
|
4211
|
+
}
|
|
4212
|
+
],
|
|
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
|
+
},
|
|
4233
|
+
"hasDynamicHelp": false,
|
|
4234
|
+
"hiddenAliases": [
|
|
4235
|
+
"user:invite"
|
|
4236
|
+
],
|
|
4237
|
+
"id": "users:invite",
|
|
4238
|
+
"pluginAlias": "@sanity/cli",
|
|
4239
|
+
"pluginName": "@sanity/cli",
|
|
4240
|
+
"pluginType": "core",
|
|
4241
|
+
"strict": true,
|
|
4242
|
+
"isESM": true,
|
|
4243
|
+
"relativePath": [
|
|
4244
|
+
"dist",
|
|
4245
|
+
"commands",
|
|
4246
|
+
"users",
|
|
4247
|
+
"invite.js"
|
|
4248
|
+
]
|
|
4249
|
+
},
|
|
4250
|
+
"users:list": {
|
|
4251
|
+
"aliases": [],
|
|
4252
|
+
"args": {},
|
|
4253
|
+
"description": "List project members",
|
|
4254
|
+
"examples": [
|
|
4255
|
+
{
|
|
4256
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4257
|
+
"description": "List all users of the project"
|
|
4258
|
+
},
|
|
4259
|
+
{
|
|
4260
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
4261
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
4262
|
+
},
|
|
4263
|
+
{
|
|
4264
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
4265
|
+
"description": "List all users, sorted by role"
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4269
|
+
"description": "List users for a specific project"
|
|
4270
|
+
}
|
|
4271
|
+
],
|
|
4272
|
+
"flags": {
|
|
4273
|
+
"project-id": {
|
|
4274
|
+
"char": "p",
|
|
4275
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
4276
|
+
"helpGroup": "OVERRIDE",
|
|
4277
|
+
"name": "project-id",
|
|
4278
|
+
"hasDynamicHelp": false,
|
|
4279
|
+
"helpValue": "<id>",
|
|
4280
|
+
"multiple": false,
|
|
4281
|
+
"type": "option"
|
|
4282
|
+
},
|
|
4283
|
+
"invitations": {
|
|
4284
|
+
"description": "Includes or excludes pending invitations",
|
|
4285
|
+
"name": "invitations",
|
|
4286
|
+
"allowNo": true,
|
|
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,
|
|
4305
|
+
"type": "boolean"
|
|
4306
|
+
},
|
|
4307
|
+
"sort": {
|
|
4308
|
+
"description": "Sort users by specified column",
|
|
4309
|
+
"name": "sort",
|
|
4310
|
+
"default": "date",
|
|
4298
4311
|
"hasDynamicHelp": false,
|
|
4299
|
-
"helpValue": "viewer",
|
|
4300
4312
|
"multiple": false,
|
|
4313
|
+
"options": [
|
|
4314
|
+
"id",
|
|
4315
|
+
"name",
|
|
4316
|
+
"role",
|
|
4317
|
+
"date"
|
|
4318
|
+
],
|
|
4301
4319
|
"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"
|
|
4309
4320
|
}
|
|
4310
4321
|
},
|
|
4311
4322
|
"hasDynamicHelp": false,
|
|
4312
4323
|
"hiddenAliases": [
|
|
4313
|
-
"
|
|
4324
|
+
"user:list"
|
|
4314
4325
|
],
|
|
4315
|
-
"id": "
|
|
4326
|
+
"id": "users:list",
|
|
4316
4327
|
"pluginAlias": "@sanity/cli",
|
|
4317
4328
|
"pluginName": "@sanity/cli",
|
|
4318
4329
|
"pluginType": "core",
|
|
@@ -4321,65 +4332,47 @@
|
|
|
4321
4332
|
"relativePath": [
|
|
4322
4333
|
"dist",
|
|
4323
4334
|
"commands",
|
|
4324
|
-
"
|
|
4325
|
-
"
|
|
4335
|
+
"users",
|
|
4336
|
+
"list.js"
|
|
4326
4337
|
]
|
|
4327
4338
|
},
|
|
4328
|
-
"
|
|
4339
|
+
"backups:disable": {
|
|
4329
4340
|
"aliases": [],
|
|
4330
4341
|
"args": {
|
|
4331
|
-
"
|
|
4332
|
-
"description": "
|
|
4333
|
-
"name": "
|
|
4342
|
+
"dataset": {
|
|
4343
|
+
"description": "Dataset name to disable backup for",
|
|
4344
|
+
"name": "dataset",
|
|
4334
4345
|
"required": false
|
|
4335
4346
|
}
|
|
4336
4347
|
},
|
|
4337
|
-
"description": "
|
|
4348
|
+
"description": "Disable backup for a dataset",
|
|
4338
4349
|
"examples": [
|
|
4339
4350
|
{
|
|
4340
4351
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4341
|
-
"description": "Interactively
|
|
4342
|
-
},
|
|
4343
|
-
{
|
|
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"
|
|
4352
|
+
"description": "Interactively disable backup for a dataset"
|
|
4350
4353
|
},
|
|
4351
4354
|
{
|
|
4352
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4353
|
-
"description": "
|
|
4355
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4356
|
+
"description": "Disable backup for the production dataset"
|
|
4354
4357
|
}
|
|
4355
4358
|
],
|
|
4356
4359
|
"flags": {
|
|
4357
4360
|
"project-id": {
|
|
4358
4361
|
"char": "p",
|
|
4359
|
-
"description": "Project ID to
|
|
4362
|
+
"description": "Project ID to disable backups for (overrides CLI configuration)",
|
|
4360
4363
|
"helpGroup": "OVERRIDE",
|
|
4361
4364
|
"name": "project-id",
|
|
4362
4365
|
"hasDynamicHelp": false,
|
|
4363
4366
|
"helpValue": "<id>",
|
|
4364
4367
|
"multiple": false,
|
|
4365
4368
|
"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"
|
|
4376
4369
|
}
|
|
4377
4370
|
},
|
|
4378
4371
|
"hasDynamicHelp": false,
|
|
4379
4372
|
"hiddenAliases": [
|
|
4380
|
-
"
|
|
4373
|
+
"backup:disable"
|
|
4381
4374
|
],
|
|
4382
|
-
"id": "
|
|
4375
|
+
"id": "backups:disable",
|
|
4383
4376
|
"pluginAlias": "@sanity/cli",
|
|
4384
4377
|
"pluginName": "@sanity/cli",
|
|
4385
4378
|
"pluginType": "core",
|
|
@@ -4388,32 +4381,42 @@
|
|
|
4388
4381
|
"relativePath": [
|
|
4389
4382
|
"dist",
|
|
4390
4383
|
"commands",
|
|
4391
|
-
"
|
|
4392
|
-
"
|
|
4384
|
+
"backups",
|
|
4385
|
+
"disable.js"
|
|
4393
4386
|
]
|
|
4394
4387
|
},
|
|
4395
|
-
"
|
|
4388
|
+
"backups:download": {
|
|
4396
4389
|
"aliases": [],
|
|
4397
|
-
"args": {
|
|
4398
|
-
|
|
4390
|
+
"args": {
|
|
4391
|
+
"dataset": {
|
|
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",
|
|
4399
4398
|
"examples": [
|
|
4400
4399
|
{
|
|
4401
4400
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4402
|
-
"description": "
|
|
4401
|
+
"description": "Interactively download a backup"
|
|
4403
4402
|
},
|
|
4404
4403
|
{
|
|
4405
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4406
|
-
"description": "
|
|
4404
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
|
|
4405
|
+
"description": "Download a specific backup for the production dataset"
|
|
4407
4406
|
},
|
|
4408
4407
|
{
|
|
4409
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4410
|
-
"description": "
|
|
4408
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-2 --out /path/to/file",
|
|
4409
|
+
"description": "Download backup to a specific file"
|
|
4410
|
+
},
|
|
4411
|
+
{
|
|
4412
|
+
"command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite",
|
|
4413
|
+
"description": "Download backup and overwrite existing file"
|
|
4411
4414
|
}
|
|
4412
4415
|
],
|
|
4413
4416
|
"flags": {
|
|
4414
4417
|
"project-id": {
|
|
4415
4418
|
"char": "p",
|
|
4416
|
-
"description": "Project ID to
|
|
4419
|
+
"description": "Project ID to download backup from (overrides CLI configuration)",
|
|
4417
4420
|
"helpGroup": "OVERRIDE",
|
|
4418
4421
|
"name": "project-id",
|
|
4419
4422
|
"hasDynamicHelp": false,
|
|
@@ -4421,18 +4424,40 @@
|
|
|
4421
4424
|
"multiple": false,
|
|
4422
4425
|
"type": "option"
|
|
4423
4426
|
},
|
|
4424
|
-
"
|
|
4425
|
-
"description": "
|
|
4426
|
-
"name": "
|
|
4427
|
+
"backup-id": {
|
|
4428
|
+
"description": "The backup ID to download",
|
|
4429
|
+
"name": "backup-id",
|
|
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",
|
|
4427
4452
|
"allowNo": false,
|
|
4428
4453
|
"type": "boolean"
|
|
4429
4454
|
}
|
|
4430
4455
|
},
|
|
4431
4456
|
"hasDynamicHelp": false,
|
|
4432
4457
|
"hiddenAliases": [
|
|
4433
|
-
"
|
|
4458
|
+
"backup:download"
|
|
4434
4459
|
],
|
|
4435
|
-
"id": "
|
|
4460
|
+
"id": "backups:download",
|
|
4436
4461
|
"pluginAlias": "@sanity/cli",
|
|
4437
4462
|
"pluginName": "@sanity/cli",
|
|
4438
4463
|
"pluginType": "core",
|
|
@@ -4441,63 +4466,47 @@
|
|
|
4441
4466
|
"relativePath": [
|
|
4442
4467
|
"dist",
|
|
4443
4468
|
"commands",
|
|
4444
|
-
"
|
|
4445
|
-
"
|
|
4469
|
+
"backups",
|
|
4470
|
+
"download.js"
|
|
4446
4471
|
]
|
|
4447
4472
|
},
|
|
4448
|
-
"
|
|
4473
|
+
"backups:enable": {
|
|
4449
4474
|
"aliases": [],
|
|
4450
4475
|
"args": {
|
|
4451
|
-
"
|
|
4452
|
-
"description": "
|
|
4453
|
-
"name": "
|
|
4476
|
+
"dataset": {
|
|
4477
|
+
"description": "Dataset name to enable backup for",
|
|
4478
|
+
"name": "dataset",
|
|
4454
4479
|
"required": false
|
|
4455
4480
|
}
|
|
4456
4481
|
},
|
|
4457
|
-
"description": "
|
|
4482
|
+
"description": "Enable backup for a dataset",
|
|
4458
4483
|
"examples": [
|
|
4459
4484
|
{
|
|
4460
4485
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4461
|
-
"description": "
|
|
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"
|
|
4486
|
+
"description": "Interactively enable backup for a dataset"
|
|
4470
4487
|
},
|
|
4471
4488
|
{
|
|
4472
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4473
|
-
"description": "
|
|
4489
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4490
|
+
"description": "Enable backup for the production dataset"
|
|
4474
4491
|
}
|
|
4475
4492
|
],
|
|
4476
4493
|
"flags": {
|
|
4477
4494
|
"project-id": {
|
|
4478
4495
|
"char": "p",
|
|
4479
|
-
"description": "Project ID to
|
|
4496
|
+
"description": "Project ID to enable backups for (overrides CLI configuration)",
|
|
4480
4497
|
"helpGroup": "OVERRIDE",
|
|
4481
4498
|
"name": "project-id",
|
|
4482
4499
|
"hasDynamicHelp": false,
|
|
4483
4500
|
"helpValue": "<id>",
|
|
4484
4501
|
"multiple": false,
|
|
4485
4502
|
"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"
|
|
4494
4503
|
}
|
|
4495
4504
|
},
|
|
4496
4505
|
"hasDynamicHelp": false,
|
|
4497
4506
|
"hiddenAliases": [
|
|
4498
|
-
"
|
|
4507
|
+
"backup:enable"
|
|
4499
4508
|
],
|
|
4500
|
-
"id": "
|
|
4509
|
+
"id": "backups:enable",
|
|
4501
4510
|
"pluginAlias": "@sanity/cli",
|
|
4502
4511
|
"pluginName": "@sanity/cli",
|
|
4503
4512
|
"pluginType": "core",
|
|
@@ -4506,36 +4515,42 @@
|
|
|
4506
4515
|
"relativePath": [
|
|
4507
4516
|
"dist",
|
|
4508
4517
|
"commands",
|
|
4509
|
-
"
|
|
4510
|
-
"
|
|
4518
|
+
"backups",
|
|
4519
|
+
"enable.js"
|
|
4511
4520
|
]
|
|
4512
4521
|
},
|
|
4513
|
-
"
|
|
4522
|
+
"backups:list": {
|
|
4514
4523
|
"aliases": [],
|
|
4515
|
-
"args": {
|
|
4516
|
-
|
|
4524
|
+
"args": {
|
|
4525
|
+
"dataset": {
|
|
4526
|
+
"description": "Dataset name to list backups for",
|
|
4527
|
+
"name": "dataset",
|
|
4528
|
+
"required": false
|
|
4529
|
+
}
|
|
4530
|
+
},
|
|
4531
|
+
"description": "List available backups for a dataset",
|
|
4517
4532
|
"examples": [
|
|
4518
4533
|
{
|
|
4519
4534
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4520
|
-
"description": "List
|
|
4535
|
+
"description": "List backups for a dataset interactively"
|
|
4521
4536
|
},
|
|
4522
4537
|
{
|
|
4523
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4524
|
-
"description": "List
|
|
4538
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4539
|
+
"description": "List backups for the production dataset"
|
|
4525
4540
|
},
|
|
4526
4541
|
{
|
|
4527
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4528
|
-
"description": "List
|
|
4542
|
+
"command": "<%= config.bin %> <%= command.id %> production --limit 50",
|
|
4543
|
+
"description": "List up to 50 backups for the production dataset"
|
|
4529
4544
|
},
|
|
4530
4545
|
{
|
|
4531
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4532
|
-
"description": "List
|
|
4546
|
+
"command": "<%= config.bin %> <%= command.id %> production --after 2024-01-31 --limit 10",
|
|
4547
|
+
"description": "List up to 10 backups created after 2024-01-31"
|
|
4533
4548
|
}
|
|
4534
4549
|
],
|
|
4535
4550
|
"flags": {
|
|
4536
4551
|
"project-id": {
|
|
4537
4552
|
"char": "p",
|
|
4538
|
-
"description": "Project ID to list
|
|
4553
|
+
"description": "Project ID to list backups for (overrides CLI configuration)",
|
|
4539
4554
|
"helpGroup": "OVERRIDE",
|
|
4540
4555
|
"name": "project-id",
|
|
4541
4556
|
"hasDynamicHelp": false,
|
|
@@ -4543,50 +4558,35 @@
|
|
|
4543
4558
|
"multiple": false,
|
|
4544
4559
|
"type": "option"
|
|
4545
4560
|
},
|
|
4546
|
-
"
|
|
4547
|
-
"description": "
|
|
4548
|
-
"name": "
|
|
4549
|
-
"allowNo": true,
|
|
4550
|
-
"type": "boolean"
|
|
4551
|
-
},
|
|
4552
|
-
"order": {
|
|
4553
|
-
"description": "Sort output ascending/descending",
|
|
4554
|
-
"name": "order",
|
|
4555
|
-
"default": "asc",
|
|
4561
|
+
"after": {
|
|
4562
|
+
"description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
|
|
4563
|
+
"name": "after",
|
|
4556
4564
|
"hasDynamicHelp": false,
|
|
4557
4565
|
"multiple": false,
|
|
4558
|
-
"options": [
|
|
4559
|
-
"asc",
|
|
4560
|
-
"desc"
|
|
4561
|
-
],
|
|
4562
4566
|
"type": "option"
|
|
4563
4567
|
},
|
|
4564
|
-
"
|
|
4565
|
-
"description": "
|
|
4566
|
-
"name": "
|
|
4567
|
-
"
|
|
4568
|
-
"
|
|
4568
|
+
"before": {
|
|
4569
|
+
"description": "Only return backups before this date (exclusive, YYYY-MM-DD format)",
|
|
4570
|
+
"name": "before",
|
|
4571
|
+
"hasDynamicHelp": false,
|
|
4572
|
+
"multiple": false,
|
|
4573
|
+
"type": "option"
|
|
4569
4574
|
},
|
|
4570
|
-
"
|
|
4571
|
-
"
|
|
4572
|
-
"
|
|
4573
|
-
"
|
|
4575
|
+
"limit": {
|
|
4576
|
+
"char": "l",
|
|
4577
|
+
"description": "Maximum number of backups returned",
|
|
4578
|
+
"name": "limit",
|
|
4579
|
+
"default": 30,
|
|
4574
4580
|
"hasDynamicHelp": false,
|
|
4575
4581
|
"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
|
+
"backup:list"
|
|
4588
4588
|
],
|
|
4589
|
-
"id": "
|
|
4589
|
+
"id": "backups: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
|
+
"backups",
|
|
4599
4599
|
"list.js"
|
|
4600
4600
|
]
|
|
4601
4601
|
},
|
|
@@ -5116,5 +5116,5 @@
|
|
|
5116
5116
|
]
|
|
5117
5117
|
}
|
|
5118
5118
|
},
|
|
5119
|
-
"version": "7.0
|
|
5119
|
+
"version": "7.2.0"
|
|
5120
5120
|
}
|