@sanity/cli 6.1.8 → 6.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.
Files changed (147) hide show
  1. package/README.md +301 -294
  2. package/dist/actions/debug/gatherDebugInfo.js +130 -81
  3. package/dist/actions/debug/gatherDebugInfo.js.map +1 -1
  4. package/dist/actions/debug/output.js +25 -0
  5. package/dist/actions/debug/output.js.map +1 -0
  6. package/dist/actions/debug/types.js.map +1 -1
  7. package/dist/actions/manifest/__tests__/testHelpers.js +21 -0
  8. package/dist/actions/manifest/__tests__/testHelpers.js.map +1 -0
  9. package/dist/actions/manifest/schemaTypeTransformer.js +2 -1
  10. package/dist/actions/manifest/schemaTypeTransformer.js.map +1 -1
  11. package/dist/actions/mcp/setupMCP.js +5 -5
  12. package/dist/actions/mcp/setupMCP.js.map +1 -1
  13. package/dist/actions/schema/getExtractOptions.js.map +1 -1
  14. package/dist/commands/{backup → backups}/disable.js +3 -0
  15. package/dist/commands/backups/disable.js.map +1 -0
  16. package/dist/commands/{backup → backups}/download.js +3 -0
  17. package/dist/commands/backups/download.js.map +1 -0
  18. package/dist/commands/{backup → backups}/enable.js +3 -0
  19. package/dist/commands/backups/enable.js.map +1 -0
  20. package/dist/commands/{backup → backups}/list.js +3 -0
  21. package/dist/commands/backups/list.js.map +1 -0
  22. package/dist/commands/{dataset → datasets}/alias/create.js +3 -0
  23. package/dist/commands/datasets/alias/create.js.map +1 -0
  24. package/dist/commands/{dataset → datasets}/alias/delete.js +3 -0
  25. package/dist/commands/datasets/alias/delete.js.map +1 -0
  26. package/dist/commands/{dataset → datasets}/alias/link.js +3 -0
  27. package/dist/commands/datasets/alias/link.js.map +1 -0
  28. package/dist/commands/{dataset → datasets}/alias/unlink.js +3 -0
  29. package/dist/commands/datasets/alias/unlink.js.map +1 -0
  30. package/dist/commands/{dataset → datasets}/copy.js +3 -0
  31. package/dist/commands/datasets/copy.js.map +1 -0
  32. package/dist/commands/{dataset → datasets}/create.js +3 -0
  33. package/dist/commands/datasets/create.js.map +1 -0
  34. package/dist/commands/{dataset → datasets}/delete.js +3 -0
  35. package/dist/commands/datasets/delete.js.map +1 -0
  36. package/dist/commands/{dataset → datasets}/embeddings/disable.js +3 -0
  37. package/dist/commands/datasets/embeddings/disable.js.map +1 -0
  38. package/dist/commands/{dataset → datasets}/embeddings/enable.js +3 -0
  39. package/dist/commands/datasets/embeddings/enable.js.map +1 -0
  40. package/dist/commands/{dataset → datasets}/embeddings/status.js +3 -0
  41. package/dist/commands/datasets/embeddings/status.js.map +1 -0
  42. package/dist/commands/{dataset → datasets}/export.js +3 -0
  43. package/dist/commands/datasets/export.js.map +1 -0
  44. package/dist/commands/{dataset → datasets}/import.js +14 -10
  45. package/dist/commands/datasets/import.js.map +1 -0
  46. package/dist/commands/{dataset → datasets}/list.js +3 -0
  47. package/dist/commands/datasets/list.js.map +1 -0
  48. package/dist/commands/{dataset → datasets}/visibility/get.js +3 -0
  49. package/dist/commands/datasets/visibility/get.js.map +1 -0
  50. package/dist/commands/{dataset → datasets}/visibility/set.js +3 -0
  51. package/dist/commands/datasets/visibility/set.js.map +1 -0
  52. package/dist/commands/debug.js +189 -74
  53. package/dist/commands/debug.js.map +1 -1
  54. package/dist/commands/documents/create.js +3 -0
  55. package/dist/commands/documents/create.js.map +1 -1
  56. package/dist/commands/documents/delete.js +3 -0
  57. package/dist/commands/documents/delete.js.map +1 -1
  58. package/dist/commands/documents/get.js +3 -0
  59. package/dist/commands/documents/get.js.map +1 -1
  60. package/dist/commands/documents/query.js +3 -0
  61. package/dist/commands/documents/query.js.map +1 -1
  62. package/dist/commands/documents/validate.js +3 -0
  63. package/dist/commands/documents/validate.js.map +1 -1
  64. package/dist/commands/{hook → hooks}/attempt.js +3 -0
  65. package/dist/commands/hooks/attempt.js.map +1 -0
  66. package/dist/commands/{hook → hooks}/create.js +3 -0
  67. package/dist/commands/hooks/create.js.map +1 -0
  68. package/dist/commands/{hook → hooks}/delete.js +3 -0
  69. package/dist/commands/hooks/delete.js.map +1 -0
  70. package/dist/commands/{hook → hooks}/list.js +3 -0
  71. package/dist/commands/hooks/list.js.map +1 -0
  72. package/dist/commands/{hook → hooks}/logs.js +3 -0
  73. package/dist/commands/hooks/logs.js.map +1 -0
  74. package/dist/commands/init.js +65 -13
  75. package/dist/commands/init.js.map +1 -1
  76. package/dist/commands/mcp/configure.js +3 -2
  77. package/dist/commands/mcp/configure.js.map +1 -1
  78. package/dist/commands/preview.js +1 -0
  79. package/dist/commands/preview.js.map +1 -1
  80. package/dist/commands/projects/create.js +3 -0
  81. package/dist/commands/projects/create.js.map +1 -1
  82. package/dist/commands/projects/list.js +3 -0
  83. package/dist/commands/projects/list.js.map +1 -1
  84. package/dist/commands/{schema → schemas}/delete.js +3 -0
  85. package/dist/commands/schemas/delete.js.map +1 -0
  86. package/dist/commands/{schema → schemas}/deploy.js +3 -0
  87. package/dist/commands/schemas/deploy.js.map +1 -0
  88. package/dist/commands/{schema → schemas}/extract.js +3 -0
  89. package/dist/commands/schemas/extract.js.map +1 -0
  90. package/dist/commands/{schema → schemas}/list.js +3 -0
  91. package/dist/commands/schemas/list.js.map +1 -0
  92. package/dist/commands/{schema → schemas}/validate.js +3 -0
  93. package/dist/commands/schemas/validate.js.map +1 -0
  94. package/dist/commands/tokens/add.js +3 -0
  95. package/dist/commands/tokens/add.js.map +1 -1
  96. package/dist/commands/tokens/delete.js +3 -0
  97. package/dist/commands/tokens/delete.js.map +1 -1
  98. package/dist/commands/tokens/list.js +3 -0
  99. package/dist/commands/tokens/list.js.map +1 -1
  100. package/dist/commands/users/invite.js +3 -0
  101. package/dist/commands/users/invite.js.map +1 -1
  102. package/dist/commands/users/list.js +3 -0
  103. package/dist/commands/users/list.js.map +1 -1
  104. package/dist/hooks/commandNotFound/topicAliases.js +71 -0
  105. package/dist/hooks/commandNotFound/topicAliases.js.map +1 -0
  106. package/dist/services/telemetry.js +23 -2
  107. package/dist/services/telemetry.js.map +1 -1
  108. package/dist/topicAliases.js +51 -0
  109. package/dist/topicAliases.js.map +1 -0
  110. package/dist/util/packageManager/packageManagerChoice.js +1 -2
  111. package/dist/util/packageManager/packageManagerChoice.js.map +1 -1
  112. package/oclif.config.js +20 -7
  113. package/oclif.manifest.json +478 -362
  114. package/package.json +17 -16
  115. package/dist/actions/debug/formatters.js +0 -22
  116. package/dist/actions/debug/formatters.js.map +0 -1
  117. package/dist/actions/debug/getGlobalConfigLocation.js +0 -7
  118. package/dist/actions/debug/getGlobalConfigLocation.js.map +0 -1
  119. package/dist/commands/backup/disable.js.map +0 -1
  120. package/dist/commands/backup/download.js.map +0 -1
  121. package/dist/commands/backup/enable.js.map +0 -1
  122. package/dist/commands/backup/list.js.map +0 -1
  123. package/dist/commands/dataset/alias/create.js.map +0 -1
  124. package/dist/commands/dataset/alias/delete.js.map +0 -1
  125. package/dist/commands/dataset/alias/link.js.map +0 -1
  126. package/dist/commands/dataset/alias/unlink.js.map +0 -1
  127. package/dist/commands/dataset/copy.js.map +0 -1
  128. package/dist/commands/dataset/create.js.map +0 -1
  129. package/dist/commands/dataset/delete.js.map +0 -1
  130. package/dist/commands/dataset/embeddings/disable.js.map +0 -1
  131. package/dist/commands/dataset/embeddings/enable.js.map +0 -1
  132. package/dist/commands/dataset/embeddings/status.js.map +0 -1
  133. package/dist/commands/dataset/export.js.map +0 -1
  134. package/dist/commands/dataset/import.js.map +0 -1
  135. package/dist/commands/dataset/list.js.map +0 -1
  136. package/dist/commands/dataset/visibility/get.js.map +0 -1
  137. package/dist/commands/dataset/visibility/set.js.map +0 -1
  138. package/dist/commands/hook/attempt.js.map +0 -1
  139. package/dist/commands/hook/create.js.map +0 -1
  140. package/dist/commands/hook/delete.js.map +0 -1
  141. package/dist/commands/hook/list.js.map +0 -1
  142. package/dist/commands/hook/logs.js.map +0 -1
  143. package/dist/commands/schema/delete.js.map +0 -1
  144. package/dist/commands/schema/deploy.js.map +0 -1
  145. package/dist/commands/schema/extract.js.map +0 -1
  146. package/dist/commands/schema/list.js.map +0 -1
  147. package/dist/commands/schema/validate.js.map +0 -1
