@sanity/cli 6.0.0-alpha.20 → 6.0.0-alpha.21

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 (227) hide show
  1. package/README.md +405 -225
  2. package/dist/actions/auth/authServer.js +13 -11
  3. package/dist/actions/auth/authServer.js.map +1 -1
  4. package/dist/actions/auth/login/getProvider.js +43 -39
  5. package/dist/actions/auth/login/getProvider.js.map +1 -1
  6. package/dist/actions/auth/login/getSSOProvider.js +25 -19
  7. package/dist/actions/auth/login/getSSOProvider.js.map +1 -1
  8. package/dist/actions/auth/login/login.js +12 -33
  9. package/dist/actions/auth/login/login.js.map +1 -1
  10. package/dist/actions/auth/types.js.map +1 -1
  11. package/dist/actions/codemods/reactIconsV3.js +2 -2
  12. package/dist/actions/codemods/reactIconsV3.js.map +1 -1
  13. package/dist/actions/debug/formatters.js +22 -0
  14. package/dist/actions/debug/formatters.js.map +1 -0
  15. package/dist/actions/dev/getDashboardAppUrl.js +3 -3
  16. package/dist/actions/dev/getDashboardAppUrl.js.map +1 -1
  17. package/dist/actions/documents/validateDocuments.worker.js +2 -2
  18. package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
  19. package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js +1 -1
  20. package/dist/actions/documents/validation/reporters/prettyReporter/formatDocumentValidation.js.map +1 -1
  21. package/dist/actions/documents/validation/reporters/prettyReporter/tree.js +108 -0
  22. package/dist/actions/documents/validation/reporters/prettyReporter/tree.js.map +1 -0
  23. package/dist/actions/graphql/SchemaError.js +4 -26
  24. package/dist/actions/graphql/SchemaError.js.map +1 -1
  25. package/dist/actions/graphql/extractFromSanitySchema.js +3 -4
  26. package/dist/actions/graphql/extractFromSanitySchema.js.map +1 -1
  27. package/dist/actions/graphql/extractGraphQLAPIs.js +150 -0
  28. package/dist/actions/graphql/extractGraphQLAPIs.js.map +1 -0
  29. package/dist/actions/graphql/extractGraphQLAPIs.worker.js +12 -0
  30. package/dist/actions/graphql/extractGraphQLAPIs.worker.js.map +1 -0
  31. package/dist/actions/graphql/gen1/index.js +5 -5
  32. package/dist/actions/graphql/gen1/index.js.map +1 -1
  33. package/dist/actions/graphql/gen2/index.js +6 -6
  34. package/dist/actions/graphql/gen2/index.js.map +1 -1
  35. package/dist/actions/graphql/gen3/generateTypeQueries.js +2 -3
  36. package/dist/actions/graphql/gen3/generateTypeQueries.js.map +1 -1
  37. package/dist/actions/graphql/gen3/index.js +6 -7
  38. package/dist/actions/graphql/gen3/index.js.map +1 -1
  39. package/dist/actions/graphql/getGraphQLAPIs.js +12 -35
  40. package/dist/actions/graphql/getGraphQLAPIs.js.map +1 -1
  41. package/dist/actions/graphql/getGraphQLAPIs.worker.js +75 -106
  42. package/dist/actions/graphql/getGraphQLAPIs.worker.js.map +1 -1
  43. package/dist/actions/graphql/helpers.js +13 -0
  44. package/dist/actions/graphql/helpers.js.map +1 -1
  45. package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js +187 -0
  46. package/dist/actions/graphql/resolveGraphQLApisFromWorkspaces.js.map +1 -0
  47. package/dist/actions/graphql/types.js +1 -1
  48. package/dist/actions/graphql/types.js.map +1 -1
  49. package/dist/actions/init/bootstrapLocalTemplate.js +2 -1
  50. package/dist/actions/init/bootstrapLocalTemplate.js.map +1 -1
  51. package/dist/actions/init/bootstrapRemoteTemplate.js +6 -5
  52. package/dist/actions/init/bootstrapRemoteTemplate.js.map +1 -1
  53. package/dist/actions/init/createPackageManifest.js +5 -0
  54. package/dist/actions/init/createPackageManifest.js.map +1 -1
  55. package/dist/actions/init/templates/appQuickstart.js +2 -1
  56. package/dist/actions/init/templates/appQuickstart.js.map +1 -1
  57. package/dist/actions/init/templates/appSanityUi.js +2 -1
  58. package/dist/actions/init/templates/appSanityUi.js.map +1 -1
  59. package/dist/actions/init/types.js.map +1 -1
  60. package/dist/actions/media/importMedia.js +1 -2
  61. package/dist/actions/media/importMedia.js.map +1 -1
  62. package/dist/actions/projects/getManageUrl.js +1 -2
  63. package/dist/actions/projects/getManageUrl.js.map +1 -1
  64. package/dist/actions/schema/validateSchema.worker.js +1 -3
  65. package/dist/actions/schema/validateSchema.worker.js.map +1 -1
  66. package/dist/actions/telemetry/isTrueish.js +10 -0
  67. package/dist/actions/telemetry/isTrueish.js.map +1 -0
  68. package/dist/actions/telemetry/resolveConsent.js +2 -1
  69. package/dist/actions/telemetry/resolveConsent.js.map +1 -1
  70. package/dist/actions/telemetry/setConsent.js +2 -1
  71. package/dist/actions/telemetry/setConsent.js.map +1 -1
  72. package/dist/actions/versions/findSanityModulesVersions.js +1 -2
  73. package/dist/actions/versions/findSanityModulesVersions.js.map +1 -1
  74. package/dist/commands/backup/disable.js +21 -1
  75. package/dist/commands/backup/disable.js.map +1 -1
  76. package/dist/commands/backup/download.js +18 -4
  77. package/dist/commands/backup/download.js.map +1 -1
  78. package/dist/commands/backup/enable.js +21 -1
  79. package/dist/commands/backup/enable.js.map +1 -1
  80. package/dist/commands/backup/list.js +15 -1
  81. package/dist/commands/backup/list.js.map +1 -1
  82. package/dist/commands/cors/add.js +19 -1
  83. package/dist/commands/cors/add.js.map +1 -1
  84. package/dist/commands/cors/delete.js +21 -1
  85. package/dist/commands/cors/delete.js.map +1 -1
  86. package/dist/commands/cors/list.js +21 -1
  87. package/dist/commands/cors/list.js.map +1 -1
  88. package/dist/commands/dataset/alias/create.js +4 -2
  89. package/dist/commands/dataset/alias/create.js.map +1 -1
  90. package/dist/commands/dataset/alias/delete.js +4 -2
  91. package/dist/commands/dataset/alias/delete.js.map +1 -1
  92. package/dist/commands/dataset/alias/link.js +4 -2
  93. package/dist/commands/dataset/alias/link.js.map +1 -1
  94. package/dist/commands/dataset/alias/unlink.js +4 -2
  95. package/dist/commands/dataset/alias/unlink.js.map +1 -1
  96. package/dist/commands/dataset/copy.js +4 -2
  97. package/dist/commands/dataset/copy.js.map +1 -1
  98. package/dist/commands/dataset/create.js +4 -2
  99. package/dist/commands/dataset/create.js.map +1 -1
  100. package/dist/commands/dataset/delete.js +4 -2
  101. package/dist/commands/dataset/delete.js.map +1 -1
  102. package/dist/commands/dataset/embeddings/disable.js +4 -2
  103. package/dist/commands/dataset/embeddings/disable.js.map +1 -1
  104. package/dist/commands/dataset/embeddings/enable.js +6 -4
  105. package/dist/commands/dataset/embeddings/enable.js.map +1 -1
  106. package/dist/commands/dataset/embeddings/status.js +4 -2
  107. package/dist/commands/dataset/embeddings/status.js.map +1 -1
  108. package/dist/commands/dataset/export.js +7 -11
  109. package/dist/commands/dataset/export.js.map +1 -1
  110. package/dist/commands/dataset/list.js +4 -2
  111. package/dist/commands/dataset/list.js.map +1 -1
  112. package/dist/commands/dataset/visibility/get.js +4 -2
  113. package/dist/commands/dataset/visibility/get.js.map +1 -1
  114. package/dist/commands/dataset/visibility/set.js +4 -2
  115. package/dist/commands/dataset/visibility/set.js.map +1 -1
  116. package/dist/commands/debug.js +2 -1
  117. package/dist/commands/debug.js.map +1 -1
  118. package/dist/commands/documents/create.js +15 -5
  119. package/dist/commands/documents/create.js.map +1 -1
  120. package/dist/commands/documents/delete.js +17 -6
  121. package/dist/commands/documents/delete.js.map +1 -1
  122. package/dist/commands/documents/get.js +15 -6
  123. package/dist/commands/documents/get.js.map +1 -1
  124. package/dist/commands/documents/query.js +24 -12
  125. package/dist/commands/documents/query.js.map +1 -1
  126. package/dist/commands/documents/validate.js +29 -9
  127. package/dist/commands/documents/validate.js.map +1 -1
  128. package/dist/commands/graphql/deploy.js +55 -28
  129. package/dist/commands/graphql/deploy.js.map +1 -1
  130. package/dist/commands/graphql/list.js +14 -1
  131. package/dist/commands/graphql/list.js.map +1 -1
  132. package/dist/commands/graphql/undeploy.js +36 -14
  133. package/dist/commands/graphql/undeploy.js.map +1 -1
  134. package/dist/commands/hook/attempt.js +21 -1
  135. package/dist/commands/hook/attempt.js.map +1 -1
  136. package/dist/commands/hook/create.js +22 -2
  137. package/dist/commands/hook/create.js.map +1 -1
  138. package/dist/commands/hook/delete.js +21 -1
  139. package/dist/commands/hook/delete.js.map +1 -1
  140. package/dist/commands/hook/list.js +21 -1
  141. package/dist/commands/hook/list.js.map +1 -1
  142. package/dist/commands/hook/logs.js +19 -1
  143. package/dist/commands/hook/logs.js.map +1 -1
  144. package/dist/commands/init.js +13 -6
  145. package/dist/commands/init.js.map +1 -1
  146. package/dist/commands/login.js +13 -6
  147. package/dist/commands/login.js.map +1 -1
  148. package/dist/commands/logout.js +8 -6
  149. package/dist/commands/logout.js.map +1 -1
  150. package/dist/commands/media/create-aspect.js +3 -3
  151. package/dist/commands/media/create-aspect.js.map +1 -1
  152. package/dist/commands/media/delete-aspect.js +8 -1
  153. package/dist/commands/media/delete-aspect.js.map +1 -1
  154. package/dist/commands/media/deploy-aspect.js +20 -3
  155. package/dist/commands/media/deploy-aspect.js.map +1 -1
  156. package/dist/commands/media/export.js +8 -1
  157. package/dist/commands/media/export.js.map +1 -1
  158. package/dist/commands/media/import.js +9 -2
  159. package/dist/commands/media/import.js.map +1 -1
  160. package/dist/commands/schema/delete.js +19 -6
  161. package/dist/commands/schema/delete.js.map +1 -1
  162. package/dist/commands/schema/deploy.js +8 -2
  163. package/dist/commands/schema/deploy.js.map +1 -1
  164. package/dist/commands/tokens/add.js +23 -1
  165. package/dist/commands/tokens/add.js.map +1 -1
  166. package/dist/commands/tokens/delete.js +19 -1
  167. package/dist/commands/tokens/delete.js.map +1 -1
  168. package/dist/commands/tokens/list.js +19 -1
  169. package/dist/commands/tokens/list.js.map +1 -1
  170. package/dist/commands/users/invite.js +23 -1
  171. package/dist/commands/users/invite.js.map +1 -1
  172. package/dist/commands/users/list.js +23 -1
  173. package/dist/commands/users/list.js.map +1 -1
  174. package/dist/hooks/prerun/flushTelemetry.worker.js +1 -1
  175. package/dist/hooks/prerun/flushTelemetry.worker.js.map +1 -1
  176. package/dist/hooks/prerun/setupTelemetry.js +2 -1
  177. package/dist/hooks/prerun/setupTelemetry.js.map +1 -1
  178. package/dist/prompts/promptForProject.js.map +1 -1
  179. package/dist/{actions/auth/login/promptProviders.js → prompts/promptForProviders.js} +3 -3
  180. package/dist/prompts/promptForProviders.js.map +1 -0
  181. package/dist/services/auth.js +36 -3
  182. package/dist/services/auth.js.map +1 -1
  183. package/dist/services/docs.js +2 -2
  184. package/dist/services/docs.js.map +1 -1
  185. package/dist/services/getUrlHeaders.js +0 -2
  186. package/dist/services/getUrlHeaders.js.map +1 -1
  187. package/dist/services/projects.js +4 -2
  188. package/dist/services/projects.js.map +1 -1
  189. package/dist/services/telemetry.js +2 -1
  190. package/dist/services/telemetry.js.map +1 -1
  191. package/dist/util/createExpiringConfig.js +64 -0
  192. package/dist/util/createExpiringConfig.js.map +1 -0
  193. package/dist/util/detectFramework.js +135 -0
  194. package/dist/util/detectFramework.js.map +1 -0
  195. package/dist/util/extractDocumentsFromNdjsonOrTarball.js +1 -2
  196. package/dist/util/extractDocumentsFromNdjsonOrTarball.js.map +1 -1
  197. package/dist/util/isSchemaError.js +11 -0
  198. package/dist/util/isSchemaError.js.map +1 -0
  199. package/dist/util/isTar.js +8 -0
  200. package/dist/util/isTar.js.map +1 -0
  201. package/dist/util/sharedFlags.js +44 -14
  202. package/dist/util/sharedFlags.js.map +1 -1
  203. package/dist/util/telemetry/cleanupOldTelemetryFiles.js +30 -0
  204. package/dist/util/telemetry/cleanupOldTelemetryFiles.js.map +1 -0
  205. package/dist/util/telemetry/createTelemetryStore.js +95 -0
  206. package/dist/util/telemetry/createTelemetryStore.js.map +1 -0
  207. package/dist/util/telemetry/createTraceId.js +10 -0
  208. package/dist/util/telemetry/createTraceId.js.map +1 -0
  209. package/dist/util/telemetry/findTelemetryFiles.js +35 -0
  210. package/dist/util/telemetry/findTelemetryFiles.js.map +1 -0
  211. package/dist/util/telemetry/flushTelemetryFiles.js +118 -0
  212. package/dist/util/telemetry/flushTelemetryFiles.js.map +1 -0
  213. package/dist/util/telemetry/generateTelemetryFilePath.js +30 -0
  214. package/dist/util/telemetry/generateTelemetryFilePath.js.map +1 -0
  215. package/dist/util/telemetry/logger.js +59 -0
  216. package/dist/util/telemetry/logger.js.map +1 -0
  217. package/dist/util/telemetry/readNDJSON.js +28 -0
  218. package/dist/util/telemetry/readNDJSON.js.map +1 -0
  219. package/dist/util/telemetry/telemetryStoreDebug.js +7 -0
  220. package/dist/util/telemetry/telemetryStoreDebug.js.map +1 -0
  221. package/dist/util/telemetry/trace.js +150 -0
  222. package/dist/util/telemetry/trace.js.map +1 -0
  223. package/dist/util/update/updateChecker.js +2 -1
  224. package/dist/util/update/updateChecker.js.map +1 -1
  225. package/oclif.manifest.json +966 -529
  226. package/package.json +19 -22
  227. package/dist/actions/auth/login/promptProviders.js.map +0 -1
package/README.md CHANGED
@@ -119,11 +119,14 @@ Disable backup for a dataset.
119
119
 
120
120
  ```
121
121
  USAGE
122
- $ sanity backup disable [DATASET]
122
+ $ sanity backup disable [DATASET] [-p <id>]
123
123
 
124
124
  ARGUMENTS
125
125
  [DATASET] Dataset name to disable backup for
126
126
 
127
+ OVERRIDE FLAGS
128
+ -p, --project-id=<id> Project ID to disable backups for (overrides CLI configuration)
129
+
127
130
  DESCRIPTION
128
131
  Disable backup for a dataset.
129
132
 
@@ -137,7 +140,7 @@ EXAMPLES
137
140
  $ sanity backup disable production
138
141
  ```
139
142
 
140
- _See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/backup/disable.ts)_
143
+ _See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/backup/disable.ts)_
141
144
 
142
145
  ## `sanity backup download [DATASET]`
143
146
 
@@ -145,7 +148,8 @@ Download a dataset backup to a local file.
145
148
 
146
149
  ```
147
150
  USAGE
148
- $ sanity backup download [DATASET] [--backup-id <value>] [--concurrency <value>] [--out <value>] [--overwrite]
151
+ $ sanity backup download [DATASET] [-p <id>] [--backup-id <value>] [--concurrency <value>] [--out <value>]
152
+ [--overwrite]
149
153
 
150
154
  ARGUMENTS
151
155
  [DATASET] Dataset name to download backup from
@@ -156,6 +160,9 @@ FLAGS
156
160
  --out=<value> The file or directory path the backup should download to
157
161
  --overwrite Allows overwriting of existing backup file
158
162
 
163
+ OVERRIDE FLAGS
164
+ -p, --project-id=<id> Project ID to download backup from (overrides CLI configuration)
165
+
159
166
  DESCRIPTION
160
167
  Download a dataset backup to a local file.
161
168
 
@@ -177,7 +184,7 @@ EXAMPLES
177
184
  $ sanity backup download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
178
185
  ```
179
186
 
180
- _See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/backup/download.ts)_
187
+ _See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/backup/download.ts)_
181
188
 
182
189
  ## `sanity backup enable [DATASET]`
183
190
 
@@ -185,11 +192,14 @@ Enable backup for a dataset.
185
192
 
186
193
  ```
187
194
  USAGE
188
- $ sanity backup enable [DATASET]
195
+ $ sanity backup enable [DATASET] [-p <id>]
189
196
 
190
197
  ARGUMENTS
191
198
  [DATASET] Dataset name to enable backup for
192
199
 
200
+ OVERRIDE FLAGS
201
+ -p, --project-id=<id> Project ID to enable backups for (overrides CLI configuration)
202
+
193
203
  DESCRIPTION
194
204
  Enable backup for a dataset.
195
205
 
@@ -203,7 +213,7 @@ EXAMPLES
203
213
  $ sanity backup enable production
204
214
  ```
205
215
 
206
- _See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/backup/enable.ts)_
216
+ _See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/backup/enable.ts)_
207
217
 
208
218
  ## `sanity backup list [DATASET]`
209
219
 
@@ -211,7 +221,7 @@ List available backups for a dataset.
211
221
 
212
222
  ```
213
223
  USAGE
214
- $ sanity backup list [DATASET] [--after <value>] [--before <value>] [-l <value>]
224
+ $ sanity backup list [DATASET] [-p <id>] [--after <value>] [--before <value>] [-l <value>]
215
225
 
216
226
  ARGUMENTS
217
227
  [DATASET] Dataset name to list backups for
@@ -221,6 +231,9 @@ FLAGS
221
231
  --after=<value> Only return backups after this date (inclusive, YYYY-MM-DD format)
222
232
  --before=<value> Only return backups before this date (exclusive, YYYY-MM-DD format)
223
233
 
234
+ OVERRIDE FLAGS
235
+ -p, --project-id=<id> Project ID to list backups for (overrides CLI configuration)
236
+
224
237
  DESCRIPTION
225
238
  List available backups for a dataset.
226
239
 
@@ -242,7 +255,7 @@ EXAMPLES
242
255
  $ sanity backup list production --after 2024-01-31 --limit 10
243
256
  ```
244
257
 
245
- _See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/backup/list.ts)_
258
+ _See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/backup/list.ts)_
246
259
 
247
260
  ## `sanity blueprints add TYPE`
248
261
 
@@ -251,9 +264,9 @@ Add a function resource to a Blueprint
251
264
  ```
252
265
  USAGE
253
266
  $ sanity blueprints add TYPE [--example <value> | -n <value> | --fn-type
254
- document-create|document-delete|document-update|document-publish|media-library-asset-create|media-library-asset-upda
255
- te|media-library-asset-delete... | --language ts|js | --javascript | --fn-helpers | --fn-installer
256
- skip|npm|pnpm|yarn] [-i | ]
267
+ document-publish|document-create|document-update|document-delete|media-library-asset-create|media-library-asset-upda
268
+ te|media-library-asset-delete|scheduled-function... | --language ts|js | --javascript | --fn-helpers |
269
+ --fn-installer skip|npm|pnpm|yarn] [-i | ]
257
270
 
258
271
  ARGUMENTS
259
272
  TYPE (function) Type of resource to add (only "function" is supported)
@@ -268,8 +281,8 @@ FLAGS
268
281
  <options: skip|npm|pnpm|yarn>
269
282
  --fn-type=<option>... Document change event(s) that should trigger the function; you can specify multiple
270
283
  events by specifying this flag multiple times
271
- <options: document-create|document-delete|document-update|document-publish|media-library-
272
- asset-create|media-library-asset-update|media-library-asset-delete>
284
+ <options: document-publish|document-create|document-update|document-delete|media-library-
285
+ asset-create|media-library-asset-update|media-library-asset-delete|scheduled-function>
273
286
  --javascript Use JavaScript instead of TypeScript
274
287
  --language=<option> [default: ts] Language of the new function
275
288
  <options: ts|js>
@@ -294,7 +307,7 @@ EXAMPLES
294
307
  $ sanity blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
295
308
  ```
296
309
 
297
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/add.ts)_
310
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/add.ts)_
298
311
 
299
312
  ## `sanity blueprints config`
300
313
 
@@ -329,7 +342,7 @@ EXAMPLES
329
342
  $ sanity blueprints config --edit --project-id <projectId> --stack <name-or-id>
330
343
  ```
331
344
 
332
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/config.ts)_
345
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/config.ts)_
333
346
 
334
347
  ## `sanity blueprints deploy`
335
348
 
@@ -362,7 +375,7 @@ EXAMPLES
362
375
  $ sanity blueprints deploy --no-wait
363
376
  ```
364
377
 
365
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/deploy.ts)_
378
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/deploy.ts)_
366
379
 
367
380
  ## `sanity blueprints destroy`
368
381
 
@@ -394,7 +407,7 @@ EXAMPLES
394
407
  $ sanity blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
395
408
  ```
396
409
 
397
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/destroy.ts)_
410
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/destroy.ts)_
398
411
 
399
412
  ## `sanity blueprints doctor`
400
413
 
@@ -420,7 +433,7 @@ DESCRIPTION
420
433
  issues.
421
434
  ```
422
435
 
423
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/doctor.ts)_
436
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/doctor.ts)_
424
437
 
425
438
  ## `sanity blueprints info`
426
439
 
@@ -450,7 +463,7 @@ EXAMPLES
450
463
  $ sanity blueprints info --stack <name-or-id>
451
464
  ```
452
465
 
453
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/info.ts)_
466
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/info.ts)_
454
467
 
455
468
  ## `sanity blueprints init [DIR]`
456
469
 
@@ -500,7 +513,7 @@ EXAMPLES
500
513
  $ sanity blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
501
514
  ```
502
515
 
503
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/init.ts)_
516
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/init.ts)_
504
517
 
505
518
  ## `sanity blueprints logs`
506
519
 
@@ -529,7 +542,7 @@ EXAMPLES
529
542
  $ sanity blueprints logs --watch
530
543
  ```
531
544
 
532
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/logs.ts)_
545
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/logs.ts)_
533
546
 
534
547
  ## `sanity blueprints plan`
535
548
 
@@ -555,7 +568,7 @@ EXAMPLES
555
568
  $ sanity blueprints plan
556
569
  ```
557
570
 
558
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/plan.ts)_
571
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/plan.ts)_
559
572
 
560
573
  ## `sanity blueprints stacks`
561
574
 
@@ -584,7 +597,7 @@ EXAMPLES
584
597
  $ sanity blueprints stacks --organization-id <organizationId>