@@ -130,6 +130,12 @@
130
130
  "name": "secrets",
131
131
  "allowNo": false,
132
132
  "type": "boolean"
133
+ },
134
+ "verbose": {
135
+ "description": "Show full error details including stack traces",
136
+ "name": "verbose",
137
+ "allowNo": false,
138
+ "type": "boolean"
133
139
  }
134
140
  },
135
141
  "hasDynamicHelp": false,
@@ -419,7 +425,7 @@
419
425
  "description": "Initialize a project with the given project ID and dataset using the moviedb template to the given path"
420
426
  },
421
427
  {
422
- "command": "<%= config.bin %> <%= command.id %> -y --create-project \"Movies Unlimited\" --dataset moviedb --visibility private --template moviedb --output-path /Users/espenh/movies-unlimited",
428
+ "command": "<%= config.bin %> <%= command.id %> -y --project-name \"Movies Unlimited\" --dataset moviedb --visibility private --template moviedb --output-path /Users/espenh/movies-unlimited",
423
429
  "description": "Create a brand new project with name \"Movies Unlimited\""
424
430
  }
425
431
  ],
@@ -458,7 +464,11 @@
458
464
  "type": "option"
459
465
  },
460
466
  "create-project": {
467
+ "deprecated": {
468
+ "message": "Use --project-name instead"
469
+ },
461
470
  "description": "Create a new project with the given name",
471
+ "hidden": true,
462
472
  "name": "create-project",
463
473
  "hasDynamicHelp": false,
464
474
  "helpValue": "<name>",
@@ -512,6 +522,12 @@
512
522
  "multiple": false,
513
523
  "type": "option"
514
524
  },
525
+ "import-dataset": {
526
+ "description": "Import template sample dataset",
527
+ "name": "import-dataset",
528
+ "allowNo": true,
529
+ "type": "boolean"
530
+ },
515
531
  "mcp": {
516
532
  "description": "Enable AI editor integration (MCP) setup",
517
533
  "name": "mcp",
@@ -596,7 +612,8 @@
596
612
  ],
597
613
  "description": "Project ID to use for the studio",
598
614
  "exclusive": [
599
- "create-project"
615
+ "create-project",
616
+ "project-name"
600
617
  ],
601
618
  "name": "project",
602
619
  "hasDynamicHelp": false,
@@ -604,6 +621,18 @@
604
621
  "multiple": false,
605
622
  "type": "option"
606
623
  },
624
+ "project-name": {
625
+ "description": "Create a new project with the given name",
626
+ "exclusive": [
627
+ "project",
628
+ "create-project"
629
+ ],
630
+ "name": "project-name",
631
+ "hasDynamicHelp": false,
632
+ "helpValue": "<name>",
633
+ "multiple": false,
634
+ "type": "option"
635
+ },
607
636
  "project-plan": {
608
637
  "description": "Optionally select a plan for a new project",
609
638
  "name": "project-plan",
@@ -866,6 +895,7 @@
866
895
  "name": "outputDir"
867
896
  }
868
897
  },
898
+ "deprecateAliases": true,
869
899
  "description": "Starts a server to preview a production build",
870
900
  "examples": [
871
901
  "<%= config.bin %> <%= command.id %> --host=0.0.0.0",
@@ -953,56 +983,43 @@
953
983
  "versions.js"
954
984
  ]
955
985
  },
956
- "cors:add": {
986
+ "backups:disable": {
957
987
  "aliases": [],
958
988
  "args": {
959
- "origin": {
960
- "description": "Origin to allow (e.g., https://example.com)",
961
- "name": "origin",
962
- "required": true
989
+ "dataset": {
990
+ "description": "Dataset name to disable backup for",
991
+ "name": "dataset",
992
+ "required": false
963
993
  }
964
994
  },
965
- "description": "Allow a new origin to use your project API through CORS",
995
+ "description": "Disable backup for a dataset.",
966
996
  "examples": [
967
997
  {
968
998
  "command": "<%= config.bin %> <%= command.id %>",
969
- "description": "Interactively add a CORS origin"
970
- },
971
- {
972
- "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
973
- "description": "Add a localhost origin without credentials"
974
- },
975
- {
976
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
977
- "description": "Add a production origin with credentials allowed"
999
+ "description": "Interactively disable backup for a dataset"
978
1000
  },
979
1001
  {
980
- "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
981
- "description": "Add a CORS origin for a specific project"
1002
+ "command": "<%= config.bin %> <%= command.id %> production",
1003
+ "description": "Disable backup for the production dataset"
982
1004
  }
983
1005
  ],
984
1006
  "flags": {
985
1007
  "project-id": {
986
1008
  "char": "p",
987
- "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1009
+ "description": "Project ID to disable backups for (overrides CLI configuration)",
988
1010
  "helpGroup": "OVERRIDE",
989
1011
  "name": "project-id",
990
1012
  "hasDynamicHelp": false,
991
1013
  "helpValue": "<id>",
992
1014
  "multiple": false,
993
1015
  "type": "option"
994
- },
995
- "credentials": {
996
- "description": "Allow credentials (token/cookie) to be sent from this origin",
997
- "name": "credentials",
998
- "required": false,
999
- "allowNo": true,
1000
- "type": "boolean"
1001
1016
  }
1002
1017
  },
1003
1018
  "hasDynamicHelp": false,
1004
- "hiddenAliases": [],
1005
- "id": "cors:add",
1019
+ "hiddenAliases": [
1020
+ "backup:disable"
1021
+ ],
1022
+ "id": "backups:disable",
1006
1023
  "pluginAlias": "@sanity/cli",
1007
1024
  "pluginName": "@sanity/cli",
1008
1025
  "pluginType": "core",
@@ -1011,49 +1028,83 @@
1011
1028
  "relativePath": [
1012
1029
  "dist",
1013
1030
  "commands",
1014
- "cors",
1015
- "add.js"
1031
+ "backups",
1032
+ "disable.js"
1016
1033
  ]
1017
1034
  },
1018
- "cors:delete": {
1035
+ "backups:download": {
1019
1036
  "aliases": [],
1020
1037
  "args": {
1021
- "origin": {
1022
- "description": "Origin to delete (will prompt if not provided)",
1023
- "name": "origin",
1038
+ "dataset": {
1039
+ "description": "Dataset name to download backup from",
1040
+ "name": "dataset",
1024
1041
  "required": false
1025
1042
  }
1026
1043
  },
1027
- "description": "Delete an existing CORS origin from your project",
1044
+ "description": "Download a dataset backup to a local file.",
1028
1045
  "examples": [
1029
1046
  {
1030
1047
  "command": "<%= config.bin %> <%= command.id %>",
1031
- "description": "Interactively select and delete a CORS origin"
1048
+ "description": "Interactively download a backup"
1032
1049
  },
1033
1050
  {
1034
- "command": "<%= config.bin %> <%= command.id %> https://example.com",
1035
- "description": "Delete a specific CORS origin"
1051
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
1052
+ "description": "Download a specific backup for the production dataset"
1036
1053
  },
1037
1054
  {
1038
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1039
- "description": "Delete a CORS origin from a specific project"
1055
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-2 --out /path/to/file",
1056
+ "description": "Download backup to a specific file"
1057
+ },
1058
+ {
1059
+ "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite",
1060
+ "description": "Download backup and overwrite existing file"
1040
1061
  }
1041
1062
  ],
1042
1063
  "flags": {
1043
1064
  "project-id": {
1044
1065
  "char": "p",
1045
- "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1066
+ "description": "Project ID to download backup from (overrides CLI configuration)",
1046
1067
  "helpGroup": "OVERRIDE",
1047
1068
  "name": "project-id",
1048
1069
  "hasDynamicHelp": false,
1049
1070
  "helpValue": "<id>",
1050
1071
  "multiple": false,
1051
1072
  "type": "option"
1073
+ },
1074
+ "backup-id": {
1075
+ "description": "The backup ID to download",
1076
+ "name": "backup-id",
1077
+ "hasDynamicHelp": false,
1078
+ "multiple": false,
1079
+ "type": "option"
1080
+ },
1081
+ "concurrency": {
1082
+ "description": "Concurrent number of backup item downloads (max: 24)",
1083
+ "name": "concurrency",
1084
+ "default": 10,
1085
+ "hasDynamicHelp": false,
1086
+ "multiple": false,
1087
+ "type": "option"
1088
+ },
1089
+ "out": {
1090
+ "description": "The file or directory path the backup should download to",
1091
+ "name": "out",
1092
+ "hasDynamicHelp": false,
1093
+ "multiple": false,
1094
+ "type": "option"
1095
+ },
1096
+ "overwrite": {
1097
+ "description": "Allows overwriting of existing backup file",
1098
+ "name": "overwrite",
1099
+ "allowNo": false,
1100
+ "type": "boolean"
1052
1101
  }
1053
1102
  },
1054
1103
  "hasDynamicHelp": false,
1055
- "hiddenAliases": [],
1056
- "id": "cors:delete",
1104
+ "hiddenAliases": [
1105
+ "backup:download"
1106
+ ],
1107
+ "id": "backups:download",
1057
1108
  "pluginAlias": "@sanity/cli",
1058
1109
  "pluginName": "@sanity/cli",
1059
1110
  "pluginType": "core",
@@ -1062,28 +1113,34 @@
1062
1113
  "relativePath": [
1063
1114
  "dist",
1064
1115
  "commands",
1065
- "cors",
1066
- "delete.js"
1116
+ "backups",
1117
+ "download.js"
1067
1118
  ]
1068
1119
  },
1069
- "cors:list": {
1120
+ "backups:enable": {
1070
1121
  "aliases": [],
1071
- "args": {},
1072
- "description": "List all origins allowed to access the API for this project",
1122
+ "args": {
1123
+ "dataset": {
1124
+ "description": "Dataset name to enable backup for",
1125
+ "name": "dataset",
1126
+ "required": false
1127
+ }
1128
+ },
1129
+ "description": "Enable backup for a dataset.",
1073
1130
  "examples": [
1074
1131
  {
1075
1132
  "command": "<%= config.bin %> <%= command.id %>",
1076
- "description": "List CORS origins for the current project"
1133
+ "description": "Interactively enable backup for a dataset"
1077
1134
  },
1078
1135
  {
1079
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1080
- "description": "List CORS origins for a specific project"
1136
+ "command": "<%= config.bin %> <%= command.id %> production",
1137
+ "description": "Enable backup for the production dataset"
1081
1138
  }
1082
1139
  ],
1083
1140
  "flags": {
1084
1141
  "project-id": {
1085
1142
  "char": "p",
1086
- "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1143
+ "description": "Project ID to enable backups for (overrides CLI configuration)",
1087
1144
  "helpGroup": "OVERRIDE",
1088
1145
  "name": "project-id",
1089
1146
  "hasDynamicHelp": false,
@@ -1093,8 +1150,10 @@
1093
1150
  }
1094
1151
  },
1095
1152
  "hasDynamicHelp": false,
1096
- "hiddenAliases": [],
1097
- "id": "cors:list",
1153
+ "hiddenAliases": [
1154
+ "backup:enable"
1155
+ ],
1156
+ "id": "backups:enable",
1098
1157
  "pluginAlias": "@sanity/cli",
1099
1158
  "pluginName": "@sanity/cli",
1100
1159
  "pluginType": "core",
@@ -1103,45 +1162,78 @@
1103
1162
  "relativePath": [
1104
1163
  "dist",
1105
1164
  "commands",
1106
- "cors",
1107
- "list.js"
1165
+ "backups",
1166
+ "enable.js"
1108
1167
  ]
1109
1168
  },
1110
- "backup:disable": {
1169
+ "backups:list": {
1111
1170
  "aliases": [],
1112
1171
  "args": {
1113
1172
  "dataset": {
1114
- "description": "Dataset name to disable backup for",
1173
+ "description": "Dataset name to list backups for",
1115
1174
  "name": "dataset",
1116
1175
  "required": false
1117
1176
  }
1118
1177
  },
1119
- "description": "Disable backup for a dataset.",
1178
+ "description": "List available backups for a dataset.",
1120
1179
  "examples": [
1121
1180
  {
1122
1181
  "command": "<%= config.bin %> <%= command.id %>",
1123
- "description": "Interactively disable backup for a dataset"
1182
+ "description": "List backups for a dataset interactively"
1124
1183
  },
1125
1184
  {
1126
1185
  "command": "<%= config.bin %> <%= command.id %> production",
1127
- "description": "Disable backup for the production dataset"
1186
+ "description": "List backups for the production dataset"
1187
+ },
1188
+ {
1189
+ "command": "<%= config.bin %> <%= command.id %> production --limit 50",
1190
+ "description": "List up to 50 backups for the production dataset"
1191
+ },
1192
+ {
1193
+ "command": "<%= config.bin %> <%= command.id %> production --after 2024-01-31 --limit 10",
1194
+ "description": "List up to 10 backups created after 2024-01-31"
1128
1195
  }
1129
1196
  ],
1130
1197
  "flags": {
1131
1198
  "project-id": {
1132
1199
  "char": "p",
1133
- "description": "Project ID to disable backups for (overrides CLI configuration)",
1200
+ "description": "Project ID to list backups for (overrides CLI configuration)",
1134
1201
  "helpGroup": "OVERRIDE",
1135
1202
  "name": "project-id",
1136
1203
  "hasDynamicHelp": false,
1137
1204
  "helpValue": "<id>",
1138
1205
  "multiple": false,
1139
1206
  "type": "option"
1207
+ },
1208
+ "after": {
1209
+ "description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
1210
+ "name": "after",
1211
+ "hasDynamicHelp": false,
1212
+ "multiple": false,
1213
+ "type": "option"
1214
+ },
1215
+ "before": {
1216
+ "description": "Only return backups before this date (exclusive, YYYY-MM-DD format)",
1217
+ "name": "before",
1218
+ "hasDynamicHelp": false,
1219
+ "multiple": false,
1220
+ "type": "option"
1221
+ },
1222
+ "limit": {
1223
+ "char": "l",
1224
+ "description": "Maximum number of backups returned",
1225
+ "name": "limit",
1226
+ "default": 30,
1227
+ "hasDynamicHelp": false,
1228
+ "multiple": false,
1229
+ "type": "option"
1140
1230
  }
1141
1231
  },
1142
1232
  "hasDynamicHelp": false,
1143
- "hiddenAliases": [],
1144
- "id": "backup:disable",
1233
+ "hiddenAliases": [
1234
+ "backup:list"
1235
+ ],
1236
+ "id": "backups:list",
1145
1237
  "pluginAlias": "@sanity/cli",
1146
1238
  "pluginName": "@sanity/cli",
1147
1239
  "pluginType": "core",
@@ -1150,42 +1242,42 @@
1150
1242
  "relativePath": [
1151
1243
  "dist",
1152
1244
  "commands",
1153
- "backup",
1154
- "disable.js"
1245
+ "backups",
1246
+ "list.js"
1155
1247
  ]
1156
1248
  },
1157
- "backup:download": {
1249
+ "cors:add": {
1158
1250
  "aliases": [],
1159
1251
  "args": {
1160
- "dataset": {
1161
- "description": "Dataset name to download backup from",
1162
- "name": "dataset",
1163
- "required": false
1252
+ "origin": {
1253
+ "description": "Origin to allow (e.g., https://example.com)",
1254
+ "name": "origin",
1255
+ "required": true
1164
1256
  }
1165
1257
  },
1166
- "description": "Download a dataset backup to a local file.",
1258
+ "description": "Allow a new origin to use your project API through CORS",
1167
1259
  "examples": [
1168
1260
  {
1169
1261
  "command": "<%= config.bin %> <%= command.id %>",
1170
- "description": "Interactively download a backup"
1262
+ "description": "Interactively add a CORS origin"
1171
1263
  },
1172
1264
  {
1173
- "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-1",
1174
- "description": "Download a specific backup for the production dataset"
1265
+ "command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
1266
+ "description": "Add a localhost origin without credentials"
1175
1267
  },
1176
1268
  {
1177
- "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-2 --out /path/to/file",
1178
- "description": "Download backup to a specific file"
1269
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
1270
+ "description": "Add a production origin with credentials allowed"
1179
1271
  },
1180
1272
  {
1181
- "command": "<%= config.bin %> <%= command.id %> production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite",
1182
- "description": "Download backup and overwrite existing file"
1273
+ "command": "<%= config.bin %> <%= command.id %> https://myapp.com --project-id abc123",
1274
+ "description": "Add a CORS origin for a specific project"
1183
1275
  }
1184
1276
  ],
1185
1277
  "flags": {
1186
1278
  "project-id": {
1187
1279
  "char": "p",
1188
- "description": "Project ID to download backup from (overrides CLI configuration)",
1280
+ "description": "Project ID to add CORS origin to (overrides CLI configuration)",
1189
1281
  "helpGroup": "OVERRIDE",
1190
1282
  "name": "project-id",
1191
1283
  "hasDynamicHelp": false,
@@ -1193,38 +1285,17 @@
1193
1285
  "multiple": false,
1194
1286
  "type": "option"
1195
1287
  },
1196
- "backup-id": {
1197
- "description": "The backup ID to download",
1198
- "name": "backup-id",
1199
- "hasDynamicHelp": false,
1200
- "multiple": false,
1201
- "type": "option"
1202
- },
1203
- "concurrency": {
1204
- "description": "Concurrent number of backup item downloads (max: 24)",
1205
- "name": "concurrency",
1206
- "default": 10,
1207
- "hasDynamicHelp": false,
1208
- "multiple": false,
1209
- "type": "option"
1210
- },
1211
- "out": {
1212
- "description": "The file or directory path the backup should download to",
1213
- "name": "out",
1214
- "hasDynamicHelp": false,
1215
- "multiple": false,
1216
- "type": "option"
1217
- },
1218
- "overwrite": {
1219
- "description": "Allows overwriting of existing backup file",
1220
- "name": "overwrite",
1221
- "allowNo": false,
1288
+ "credentials": {
1289
+ "description": "Allow credentials (token/cookie) to be sent from this origin",
1290
+ "name": "credentials",
1291
+ "required": false,
1292
+ "allowNo": true,
1222
1293
  "type": "boolean"
1223
1294
  }
1224
1295
  },
1225
1296
  "hasDynamicHelp": false,
1226
1297
  "hiddenAliases": [],
1227
- "id": "backup:download",
1298
+ "id": "cors:add",
1228
1299
  "pluginAlias": "@sanity/cli",
1229
1300
  "pluginName": "@sanity/cli",
1230
1301
  "pluginType": "core",
@@ -1233,34 +1304,38 @@
1233
1304
  "relativePath": [
1234
1305
  "dist",
1235
1306
  "commands",
1236
- "backup",
1237
- "download.js"
1307
+ "cors",
1308
+ "add.js"
1238
1309
  ]
1239
1310
  },
1240
- "backup:enable": {
1311
+ "cors:delete": {
1241
1312
  "aliases": [],
1242
1313
  "args": {
1243
- "dataset": {
1244
- "description": "Dataset name to enable backup for",
1245
- "name": "dataset",
1314
+ "origin": {
1315
+ "description": "Origin to delete (will prompt if not provided)",
1316
+ "name": "origin",
1246
1317
  "required": false
1247
1318
  }
1248
1319
  },
1249
- "description": "Enable backup for a dataset.",
1320
+ "description": "Delete an existing CORS origin from your project",
1250
1321
  "examples": [
1251
1322
  {
1252
1323
  "command": "<%= config.bin %> <%= command.id %>",
1253
- "description": "Interactively enable backup for a dataset"
1324
+ "description": "Interactively select and delete a CORS origin"
1254
1325
  },
1255
1326
  {
1256
- "command": "<%= config.bin %> <%= command.id %> production",
1257
- "description": "Enable backup for the production dataset"
1327
+ "command": "<%= config.bin %> <%= command.id %> https://example.com",
1328
+ "description": "Delete a specific CORS origin"
1329
+ },
1330
+ {
1331
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1332
+ "description": "Delete a CORS origin from a specific project"
1258
1333
  }
1259
1334
  ],
1260
1335
  "flags": {
1261
1336
  "project-id": {
1262
1337
  "char": "p",
1263
- "description": "Project ID to enable backups for (overrides CLI configuration)",
1338
+ "description": "Project ID to delete CORS origin from (overrides CLI configuration)",
1264
1339
  "helpGroup": "OVERRIDE",
1265
1340
  "name": "project-id",
1266
1341
  "hasDynamicHelp": false,
@@ -1271,7 +1346,7 @@
1271
1346
  },
1272
1347
  "hasDynamicHelp": false,
1273
1348
  "hiddenAliases": [],
1274
- "id": "backup:enable",
1349
+ "id": "cors:delete",
1275
1350
  "pluginAlias": "@sanity/cli",
1276
1351
  "pluginName": "@sanity/cli",
1277
1352
  "pluginType": "core",
@@ -1280,76 +1355,39 @@
1280
1355
  "relativePath": [
1281
1356
  "dist",
1282
1357
  "commands",
1283
- "backup",
1284
- "enable.js"
1358
+ "cors",
1359
+ "delete.js"
1285
1360
  ]
1286
1361
  },
1287
- "backup:list": {
1362
+ "cors:list": {
1288
1363
  "aliases": [],
1289
- "args": {
1290
- "dataset": {
1291
- "description": "Dataset name to list backups for",
1292
- "name": "dataset",
1293
- "required": false
1294
- }
1295
- },
1296
- "description": "List available backups for a dataset.",
1364
+ "args": {},
1365
+ "description": "List all origins allowed to access the API for this project",
1297
1366
  "examples": [
1298
1367
  {
1299
1368
  "command": "<%= config.bin %> <%= command.id %>",
1300
- "description": "List backups for a dataset interactively"
1301
- },
1302
- {
1303
- "command": "<%= config.bin %> <%= command.id %> production",
1304
- "description": "List backups for the production dataset"
1305
- },
1306
- {
1307
- "command": "<%= config.bin %> <%= command.id %> production --limit 50",
1308
- "description": "List up to 50 backups for the production dataset"
1369
+ "description": "List CORS origins for the current project"
1309
1370
  },
1310
1371
  {
1311
- "command": "<%= config.bin %> <%= command.id %> production --after 2024-01-31 --limit 10",
1312
- "description": "List up to 10 backups created after 2024-01-31"
1372
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
1373
+ "description": "List CORS origins for a specific project"
1313
1374
  }
1314
1375
  ],
1315
1376
  "flags": {
1316
1377
  "project-id": {
1317
1378
  "char": "p",
1318
- "description": "Project ID to list backups for (overrides CLI configuration)",
1379
+ "description": "Project ID to list CORS origins for (overrides CLI configuration)",
1319
1380
  "helpGroup": "OVERRIDE",
1320
1381
  "name": "project-id",
1321
1382
  "hasDynamicHelp": false,
1322
1383
  "helpValue": "<id>",
1323
1384
  "multiple": false,
1324
1385
  "type": "option"
1325
- },
1326
- "after": {
1327
- "description": "Only return backups after this date (inclusive, YYYY-MM-DD format)",
1328
- "name": "after",
1329
- "hasDynamicHelp": false,
1330
- "multiple": false,
1331
- "type": "option"
1332
- },
1333
- "before": {
1334
- "description": "Only return backups before this date (exclusive, YYYY-MM-DD format)",
1335
- "name": "before",
1336
- "hasDynamicHelp": false,
1337
- "multiple": false,
1338
- "type": "option"
1339
- },
1340
- "limit": {
1341
- "char": "l",
1342
- "description": "Maximum number of backups returned",
1343
- "name": "limit",
1344
- "default": 30,
1345
- "hasDynamicHelp": false,
1346
- "multiple": false,
1347
- "type": "option"
1348
1386
  }
1349
1387
  },
1350
1388
  "hasDynamicHelp": false,
1351
1389
  "hiddenAliases": [],
1352
- "id": "backup:list",
1390
+ "id": "cors:list",
1353
1391
  "pluginAlias": "@sanity/cli",
1354
1392
  "pluginName": "@sanity/cli",
1355
1393
  "pluginType": "core",
@@ -1358,11 +1396,11 @@
1358
1396
  "relativePath": [
1359
1397
  "dist",
1360
1398
  "commands",
1361
- "backup",
1399
+ "cors",
1362
1400
  "list.js"
1363
1401
  ]
1364
1402
  },
1365
- "dataset:copy": {
1403
+ "datasets:copy": {
1366
1404
  "aliases": [],
1367
1405
  "args": {
1368
1406
  "source": {
@@ -1493,8 +1531,10 @@
1493
1531
  }
1494
1532
  },
1495
1533
  "hasDynamicHelp": false,
1496
- "hiddenAliases": [],
1497
- "id": "dataset:copy",
1534
+ "hiddenAliases": [
1535
+ "dataset:copy"
1536
+ ],
1537
+ "id": "datasets:copy",
1498
1538
  "pluginAlias": "@sanity/cli",
1499
1539
  "pluginName": "@sanity/cli",
1500
1540
  "pluginType": "core",
@@ -1503,11 +1543,11 @@
1503
1543
  "relativePath": [
1504
1544
  "dist",
1505
1545
  "commands",
1506
- "dataset",
1546
+ "datasets",
1507
1547
  "copy.js"
1508
1548
  ]
1509
1549
  },
1510
- "dataset:create": {
1550
+ "datasets:create": {
1511
1551
  "aliases": [],
1512
1552
  "args": {
1513
1553
  "name": {
@@ -1573,8 +1613,10 @@
1573
1613
  }
1574
1614
  },
1575
1615
  "hasDynamicHelp": false,
1576
- "hiddenAliases": [],
1577
- "id": "dataset:create",
1616
+ "hiddenAliases": [
1617
+ "dataset:create"
1618
+ ],
1619
+ "id": "datasets:create",
1578
1620
  "pluginAlias": "@sanity/cli",
1579
1621
  "pluginName": "@sanity/cli",
1580
1622
  "pluginType": "core",
@@ -1583,11 +1625,11 @@
1583
1625
  "relativePath": [
1584
1626
  "dist",
1585
1627
  "commands",
1586
- "dataset",
1628
+ "datasets",
1587
1629
  "create.js"
1588
1630
  ]
1589
1631
  },
1590
- "dataset:delete": {
1632
+ "datasets:delete": {
1591
1633
  "aliases": [],
1592
1634
  "args": {
1593
1635
  "datasetName": {
@@ -1627,8 +1669,10 @@
1627
1669
  }
1628
1670
  },
1629
1671
  "hasDynamicHelp": false,
1630
- "hiddenAliases": [],
1631
- "id": "dataset:delete",
1672
+ "hiddenAliases": [
1673
+ "dataset:delete"
1674
+ ],
1675
+ "id": "datasets:delete",
1632
1676
  "pluginAlias": "@sanity/cli",
1633
1677
  "pluginName": "@sanity/cli",
1634
1678
  "pluginType": "core",
@@ -1637,11 +1681,11 @@
1637
1681
  "relativePath": [
1638
1682
  "dist",
1639
1683
  "commands",
1640
- "dataset",
1684
+ "datasets",
1641
1685
  "delete.js"
1642
1686
  ]
1643
1687
  },
1644
- "dataset:export": {
1688
+ "datasets:export": {
1645
1689
  "aliases": [],
1646
1690
  "args": {
1647
1691
  "name": {
@@ -1742,8 +1786,10 @@
1742
1786
  }
1743
1787
  },
1744
1788
  "hasDynamicHelp": false,
1745
- "hiddenAliases": [],
1746
- "id": "dataset:export",
1789
+ "hiddenAliases": [
1790
+ "dataset:export"
1791
+ ],
1792
+ "id": "datasets:export",
1747
1793
  "pluginAlias": "@sanity/cli",
1748
1794
  "pluginName": "@sanity/cli",
1749
1795
  "pluginType": "core",
@@ -1752,11 +1798,11 @@
1752
1798
  "relativePath": [
1753
1799
  "dist",
1754
1800
  "commands",
1755
- "dataset",
1801
+ "datasets",
1756
1802
  "export.js"
1757
1803
  ]
1758
1804
  },
1759
- "dataset:import": {
1805
+ "datasets:import": {
1760
1806
  "aliases": [],
1761
1807
  "args": {
1762
1808
  "source": {
@@ -1773,16 +1819,20 @@
1773
1819
  "description": "Import documents to a Sanity dataset",
1774
1820
  "examples": [
1775
1821
  {
1776
- "command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
1822
+ "command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
1777
1823
  "description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
1778
1824
  },
1779
1825
  {
1780
- "command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -t someToken -",
1826
+ "command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
1781
1827
  "description": "Import into dataset \"test\" from stdin"
1782
1828
  },
1783
1829
  {
1784
- "command": "<%= config.bin %> <%= command.id %> -p projectId -d staging -t someSecretToken my-dataset.ndjson",
1830
+ "command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
1785
1831
  "description": "Import with explicit project ID (overrides CLI configuration)"
1832
+ },
1833
+ {
1834
+ "command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
1835
+ "description": "Import with an explicit token (e.g. for CI/CD)"
1786
1836
  }
1787
1837
  ],
1788
1838
  "flags": {
@@ -1889,8 +1939,10 @@
1889
1939
  }
1890
1940
  },
1891
1941
  "hasDynamicHelp": false,
1892
- "hiddenAliases": [],
1893
- "id": "dataset:import",
1942
+ "hiddenAliases": [
1943
+ "dataset:import"
1944
+ ],
1945
+ "id": "datasets:import",
1894
1946
  "pluginAlias": "@sanity/cli",
1895
1947
  "pluginName": "@sanity/cli",
1896
1948
  "pluginType": "core",
@@ -1899,11 +1951,11 @@
1899
1951
  "relativePath": [
1900
1952
  "dist",
1901
1953
  "commands",
1902
- "dataset",
1954
+ "datasets",
1903
1955
  "import.js"
1904
1956
  ]
1905
1957
  },
1906
- "dataset:list": {
1958
+ "datasets:list": {
1907
1959
  "aliases": [],
1908
1960
  "args": {},
1909
1961
  "description": "List datasets of your project",
@@ -1930,8 +1982,10 @@
1930
1982
  }
1931
1983
  },
1932
1984
  "hasDynamicHelp": false,
1933
- "hiddenAliases": [],
1934
- "id": "dataset:list",
1985
+ "hiddenAliases": [
1986
+ "dataset:list"
1987
+ ],
1988
+ "id": "datasets:list",
1935
1989
  "pluginAlias": "@sanity/cli",
1936
1990
  "pluginName": "@sanity/cli",
1937
1991
  "pluginType": "core",
@@ -1940,7 +1994,7 @@
1940
1994
  "relativePath": [
1941
1995
  "dist",
1942
1996
  "commands",
1943
- "dataset",
1997
+ "datasets",
1944
1998
  "list.js"
1945
1999
  ]
1946
2000
  },
@@ -2154,7 +2208,9 @@
2154
2208
  }
2155
2209
  },
2156
2210
  "hasDynamicHelp": false,
2157
- "hiddenAliases": [],
2211
+ "hiddenAliases": [
2212
+ "document:create"
2213
+ ],
2158
2214
  "id": "documents:create",
2159
2215
  "pluginAlias": "@sanity/cli",
2160
2216
  "pluginName": "@sanity/cli",
@@ -2228,7 +2284,9 @@
2228
2284
  }
2229
2285
  },
2230
2286
  "hasDynamicHelp": false,
2231
- "hiddenAliases": [],
2287
+ "hiddenAliases": [
2288
+ "document:delete"
2289
+ ],
2232
2290
  "id": "documents:delete",
2233
2291
  "pluginAlias": "@sanity/cli",
2234
2292
  "pluginName": "@sanity/cli",
@@ -2299,7 +2357,9 @@
2299
2357
  }
2300
2358
  },
2301
2359
  "hasDynamicHelp": false,
2302
- "hiddenAliases": [],
2360
+ "hiddenAliases": [
2361
+ "document:get"
2362
+ ],
2303
2363
  "id": "documents:get",
2304
2364
  "pluginAlias": "@sanity/cli",
2305
2365
  "pluginName": "@sanity/cli",
@@ -2395,7 +2455,9 @@
2395
2455
  }
2396
2456
  },
2397
2457
  "hasDynamicHelp": false,
2398
- "hiddenAliases": [],
2458
+ "hiddenAliases": [
2459
+ "document:query"
2460
+ ],
2399
2461
  "id": "documents:query",
2400
2462
  "pluginAlias": "@sanity/cli",
2401
2463
  "pluginName": "@sanity/cli",
@@ -2513,7 +2575,9 @@
2513
2575
  }
2514
2576
  },
2515
2577
  "hasDynamicHelp": false,
2516
- "hiddenAliases": [],
2578
+ "hiddenAliases": [
2579
+ "document:validate"
2580
+ ],
2517
2581
  "id": "documents:validate",
2518
2582
  "pluginAlias": "@sanity/cli",
2519
2583
  "pluginName": "@sanity/cli",
@@ -2779,7 +2843,7 @@
2779
2843
  "undeploy.js"
2780
2844
  ]
2781
2845
  },
2782
- "hook:attempt": {
2846
+ "hooks:attempt": {
2783
2847
  "aliases": [],
2784
2848
  "args": {
2785
2849
  "attemptId": {
@@ -2812,8 +2876,10 @@
2812
2876
  }
2813
2877
  },
2814
2878
  "hasDynamicHelp": false,
2815
- "hiddenAliases": [],
2816
- "id": "hook:attempt",
2879
+ "hiddenAliases": [
2880
+ "hook:attempt"
2881
+ ],
2882
+ "id": "hooks:attempt",
2817
2883
  "pluginAlias": "@sanity/cli",
2818
2884
  "pluginName": "@sanity/cli",
2819
2885
  "pluginType": "core",
@@ -2822,11 +2888,11 @@
2822
2888
  "relativePath": [
2823
2889
  "dist",
2824
2890
  "commands",
2825
- "hook",
2891
+ "hooks",
2826
2892
  "attempt.js"
2827
2893
  ]
2828
2894
  },
2829
- "hook:create": {
2895
+ "hooks:create": {
2830
2896
  "aliases": [],
2831
2897
  "args": {},
2832
2898
  "description": "Create a new webhook for the current project",
@@ -2853,8 +2919,10 @@
2853
2919
  }
2854
2920
  },
2855
2921
  "hasDynamicHelp": false,
2856
- "hiddenAliases": [],
2857
- "id": "hook:create",
2922
+ "hiddenAliases": [
2923
+ "hook:create"
2924
+ ],
2925
+ "id": "hooks:create",
2858
2926
  "pluginAlias": "@sanity/cli",
2859
2927
  "pluginName": "@sanity/cli",
2860
2928
  "pluginType": "core",
@@ -2863,11 +2931,11 @@
2863
2931
  "relativePath": [
2864
2932
  "dist",
2865
2933
  "commands",
2866
- "hook",
2934
+ "hooks",
2867
2935
  "create.js"
2868
2936
  ]
2869
2937
  },
2870
- "hook:delete": {
2938
+ "hooks:delete": {
2871
2939
  "aliases": [],
2872
2940
  "args": {
2873
2941
  "name": {
@@ -2904,8 +2972,10 @@
2904
2972
  }
2905
2973
  },
2906
2974
  "hasDynamicHelp": false,
2907
- "hiddenAliases": [],
2908
- "id": "hook:delete",
2975
+ "hiddenAliases": [
2976
+ "hook:delete"
2977
+ ],
2978
+ "id": "hooks:delete",
2909
2979
  "pluginAlias": "@sanity/cli",
2910
2980
  "pluginName": "@sanity/cli",
2911
2981
  "pluginType": "core",
@@ -2914,11 +2984,11 @@
2914
2984
  "relativePath": [
2915
2985
  "dist",
2916
2986
  "commands",
2917
- "hook",
2987
+ "hooks",
2918
2988
  "delete.js"
2919
2989
  ]
2920
2990
  },
2921
- "hook:list": {
2991
+ "hooks:list": {
2922
2992
  "aliases": [],
2923
2993
  "args": {},
2924
2994
  "description": "List hooks for a given project",
@@ -2945,8 +3015,10 @@
2945
3015
  }
2946
3016
  },
2947
3017
  "hasDynamicHelp": false,
2948
- "hiddenAliases": [],
2949
- "id": "hook:list",
3018
+ "hiddenAliases": [
3019
+ "hook:list"
3020
+ ],
3021
+ "id": "hooks:list",
2950
3022
  "pluginAlias": "@sanity/cli",
2951
3023
  "pluginName": "@sanity/cli",
2952
3024
  "pluginType": "core",
@@ -2955,11 +3027,11 @@
2955
3027
  "relativePath": [
2956
3028
  "dist",
2957
3029
  "commands",
2958
- "hook",
3030
+ "hooks",
2959
3031
  "list.js"
2960
3032
  ]
2961
3033
  },
2962
- "hook:logs": {
3034
+ "hooks:logs": {
2963
3035
  "aliases": [],
2964
3036
  "args": {
2965
3037
  "name": {
@@ -3003,8 +3075,10 @@
3003
3075
  }
3004
3076
  },
3005
3077
  "hasDynamicHelp": false,
3006
- "hiddenAliases": [],
3007
- "id": "hook:logs",
3078
+ "hiddenAliases": [
3079
+ "hook:logs"
3080
+ ],
3081
+ "id": "hooks:logs",
3008
3082
  "pluginAlias": "@sanity/cli",
3009
3083
  "pluginName": "@sanity/cli",
3010
3084
  "pluginType": "core",
@@ -3013,7 +3087,7 @@
3013
3087
  "relativePath": [
3014
3088
  "dist",
3015
3089
  "commands",
3016
- "hook",
3090
+ "hooks",
3017
3091
  "logs.js"
3018
3092
  ]
3019
3093
  },
@@ -3558,7 +3632,9 @@
3558
3632
  }
3559
3633
  },
3560
3634
  "hasDynamicHelp": false,
3561
- "hiddenAliases": [],
3635
+ "hiddenAliases": [
3636
+ "project:create"
3637
+ ],
3562
3638
  "id": "projects:create",
3563
3639
  "pluginAlias": "@sanity/cli",
3564
3640
  "pluginName": "@sanity/cli",
@@ -3614,7 +3690,9 @@
3614
3690
  }
3615
3691
  },
3616
3692
  "hasDynamicHelp": false,
3617
- "hiddenAliases": [],
3693
+ "hiddenAliases": [
3694
+ "project:list"
3695
+ ],
3618
3696
  "id": "projects:list",
3619
3697
  "pluginAlias": "@sanity/cli",
3620
3698
  "pluginName": "@sanity/cli",
@@ -3628,85 +3706,7 @@
3628
3706
  "list.js"
3629
3707
  ]
3630
3708
  },
3631
- "telemetry:disable": {
3632
- "aliases": [],
3633
- "args": {},
3634
- "description": "Disable telemetry for your logged in user",
3635
- "examples": [
3636
- {
3637
- "command": "<%= config.bin %> telemetry <%= command.id %>",
3638
- "description": "Disable telemetry for your logged in user"
3639
- }
3640
- ],
3641
- "flags": {},
3642
- "hasDynamicHelp": false,
3643
- "hiddenAliases": [],
3644
- "id": "telemetry:disable",
3645
- "pluginAlias": "@sanity/cli",
3646
- "pluginName": "@sanity/cli",
3647
- "pluginType": "core",
3648
- "strict": true,
3649
- "isESM": true,
3650
- "relativePath": [
3651
- "dist",
3652
- "commands",
3653
- "telemetry",
3654
- "disable.js"
3655
- ]
3656
- },
3657
- "telemetry:enable": {
3658
- "aliases": [],
3659
- "args": {},
3660
- "description": "Enable telemetry for your logged in user",
3661
- "examples": [
3662
- {
3663
- "command": "<%= config.bin %> telemetry <%= command.id %>",
3664
- "description": "Enable telemetry for your logged in user"
3665
- }
3666
- ],
3667
- "flags": {},
3668
- "hasDynamicHelp": false,
3669
- "hiddenAliases": [],
3670
- "id": "telemetry:enable",
3671
- "pluginAlias": "@sanity/cli",
3672
- "pluginName": "@sanity/cli",
3673
- "pluginType": "core",
3674
- "strict": true,
3675
- "isESM": true,
3676
- "relativePath": [
3677
- "dist",
3678
- "commands",
3679
- "telemetry",
3680
- "enable.js"
3681
- ]
3682
- },
3683
- "telemetry:status": {
3684
- "aliases": [],
3685
- "args": {},
3686
- "description": "Check telemetry consent status for your logged in user",
3687
- "examples": [
3688
- {
3689
- "command": "<%= config.bin %> telemetry <%= command.id %>",
3690
- "description": "Check telemetry consent status for your logged in user"
3691
- }
3692
- ],
3693
- "flags": {},
3694
- "hasDynamicHelp": false,
3695
- "hiddenAliases": [],
3696
- "id": "telemetry:status",
3697
- "pluginAlias": "@sanity/cli",
3698
- "pluginName": "@sanity/cli",
3699
- "pluginType": "core",
3700
- "strict": true,
3701
- "isESM": true,
3702
- "relativePath": [
3703
- "dist",
3704
- "commands",
3705
- "telemetry",
3706
- "status.js"
3707
- ]
3708
- },
3709
- "schema:delete": {
3709
+ "schemas:delete": {
3710
3710
  "aliases": [],
3711
3711
  "args": {},
3712
3712
  "description": "Delete schema documents by id",
@@ -3772,8 +3772,10 @@
3772
3772
  }
3773
3773
  },
3774
3774
  "hasDynamicHelp": false,
3775
- "hiddenAliases": [],
3776
- "id": "schema:delete",
3775
+ "hiddenAliases": [
3776
+ "schema:delete"
3777
+ ],
3778
+ "id": "schemas:delete",
3777
3779
  "pluginAlias": "@sanity/cli",
3778
3780
  "pluginName": "@sanity/cli",
3779
3781
  "pluginType": "core",
@@ -3782,11 +3784,11 @@
3782
3784
  "relativePath": [
3783
3785
  "dist",
3784
3786
  "commands",
3785
- "schema",
3787
+ "schemas",
3786
3788
  "delete.js"
3787
3789
  ]
3788
3790
  },