585
598
  ```
586
599
 
587
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/blueprints/stacks.ts)_
600
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/blueprints/stacks.ts)_
588
601
 
589
602
  ## `sanity build [OUTPUTDIR]`
590
603
 
@@ -613,7 +626,7 @@ EXAMPLES
613
626
  $ sanity build --no-minify --source-maps
614
627
  ```
615
628
 
616
- _See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/build.ts)_
629
+ _See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/build.ts)_
617
630
 
618
631
  ## `sanity codemod [CODEMODNAME]`
619
632
 
@@ -644,7 +657,7 @@ EXAMPLES
644
657
  $ sanity codemod reactIconsV3 --dry
645
658
  ```
646
659
 
647
- _See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/codemod.ts)_
660
+ _See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/codemod.ts)_
648
661
 
649
662
  ## `sanity cors add ORIGIN`
650
663
 
@@ -652,7 +665,7 @@ Allow a new origin to use your project API through CORS
652
665
 
653
666
  ```
654
667
  USAGE
655
- $ sanity cors add ORIGIN [--credentials]
668
+ $ sanity cors add ORIGIN [-p <id>] [--credentials]
656
669
 
657
670
  ARGUMENTS
658
671
  ORIGIN Origin to allow (e.g., https://example.com)
@@ -660,6 +673,9 @@ ARGUMENTS
660
673
  FLAGS
661
674
  --[no-]credentials Allow credentials (token/cookie) to be sent from this origin
662
675
 
676
+ OVERRIDE FLAGS
677
+ -p, --project-id=<id> Project ID to add CORS origin to (overrides CLI configuration)
678
+
663
679
  DESCRIPTION
664
680
  Allow a new origin to use your project API through CORS
665
681
 
@@ -675,9 +691,13 @@ EXAMPLES
675
691
  Add a production origin with credentials allowed
676
692
 
677
693
  $ sanity cors add https://myapp.com --credentials
694
+
695
+ Add a CORS origin for a specific project
696
+
697
+ $ sanity cors add https://myapp.com --project-id abc123
678
698
  ```
679
699
 
680
- _See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/cors/add.ts)_
700
+ _See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/cors/add.ts)_
681
701
 
682
702
  ## `sanity cors delete [ORIGIN]`
683
703
 
@@ -685,11 +705,14 @@ Delete an existing CORS origin from your project
685
705
 
686
706
  ```
687
707
  USAGE
688
- $ sanity cors delete [ORIGIN]
708
+ $ sanity cors delete [ORIGIN] [-p <id>]
689
709
 
690
710
  ARGUMENTS
691
711
  [ORIGIN] Origin to delete (will prompt if not provided)
692
712
 
713
+ OVERRIDE FLAGS
714
+ -p, --project-id=<id> Project ID to delete CORS origin from (overrides CLI configuration)
715
+
693
716
  DESCRIPTION
694
717
  Delete an existing CORS origin from your project
695
718
 
@@ -701,9 +724,13 @@ EXAMPLES
701
724
  Delete a specific CORS origin
702
725
 
703
726
  $ sanity cors delete https://example.com
727
+
728
+ Delete a CORS origin from a specific project
729
+
730
+ $ sanity cors delete --project-id abc123
704
731
  ```
705
732
 
706
- _See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/cors/delete.ts)_
733
+ _See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/cors/delete.ts)_
707
734
 
708
735
  ## `sanity cors list`
709
736
 
@@ -711,7 +738,10 @@ List all origins allowed to access the API for this project
711
738
 
712
739
  ```
713
740
  USAGE
714
- $ sanity cors list
741
+ $ sanity cors list [-p <id>]
742
+
743
+ OVERRIDE FLAGS
744
+ -p, --project-id=<id> Project ID to list CORS origins for (overrides CLI configuration)
715
745
 
716
746
  DESCRIPTION
717
747
  List all origins allowed to access the API for this project
@@ -720,9 +750,13 @@ EXAMPLES
720
750
  List CORS origins for the current project
721
751
 
722
752
  $ sanity cors list
753
+
754
+ List CORS origins for a specific project
755
+
756
+ $ sanity cors list --project-id abc123
723
757
  ```
724
758
 
725
- _See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/cors/list.ts)_
759
+ _See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/cors/list.ts)_
726
760
 
727
761
  ## `sanity dataset alias create [ALIASNAME] [TARGETDATASET]`
728
762
 
@@ -730,14 +764,14 @@ Create a dataset alias within your project
730
764
 
731
765
  ```
732
766
  USAGE
733
- $ sanity dataset alias create [ALIASNAME] [TARGETDATASET] [-p <value>]
767
+ $ sanity dataset alias create [ALIASNAME] [TARGETDATASET] [-p <id>]
734
768
 
735
769
  ARGUMENTS
736
770
  [ALIASNAME] Dataset alias name to create
737
771
  [TARGETDATASET] Target dataset name to link the alias to
738
772
 
739
- FLAGS
740
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
773
+ OVERRIDE FLAGS
774
+ -p, --project-id=<id> Project ID to create dataset alias in (overrides CLI configuration)
741
775
 
742
776
  DESCRIPTION
743
777
  Create a dataset alias within your project
@@ -764,7 +798,7 @@ EXAMPLES
764
798
  $ sanity dataset alias create ~conference conf-2025
765
799
  ```
766
800
 
767
- _See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/alias/create.ts)_
801
+ _See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/alias/create.ts)_
768
802
 
769
803
  ## `sanity dataset alias delete ALIASNAME`
770
804
 
@@ -772,14 +806,16 @@ Delete a dataset alias within your project
772
806
 
773
807
  ```
774
808
  USAGE
775
- $ sanity dataset alias delete ALIASNAME [-p <value>] [--force]
809
+ $ sanity dataset alias delete ALIASNAME [-p <id>] [--force]
776
810
 
777
811
  ARGUMENTS
778
812
  ALIASNAME Dataset alias name to delete
779
813
 
780
814
  FLAGS
781
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
782
- --force Skip confirmation prompt and delete immediately
815
+ --force Skip confirmation prompt and delete immediately
816
+
817
+ OVERRIDE FLAGS
818
+ -p, --project-id=<id> Project ID to delete dataset alias from (overrides CLI configuration)
783
819
 
784
820
  DESCRIPTION
785
821
  Delete a dataset alias within your project
@@ -798,7 +834,7 @@ EXAMPLES
798
834
  $ sanity dataset alias delete conference --force
799
835
  ```
800
836
 
801
- _See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/alias/delete.ts)_
837
+ _See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/alias/delete.ts)_
802
838
 
803
839
  ## `sanity dataset alias link [ALIASNAME] [TARGETDATASET]`
804
840
 
@@ -806,15 +842,17 @@ Link a dataset alias to a dataset within your project
806
842
 
807
843
  ```
808
844
  USAGE
809
- $ sanity dataset alias link [ALIASNAME] [TARGETDATASET] [-p <value>] [--force]
845
+ $ sanity dataset alias link [ALIASNAME] [TARGETDATASET] [-p <id>] [--force]
810
846
 
811
847
  ARGUMENTS
812
848
  [ALIASNAME] Dataset alias name to link
813
849
  [TARGETDATASET] Target dataset name to link the alias to
814
850
 
815
851
  FLAGS
816
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
817
- --force Skip confirmation prompt when relinking existing alias
852
+ --force Skip confirmation prompt when relinking existing alias
853
+
854
+ OVERRIDE FLAGS
855
+ -p, --project-id=<id> Project ID to link dataset alias in (overrides CLI configuration)
818
856
 
819
857
  DESCRIPTION
820
858
  Link a dataset alias to a dataset within your project
@@ -841,7 +879,7 @@ EXAMPLES
841
879
  $ sanity dataset alias link conference conf-2025 --force
842
880
  ```
843
881
 
844
- _See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/alias/link.ts)_
882
+ _See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/alias/link.ts)_
845
883
 
846
884
  ## `sanity dataset alias unlink [ALIASNAME]`
847
885
 
@@ -849,14 +887,16 @@ Unlink a dataset alias from its dataset within your project
849
887
 
850
888
  ```
851
889
  USAGE
852
- $ sanity dataset alias unlink [ALIASNAME] [-p <value>] [--force]
890
+ $ sanity dataset alias unlink [ALIASNAME] [-p <id>] [--force]
853
891
 
854
892
  ARGUMENTS
855
893
  [ALIASNAME] Dataset alias name to unlink
856
894
 
857
895
  FLAGS
858
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
859
- --force Skip confirmation prompt and unlink immediately
896
+ --force Skip confirmation prompt and unlink immediately
897
+
898
+ OVERRIDE FLAGS
899
+ -p, --project-id=<id> Project ID to unlink dataset alias in (overrides CLI configuration)
860
900
 
861
901
  DESCRIPTION
862
902
  Unlink a dataset alias from its dataset within your project
@@ -879,7 +919,7 @@ EXAMPLES
879
919
  $ sanity dataset alias unlink conference --force
880
920
  ```
881
921
 
882
- _See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/alias/unlink.ts)_
922
+ _See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/alias/unlink.ts)_
883
923
 
884
924
  ## `sanity dataset copy [SOURCE] [TARGET]`
885
925
 
@@ -887,7 +927,7 @@ Manages dataset copying, including starting a new copy job, listing copy jobs an
887
927
 
888
928
  ```
889
929
  USAGE
890
- $ sanity dataset copy [SOURCE] [TARGET] [-p <value>] [--attach <value> | --list | --detach | --skip-history]
930
+ $ sanity dataset copy [SOURCE] [TARGET] [-p <id>] [--attach <value> | --list | --detach | --skip-history]
891
931
  [--limit <value> ] [--offset <value> ]
892
932
 
893
933
  ARGUMENTS
@@ -895,13 +935,15 @@ ARGUMENTS
895
935
  [TARGET] Name of the dataset to copy to
896
936
 
897
937
  FLAGS
898
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
899
- --attach=<value> Attach to the running copy process to show progress
900
- --detach Start the copy without waiting for it to finish
901
- --limit=<value> Maximum number of jobs returned (default 10, max 1000)
902
- --list Lists all dataset copy jobs
903
- --offset=<value> Start position in the list of jobs (default 0)
904
- --skip-history Don't preserve document history on copy
938
+ --attach=<value> Attach to the running copy process to show progress
939
+ --detach Start the copy without waiting for it to finish
940
+ --limit=<value> Maximum number of jobs returned (default 10, max 1000)
941
+ --list Lists all dataset copy jobs
942
+ --offset=<value> Start position in the list of jobs (default 0)
943
+ --skip-history Don't preserve document history on copy
944
+
945
+ OVERRIDE FLAGS
946
+ -p, --project-id=<id> Project ID to copy dataset in (overrides CLI configuration)
905
947
 
906
948
  DESCRIPTION
907
949
  Manages dataset copying, including starting a new copy job, listing copy jobs and following the progress of a running
@@ -941,7 +983,7 @@ EXAMPLES
941
983
  $ sanity dataset copy --list --offset 2 --limit 10
942
984
  ```
943
985
 
944
- _See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/copy.ts)_
986
+ _See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/copy.ts)_
945
987
 
946
988
  ## `sanity dataset create [NAME]`
947
989
 
@@ -949,18 +991,20 @@ Create a new dataset within your project
949
991
 
950
992
  ```
951
993
  USAGE
952
- $ sanity dataset create [NAME] [-p <value>] [--embeddings-projection <value> --embeddings] [--visibility
994
+ $ sanity dataset create [NAME] [-p <id>] [--embeddings-projection <value> --embeddings] [--visibility
953
995
  custom|private|public]
954
996
 
955
997
  ARGUMENTS
956
998
  [NAME] Name of the dataset to create
957
999
 
958
1000
  FLAGS
959
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
960
- --embeddings Enable embeddings for this dataset
961
- --embeddings-projection=<value> GROQ projection for embeddings indexing (e.g. "{ title, body }")
962
- --visibility=<option> Set visibility for this dataset (custom/private/public)
963
- <options: custom|private|public>
1001
+ --embeddings Enable embeddings for this dataset
1002
+ --embeddings-projection=<value> GROQ projection for embeddings indexing (e.g. "{ title, body }")
1003
+ --visibility=<option> Set visibility for this dataset (custom/private/public)
1004
+ <options: custom|private|public>
1005
+
1006
+ OVERRIDE FLAGS
1007
+ -p, --project-id=<id> Project ID to create dataset in (overrides CLI configuration)
964
1008
 
965
1009
  DESCRIPTION
966
1010
  Create a new dataset within your project
@@ -979,7 +1023,7 @@ EXAMPLES
979
1023
  $ sanity dataset create my-dataset --visibility private
980
1024
  ```
981
1025
 
982
- _See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/create.ts)_
1026
+ _See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/create.ts)_
983
1027
 
984
1028
  ## `sanity dataset delete DATASETNAME`
985
1029
 
@@ -987,14 +1031,16 @@ Delete a dataset within your project
987
1031
 
988
1032
  ```
989
1033
  USAGE
990
- $ sanity dataset delete DATASETNAME [-p <value>] [--force]
1034
+ $ sanity dataset delete DATASETNAME [-p <id>] [--force]
991
1035
 
992
1036
  ARGUMENTS
993
1037
  DATASETNAME Dataset name to delete
994
1038
 
995
1039
  FLAGS
996
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
997
- --force Do not prompt for delete confirmation - forcefully delete
1040
+ --force Do not prompt for delete confirmation - forcefully delete
1041
+
1042
+ OVERRIDE FLAGS
1043
+ -p, --project-id=<id> Project ID to delete dataset from (overrides CLI configuration)
998
1044
 
999
1045
  DESCRIPTION
1000
1046
  Delete a dataset within your project
@@ -1009,7 +1055,7 @@ EXAMPLES
1009
1055
  $ sanity dataset delete my-dataset --force
1010
1056
  ```
1011
1057
 
1012
- _See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/delete.ts)_
1058
+ _See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/delete.ts)_
1013
1059
 
1014
1060
  ## `sanity dataset embeddings disable [DATASET]`
1015
1061
 
@@ -1017,13 +1063,13 @@ Disable embeddings for a dataset
1017
1063
 
1018
1064
  ```
1019
1065
  USAGE
1020
- $ sanity dataset embeddings disable [DATASET] [-p <value>]
1066
+ $ sanity dataset embeddings disable [DATASET] [-p <id>]
1021
1067
 
1022
1068
  ARGUMENTS
1023
1069
  [DATASET] Dataset name to disable embeddings for
1024
1070
 
1025
- FLAGS
1026
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1071
+ OVERRIDE FLAGS
1072
+ -p, --project-id=<id> Project ID to disable embeddings for (overrides CLI configuration)
1027
1073
 
1028
1074
  DESCRIPTION
1029
1075
  Disable embeddings for a dataset
@@ -1034,7 +1080,7 @@ EXAMPLES
1034
1080
  $ sanity dataset embeddings disable production
1035
1081
  ```
1036
1082
 
1037
- _See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/embeddings/disable.ts)_
1083
+ _See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/embeddings/disable.ts)_
1038
1084
 
1039
1085
  ## `sanity dataset embeddings enable [DATASET]`
1040
1086
 
@@ -1042,15 +1088,17 @@ Enable embeddings for a dataset
1042
1088
 
1043
1089
  ```
1044
1090
  USAGE
1045
- $ sanity dataset embeddings enable [DATASET] [-p <value>] [--projection <value>] [--wait]
1091
+ $ sanity dataset embeddings enable [DATASET] [-p <id>] [--projection <value>] [--wait]
1046
1092
 
1047
1093
  ARGUMENTS
1048
1094
  [DATASET] Dataset name to enable embeddings for
1049
1095
 
1050
1096
  FLAGS
1051
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1052
- --projection=<value> GROQ projection defining which fields to embed (e.g. "{ title, body }")
1053
- --wait Wait for embeddings processing to complete before returning
1097
+ --projection=<value> GROQ projection defining which fields to embed (e.g. "{ title, body }")
1098
+ --wait Wait for embeddings processing to complete before returning
1099
+
1100
+ OVERRIDE FLAGS
1101
+ -p, --project-id=<id> Project ID to enable embeddings for (overrides CLI configuration)
1054
1102
 
1055
1103
  DESCRIPTION
1056
1104
  Enable embeddings for a dataset
@@ -1069,7 +1117,7 @@ EXAMPLES
1069
1117
  $ sanity dataset embeddings enable production --wait
1070
1118
  ```
1071
1119
 
1072
- _See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/embeddings/enable.ts)_
1120
+ _See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/embeddings/enable.ts)_
1073
1121
 
1074
1122
  ## `sanity dataset embeddings status [DATASET]`
1075
1123
 
@@ -1077,13 +1125,13 @@ Show embeddings settings and status for a dataset
1077
1125
 
1078
1126
  ```
1079
1127
  USAGE
1080
- $ sanity dataset embeddings status [DATASET] [-p <value>]
1128
+ $ sanity dataset embeddings status [DATASET] [-p <id>]
1081
1129
 
1082
1130
  ARGUMENTS
1083
1131
  [DATASET] The name of the dataset to check embeddings status for
1084
1132
 
1085
- FLAGS
1086
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1133
+ OVERRIDE FLAGS
1134
+ -p, --project-id=<id> Project ID to check embeddings status for (overrides CLI configuration)
1087
1135
 
1088
1136
  DESCRIPTION
1089
1137
  Show embeddings settings and status for a dataset
@@ -1094,7 +1142,7 @@ EXAMPLES
1094
1142
  $ sanity dataset embeddings status production
1095
1143
  ```
1096
1144
 
1097
- _See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/embeddings/status.ts)_
1145
+ _See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/embeddings/status.ts)_
1098
1146
 
1099
1147
  ## `sanity dataset export [NAME] [DESTINATION]`
1100
1148
 
@@ -1102,7 +1150,7 @@ Export dataset to local filesystem as a gzipped tarball. Assets failing with HTT
1102
1150
 
1103
1151
  ```
1104
1152
  USAGE
1105
- $ sanity dataset export [NAME] [DESTINATION] [-p <value>] [--asset-concurrency <value>] [--mode stream|cursor]
1153
+ $ sanity dataset export [NAME] [DESTINATION] [-p <id>] [--asset-concurrency <value>] [--mode stream|cursor]
1106
1154
  [--no-assets] [--no-compress] [--no-drafts] [--overwrite] [--raw] [--types <value>]
1107
1155
 
1108
1156
  ARGUMENTS
@@ -1110,18 +1158,20 @@ ARGUMENTS
1110
1158
  [DESTINATION] Output destination file path
1111
1159
 
1112
1160
  FLAGS
1113
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1114
- --asset-concurrency=<value> [default: 8] Concurrent number of asset downloads
1115
- --mode=<option> [default: stream] Mode to export documents with `cursor` might be more performant for
1116
- larger datasets, but might not be as accurate if the dataset is being modified during
1117
- export
1118
- <options: stream|cursor>
1119
- --no-assets Export only non-asset documents and remove references to image assets
1120
- --no-compress Skips compressing tarball entries (still generates a gzip file)
1121
- --no-drafts Export only published versions of documents
1122
- --overwrite Overwrite any file with the same name
1123
- --raw Extract only documents, without rewriting asset references
1124
- --types=<value> Defines which document types to export (comma-separated)
1161
+ --asset-concurrency=<value> [default: 8] Concurrent number of asset downloads
1162
+ --mode=<option> [default: stream] Mode to export documents with `cursor` might be more performant for
1163
+ larger datasets, but might not be as accurate if the dataset is being modified during
1164
+ export
1165
+ <options: stream|cursor>
1166
+ --no-assets Export only non-asset documents and remove references to image assets
1167
+ --no-compress Skips compressing tarball entries (still generates a gzip file)
1168
+ --no-drafts Export only published versions of documents
1169
+ --overwrite Overwrite any file with the same name
1170
+ --raw Extract only documents, without rewriting asset references
1171
+ --types=<value> Defines which document types to export (comma-separated)
1172
+
1173
+ OVERRIDE FLAGS
1174
+ -p, --project-id=<id> Project ID to export dataset from (overrides CLI configuration)
1125
1175
 
1126
1176
  DESCRIPTION
1127
1177
  Export dataset to local filesystem as a gzipped tarball. Assets failing with HTTP status codes 401, 403 and 404 upon
@@ -1145,7 +1195,7 @@ EXAMPLES
1145
1195
  $ sanity dataset export staging staging.tar.gz --types products,shops
1146
1196
  ```
1147
1197
 
1148
- _See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/export.ts)_
1198
+ _See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/export.ts)_
1149
1199
 
1150
1200
  ## `sanity dataset import SOURCE`
1151
1201
 
@@ -1187,7 +1237,7 @@ EXAMPLES
1187
1237
  cat my-dataset.ndjson | sanity dataset import -p myPrOj -d test -
1188
1238
  ```
1189
1239
 
1190
- _See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/import.ts)_
1240
+ _See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/import.ts)_
1191
1241
 
1192
1242
  ## `sanity dataset list`
1193
1243
 
@@ -1195,10 +1245,10 @@ List datasets of your project
1195
1245
 
1196
1246
  ```
1197
1247
  USAGE
1198
- $ sanity dataset list [-p <value>]
1248
+ $ sanity dataset list [-p <id>]
1199
1249
 
1200
- FLAGS
1201
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1250
+ OVERRIDE FLAGS
1251
+ -p, --project-id=<id> Project ID to list datasets for (overrides CLI configuration)
1202
1252
 
1203
1253
  DESCRIPTION
1204
1254
  List datasets of your project
@@ -1213,7 +1263,7 @@ EXAMPLES
1213
1263
  $ sanity dataset list --project-id abc123
1214
1264
  ```
1215
1265
 
1216
- _See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/list.ts)_
1266
+ _See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/list.ts)_
1217
1267
 
1218
1268
  ## `sanity dataset visibility get DATASET`
1219
1269
 
@@ -1221,13 +1271,13 @@ Get the visibility of a dataset
1221
1271
 
1222
1272
  ```
1223
1273
  USAGE
1224
- $ sanity dataset visibility get DATASET [-p <value>]
1274
+ $ sanity dataset visibility get DATASET [-p <id>]
1225
1275
 
1226
1276
  ARGUMENTS
1227
1277
  DATASET The name of the dataset to get visibility for
1228
1278
 
1229
- FLAGS
1230
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1279
+ OVERRIDE FLAGS
1280
+ -p, --project-id=<id> Project ID to get dataset visibility for (overrides CLI configuration)
1231
1281
 
1232
1282
  DESCRIPTION
1233
1283
  Get the visibility of a dataset
@@ -1238,7 +1288,7 @@ EXAMPLES
1238
1288
  $ sanity dataset visibility get my-dataset
1239
1289
  ```
1240
1290
 
1241
- _See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/visibility/get.ts)_
1291
+ _See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/visibility/get.ts)_
1242
1292
 
1243
1293
  ## `sanity dataset visibility set DATASET MODE`
1244
1294
 
@@ -1246,14 +1296,14 @@ Set the visibility of a dataset
1246
1296
 
1247
1297
  ```
1248
1298
  USAGE
1249
- $ sanity dataset visibility set DATASET MODE [-p <value>]
1299
+ $ sanity dataset visibility set DATASET MODE [-p <id>]
1250
1300
 
1251
1301
  ARGUMENTS
1252
1302
  DATASET The name of the dataset to set visibility for
1253
1303
  MODE (public|private) The visibility mode to set
1254
1304
 
1255
- FLAGS
1256
- -p, --project-id=<value> Project ID to use. Overrides the project ID from the Sanity config.
1305
+ OVERRIDE FLAGS
1306
+ -p, --project-id=<id> Project ID to set dataset visibility for (overrides CLI configuration)
1257
1307
 
1258
1308
  DESCRIPTION
1259
1309
  Set the visibility of a dataset
@@ -1268,7 +1318,7 @@ EXAMPLES
1268
1318
  $ sanity dataset visibility set my-dataset public
1269
1319
  ```
1270
1320
 
1271
- _See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dataset/visibility/set.ts)_
1321
+ _See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dataset/visibility/set.ts)_
1272
1322
 
1273
1323
  ## `sanity debug`
1274
1324
 
@@ -1290,7 +1340,7 @@ EXAMPLES
1290
1340
  $ sanity debug --secrets