3789
- "schema:deploy": {
3791
+ "schemas:deploy": {
3790
3792
  "aliases": [],
3791
3793
  "args": {},
3792
3794
  "description": "Deploy schema documents into workspace datasets.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
@@ -3840,8 +3842,10 @@
3840
3842
  }
3841
3843
  },
3842
3844
  "hasDynamicHelp": false,
3843
- "hiddenAliases": [],
3844
- "id": "schema:deploy",
3845
+ "hiddenAliases": [
3846
+ "schema:deploy"
3847
+ ],
3848
+ "id": "schemas:deploy",
3845
3849
  "pluginAlias": "@sanity/cli",
3846
3850
  "pluginName": "@sanity/cli",
3847
3851
  "pluginType": "core",
@@ -3850,11 +3854,11 @@
3850
3854
  "relativePath": [
3851
3855
  "dist",
3852
3856
  "commands",
3853
- "schema",
3857
+ "schemas",
3854
3858
  "deploy.js"
3855
3859
  ]
3856
3860
  },
3857
- "schema:extract": {
3861
+ "schemas:extract": {
3858
3862
  "aliases": [],
3859
3863
  "args": {},
3860
3864
  "description": "Extracts a JSON representation of a Sanity schema within a Studio context.\n\n**Note**: This command is experimental and subject to change.",
@@ -3919,8 +3923,10 @@
3919
3923
  }
3920
3924
  },