1291
1341
  ```
1292
1342
 
1293
- _See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/debug.ts)_
1343
+ _See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/debug.ts)_
1294
1344
 
1295
1345
  ## `sanity deploy [SOURCEDIR]`
1296
1346
 
@@ -1330,7 +1380,7 @@ EXAMPLES
1330
1380
  $ sanity deploy --schema-required
1331
1381
  ```
1332
1382
 
1333
- _See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/deploy.ts)_
1383
+ _See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/deploy.ts)_
1334
1384
 
1335
1385
  ## `sanity dev`
1336
1386
 
@@ -1357,7 +1407,7 @@ EXAMPLES
1357
1407
  $ sanity dev --load-in-dashboard
1358
1408
  ```
1359
1409
 
1360
- _See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/dev.ts)_
1410
+ _See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/dev.ts)_
1361
1411
 
1362
1412
  ## `sanity docs browse`
1363
1413
 
@@ -1371,7 +1421,7 @@ DESCRIPTION
1371
1421
  Open Sanity docs in a web browser
1372
1422
  ```
1373
1423
 
1374
- _See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/docs/browse.ts)_
1424
+ _See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/docs/browse.ts)_
1375
1425
 
1376
1426
  ## `sanity docs read PATH`
1377
1427
 
@@ -1408,7 +1458,7 @@ EXAMPLES
1408
1458
  $ sanity docs read https://www.sanity.io/docs/studio/installation -w
1409
1459
  ```
1410
1460
 
1411
- _See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/docs/read.ts)_
1461
+ _See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/docs/read.ts)_
1412
1462
 
1413
1463
  ## `sanity docs search QUERY`
1414
1464
 
@@ -1441,7 +1491,7 @@ EXAMPLES
1441
1491
  $ sanity docs search "deployment" --limit=5
1442
1492
  ```
1443
1493
 
1444
- _See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/docs/search.ts)_
1494
+ _See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/docs/search.ts)_
1445
1495
 
1446
1496
  ## `sanity documents create [FILE]`
1447
1497
 
@@ -1449,18 +1499,21 @@ Create one or more documents
1449
1499
 
1450
1500
  ```
1451
1501
  USAGE
1452
- $ sanity documents create [FILE] [-d <value>] [--id <value>] [--json5] [--missing] [--replace] [--watch]
1502
+ $ sanity documents create [FILE] [-p <id>] [-d <name>] [--id <value>] [--json5] [--missing] [--replace] [--watch]
1453
1503
 
1454
1504
  ARGUMENTS
1455
1505
  [FILE] JSON file to create document(s) from
1456
1506
 
1457
1507
  FLAGS
1458
- -d, --dataset=<value> Dataset to create document(s) in (overrides config)
1459
- --id=<value> Specify a document ID to use. Will fetch remote document ID and populate editor.
1460
- --json5 Use JSON5 file type to allow a "simplified" version of JSON
1461
- --missing On duplicate document IDs, don't modify the target document(s)
1462
- --replace On duplicate document IDs, replace existing document with specified document(s)
1463
- --watch Write the documents whenever the target file or buffer changes
1508
+ --id=<value> Specify a document ID to use. Will fetch remote document ID and populate editor.
1509
+ --json5 Use JSON5 file type to allow a "simplified" version of JSON
1510
+ --missing On duplicate document IDs, don't modify the target document(s)
1511
+ --replace On duplicate document IDs, replace existing document with specified document(s)
1512
+ --watch Write the documents whenever the target file or buffer changes
1513
+
1514
+ OVERRIDE FLAGS
1515
+ -d, --dataset=<name> Dataset to create document(s) in (overrides CLI configuration)
1516
+ -p, --project-id=<id> Project ID to create document(s) in (overrides CLI configuration)
1464
1517
 
1465
1518
  DESCRIPTION
1466
1519
  Create one or more documents
@@ -1483,9 +1536,13 @@ EXAMPLES
1483
1536
  parser for simplified syntax.
1484
1537
 
1485
1538
  $ sanity documents create --id myDocId --watch --replace --json5
1539
+
1540
+ Create documents in a specific project
1541
+
1542
+ $ sanity documents create myDocument.json --project-id abc123
1486
1543
  ```
1487
1544
 
1488
- _See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/documents/create.ts)_
1545
+ _See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/documents/create.ts)_
1489
1546
 
1490
1547
  ## `sanity documents delete ID [IDS]`
1491
1548
 
@@ -1493,14 +1550,15 @@ Delete one or more documents from the projects configured dataset
1493
1550
 
1494
1551
  ```
1495
1552
  USAGE
1496
- $ sanity documents delete ID... [IDS...] [--dataset <value>]
1553
+ $ sanity documents delete ID... [IDS...] [-p <id>] [-d <name>]
1497
1554
 
1498
1555
  ARGUMENTS
1499
1556
  ID... Document ID to delete
1500
1557
  [IDS...] Additional document IDs to delete
1501
1558
 
1502
- FLAGS
1503
- --dataset=<value> NAME to override dataset
1559
+ OVERRIDE FLAGS
1560
+ -d, --dataset=<name> Dataset to delete from (overrides CLI configuration)
1561
+ -p, --project-id=<id> Project ID to delete from (overrides CLI configuration)
1504
1562
 
1505
1563
  DESCRIPTION
1506
1564
  Delete one or more documents from the projects configured dataset
@@ -1521,9 +1579,13 @@ EXAMPLES
1521
1579
  Delete the document with ID "doc1" and "doc2"
1522
1580
 
1523
1581
  $ sanity documents delete doc1 doc2
1582
+
1583
+ Delete a document from a specific project
1584
+
1585
+ $ sanity documents delete myDocId --project-id abc123
1524
1586
  ```
1525
1587
 
1526
- _See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/documents/delete.ts)_
1588
+ _See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/documents/delete.ts)_
1527
1589
 
1528
1590
  ## `sanity documents get DOCUMENTID`
1529
1591
 
@@ -1531,14 +1593,17 @@ Get and print a document by ID
1531
1593
 
1532
1594
  ```
1533
1595
  USAGE
1534
- $ sanity documents get DOCUMENTID [-d <value>] [--pretty]
1596
+ $ sanity documents get DOCUMENTID [-p <id>] [-d <name>] [--pretty]
1535
1597
 
1536
1598
  ARGUMENTS
1537
1599
  DOCUMENTID Document ID to retrieve
1538
1600
 
1539
1601
  FLAGS
1540
- -d, --dataset=<value> Dataset to get document from (overrides config)
1541
- --pretty Colorize JSON output
1602
+ --pretty Colorize JSON output
1603
+
1604
+ OVERRIDE FLAGS
1605
+ -d, --dataset=<name> Dataset to get document from (overrides CLI configuration)
1606
+ -p, --project-id=<id> Project ID to get document from (overrides CLI configuration)
1542
1607
 
1543
1608
  DESCRIPTION
1544
1609
  Get and print a document by ID
@@ -1555,9 +1620,13 @@ EXAMPLES
1555
1620
  Get document from a specific dataset
1556
1621
 
1557
1622
  $ sanity documents get myDocId --dataset production
1623
+
1624
+ Get a document from a specific project
1625
+
1626
+ $ sanity documents get myDocId --project-id abc123
1558
1627
  ```
1559
1628
 
1560
- _See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/documents/get.ts)_
1629
+ _See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/documents/get.ts)_
1561
1630
 
1562
1631
  ## `sanity documents query QUERY`
1563
1632
 
@@ -1565,17 +1634,19 @@ Query for documents
1565
1634
 
1566
1635
  ```
1567
1636
  USAGE
1568
- $ sanity documents query QUERY [--anonymous] [--api-version <value>] [-d <value>] [--pretty] [-p <value>]
1637
+ $ sanity documents query QUERY [-p <id>] [-d <name>] [--anonymous] [--api-version <value>] [--pretty]
1569
1638
 
1570
1639
  ARGUMENTS
1571
1640
  QUERY GROQ query to run against the dataset
1572
1641
 
1573
1642
  FLAGS
1574
- -d, --dataset=<value> Dataset to query (overrides config)
1575
- -p, --project=<value> Project ID to query (overrides config)
1576
- --anonymous Send the query without any authorization token
1577
- --api-version=<value> [env: SANITY_CLI_QUERY_API_VERSION] API version to use (defaults to 2025-08-15)
1578
- --pretty Colorize JSON output
1643
+ --anonymous Send the query without any authorization token
1644
+ --api-version=<value> [env: SANITY_CLI_QUERY_API_VERSION] API version to use (defaults to 2025-08-15)
1645
+ --pretty Colorize JSON output
1646
+
1647
+ OVERRIDE FLAGS
1648
+ -d, --dataset=<name> Dataset to query (overrides CLI configuration)
1649
+ -p, --project-id=<id> Project ID to query (overrides CLI configuration)
1579
1650
 
1580
1651
  DESCRIPTION
1581
1652
  Query for documents
@@ -1592,9 +1663,13 @@ EXAMPLES
1592
1663
  Use API version v2021-06-07 and do a query
1593
1664
 
1594
1665
  $ sanity documents query '*[_id == "header"] { "headerText": pt::text(body) }' --api-version v2021-06-07
1666
+
1667
+ Query documents in a specific project and dataset
1668
+
1669
+ $ sanity documents query '*[_type == "post"]' --project-id abc123 --dataset production
1595
1670
  ```
1596
1671
 
1597
- _See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/documents/query.ts)_
1672
+ _See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/documents/query.ts)_
1598
1673
 
1599
1674
  ## `sanity documents validate`
1600
1675
 
@@ -1602,26 +1677,27 @@ Validate documents in a dataset against the studio schema
1602
1677
 
1603
1678
  ```
1604
1679
  USAGE
1605
- $ sanity documents validate [-d <value>] [--file <value>] [--format <value>] [--level error|warning|info]
1680
+ $ sanity documents validate [-p <id>] [-d <name>] [--file <value>] [--format <value>] [--level error|warning|info]
1606
1681
  [--max-custom-validation-concurrency <value>] [--max-fetch-concurrency <value>] [--workspace <value>] [-y]
1607
1682
 
1608
1683
  FLAGS
1609
- -d, --dataset=<value> Override the dataset used. By default, this is derived from the given
1610
- workspace
1611
1684
  -y, --yes Skips the first confirmation prompt
1612
1685
  --file=<value> Provide a path to either an .ndjson file or a tarball containing an
1613
1686
  .ndjson file
1614
1687
  --format=<value> The output format used to print the found validation markers and
1615
1688
  report progress
1616
- --level=<option> [default: warning] The minimum level reported out. Defaults to
1617
- warning
1689
+ --level=<option> [default: warning] The minimum level reported. Defaults to warning
1618
1690
  <options: error|warning|info>
1619
1691
  --max-custom-validation-concurrency=<value> [default: 5] Specify how many custom validators can run concurrently
1620
- --max-fetch-concurrency=<value> [default: 25] Specify how many `client.fetch` requests are allow
1621
- concurrency at once
1692
+ --max-fetch-concurrency=<value> [default: 25] Specify how many `client.fetch` requests are allowed to
1693
+ run concurrently
1622
1694
  --workspace=<value> The name of the workspace to use when downloading and validating all
1623
1695
  documents
1624
1696
 
1697
+ OVERRIDE FLAGS
1698
+ -d, --dataset=<name> Override the dataset used. By default, this is derived from the given workspace
1699
+ -p, --project-id=<id> Override the project ID used. By default, this is derived from the given workspace
1700
+
1625
1701
  DESCRIPTION
1626
1702
  Validate documents in a dataset against the studio schema
1627
1703
 
@@ -1641,9 +1717,13 @@ EXAMPLES
1641
1717
  Report out info level validation markers too
1642
1718
 
1643
1719
  $ sanity documents validate --level info
1720
+
1721
+ Validate documents in a specific project and dataset
1722
+
1723
+ $ sanity documents validate --project-id abc123 --dataset production
1644
1724
  ```
1645
1725
 
1646
- _See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/documents/validate.ts)_
1726
+ _See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/documents/validate.ts)_
1647
1727
 
1648
1728
  ## `sanity exec SCRIPT`
1649
1729
 
@@ -1684,7 +1764,7 @@ EXAMPLES
1684
1764
  $ sanity exec --mock-browser-env myscript.js -- --dry-run positional-argument