3921
3925
  "hasDynamicHelp": false,
3922
- "hiddenAliases": [],
3923
- "id": "schema:extract",
3926
+ "hiddenAliases": [
3927
+ "schema:extract"
3928
+ ],
3929
+ "id": "schemas:extract",
3924
3930
  "pluginAlias": "@sanity/cli",
3925
3931
  "pluginName": "@sanity/cli",
3926
3932
  "pluginType": "core",
@@ -3929,11 +3935,11 @@
3929
3935
  "relativePath": [
3930
3936
  "dist",
3931
3937
  "commands",
3932
- "schema",
3938
+ "schemas",
3933
3939
  "extract.js"
3934
3940
  ]
3935
3941
  },
3936
- "schema:list": {
3942
+ "schemas:list": {
3937
3943
  "aliases": [],
3938
3944
  "args": {},
3939
3945
  "description": "Lists all schemas in the current dataset.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
@@ -3989,8 +3995,10 @@
3989
3995
  }
3990
3996
  },
3991
3997
  "hasDynamicHelp": false,
3992
- "hiddenAliases": [],
3993
- "id": "schema:list",
3998
+ "hiddenAliases": [
3999
+ "schema:list"
4000
+ ],
4001
+ "id": "schemas:list",
3994
4002
  "pluginAlias": "@sanity/cli",