1685
1765
  ```
1686
1766
 
1687
- _See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/exec.ts)_
1767
+ _See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/exec.ts)_
1688
1768
 
1689
1769
  ## `sanity functions add`
1690
1770
 
@@ -1693,8 +1773,8 @@ Add a Function to your Blueprint
1693
1773
  ```
1694
1774
  USAGE
1695
1775
  $ sanity functions add [--example <value> | -n <value> | | --language ts|js | --javascript | | ] [--type
1696
- document-create|document-delete|document-update|document-publish|media-library-asset-create|media-library-asset-upda
1697
- te|media-library-asset-delete... ] [--helpers] [--installer skip|npm|pnpm|yarn] [-i | ]
1776
+ document-publish|document-create|document-update|document-delete|media-library-asset-create|media-library-asset-upda
1777
+ te|media-library-asset-delete|scheduled-function... ] [--helpers] [--installer skip|npm|pnpm|yarn] [-i | ]
1698
1778
 
1699
1779
  FLAGS
1700
1780
  -i, --install Shortcut for --fn-installer npm
@@ -1708,8 +1788,8 @@ FLAGS
1708
1788
  <options: ts|js>
1709
1789
  --type=<option>... Document change event(s) that should trigger the function; you can specify multiple events
1710
1790
  by specifying this flag multiple times
1711
- <options: document-create|document-delete|document-update|document-publish|media-library-ass
1712
- et-create|media-library-asset-update|media-library-asset-delete>
1791
+ <options: document-publish|document-create|document-update|document-delete|media-library-ass
1792
+ et-create|media-library-asset-update|media-library-asset-delete|scheduled-function>
1713
1793
 
1714
1794
  DESCRIPTION
1715
1795
  Add a Function to your Blueprint
@@ -1733,7 +1813,7 @@ EXAMPLES
1733
1813
  $ sanity functions add --name my-function --type document-create --type document-update --lang js
1734
1814
  ```
1735
1815
 
1736
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/add.ts)_
1816
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/add.ts)_
1737
1817
 
1738
1818
  ## `sanity functions dev`
1739
1819
 
@@ -1767,7 +1847,7 @@ EXAMPLES
1767
1847
  $ sanity functions dev --timeout 60
1768
1848
  ```
1769
1849
 
1770
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/dev.ts)_
1850
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/dev.ts)_
1771
1851
 
1772
1852
  ## `sanity functions env add NAME KEY VALUE`
1773
1853
 
@@ -1794,7 +1874,7 @@ EXAMPLES
1794
1874
  $ sanity functions env add MyFunction API_URL https://api.example.com/
1795
1875
  ```
1796
1876
 
1797
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/env/add.ts)_
1877
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/env/add.ts)_
1798
1878
 
1799
1879
  ## `sanity functions env list NAME`
1800
1880
 
@@ -1818,7 +1898,7 @@ EXAMPLES
1818
1898
  $ sanity functions env list MyFunction
1819
1899
  ```
1820
1900
 
1821
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/env/list.ts)_
1901
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/env/list.ts)_
1822
1902
 
1823
1903
  ## `sanity functions env remove NAME KEY`
1824
1904
 
@@ -1844,7 +1924,7 @@ EXAMPLES
1844
1924
  $ sanity functions env remove MyFunction API_URL
1845
1925
  ```
1846
1926
 
1847
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/env/remove.ts)_
1927
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/env/remove.ts)_
1848
1928
 
1849
1929
  ## `sanity functions logs [NAME]`
1850
1930
 
@@ -1884,7 +1964,7 @@ EXAMPLES
1884
1964
  $ sanity functions logs <name> --delete
1885
1965
  ```
1886
1966
 
1887
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/logs.ts)_
1967
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/logs.ts)_
1888
1968
 
1889
1969
  ## `sanity functions test [NAME]`
1890
1970
 
@@ -1938,7 +2018,7 @@ EXAMPLES
1938
2018
  $ sanity functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
1939
2019
  ```
1940
2020
 
1941
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.2.0/src/commands/functions/test.ts)_
2021
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.4.0/src/commands/functions/test.ts)_
1942
2022
 
1943
2023
  ## `sanity graphql deploy`
1944
2024
 
@@ -1946,12 +2026,11 @@ Deploy a GraphQL API from the current Sanity schema
1946
2026
 
1947
2027
  ```
1948
2028
  USAGE
1949
- $ sanity graphql deploy [--api <value>...] [--dataset <value>] [--dry-run] [--force] [--generation gen1|gen2|gen3]
2029
+ $ sanity graphql deploy [--api <value>...] [-d <name>] [--dry-run] [--force] [--generation gen1|gen2|gen3]
1950
2030
  [--non-null-document-fields] [--playground] [--tag <value>] [--with-union-cache]
1951
2031
 
1952
2032
  FLAGS
1953
2033
  --api=<value>... Only deploy API with this ID. Can be specified multiple times.
1954
- --dataset=<value> Deploy API for the given dataset
1955
2034
  --dry-run Validate defined GraphQL APIs, check for breaking changes, skip deploy
1956
2035
  --force Deploy API without confirming breaking changes
1957
2036
  --generation=<option> API generation to deploy (defaults to "gen3")
@@ -1962,6 +2041,9 @@ FLAGS
1962
2041
  --with-union-cache Enable union cache that optimizes schema generation for schemas with many self referencing
1963
2042
  types
1964
2043
 
2044
+ OVERRIDE FLAGS
2045
+ -d, --dataset=<name> Deploy API for the given dataset
2046
+
1965
2047
  DESCRIPTION
1966
2048
  Deploy a GraphQL API from the current Sanity schema
1967
2049
 
@@ -1983,7 +2065,7 @@ EXAMPLES
1983
2065
  $ sanity graphql deploy --playground
1984
2066
  ```
1985
2067
 
1986
- _See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/graphql/deploy.ts)_
2068
+ _See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/graphql/deploy.ts)_
1987
2069
 
1988
2070
  ## `sanity graphql list`
1989
2071
 
@@ -1991,7 +2073,10 @@ List all GraphQL endpoints deployed for this project
1991
2073
 
1992
2074
  ```
1993
2075
  USAGE
1994
- $ sanity graphql list
2076
+ $ sanity graphql list [-p <id>]
2077
+
2078
+ OVERRIDE FLAGS
2079
+ -p, --project-id=<id> Project ID to list GraphQL endpoints for (overrides CLI configuration)
1995
2080
 
1996
2081
  DESCRIPTION
1997
2082
  List all GraphQL endpoints deployed for this project
@@ -2000,9 +2085,13 @@ EXAMPLES
2000
2085
  List GraphQL endpoints for the current project
2001
2086
 
2002
2087
  $ sanity graphql list
2088
+
2089
+ List GraphQL endpoints for a specific project
2090
+
2091
+ $ sanity graphql list --project-id abc123
2003
2092
  ```
2004
2093
 
2005
- _See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/graphql/list.ts)_
2094
+ _See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/graphql/list.ts)_
2006
2095
 
2007
2096
  ## `sanity graphql undeploy`
2008
2097
 
@@ -2010,14 +2099,16 @@ Remove a deployed GraphQL API
2010
2099
 
2011
2100
  ```
2012
2101
  USAGE
2013
- $ sanity graphql undeploy [--api <value>] [--dataset <value>] [--force] [--project <value>] [--tag <value>]
2102
+ $ sanity graphql undeploy [--api <value> | -p <id> | ] [-d <name>] [--force] [--tag <value>]
2014
2103
 
2015
2104
  FLAGS
2016
- --api=<value> Undeploy API with this ID (project, dataset and tag flags take precedence)
2017
- --dataset=<value> Dataset to undeploy GraphQL API from
2018
- --force Skip confirmation prompt
2019
- --project=<value> Project ID to delete GraphQL API for
2020
- --tag=<value> [default: default] Tag to undeploy GraphQL API from
2105
+ --api=<value> Undeploy API with this ID
2106
+ --force Skip confirmation prompt
2107
+ --tag=<value> [default: default] Tag to undeploy GraphQL API from
2108
+
2109
+ OVERRIDE FLAGS
2110
+ -d, --dataset=<name> Dataset to undeploy GraphQL API from
2111
+ -p, --project-id=<id> Project ID to undeploy GraphQL API from (overrides CLI configuration)
2021
2112
 
2022
2113
  DESCRIPTION
2023
2114
  Remove a deployed GraphQL API
@@ -2042,9 +2133,13 @@ EXAMPLES
2042
2133
  Undeploy GraphQL API without confirmation prompt
2043
2134
 
2044
2135
  $ sanity graphql undeploy --force
2136
+
2137
+ Undeploy GraphQL API for a specific project and dataset
2138
+
2139
+ $ sanity graphql undeploy --project-id abc123 --dataset production
2045
2140
  ```
2046
2141
 
2047
- _See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/graphql/undeploy.ts)_
2142
+ _See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/graphql/undeploy.ts)_
2048
2143
 
2049
2144
  ## `sanity help [COMMAND]`
2050
2145
 
@@ -2072,11 +2167,14 @@ Print details of a given webhook delivery attempt
2072
2167
 
2073
2168
  ```
2074
2169
  USAGE
2075
- $ sanity hook attempt ATTEMPTID
2170
+ $ sanity hook attempt ATTEMPTID [-p <id>]
2076
2171
 
2077
2172
  ARGUMENTS
2078
2173
  ATTEMPTID The delivery attempt ID to get details for
2079
2174
 
2175
+ OVERRIDE FLAGS
2176
+ -p, --project-id=<id> Project ID to view webhook attempt for (overrides CLI configuration)
2177
+
2080
2178
  DESCRIPTION
2081
2179
  Print details of a given webhook delivery attempt
2082
2180
 
@@ -2084,9 +2182,13 @@ EXAMPLES
2084
2182
  Print details of webhook delivery attempt with ID abc123
2085
2183
 
2086
2184
  $ sanity hook attempt abc123
2185
+
2186
+ Get attempt details for a specific project
2187
+
2188
+ $ sanity hook attempt abc123 --project-id myproject
2087
2189
  ```
2088
2190
 
2089
- _See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/hook/attempt.ts)_
2191
+ _See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/hook/attempt.ts)_
2090
2192
 
2091
2193
  ## `sanity hook create`
2092
2194
 
@@ -2094,7 +2196,10 @@ Create a new webhook for the current project
2094
2196
 
2095
2197
  ```
2096
2198
  USAGE
2097
- $ sanity hook create
2199
+ $ sanity hook create [-p <id>]
2200
+
2201
+ OVERRIDE FLAGS
2202
+ -p, --project-id=<id> Project ID to create webhook for (overrides CLI configuration)
2098
2203
 
2099
2204
  DESCRIPTION
2100
2205
  Create a new webhook for the current project
@@ -2103,9 +2208,13 @@ EXAMPLES
2103
2208
  Create a new webhook for the current project
2104
2209
 
2105
2210
  $ sanity hook create
2211
+
2212
+ Create a webhook for a specific project
2213
+
2214
+ $ sanity hook create --project-id abc123
2106
2215
  ```
2107
2216
 
2108
- _See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/hook/create.ts)_
2217
+ _See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/hook/create.ts)_
2109
2218
 
2110
2219
  ## `sanity hook delete [NAME]`
2111
2220
 
@@ -2113,11 +2222,14 @@ Delete a hook within your project
2113
2222
 
2114
2223
  ```
2115
2224
  USAGE
2116
- $ sanity hook delete [NAME]
2225
+ $ sanity hook delete [NAME] [-p <id>]
2117
2226
 
2118
2227
  ARGUMENTS
2119
2228
  [NAME] Name of hook to delete (will prompt if not provided)
2120
2229
 
2230
+ OVERRIDE FLAGS
2231
+ -p, --project-id=<id> Project ID to delete webhook from (overrides CLI configuration)
2232
+
2121
2233
  DESCRIPTION
2122
2234
  Delete a hook within your project
2123
2235
 
@@ -2129,9 +2241,13 @@ EXAMPLES
2129
2241
  Delete a specific hook by name
2130
2242
 
2131
2243
  $ sanity hook delete my-hook