3995
4003
  "pluginName": "@sanity/cli",
3996
4004
  "pluginType": "core",
@@ -3999,11 +4007,11 @@
3999
4007
  "relativePath": [
4000
4008
  "dist",
4001
4009
  "commands",
4002
- "schema",
4010
+ "schemas",
4003
4011
  "list.js"
4004
4012
  ]
4005
4013
  },
4006
- "schema:validate": {
4014
+ "schemas:validate": {
4007
4015
  "aliases": [],
4008
4016
  "args": {},
4009
4017
  "description": "Validates all schema types specified in a workspace",
@@ -4068,8 +4076,10 @@
4068
4076
  }
4069
4077
  },
4070
4078
  "hasDynamicHelp": false,
4071
- "hiddenAliases": [],
4072
- "id": "schema:validate",
4079
+ "hiddenAliases": [
4080
+ "schema:validate"
4081
+ ],
4082
+ "id": "schemas:validate",
4073
4083
  "pluginAlias": "@sanity/cli",
4074
4084
  "pluginName": "@sanity/cli",
4075
4085
  "pluginType": "core",
@@ -4078,10 +4088,88 @@
4078
4088
  "relativePath": [
4079
4089
  "dist",
4080
4090
  "commands",
4081
- "schema",
4091
+ "schemas",
4082
4092
  "validate.js"
4083
4093
  ]
4084
4094
  },
4095
+ "telemetry:disable": {
4096
+ "aliases": [],
4097
+ "args": {},
4098
+ "description": "Disable telemetry for your logged in user",
4099
+ "examples": [
4100
+ {
4101
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4102
+ "description": "Disable telemetry for your logged in user"
4103
+ }
4104
+ ],
4105
+ "flags": {},
4106
+ "hasDynamicHelp": false,
4107
+ "hiddenAliases": [],
4108
+ "id": "telemetry:disable",
4109
+ "pluginAlias": "@sanity/cli",
4110
+ "pluginName": "@sanity/cli",
4111
+ "pluginType": "core",
4112
+ "strict": true,
4113
+ "isESM": true,
4114
+ "relativePath": [
4115
+ "dist",
4116
+ "commands",
4117
+ "telemetry",
4118
+ "disable.js"
4119
+ ]
4120
+ },
4121
+ "telemetry:enable": {
4122
+ "aliases": [],
4123
+ "args": {},
4124
+ "description": "Enable telemetry for your logged in user",
4125
+ "examples": [
4126
+ {
4127
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4128
+ "description": "Enable telemetry for your logged in user"
4129
+ }
4130
+ ],
4131
+ "flags": {},
4132
+ "hasDynamicHelp": false,
4133
+ "hiddenAliases": [],
4134
+ "id": "telemetry:enable",
4135
+ "pluginAlias": "@sanity/cli",
4136
+ "pluginName": "@sanity/cli",
4137
+ "pluginType": "core",
4138
+ "strict": true,
4139
+ "isESM": true,
4140
+ "relativePath": [
4141
+ "dist",
4142
+ "commands",
4143
+ "telemetry",
4144
+ "enable.js"
4145
+ ]
4146
+ },
4147
+ "telemetry:status": {
4148
+ "aliases": [],
4149
+ "args": {},
4150
+ "description": "Check telemetry consent status for your logged in user",
4151
+ "examples": [
4152
+ {
4153
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4154
+ "description": "Check telemetry consent status for your logged in user"
4155
+ }
4156
+ ],
4157
+ "flags": {},
4158
+ "hasDynamicHelp": false,
4159
+ "hiddenAliases": [],
4160
+ "id": "telemetry:status",
4161
+ "pluginAlias": "@sanity/cli",
4162
+ "pluginName": "@sanity/cli",
4163
+ "pluginType": "core",
4164
+ "strict": true,
4165
+ "isESM": true,
4166
+ "relativePath": [
4167
+ "dist",
4168
+ "commands",
4169
+ "telemetry",
4170
+ "status.js"
4171
+ ]
4172
+ },
4085
4173
  "tokens:add": {
4086
4174
  "aliases": [],
4087
4175
  "args": {
@@ -4148,7 +4236,9 @@
4148
4236
  }
4149
4237
  },
4150
4238
  "hasDynamicHelp": false,
4151
- "hiddenAliases": [],
4239
+ "hiddenAliases": [
4240
+ "token:add"
4241
+ ],
4152
4242
  "id": "tokens:add",
4153
4243
  "pluginAlias": "@sanity/cli",
4154
4244
  "pluginName": "@sanity/cli",
@@ -4213,7 +4303,9 @@
4213
4303
  }
4214
4304
  },
4215
4305
  "hasDynamicHelp": false,
4216
- "hiddenAliases": [],
4306
+ "hiddenAliases": [
4307
+ "token:delete"
4308
+ ],
4217
4309
  "id": "tokens:delete",
4218
4310
  "pluginAlias": "@sanity/cli",
4219
4311
  "pluginName": "@sanity/cli",
@@ -4264,7 +4356,9 @@
4264
4356
  }
4265
4357
  },
4266
4358
  "hasDynamicHelp": false,
4267
- "hiddenAliases": [],
4359
+ "hiddenAliases": [
4360
+ "token:list"
4361
+ ],
4268
4362
  "id": "tokens:list",
4269
4363
  "pluginAlias": "@sanity/cli",
4270
4364
  "pluginName": "@sanity/cli",
@@ -4327,7 +4421,9 @@
4327
4421
  }
4328
4422
  },
4329
4423
  "hasDynamicHelp": false,
4330
- "hiddenAliases": [],
4424
+ "hiddenAliases": [
4425
+ "user:invite"
4426
+ ],
4331
4427
  "id": "users:invite",
4332
4428
  "pluginAlias": "@sanity/cli",
4333
4429
  "pluginName": "@sanity/cli",
@@ -4414,7 +4510,9 @@
4414
4510
  }
4415
4511
  },
4416
4512
  "hasDynamicHelp": false,
4417
- "hiddenAliases": [],
4513
+ "hiddenAliases": [
4514
+ "user:list"
4515
+ ],
4418
4516
  "id": "users:list",
4419
4517
  "pluginAlias": "@sanity/cli",
4420
4518
  "pluginName": "@sanity/cli",
@@ -4428,7 +4526,7 @@
4428
4526
  "list.js"
4429
4527
  ]
4430
4528
  },