2244
+
2245
+ Delete a hook from a specific project
2246
+
2247
+ $ sanity hook delete --project-id abc123
2132
2248
  ```
2133
2249
 
2134
- _See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/hook/delete.ts)_
2250
+ _See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/hook/delete.ts)_
2135
2251
 
2136
2252
  ## `sanity hook list`
2137
2253
 
@@ -2139,7 +2255,10 @@ List hooks for a given project
2139
2255
 
2140
2256
  ```
2141
2257
  USAGE
2142
- $ sanity hook list
2258
+ $ sanity hook list [-p <id>]
2259
+
2260
+ OVERRIDE FLAGS
2261
+ -p, --project-id=<id> Project ID to list webhooks for (overrides CLI configuration)
2143
2262
 
2144
2263
  DESCRIPTION
2145
2264
  List hooks for a given project
@@ -2148,9 +2267,13 @@ EXAMPLES
2148
2267
  List hooks for a given project
2149
2268
 
2150
2269
  $ sanity hook list
2270
+
2271
+ List hooks for a specific project
2272
+
2273
+ $ sanity hook list --project-id abc123
2151
2274
  ```
2152
2275
 
2153
- _See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/hook/list.ts)_
2276
+ _See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/hook/list.ts)_
2154
2277
 
2155
2278
  ## `sanity hook logs [NAME]`
2156
2279
 
@@ -2158,7 +2281,7 @@ List latest log entries for a given hook
2158
2281
 
2159
2282
  ```
2160
2283
  USAGE
2161
- $ sanity hook logs [NAME] [--detailed]
2284
+ $ sanity hook logs [NAME] [-p <id>] [--detailed]
2162
2285
 
2163
2286
  ARGUMENTS
2164
2287
  [NAME] Name of the hook to show logs for
@@ -2166,6 +2289,9 @@ ARGUMENTS
2166
2289
  FLAGS
2167
2290
  --detailed Include detailed payload and attempts
2168
2291
 
2292
+ OVERRIDE FLAGS
2293
+ -p, --project-id=<id> Project ID to view webhook logs for (overrides CLI configuration)
2294
+
2169
2295
  DESCRIPTION
2170
2296
  List latest log entries for a given hook
2171
2297
 
@@ -2177,9 +2303,13 @@ EXAMPLES
2177
2303
  List latest log entries for a specific hook by name
2178
2304
 
2179
2305
  $ sanity hook logs [NAME]
2306
+
2307
+ List hook logs for a specific project
2308
+
2309
+ $ sanity hook logs --project-id abc123
2180
2310
  ```
2181
2311
 
2182
- _See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/hook/logs.ts)_
2312
+ _See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/hook/logs.ts)_
2183
2313
 
2184
2314
  ## `sanity init`
2185
2315
 
@@ -2248,7 +2378,7 @@ EXAMPLES
2248
2378
  --output-path /Users/espenh/movies-unlimited
2249
2379
  ```
2250
2380
 
2251
- _See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/init.ts)_
2381
+ _See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/init.ts)_
2252
2382
 
2253
2383
  ## `sanity install [PACKAGES]`
2254
2384
 
@@ -2272,7 +2402,7 @@ EXAMPLES
2272
2402
  $ sanity install some-package another-package
2273
2403
  ```
2274
2404
 
2275
- _See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/install.ts)_
2405
+ _See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/install.ts)_
2276
2406
 
2277
2407
  ## `sanity learn`
2278
2408
 
@@ -2286,7 +2416,7 @@ DESCRIPTION
2286
2416
  Opens Sanity Learn in your web browser
2287
2417
  ```
2288
2418
 
2289
- _See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/learn.ts)_
2419
+ _See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/learn.ts)_
2290
2420
 
2291
2421
  ## `sanity login`
2292
2422
 
@@ -2318,7 +2448,7 @@ EXAMPLES
2318
2448
  $ sanity login --provider github --no-open
2319
2449
  ```
2320
2450
 
2321
- _See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/login.ts)_
2451
+ _See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/login.ts)_
2322
2452
 
2323
2453
  ## `sanity logout`
2324
2454
 
@@ -2332,7 +2462,7 @@ DESCRIPTION
2332
2462
  Logs out the CLI from the current user session
2333
2463
  ```
2334
2464
 
2335
- _See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/logout.ts)_
2465
+ _See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/logout.ts)_
2336
2466
 
2337
2467
  ## `sanity manage`
2338
2468
 
@@ -2346,7 +2476,7 @@ DESCRIPTION
2346
2476
  Opens project management interface in your web browser
2347
2477
  ```
2348
2478
 
2349
- _See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/manage.ts)_
2479
+ _See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/manage.ts)_
2350
2480
 
2351
2481
  ## `sanity manifest extract`
2352
2482
 
@@ -2374,7 +2504,7 @@ EXAMPLES
2374
2504
  $ sanity manifest extract --path /public/static
2375
2505
  ```
2376
2506
 
2377
- _See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/manifest/extract.ts)_
2507
+ _See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/manifest/extract.ts)_
2378
2508
 
2379
2509
  ## `sanity mcp configure`
2380
2510
 
@@ -2393,7 +2523,7 @@ EXAMPLES
2393
2523
  $ sanity mcp configure
2394
2524
  ```
2395
2525
 
2396
- _See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/mcp/configure.ts)_
2526
+ _See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/mcp/configure.ts)_
2397
2527
 
2398
2528
  ## `sanity media create-aspect`
2399
2529
 
@@ -2412,7 +2542,7 @@ EXAMPLES
2412
2542
  $ sanity media create-aspect
2413
2543
  ```
2414
2544
 
2415
- _See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/media/create-aspect.ts)_
2545
+ _See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/media/create-aspect.ts)_
2416
2546
 
2417
2547
  ## `sanity media delete-aspect ASPECTNAME`
2418
2548
 
@@ -2420,7 +2550,7 @@ Undeploy an aspect
2420
2550
 
2421
2551
  ```
2422
2552
  USAGE
2423
- $ sanity media delete-aspect ASPECTNAME [--media-library-id <value>] [--yes]
2553
+ $ sanity media delete-aspect ASPECTNAME [-p <id>] [--media-library-id <value>] [--yes]
2424
2554
 
2425
2555
  ARGUMENTS
2426
2556
  ASPECTNAME Name of the aspect to delete
@@ -2429,6 +2559,9 @@ FLAGS
2429
2559
  --media-library-id=<value> The id of the target media library
2430
2560
  --yes Skip confirmation prompt
2431
2561
 
2562
+ OVERRIDE FLAGS
2563
+ -p, --project-id=<id> Project ID to delete media aspect from (overrides CLI configuration)
2564
+
2432
2565
  DESCRIPTION
2433
2566
  Undeploy an aspect
2434
2567
 
@@ -2438,7 +2571,7 @@ EXAMPLES
2438
2571
  $ sanity media delete-aspect someAspect
2439
2572
  ```
2440
2573
 
2441
- _See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/media/delete-aspect.ts)_
2574
+ _See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/media/delete-aspect.ts)_
2442
2575
 
2443
2576
  ## `sanity media deploy-aspect [ASPECTNAME]`
2444
2577
 
@@ -2446,7 +2579,7 @@ Deploy an aspect
2446
2579
 
2447
2580
  ```
2448
2581
  USAGE
2449
- $ sanity media deploy-aspect [ASPECTNAME] [--all] [--media-library-id <value>]
2582
+ $ sanity media deploy-aspect [ASPECTNAME] [-p <id>] [--all] [--media-library-id <value>]
2450
2583
 
2451
2584
  ARGUMENTS
2452
2585
  [ASPECTNAME] Name of the aspect to deploy
@@ -2455,6 +2588,9 @@ FLAGS
2455
2588
  --all Deploy all aspects
2456
2589
  --media-library-id=<value> The id of the target media library
2457
2590
 
2591
+ OVERRIDE FLAGS
2592
+ -p, --project-id=<id> Project ID to deploy media aspect to (overrides CLI configuration)
2593
+
2458
2594
  DESCRIPTION
2459
2595
  Deploy an aspect
2460
2596
 
@@ -2468,7 +2604,7 @@ EXAMPLES
2468
2604
  $ sanity media deploy-aspect --all
2469
2605
  ```
2470
2606
 
2471
- _See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/media/deploy-aspect.ts)_
2607
+ _See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/media/deploy-aspect.ts)_
2472
2608
 
2473
2609
  ## `sanity media export [DESTINATION]`
2474
2610
 
@@ -2476,8 +2612,8 @@ Export an archive of all file and image assets including their aspect data from
2476
2612
 
2477
2613
  ```
2478
2614
  USAGE
2479
- $ sanity media export [DESTINATION] [--asset-concurrency <value>] [--media-library-id <value>] [--no-compress]
2480
- [--overwrite]
2615
+ $ sanity media export [DESTINATION] [-p <id>] [--asset-concurrency <value>] [--media-library-id <value>]
2616
+ [--no-compress] [--overwrite]
2481
2617
 
2482
2618
  ARGUMENTS
2483
2619
  [DESTINATION] Output destination file path
@@ -2488,6 +2624,9 @@ FLAGS
2488
2624
  --no-compress Skips compressing tarball entries (still generates a gzip file)
2489
2625
  --overwrite Overwrite any file with the same name
2490
2626
 
2627
+ OVERRIDE FLAGS
2628
+ -p, --project-id=<id> Project ID to export media from (overrides CLI configuration)
2629
+
2491
2630
  DESCRIPTION
2492
2631
  Export an archive of all file and image assets including their aspect data from the target media library. Video assets
2493
2632
  are excluded from the export.
@@ -2506,7 +2645,7 @@ EXAMPLES
2506
2645
  $ sanity media export --media-library-id my-library-id
2507
2646
  ```
2508
2647
 
2509
- _See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/media/export.ts)_
2648
+ _See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/media/export.ts)_
2510
2649
 
2511
2650
  ## `sanity media import SOURCE`
2512
2651
 
@@ -2514,7 +2653,7 @@ Import a set of assets to the target media library.
2514
2653
 
2515
2654
  ```
2516
2655
  USAGE
2517
- $ sanity media import SOURCE [--media-library-id <value>] [--replace-aspects]
2656
+ $ sanity media import SOURCE [-p <id>] [--media-library-id <value>] [--replace-aspects]
2518
2657
 
2519
2658
  ARGUMENTS
2520
2659
  SOURCE Image file or folder to import from
@@ -2524,6 +2663,9 @@ FLAGS
2524
2663
  --replace-aspects Replace existing aspect data. All versions will be replaced (e.g. published and draft
2525
2664
  aspect data)
2526
2665
 
2666
+ OVERRIDE FLAGS
2667
+ -p, --project-id=<id> Project ID to import media to (overrides CLI configuration)
2668
+
2527
2669
  DESCRIPTION
2528
2670
  Import a set of assets to the target media library.
2529
2671
 
@@ -2541,7 +2683,7 @@ EXAMPLES
2541
2683
  $ sanity media import products --replace-aspects
2542
2684
  ```
2543
2685
 
2544
- _See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/media/import.ts)_
2686
+ _See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/media/import.ts)_
2545
2687
 
2546
2688
  ## `sanity migration create [TITLE]`
2547
2689
 
@@ -2669,7 +2811,7 @@ EXAMPLES
2669
2811
  $ sanity openapi get query > query-api.yaml
2670
2812
  ```
2671
2813
 
2672
- _See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/openapi/get.ts)_
2814
+ _See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/openapi/get.ts)_
2673
2815
 
2674
2816
  ## `sanity openapi list`
2675
2817
 
@@ -2700,7 +2842,7 @@ EXAMPLES
2700
2842
  $ sanity openapi list --web
2701
2843
  ```
2702
2844
 
2703
- _See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/openapi/list.ts)_
2845
+ _See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/openapi/list.ts)_
2704
2846
 
2705
2847
  ## `sanity preview [OUTPUTDIR]`
2706
2848
 
@@ -2731,7 +2873,7 @@ EXAMPLES
2731
2873
  $ sanity preview some/build-output-dir