4431
- "dataset:alias:create": {
4529
+ "datasets:alias:create": {
4432
4530
  "aliases": [],
4433
4531
  "args": {
4434
4532
  "aliasName": {
@@ -4478,8 +4576,10 @@
4478
4576
  }
4479
4577
  },
4480
4578
  "hasDynamicHelp": false,
4481
- "hiddenAliases": [],
4482
- "id": "dataset:alias:create",
4579
+ "hiddenAliases": [
4580
+ "dataset:alias:create"
4581
+ ],
4582
+ "id": "datasets:alias:create",
4483
4583
  "pluginAlias": "@sanity/cli",
4484
4584
  "pluginName": "@sanity/cli",
4485
4585
  "pluginType": "core",
@@ -4488,12 +4588,12 @@
4488
4588
  "relativePath": [
4489
4589
  "dist",
4490
4590
  "commands",
4491
- "dataset",
4591
+ "datasets",
4492
4592
  "alias",
4493
4593
  "create.js"
4494
4594
  ]
4495
4595
  },
4496
- "dataset:alias:delete": {
4596
+ "datasets:alias:delete": {
4497
4597
  "aliases": [],
4498
4598
  "args": {
4499
4599
  "aliasName": {
@@ -4537,8 +4637,10 @@
4537
4637
  }
4538
4638
  },
4539
4639
  "hasDynamicHelp": false,
4540
- "hiddenAliases": [],
4541
- "id": "dataset:alias:delete",
4640
+ "hiddenAliases": [
4641
+ "dataset:alias:delete"
4642
+ ],
4643
+ "id": "datasets:alias:delete",
4542
4644
  "pluginAlias": "@sanity/cli",
4543
4645
  "pluginName": "@sanity/cli",
4544
4646
  "pluginType": "core",
@@ -4547,12 +4649,12 @@
4547
4649
  "relativePath": [
4548
4650
  "dist",
4549
4651
  "commands",
4550
- "dataset",
4652
+ "datasets",
4551
4653
  "alias",
4552
4654
  "delete.js"
4553
4655
  ]
4554
4656
  },
4555
- "dataset:alias:link": {
4657
+ "datasets:alias:link": {
4556
4658
  "aliases": [],
4557
4659
  "args": {
4558
4660
  "aliasName": {
@@ -4609,8 +4711,10 @@
4609
4711
  }
4610
4712
  },
4611
4713
  "hasDynamicHelp": false,
4612
- "hiddenAliases": [],
4613
- "id": "dataset:alias:link",
4714
+ "hiddenAliases": [
4715
+ "dataset:alias:link"
4716
+ ],
4717
+ "id": "datasets:alias:link",
4614
4718
  "pluginAlias": "@sanity/cli",
4615
4719
  "pluginName": "@sanity/cli",
4616
4720
  "pluginType": "core",
@@ -4619,12 +4723,12 @@
4619
4723
  "relativePath": [
4620
4724
  "dist",
4621
4725
  "commands",
4622
- "dataset",
4726
+ "datasets",
4623
4727
  "alias",
4624
4728
  "link.js"
4625
4729
  ]
4626
4730
  },
4627
- "dataset:alias:unlink": {
4731
+ "datasets:alias:unlink": {
4628
4732
  "aliases": [],
4629
4733
  "args": {
4630
4734
  "aliasName": {
@@ -4672,8 +4776,10 @@
4672
4776
  }
4673
4777
  },
4674
4778
  "hasDynamicHelp": false,
4675
- "hiddenAliases": [],
4676
- "id": "dataset:alias:unlink",
4779
+ "hiddenAliases": [
4780
+ "dataset:alias:unlink"
4781
+ ],
4782
+ "id": "datasets:alias:unlink",
4677
4783
  "pluginAlias": "@sanity/cli",
4678
4784
  "pluginName": "@sanity/cli",
4679
4785
  "pluginType": "core",
@@ -4682,12 +4788,12 @@
4682
4788
  "relativePath": [
4683
4789
  "dist",
4684
4790
  "commands",
4685
- "dataset",
4791
+ "datasets",
4686
4792
  "alias",
4687
4793
  "unlink.js"
4688
4794
  ]
4689
4795
  },
4690
- "dataset:embeddings:disable": {
4796
+ "datasets:embeddings:disable": {
4691
4797
  "aliases": [],
4692
4798
  "args": {
4693
4799
  "dataset": {
@@ -4716,8 +4822,10 @@
4716
4822
  }
4717
4823
  },
4718
4824
  "hasDynamicHelp": false,
4719
- "hiddenAliases": [],
4720
- "id": "dataset:embeddings:disable",
4825
+ "hiddenAliases": [
4826
+ "dataset:embeddings:disable"
4827
+ ],
4828
+ "id": "datasets:embeddings:disable",
4721
4829
  "pluginAlias": "@sanity/cli",
4722
4830
  "pluginName": "@sanity/cli",
4723
4831
  "pluginType": "core",
@@ -4726,12 +4834,12 @@
4726
4834
  "relativePath": [
4727
4835
  "dist",
4728
4836
  "commands",
4729
- "dataset",
4837
+ "datasets",
4730
4838
  "embeddings",
4731
4839
  "disable.js"
4732
4840
  ]
4733
4841
  },
4734
- "dataset:embeddings:enable": {
4842
+ "datasets:embeddings:enable": {
4735
4843
  "aliases": [],
4736
4844
  "args": {
4737
4845
  "dataset": {
@@ -4782,8 +4890,10 @@
4782
4890
  }
4783
4891
  },
4784
4892
  "hasDynamicHelp": false,
4785
- "hiddenAliases": [],
4786
- "id": "dataset:embeddings:enable",
4893
+ "hiddenAliases": [
4894
+ "dataset:embeddings:enable"
4895
+ ],
4896
+ "id": "datasets:embeddings:enable",
4787
4897
  "pluginAlias": "@sanity/cli",
4788
4898
  "pluginName": "@sanity/cli",
4789
4899
  "pluginType": "core",
@@ -4792,12 +4902,12 @@
4792
4902
  "relativePath": [
4793
4903
  "dist",
4794
4904
  "commands",
4795
- "dataset",
4905
+ "datasets",
4796
4906
  "embeddings",
4797
4907
  "enable.js"
4798
4908
  ]
4799
4909
  },
4800
- "dataset:embeddings:status": {
4910
+ "datasets:embeddings:status": {
4801
4911
  "aliases": [],
4802
4912
  "args": {
4803
4913
  "dataset": {
@@ -4826,8 +4936,10 @@
4826
4936
  }
4827
4937
  },
4828
4938
  "hasDynamicHelp": false,
4829
- "hiddenAliases": [],
4830
- "id": "dataset:embeddings:status",
4939
+ "hiddenAliases": [
4940
+ "dataset:embeddings:status"
4941
+ ],
4942
+ "id": "datasets:embeddings:status",
4831
4943
  "pluginAlias": "@sanity/cli",
4832
4944
  "pluginName": "@sanity/cli",
4833
4945
  "pluginType": "core",
@@ -4836,12 +4948,12 @@
4836
4948
  "relativePath": [
4837
4949
  "dist",
4838
4950
  "commands",
4839
- "dataset",
4951
+ "datasets",
4840
4952
  "embeddings",
4841
4953
  "status.js"
4842
4954
  ]
4843
4955
  },
4844
- "dataset:visibility:get": {
4956
+ "datasets:visibility:get": {
4845
4957
  "aliases": [],
4846
4958
  "args": {
4847
4959
  "dataset": {
@@ -4870,8 +4982,10 @@
4870
4982
  }
4871
4983
  },
4872
4984
  "hasDynamicHelp": false,
4873
- "hiddenAliases": [],
4874
- "id": "dataset:visibility:get",
4985
+ "hiddenAliases": [
4986
+ "dataset:visibility:get"
4987
+ ],
4988
+ "id": "datasets:visibility:get",
4875
4989
  "pluginAlias": "@sanity/cli",
4876
4990
  "pluginName": "@sanity/cli",
4877
4991
  "pluginType": "core",
@@ -4880,12 +4994,12 @@
4880
4994
  "relativePath": [
4881
4995
  "dist",
4882
4996
  "commands",
4883
- "dataset",
4997
+ "datasets",
4884
4998
  "visibility",
4885
4999
  "get.js"
4886
5000
  ]
4887
5001
  },
4888
- "dataset:visibility:set": {
5002
+ "datasets:visibility:set": {
4889
5003
  "aliases": [],
4890
5004
  "args": {
4891
5005
  "dataset": {
@@ -4927,8 +5041,10 @@
4927
5041
  }
4928
5042
  },
4929
5043
  "hasDynamicHelp": false,
4930
- "hiddenAliases": [],
4931
- "id": "dataset:visibility:set",
5044
+ "hiddenAliases": [
5045
+ "dataset:visibility:set"
5046
+ ],
5047
+ "id": "datasets:visibility:set",
4932
5048
  "pluginAlias": "@sanity/cli",
4933
5049
  "pluginName": "@sanity/cli",
4934
5050
  "pluginType": "core",
@@ -4937,11 +5053,11 @@
4937
5053
  "relativePath": [
4938
5054
  "dist",
4939
5055
  "commands",
4940
- "dataset",
5056
+ "datasets",
4941
5057
  "visibility",
4942
5058
  "set.js"
4943
5059
  ]
4944
5060
  }
4945
5061
  },
4946
- "version": "6.1.8"
5062
+ "version": "6.2.1"
4947
5063
  }