2732
2874
  ```
2733
2875
 
2734
- _See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/preview.ts)_
2876
+ _See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/preview.ts)_
2735
2877
 
2736
2878
  ## `sanity projects create [PROJECTNAME]`
2737
2879
 
@@ -2779,7 +2921,7 @@ EXAMPLES
2779
2921
  $ sanity projects create "CI Project" --yes --json
2780
2922
  ```
2781
2923
 
2782
- _See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/projects/create.ts)_
2924
+ _See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/projects/create.ts)_
2783
2925
 
2784
2926
  ## `sanity projects list`
2785
2927
 
@@ -2808,7 +2950,7 @@ EXAMPLES
2808
2950
  $ sanity projects list --sort=members --order=asc
2809
2951
  ```
2810
2952
 
2811
- _See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/projects/list.ts)_
2953
+ _See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/projects/list.ts)_
2812
2954
 
2813
2955
  ## `sanity schema delete`
2814
2956
 
@@ -2816,12 +2958,15 @@ Delete schema documents by id
2816
2958
 
2817
2959
  ```
2818
2960
  USAGE
2819
- $ sanity schema delete --ids <value> [--dataset <value>] [--verbose]
2961
+ $ sanity schema delete --ids <value> [-p <id>] [-d <name>] [--verbose]
2820
2962
 
2821
2963
  FLAGS
2822
- --dataset=<value> Delete schemas from a specific dataset
2823
- --ids=<value> (required) Comma-separated list of schema ids to delete
2824
- --verbose Enable verbose logging
2964
+ --ids=<value> (required) Comma-separated list of schema ids to delete
2965
+ --verbose Enable verbose logging
2966
+
2967
+ OVERRIDE FLAGS
2968
+ -d, --dataset=<name> Delete schemas from a specific dataset (overrides CLI configuration)
2969
+ -p, --project-id=<id> Project ID to delete schema from (overrides CLI configuration)
2825
2970
 
2826
2971
  DESCRIPTION
2827
2972
  Delete schema documents by id
@@ -2836,7 +2981,7 @@ EXAMPLES
2836
2981
  $ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
2837
2982
  ```
2838
2983
 
2839
- _See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/schema/delete.ts)_
2984
+ _See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/schema/delete.ts)_
2840
2985
 
2841
2986
  ## `sanity schema deploy`
2842
2987
 
@@ -2872,7 +3017,7 @@ EXAMPLES
2872
3017
  $ sanity schema deploy --workspace default
2873
3018
  ```
2874
3019
 
2875
- _See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/schema/deploy.ts)_
3020
+ _See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/schema/deploy.ts)_
2876
3021
 
2877
3022
  ## `sanity schema extract`
2878
3023
 
@@ -2911,7 +3056,7 @@ EXAMPLES
2911
3056
  $ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
2912
3057
  ```
2913
3058
 
2914
- _See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/schema/extract.ts)_
3059
+ _See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/schema/extract.ts)_
2915
3060
 
2916
3061
  ## `sanity schema list`
2917
3062
 
@@ -2951,7 +3096,7 @@ EXAMPLES
2951
3096
  $ sanity schema list --json --id _.schemas.workspaceName
2952
3097
  ```
2953
3098
 
2954
- _See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/schema/list.ts)_
3099
+ _See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/schema/list.ts)_
2955
3100
 
2956
3101
  ## `sanity schema validate`
2957
3102
 
@@ -2994,7 +3139,7 @@ EXAMPLES
2994
3139
  $ sanity schema validate --debug-metafile-path metafile.json
2995
3140
  ```
2996
3141
 
2997
- _See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/schema/validate.ts)_
3142
+ _See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/schema/validate.ts)_
2998
3143
 
2999
3144
  ## `sanity start [OUTPUTDIR]`
3000
3145
 
@@ -3042,7 +3187,7 @@ EXAMPLES
3042
3187
  $ sanity telemetry telemetry disable
3043
3188
  ```
3044
3189
 
3045
- _See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/telemetry/disable.ts)_
3190
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/telemetry/disable.ts)_
3046
3191
 
3047
3192
  ## `sanity telemetry enable`
3048
3193
 
@@ -3061,7 +3206,7 @@ EXAMPLES
3061
3206
  $ sanity telemetry telemetry enable
3062
3207
  ```
3063
3208
 
3064
- _See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/telemetry/enable.ts)_
3209
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/telemetry/enable.ts)_
3065
3210
 
3066
3211
  ## `sanity telemetry status`
3067
3212
 
@@ -3080,7 +3225,7 @@ EXAMPLES
3080
3225
  $ sanity telemetry telemetry status
3081
3226
  ```
3082
3227
 
3083
- _See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/telemetry/status.ts)_
3228
+ _See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/telemetry/status.ts)_
3084
3229
 
3085
3230
  ## `sanity tokens add [LABEL]`
3086
3231
 
@@ -3088,7 +3233,7 @@ Create a new API token for this project
3088
3233
 
3089
3234
  ```
3090
3235
  USAGE
3091
- $ sanity tokens add [LABEL] [--json] [--role viewer] [-y]
3236
+ $ sanity tokens add [LABEL] [-p <id>] [--json] [--role viewer] [-y]
3092
3237
 
3093
3238
  ARGUMENTS
3094
3239
  [LABEL] Label for the new token
@@ -3098,6 +3243,9 @@ FLAGS
3098
3243
  --json Output as JSON
3099
3244
  --role=viewer Role to assign to the token
3100
3245
 
3246
+ OVERRIDE FLAGS
3247
+ -p, --project-id=<id> Project ID to add token to (overrides CLI configuration)
3248
+
3101
3249
  DESCRIPTION
3102
3250
  Create a new API token for this project
3103
3251
 
@@ -3117,9 +3265,13 @@ EXAMPLES
3117
3265
  Output token information as JSON
3118
3266
 
3119
3267
  $ sanity tokens add "API Token" --json
3268
+
3269
+ Create a token for a specific project
3270
+
3271
+ $ sanity tokens add "My Token" --project-id abc123 --role=editor
3120
3272
  ```
3121
3273
 
3122
- _See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/tokens/add.ts)_
3274
+ _See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/tokens/add.ts)_
3123
3275
 
3124
3276
  ## `sanity tokens delete [TOKENID]`
3125
3277
 
@@ -3127,7 +3279,7 @@ Delete an API token from this project
3127
3279
 
3128
3280
  ```
3129
3281
  USAGE
3130
- $ sanity tokens delete [TOKENID] [--yes]
3282
+ $ sanity tokens delete [TOKENID] [-p <id>] [--yes]
3131
3283
 
3132
3284
  ARGUMENTS
3133
3285
  [TOKENID] Token ID to delete (will prompt if not provided)
@@ -3135,6 +3287,9 @@ ARGUMENTS
3135
3287
  FLAGS
3136
3288
  --yes Skip confirmation prompt (unattended mode)
3137
3289
 
3290
+ OVERRIDE FLAGS
3291
+ -p, --project-id=<id> Project ID to delete token from (overrides CLI configuration)
3292
+
3138
3293
  DESCRIPTION
3139
3294
  Delete an API token from this project
3140
3295
 
@@ -3150,9 +3305,13 @@ EXAMPLES
3150
3305
  Delete a specific token without confirmation prompt
3151
3306
 
3152
3307
  $ sanity tokens delete silJ2lFmK6dONB --yes
3308
+
3309
+ Delete a token from a specific project
3310
+
3311
+ $ sanity tokens delete --project-id abc123
3153
3312
  ```
3154
3313
 
3155
- _See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/tokens/delete.ts)_
3314
+ _See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/tokens/delete.ts)_
3156
3315
 
3157
3316
  ## `sanity tokens list`
3158
3317
 
@@ -3160,11 +3319,14 @@ List API tokens for the current project
3160
3319
 
3161
3320
  ```
3162
3321
  USAGE
3163
- $ sanity tokens list [--json]
3322
+ $ sanity tokens list [-p <id>] [--json]
3164
3323
 
3165
3324
  FLAGS
3166
3325
  --json Output tokens in JSON format
3167
3326
 
3327
+ OVERRIDE FLAGS
3328
+ -p, --project-id=<id> Project ID to list tokens for (overrides CLI configuration)
3329
+
3168
3330
  DESCRIPTION
3169
3331
  List API tokens for the current project
3170
3332
 
@@ -3176,9 +3338,13 @@ EXAMPLES
3176
3338
  List tokens in JSON format
3177
3339
 
3178
3340
  $ sanity tokens list --json
3341
+
3342
+ List tokens for a specific project
3343
+
3344
+ $ sanity tokens list --project-id abc123
3179
3345
  ```
3180
3346
 
3181
- _See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/tokens/list.ts)_
3347
+ _See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/tokens/list.ts)_
3182
3348
 
3183
3349
  ## `sanity typegen generate`
3184
3350
 
@@ -3241,7 +3407,7 @@ DESCRIPTION
3241
3407
  Removes the deployed Sanity Studio/App from Sanity hosting
3242
3408
  ```
3243
3409
 
3244
- _See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/undeploy.ts)_
3410
+ _See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/undeploy.ts)_
3245
3411
 
3246
3412
  ## `sanity users invite [EMAIL]`
3247
3413
 
@@ -3249,7 +3415,7 @@ Invite a new user to the project
3249
3415
 
3250
3416
  ```
3251
3417
  USAGE
3252
- $ sanity users invite [EMAIL] [--role <value>]
3418
+ $ sanity users invite [EMAIL] [-p <id>] [--role <value>]
3253
3419
 
3254
3420
  ARGUMENTS
3255
3421
  [EMAIL] Email address to invite
@@ -3257,6 +3423,9 @@ ARGUMENTS
3257
3423
  FLAGS
3258
3424
  --role=<value> Role to invite the user as
3259
3425
 
3426
+ OVERRIDE FLAGS
3427
+ -p, --project-id=<id> Project ID to invite user to (overrides CLI configuration)
3428
+
3260
3429
  DESCRIPTION
3261
3430
  Invite a new user to the project
3262
3431
 
@@ -3272,9 +3441,13 @@ EXAMPLES
3272
3441
  Send a new user invite to the email "pippi@sanity.io", as administrator
3273
3442
 
3274
3443
  $ sanity users invite pippi@sanity.io --role administrator
3444
+
3445
+ Invite a user to a specific project
3446
+
3447
+ $ sanity users invite pippi@sanity.io --project-id abc123
3275
3448
  ```
3276
3449
 
3277
- _See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/users/invite.ts)_
3450
+ _See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/users/invite.ts)_
3278
3451
 
3279
3452
  ## `sanity users list`
3280
3453
 
@@ -3282,7 +3455,7 @@ List all users of the project
3282
3455
 
3283
3456
  ```
3284
3457
  USAGE
3285
- $ sanity users list [--invitations] [--order asc|desc] [--robots] [--sort id|name|role|date]
3458
+ $ sanity users list [-p <id>] [--invitations] [--order asc|desc] [--robots] [--sort id|name|role|date]
3286
3459
 
3287
3460
  FLAGS
3288
3461
  --[no-]invitations Includes or excludes pending invitations
@@ -3292,6 +3465,9 @@ FLAGS
3292
3465
  --sort=<option> [default: date] Sort users by specified column
3293
3466
  <options: id|name|role|date>
3294
3467
 
3468
+ OVERRIDE FLAGS
3469
+ -p, --project-id=<id> Project ID to list users for (overrides CLI configuration)
3470
+
3295
3471
  DESCRIPTION
3296
3472
  List all users of the project
3297
3473
 
@@ -3307,9 +3483,13 @@ EXAMPLES
3307
3483
  List all users, sorted by role
3308
3484
 
3309
3485
  $ sanity users list --sort role
3486
+
3487
+ List users for a specific project
3488
+
3489
+ $ sanity users list --project-id abc123
3310
3490
  ```
3311
3491
 
3312
- _See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/users/list.ts)_
3492
+ _See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/users/list.ts)_
3313
3493
 
3314
3494
  ## `sanity versions`
3315
3495
 
@@ -3326,6 +3506,6 @@ EXAMPLES
3326
3506
  $ sanity versions
3327
3507
  ```
3328
3508
 
3329
- _See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.19/src/commands/versions.ts)_
3509
+ _See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.0.0-alpha.20/src/commands/versions.ts)_
3330
3510
 
3331
3511
  <!-- commandsstop -->