@sanity/cli 6.2.0 → 6.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -12,10 +12,10 @@ Code for sanity cli
12
12
 
13
13
  <!-- commands -->
14
14
 
15
- - [`sanity backup disable [DATASET]`](#sanity-backup-disable-dataset)
16
- - [`sanity backup download [DATASET]`](#sanity-backup-download-dataset)
17
- - [`sanity backup enable [DATASET]`](#sanity-backup-enable-dataset)
18
- - [`sanity backup list [DATASET]`](#sanity-backup-list-dataset)
15
+ - [`sanity backups disable [DATASET]`](#sanity-backups-disable-dataset)
16
+ - [`sanity backups download [DATASET]`](#sanity-backups-download-dataset)
17
+ - [`sanity backups enable [DATASET]`](#sanity-backups-enable-dataset)
18
+ - [`sanity backups list [DATASET]`](#sanity-backups-list-dataset)
19
19
  - [`sanity blueprints add TYPE`](#sanity-blueprints-add-type)
20
20
  - [`sanity blueprints config`](#sanity-blueprints-config)
21
21
  - [`sanity blueprints deploy`](#sanity-blueprints-deploy)
@@ -31,21 +31,21 @@ Code for sanity cli
31
31
  - [`sanity cors add ORIGIN`](#sanity-cors-add-origin)
32
32
  - [`sanity cors delete [ORIGIN]`](#sanity-cors-delete-origin)
33
33
  - [`sanity cors list`](#sanity-cors-list)
34
- - [`sanity dataset alias create [ALIASNAME] [TARGETDATASET]`](#sanity-dataset-alias-create-aliasname-targetdataset)
35
- - [`sanity dataset alias delete ALIASNAME`](#sanity-dataset-alias-delete-aliasname)
36
- - [`sanity dataset alias link [ALIASNAME] [TARGETDATASET]`](#sanity-dataset-alias-link-aliasname-targetdataset)
37
- - [`sanity dataset alias unlink [ALIASNAME]`](#sanity-dataset-alias-unlink-aliasname)
38
- - [`sanity dataset copy [SOURCE] [TARGET]`](#sanity-dataset-copy-source-target)
39
- - [`sanity dataset create [NAME]`](#sanity-dataset-create-name)
40
- - [`sanity dataset delete DATASETNAME`](#sanity-dataset-delete-datasetname)
41
- - [`sanity dataset embeddings disable [DATASET]`](#sanity-dataset-embeddings-disable-dataset)
42
- - [`sanity dataset embeddings enable [DATASET]`](#sanity-dataset-embeddings-enable-dataset)
43
- - [`sanity dataset embeddings status [DATASET]`](#sanity-dataset-embeddings-status-dataset)
44
- - [`sanity dataset export [NAME] [DESTINATION]`](#sanity-dataset-export-name-destination)
45
- - [`sanity dataset import SOURCE [TARGETDATASET]`](#sanity-dataset-import-source-targetdataset)
46
- - [`sanity dataset list`](#sanity-dataset-list)
47
- - [`sanity dataset visibility get DATASET`](#sanity-dataset-visibility-get-dataset)
48
- - [`sanity dataset visibility set DATASET MODE`](#sanity-dataset-visibility-set-dataset-mode)
34
+ - [`sanity datasets alias create [ALIASNAME] [TARGETDATASET]`](#sanity-datasets-alias-create-aliasname-targetdataset)
35
+ - [`sanity datasets alias delete ALIASNAME`](#sanity-datasets-alias-delete-aliasname)
36
+ - [`sanity datasets alias link [ALIASNAME] [TARGETDATASET]`](#sanity-datasets-alias-link-aliasname-targetdataset)
37
+ - [`sanity datasets alias unlink [ALIASNAME]`](#sanity-datasets-alias-unlink-aliasname)
38
+ - [`sanity datasets copy [SOURCE] [TARGET]`](#sanity-datasets-copy-source-target)
39
+ - [`sanity datasets create [NAME]`](#sanity-datasets-create-name)
40
+ - [`sanity datasets delete DATASETNAME`](#sanity-datasets-delete-datasetname)
41
+ - [`sanity datasets embeddings disable [DATASET]`](#sanity-datasets-embeddings-disable-dataset)
42
+ - [`sanity datasets embeddings enable [DATASET]`](#sanity-datasets-embeddings-enable-dataset)
43
+ - [`sanity datasets embeddings status [DATASET]`](#sanity-datasets-embeddings-status-dataset)
44
+ - [`sanity datasets export [NAME] [DESTINATION]`](#sanity-datasets-export-name-destination)
45
+ - [`sanity datasets import SOURCE [TARGETDATASET]`](#sanity-datasets-import-source-targetdataset)
46
+ - [`sanity datasets list`](#sanity-datasets-list)
47
+ - [`sanity datasets visibility get DATASET`](#sanity-datasets-visibility-get-dataset)
48
+ - [`sanity datasets visibility set DATASET MODE`](#sanity-datasets-visibility-set-dataset-mode)
49
49
  - [`sanity debug`](#sanity-debug)
50
50
  - [`sanity deploy [SOURCEDIR]`](#sanity-deploy-sourcedir)
51
51
  - [`sanity dev`](#sanity-dev)
@@ -70,11 +70,11 @@ Code for sanity cli
70
70
  - [`sanity graphql list`](#sanity-graphql-list)
71
71
  - [`sanity graphql undeploy`](#sanity-graphql-undeploy)
72
72
  - [`sanity help [COMMAND]`](#sanity-help-command)
73
- - [`sanity hook attempt ATTEMPTID`](#sanity-hook-attempt-attemptid)
74
- - [`sanity hook create`](#sanity-hook-create)
75
- - [`sanity hook delete [NAME]`](#sanity-hook-delete-name)
76
- - [`sanity hook list`](#sanity-hook-list)
77
- - [`sanity hook logs [NAME]`](#sanity-hook-logs-name)
73
+ - [`sanity hooks attempt ATTEMPTID`](#sanity-hooks-attempt-attemptid)
74
+ - [`sanity hooks create`](#sanity-hooks-create)
75
+ - [`sanity hooks delete [NAME]`](#sanity-hooks-delete-name)
76
+ - [`sanity hooks list`](#sanity-hooks-list)
77
+ - [`sanity hooks logs [NAME]`](#sanity-hooks-logs-name)
78
78
  - [`sanity init`](#sanity-init)
79
79
  - [`sanity install [PACKAGES]`](#sanity-install-packages)
80
80
  - [`sanity learn`](#sanity-learn)
@@ -88,19 +88,19 @@ Code for sanity cli
88
88
  - [`sanity media deploy-aspect [ASPECTNAME]`](#sanity-media-deploy-aspect-aspectname)
89
89
  - [`sanity media export [DESTINATION]`](#sanity-media-export-destination)
90
90
  - [`sanity media import SOURCE`](#sanity-media-import-source)
91
- - [`sanity migration create [TITLE]`](#sanity-migration-create-title)
92
- - [`sanity migration list`](#sanity-migration-list)
93
- - [`sanity migration run [ID]`](#sanity-migration-run-id)
91
+ - [`sanity migrations create [TITLE]`](#sanity-migrations-create-title)
92
+ - [`sanity migrations list`](#sanity-migrations-list)
93
+ - [`sanity migrations run [ID]`](#sanity-migrations-run-id)
94
94
  - [`sanity openapi get SLUG`](#sanity-openapi-get-slug)
95
95
  - [`sanity openapi list`](#sanity-openapi-list)
96
96
  - [`sanity preview [OUTPUTDIR]`](#sanity-preview-outputdir)
97
97
  - [`sanity projects create [PROJECTNAME]`](#sanity-projects-create-projectname)
98
98
  - [`sanity projects list`](#sanity-projects-list)
99
- - [`sanity schema delete`](#sanity-schema-delete)
100
- - [`sanity schema deploy`](#sanity-schema-deploy)
101
- - [`sanity schema extract`](#sanity-schema-extract)
102
- - [`sanity schema list`](#sanity-schema-list)
103
- - [`sanity schema validate`](#sanity-schema-validate)
99
+ - [`sanity schemas delete`](#sanity-schemas-delete)
100
+ - [`sanity schemas deploy`](#sanity-schemas-deploy)
101
+ - [`sanity schemas extract`](#sanity-schemas-extract)
102
+ - [`sanity schemas list`](#sanity-schemas-list)
103
+ - [`sanity schemas validate`](#sanity-schemas-validate)
104
104
  - [`sanity telemetry disable`](#sanity-telemetry-disable)
105
105
  - [`sanity telemetry enable`](#sanity-telemetry-enable)
106
106
  - [`sanity telemetry status`](#sanity-telemetry-status)
@@ -113,13 +113,13 @@ Code for sanity cli
113
113
  - [`sanity users list`](#sanity-users-list)
114
114
  - [`sanity versions`](#sanity-versions)
115
115
 
116
- ## `sanity backup disable [DATASET]`
116
+ ## `sanity backups disable [DATASET]`
117
117
 
118
118
  Disable backup for a dataset.
119
119
 
120
120
  ```
121
121
  USAGE
122
- $ sanity backup disable [DATASET] [-p <id>]
122
+ $ sanity backups disable [DATASET] [-p <id>]
123
123
 
124
124
  ARGUMENTS
125
125
  [DATASET] Dataset name to disable backup for
@@ -133,22 +133,22 @@ DESCRIPTION
133
133
  EXAMPLES
134
134
  Interactively disable backup for a dataset
135
135
 
136
- $ sanity backup disable
136
+ $ sanity backups disable
137
137
 
138
138
  Disable backup for the production dataset
139
139
 
140
- $ sanity backup disable production
140
+ $ sanity backups disable production
141
141
  ```
142
142
 
143
- _See code: [src/commands/backup/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/disable.ts)_
143
+ _See code: [src/commands/backups/disable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/backups/disable.ts)_
144
144
 
145
- ## `sanity backup download [DATASET]`
145
+ ## `sanity backups download [DATASET]`
146
146
 
147
147
  Download a dataset backup to a local file.
148
148
 
149
149
  ```
150
150
  USAGE
151
- $ sanity backup download [DATASET] [-p <id>] [--backup-id <value>] [--concurrency <value>] [--out <value>]
151
+ $ sanity backups download [DATASET] [-p <id>] [--backup-id <value>] [--concurrency <value>] [--out <value>]
152
152
  [--overwrite]
153
153
 
154
154
  ARGUMENTS
@@ -169,30 +169,30 @@ DESCRIPTION
169
169
  EXAMPLES
170
170
  Interactively download a backup
171
171
 
172
- $ sanity backup download
172
+ $ sanity backups download
173
173
 
174
174
  Download a specific backup for the production dataset
175
175
 
176
- $ sanity backup download production --backup-id 2024-01-01-backup-1
176
+ $ sanity backups download production --backup-id 2024-01-01-backup-1
177
177
 
178
178
  Download backup to a specific file
179
179
 
180
- $ sanity backup download production --backup-id 2024-01-01-backup-2 --out /path/to/file
180
+ $ sanity backups download production --backup-id 2024-01-01-backup-2 --out /path/to/file
181
181
 
182
182
  Download backup and overwrite existing file
183
183
 
184
- $ sanity backup download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
184
+ $ sanity backups download production --backup-id 2024-01-01-backup-3 --out /path/to/file --overwrite
185
185
  ```
186
186
 
187
- _See code: [src/commands/backup/download.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/download.ts)_
187
+ _See code: [src/commands/backups/download.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/backups/download.ts)_
188
188
 
189
- ## `sanity backup enable [DATASET]`
189
+ ## `sanity backups enable [DATASET]`
190
190
 
191
191
  Enable backup for a dataset.
192
192
 
193
193
  ```
194
194
  USAGE
195
- $ sanity backup enable [DATASET] [-p <id>]
195
+ $ sanity backups enable [DATASET] [-p <id>]
196
196
 
197
197
  ARGUMENTS
198
198
  [DATASET] Dataset name to enable backup for
@@ -206,22 +206,22 @@ DESCRIPTION
206
206
  EXAMPLES
207
207
  Interactively enable backup for a dataset
208
208
 
209
- $ sanity backup enable
209
+ $ sanity backups enable
210
210
 
211
211
  Enable backup for the production dataset
212
212
 
213
- $ sanity backup enable production
213
+ $ sanity backups enable production
214
214
  ```
215
215
 
216
- _See code: [src/commands/backup/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/enable.ts)_
216
+ _See code: [src/commands/backups/enable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/backups/enable.ts)_
217
217
 
218
- ## `sanity backup list [DATASET]`
218
+ ## `sanity backups list [DATASET]`
219
219
 
220
220
  List available backups for a dataset.
221
221
 
222
222
  ```
223
223
  USAGE
224
- $ sanity backup list [DATASET] [-p <id>] [--after <value>] [--before <value>] [-l <value>]
224
+ $ sanity backups list [DATASET] [-p <id>] [--after <value>] [--before <value>] [-l <value>]
225
225
 
226
226
  ARGUMENTS
227
227
  [DATASET] Dataset name to list backups for
@@ -240,22 +240,22 @@ DESCRIPTION
240
240
  EXAMPLES
241
241
  List backups for a dataset interactively
242
242
 
243
- $ sanity backup list
243
+ $ sanity backups list
244
244
 
245
245
  List backups for the production dataset
246
246
 
247
- $ sanity backup list production
247
+ $ sanity backups list production
248
248
 
249
249
  List up to 50 backups for the production dataset
250
250
 
251
- $ sanity backup list production --limit 50
251
+ $ sanity backups list production --limit 50
252
252
 
253
253
  List up to 10 backups created after 2024-01-31
254
254
 
255
- $ sanity backup list production --after 2024-01-31 --limit 10
255
+ $ sanity backups list production --after 2024-01-31 --limit 10
256
256
  ```
257
257
 
258
- _See code: [src/commands/backup/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/backup/list.ts)_
258
+ _See code: [src/commands/backups/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/backups/list.ts)_
259
259
 
260
260
  ## `sanity blueprints add TYPE`
261
261
 
@@ -307,7 +307,7 @@ EXAMPLES
307
307
  $ sanity blueprints add function --name my-function --fn-type document-create --fn-type document-update --lang js
308
308
  ```
309
309
 
310
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/add.ts)_
310
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/add.ts)_
311
311
 
312
312
  ## `sanity blueprints config`
313
313
 
@@ -342,7 +342,7 @@ EXAMPLES
342
342
  $ sanity blueprints config --edit --project-id <projectId> --stack <name-or-id>
343
343
  ```
344
344
 
345
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/config.ts)_
345
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/config.ts)_
346
346
 
347
347
  ## `sanity blueprints deploy`
348
348
 
@@ -379,7 +379,7 @@ EXAMPLES
379
379
  $ sanity blueprints deploy --fn-installer npm
380
380
  ```
381
381
 
382
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/deploy.ts)_
382
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/deploy.ts)_
383
383
 
384
384
  ## `sanity blueprints destroy`
385
385
 
@@ -411,7 +411,7 @@ EXAMPLES
411
411
  $ sanity blueprints destroy --stack <name-or-id> --project-id <projectId> --force --no-wait
412
412
  ```
413
413
 
414
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/destroy.ts)_
414
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/destroy.ts)_
415
415
 
416
416
  ## `sanity blueprints doctor`
417
417
 
@@ -437,7 +437,7 @@ DESCRIPTION
437
437
  issues.
438
438
  ```
439
439
 
440
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/doctor.ts)_
440
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/doctor.ts)_
441
441
 
442
442
  ## `sanity blueprints info`
443
443
 
@@ -467,7 +467,7 @@ EXAMPLES
467
467
  $ sanity blueprints info --stack <name-or-id>
468
468
  ```
469
469
 
470
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/info.ts)_
470
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/info.ts)_
471
471
 
472
472
  ## `sanity blueprints init [DIR]`
473
473
 
@@ -517,7 +517,7 @@ EXAMPLES
517
517
  $ sanity blueprints init --blueprint-type <json|js|ts> --stack-name <stackName>
518
518
  ```
519
519
 
520
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/init.ts)_
520
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/init.ts)_
521
521
 
522
522
  ## `sanity blueprints logs`
523
523
 
@@ -546,7 +546,7 @@ EXAMPLES
546
546
  $ sanity blueprints logs --watch
547
547
  ```
548
548
 
549
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/logs.ts)_
549
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/logs.ts)_
550
550
 
551
551
  ## `sanity blueprints plan`
552
552
 
@@ -572,7 +572,7 @@ EXAMPLES
572
572
  $ sanity blueprints plan
573
573
  ```
574
574
 
575
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/plan.ts)_
575
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/plan.ts)_
576
576
 
577
577
  ## `sanity blueprints stacks`
578
578
 
@@ -601,7 +601,7 @@ EXAMPLES
601
601
  $ sanity blueprints stacks --organization-id <organizationId>
602
602
  ```
603
603
 
604
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/blueprints/stacks.ts)_
604
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/blueprints/stacks.ts)_
605
605
 
606
606
  ## `sanity build [OUTPUTDIR]`
607
607
 
@@ -630,7 +630,7 @@ EXAMPLES
630
630
  $ sanity build --no-minify --source-maps
631
631
  ```
632
632
 
633
- _See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/build.ts)_
633
+ _See code: [src/commands/build.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/build.ts)_
634
634
 
635
635
  ## `sanity codemod [CODEMODNAME]`
636
636
 
@@ -661,7 +661,7 @@ EXAMPLES
661
661
  $ sanity codemod reactIconsV3 --dry
662
662
  ```
663
663
 
664
- _See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/codemod.ts)_
664
+ _See code: [src/commands/codemod.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/codemod.ts)_
665
665
 
666
666
  ## `sanity cors add ORIGIN`
667
667
 
@@ -701,7 +701,7 @@ EXAMPLES
701
701
  $ sanity cors add https://myapp.com --project-id abc123
702
702
  ```
703
703
 
704
- _See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/add.ts)_
704
+ _See code: [src/commands/cors/add.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/cors/add.ts)_
705
705
 
706
706
  ## `sanity cors delete [ORIGIN]`
707
707
 
@@ -734,7 +734,7 @@ EXAMPLES
734
734
  $ sanity cors delete --project-id abc123
735
735
  ```
736
736
 
737
- _See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/delete.ts)_
737
+ _See code: [src/commands/cors/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/cors/delete.ts)_
738
738
 
739
739
  ## `sanity cors list`
740
740
 
@@ -760,15 +760,15 @@ EXAMPLES
760
760
  $ sanity cors list --project-id abc123
761
761
  ```
762
762
 
763
- _See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/cors/list.ts)_
763
+ _See code: [src/commands/cors/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/cors/list.ts)_
764
764
 
765
- ## `sanity dataset alias create [ALIASNAME] [TARGETDATASET]`
765
+ ## `sanity datasets alias create [ALIASNAME] [TARGETDATASET]`
766
766
 
767
767
  Create a dataset alias within your project
768
768
 
769
769
  ```
770
770
  USAGE
771
- $ sanity dataset alias create [ALIASNAME] [TARGETDATASET] [-p <id>]
771
+ $ sanity datasets alias create [ALIASNAME] [TARGETDATASET] [-p <id>]
772
772
 
773
773
  ARGUMENTS
774
774
  [ALIASNAME] Dataset alias name to create
@@ -783,34 +783,34 @@ DESCRIPTION
783
783
  EXAMPLES
784
784
  Create alias in a specific project
785
785
 
786
- $ sanity dataset alias create --project-id abc123 conference conf-2025
786
+ $ sanity datasets alias create --project-id abc123 conference conf-2025
787
787
 
788
788
  Create an alias with interactive prompts
789
789
 
790
- $ sanity dataset alias create
790
+ $ sanity datasets alias create
791
791
 
792
792
  Create alias named "conference" with interactive dataset selection
793
793
 
794
- $ sanity dataset alias create conference
794
+ $ sanity datasets alias create conference
795
795
 
796
796
  Create alias "conference" linked to "conf-2025" dataset
797
797
 
798
- $ sanity dataset alias create conference conf-2025
798
+ $ sanity datasets alias create conference conf-2025
799
799
 
800
800
  Create alias with explicit ~ prefix
801
801
 
802
- $ sanity dataset alias create ~conference conf-2025
802
+ $ sanity datasets alias create ~conference conf-2025
803
803
  ```
804
804
 
805
- _See code: [src/commands/dataset/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/create.ts)_
805
+ _See code: [src/commands/datasets/alias/create.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/alias/create.ts)_
806
806
 
807
- ## `sanity dataset alias delete ALIASNAME`
807
+ ## `sanity datasets alias delete ALIASNAME`
808
808
 
809
809
  Delete a dataset alias within your project
810
810
 
811
811
  ```
812
812
  USAGE
813
- $ sanity dataset alias delete ALIASNAME [-p <id>] [--force]
813
+ $ sanity datasets alias delete ALIASNAME [-p <id>] [--force]
814
814
 
815
815
  ARGUMENTS
816
816
  ALIASNAME Dataset alias name to delete
@@ -827,26 +827,26 @@ DESCRIPTION
827
827
  EXAMPLES
828
828
  Delete alias named "conference" with confirmation prompt
829
829
 
830
- $ sanity dataset alias delete conference
830
+ $ sanity datasets alias delete conference
831
831
 
832
832
  Delete alias with explicit ~ prefix
833
833
 
834
- $ sanity dataset alias delete ~conference
834
+ $ sanity datasets alias delete ~conference
835
835
 
836
836
  Delete alias named "conference" without confirmation prompt
837
837
 
838
- $ sanity dataset alias delete conference --force
838
+ $ sanity datasets alias delete conference --force
839
839
  ```
840
840
 
841
- _See code: [src/commands/dataset/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/delete.ts)_
841
+ _See code: [src/commands/datasets/alias/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/alias/delete.ts)_
842
842
 
843
- ## `sanity dataset alias link [ALIASNAME] [TARGETDATASET]`
843
+ ## `sanity datasets alias link [ALIASNAME] [TARGETDATASET]`
844
844
 
845
845
  Link a dataset alias to a dataset within your project
846
846
 
847
847
  ```
848
848
  USAGE
849
- $ sanity dataset alias link [ALIASNAME] [TARGETDATASET] [-p <id>] [--force]
849
+ $ sanity datasets alias link [ALIASNAME] [TARGETDATASET] [-p <id>] [--force]
850
850
 
851
851
  ARGUMENTS
852
852
  [ALIASNAME] Dataset alias name to link
@@ -864,34 +864,34 @@ DESCRIPTION
864
864
  EXAMPLES
865
865
  Link an alias with interactive prompts
866
866
 
867
- $ sanity dataset alias link
867
+ $ sanity datasets alias link
868
868
 
869
869
  Link alias named "conference" with interactive dataset selection
870
870
 
871
- $ sanity dataset alias link conference
871
+ $ sanity datasets alias link conference
872
872
 
873
873
  Link alias "conference" to "conf-2025" dataset
874
874
 
875
- $ sanity dataset alias link conference conf-2025
875
+ $ sanity datasets alias link conference conf-2025
876
876
 
877
877
  Link alias with explicit ~ prefix
878
878
 
879
- $ sanity dataset alias link ~conference conf-2025
879
+ $ sanity datasets alias link ~conference conf-2025
880
880
 
881
881
  Force link without confirmation (skip relink prompt)
882
882
 
883
- $ sanity dataset alias link conference conf-2025 --force
883
+ $ sanity datasets alias link conference conf-2025 --force
884
884
  ```
885
885
 
886
- _See code: [src/commands/dataset/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/link.ts)_
886
+ _See code: [src/commands/datasets/alias/link.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/alias/link.ts)_
887
887
 
888
- ## `sanity dataset alias unlink [ALIASNAME]`
888
+ ## `sanity datasets alias unlink [ALIASNAME]`
889
889
 
890
890
  Unlink a dataset alias from its dataset within your project
891
891
 
892
892
  ```
893
893
  USAGE
894
- $ sanity dataset alias unlink [ALIASNAME] [-p <id>] [--force]
894
+ $ sanity datasets alias unlink [ALIASNAME] [-p <id>] [--force]
895
895
 
896
896
  ARGUMENTS
897
897
  [ALIASNAME] Dataset alias name to unlink
@@ -908,30 +908,30 @@ DESCRIPTION
908
908
  EXAMPLES
909
909
  Unlink an alias with interactive selection
910
910
 
911
- $ sanity dataset alias unlink
911
+ $ sanity datasets alias unlink
912
912
 
913
913
  Unlink alias "conference" with confirmation prompt
914
914
 
915
- $ sanity dataset alias unlink conference
915
+ $ sanity datasets alias unlink conference
916
916
 
917
917
  Unlink alias with explicit ~ prefix
918
918
 
919
- $ sanity dataset alias unlink ~conference
919
+ $ sanity datasets alias unlink ~conference
920
920
 
921
921
  Unlink alias "conference" without confirmation prompt
922
922
 
923
- $ sanity dataset alias unlink conference --force
923
+ $ sanity datasets alias unlink conference --force
924
924
  ```
925
925
 
926
- _See code: [src/commands/dataset/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/alias/unlink.ts)_
926
+ _See code: [src/commands/datasets/alias/unlink.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/alias/unlink.ts)_
927
927
 
928
- ## `sanity dataset copy [SOURCE] [TARGET]`
928
+ ## `sanity datasets copy [SOURCE] [TARGET]`
929
929
 
930
930
  Manages dataset copying, including starting a new copy job, listing copy jobs and following the progress of a running copy job
931
931
 
932
932
  ```
933
933
  USAGE
934
- $ sanity dataset copy [SOURCE] [TARGET] [-p <id>] [--attach <value> | --list | --detach | --skip-history]
934
+ $ sanity datasets copy [SOURCE] [TARGET] [-p <id>] [--attach <value> | --list | --detach | --skip-history]
935
935
  [--limit <value> ] [--offset <value> ]
936
936
 
937
937
  ARGUMENTS
@@ -956,46 +956,46 @@ DESCRIPTION
956
956
  EXAMPLES
957
957
  Interactively copy a dataset
958
958
 
959
- $ sanity dataset copy
959
+ $ sanity datasets copy
960
960
 
961
961
  Copy from source-dataset (prompts for target)
962
962
 
963
- $ sanity dataset copy source-dataset
963
+ $ sanity datasets copy source-dataset
964
964
 
965
965
  Copy from source-dataset to target-dataset
966
966
 
967
- $ sanity dataset copy source-dataset target-dataset
967
+ $ sanity datasets copy source-dataset target-dataset
968
968
 
969
969
  Copy without preserving document history (faster for large datasets)
970
970
 
971
- $ sanity dataset copy --skip-history source target
971
+ $ sanity datasets copy --skip-history source target
972
972
 
973
973
  Start copy job without waiting for completion
974
974
 
975
- $ sanity dataset copy --detach source target
975
+ $ sanity datasets copy --detach source target
976
976
 
977
977
  Attach to a running copy job to follow progress
978
978
 
979
- $ sanity dataset copy --attach <job-id>
979
+ $ sanity datasets copy --attach <job-id>
980
980
 
981
981
  List all dataset copy jobs
982
982
 
983
- $ sanity dataset copy --list
983
+ $ sanity datasets copy --list
984
984
 
985
985
  List copy jobs with pagination
986
986
 
987
- $ sanity dataset copy --list --offset 2 --limit 10
987
+ $ sanity datasets copy --list --offset 2 --limit 10
988
988
  ```
989
989
 
990
- _See code: [src/commands/dataset/copy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/copy.ts)_
990
+ _See code: [src/commands/datasets/copy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/copy.ts)_
991
991
 
992
- ## `sanity dataset create [NAME]`
992
+ ## `sanity datasets create [NAME]`
993
993
 
994
994
  Create a new dataset within your project
995
995
 
996
996
  ```
997
997
  USAGE
998
- $ sanity dataset create [NAME] [-p <id>] [--embeddings-projection <value> --embeddings] [--visibility
998
+ $ sanity datasets create [NAME] [-p <id>] [--embeddings-projection <value> --embeddings] [--visibility
999
999
  custom|private|public]
1000
1000
 
1001
1001
  ARGUMENTS
@@ -1016,26 +1016,26 @@ DESCRIPTION
1016
1016
  EXAMPLES
1017
1017
  Interactively create a dataset
1018
1018
 
1019
- $ sanity dataset create
1019
+ $ sanity datasets create
1020
1020
 
1021
1021
  Create a dataset named "my-dataset"
1022
1022
 
1023
- $ sanity dataset create my-dataset
1023
+ $ sanity datasets create my-dataset
1024
1024
 
1025
1025
  Create a private dataset named "my-dataset"
1026
1026
 
1027
- $ sanity dataset create my-dataset --visibility private
1027
+ $ sanity datasets create my-dataset --visibility private
1028
1028
  ```
1029
1029
 
1030
- _See code: [src/commands/dataset/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/create.ts)_
1030
+ _See code: [src/commands/datasets/create.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/create.ts)_
1031
1031
 
1032
- ## `sanity dataset delete DATASETNAME`
1032
+ ## `sanity datasets delete DATASETNAME`
1033
1033
 
1034
1034
  Delete a dataset within your project
1035
1035
 
1036
1036
  ```
1037
1037
  USAGE
1038
- $ sanity dataset delete DATASETNAME [-p <id>] [--force]
1038
+ $ sanity datasets delete DATASETNAME [-p <id>] [--force]
1039
1039
 
1040
1040
  ARGUMENTS
1041
1041
  DATASETNAME Dataset name to delete
@@ -1052,22 +1052,22 @@ DESCRIPTION
1052
1052
  EXAMPLES
1053
1053
  Delete a specific dataset
1054
1054
 
1055
- $ sanity dataset delete my-dataset
1055
+ $ sanity datasets delete my-dataset
1056
1056
 
1057
1057
  Delete a specific dataset without confirmation
1058
1058
 
1059
- $ sanity dataset delete my-dataset --force
1059
+ $ sanity datasets delete my-dataset --force
1060
1060
  ```
1061
1061
 
1062
- _See code: [src/commands/dataset/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/delete.ts)_
1062
+ _See code: [src/commands/datasets/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/delete.ts)_
1063
1063
 
1064
- ## `sanity dataset embeddings disable [DATASET]`
1064
+ ## `sanity datasets embeddings disable [DATASET]`
1065
1065
 
1066
1066
  Disable embeddings for a dataset
1067
1067
 
1068
1068
  ```
1069
1069
  USAGE
1070
- $ sanity dataset embeddings disable [DATASET] [-p <id>]
1070
+ $ sanity datasets embeddings disable [DATASET] [-p <id>]
1071
1071
 
1072
1072
  ARGUMENTS
1073
1073
  [DATASET] Dataset name to disable embeddings for
@@ -1081,18 +1081,18 @@ DESCRIPTION
1081
1081
  EXAMPLES
1082
1082
  Disable embeddings for the production dataset
1083
1083
 
1084
- $ sanity dataset embeddings disable production
1084
+ $ sanity datasets embeddings disable production
1085
1085
  ```
1086
1086
 
1087
- _See code: [src/commands/dataset/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/disable.ts)_
1087
+ _See code: [src/commands/datasets/embeddings/disable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/embeddings/disable.ts)_
1088
1088
 
1089
- ## `sanity dataset embeddings enable [DATASET]`
1089
+ ## `sanity datasets embeddings enable [DATASET]`
1090
1090
 
1091
1091
  Enable embeddings for a dataset
1092
1092
 
1093
1093
  ```
1094
1094
  USAGE
1095
- $ sanity dataset embeddings enable [DATASET] [-p <id>] [--projection <value>] [--wait]
1095
+ $ sanity datasets embeddings enable [DATASET] [-p <id>] [--projection <value>] [--wait]
1096
1096
 
1097
1097
  ARGUMENTS
1098
1098
  [DATASET] Dataset name to enable embeddings for
@@ -1110,26 +1110,26 @@ DESCRIPTION
1110
1110
  EXAMPLES
1111
1111
  Enable embeddings for the production dataset
1112
1112
 
1113
- $ sanity dataset embeddings enable production
1113
+ $ sanity datasets embeddings enable production
1114
1114
 
1115
1115
  Enable embeddings with a specific projection
1116
1116
 
1117
- $ sanity dataset embeddings enable production --projection "{ title, body }"
1117
+ $ sanity datasets embeddings enable production --projection "{ title, body }"
1118
1118
 
1119
1119
  Enable embeddings and wait for processing to complete
1120
1120
 
1121
- $ sanity dataset embeddings enable production --wait
1121
+ $ sanity datasets embeddings enable production --wait
1122
1122
  ```
1123
1123
 
1124
- _See code: [src/commands/dataset/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/enable.ts)_
1124
+ _See code: [src/commands/datasets/embeddings/enable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/embeddings/enable.ts)_
1125
1125
 
1126
- ## `sanity dataset embeddings status [DATASET]`
1126
+ ## `sanity datasets embeddings status [DATASET]`
1127
1127
 
1128
1128
  Show embeddings settings and status for a dataset
1129
1129
 
1130
1130
  ```
1131
1131
  USAGE
1132
- $ sanity dataset embeddings status [DATASET] [-p <id>]
1132
+ $ sanity datasets embeddings status [DATASET] [-p <id>]
1133
1133
 
1134
1134
  ARGUMENTS
1135
1135
  [DATASET] The name of the dataset to check embeddings status for
@@ -1143,18 +1143,18 @@ DESCRIPTION
1143
1143
  EXAMPLES
1144
1144
  Show embeddings status for the production dataset
1145
1145
 
1146
- $ sanity dataset embeddings status production
1146
+ $ sanity datasets embeddings status production
1147
1147
  ```
1148
1148
 
1149
- _See code: [src/commands/dataset/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/embeddings/status.ts)_
1149
+ _See code: [src/commands/datasets/embeddings/status.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/embeddings/status.ts)_
1150
1150
 
1151
- ## `sanity dataset export [NAME] [DESTINATION]`
1151
+ ## `sanity datasets export [NAME] [DESTINATION]`
1152
1152
 
1153
1153
  Export dataset to local filesystem as a gzipped tarball. Assets failing with HTTP status codes 401, 403 and 404 upon download are ignored and excluded from export.
1154
1154
 
1155
1155
  ```
1156
1156
  USAGE
1157
- $ sanity dataset export [NAME] [DESTINATION] [-p <id>] [--asset-concurrency <value>] [--mode stream|cursor]
1157
+ $ sanity datasets export [NAME] [DESTINATION] [-p <id>] [--asset-concurrency <value>] [--mode stream|cursor]
1158
1158
  [--no-assets] [--no-compress] [--no-drafts] [--overwrite] [--raw] [--types <value>]
1159
1159
 
1160
1160
  ARGUMENTS
@@ -1184,30 +1184,30 @@ DESCRIPTION
1184
1184
  EXAMPLES
1185
1185
  Export dataset "moviedb" to localPath.tar.gz
1186
1186
 
1187
- $ sanity dataset export moviedb localPath.tar.gz
1187
+ $ sanity datasets export moviedb localPath.tar.gz
1188
1188
 
1189
1189
  Export dataset without assets
1190
1190
 
1191
- $ sanity dataset export moviedb assetless.tar.gz --no-assets
1191
+ $ sanity datasets export moviedb assetless.tar.gz --no-assets
1192
1192
 
1193
1193
  Export raw documents without asset reference rewriting
1194
1194
 
1195
- $ sanity dataset export staging staging.tar.gz --raw
1195
+ $ sanity datasets export staging staging.tar.gz --raw
1196
1196
 
1197
1197
  Export specific document types
1198
1198
 
1199
- $ sanity dataset export staging staging.tar.gz --types products,shops
1199
+ $ sanity datasets export staging staging.tar.gz --types products,shops
1200
1200
  ```
1201
1201
 
1202
- _See code: [src/commands/dataset/export.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/export.ts)_
1202
+ _See code: [src/commands/datasets/export.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/export.ts)_
1203
1203
 
1204
- ## `sanity dataset import SOURCE [TARGETDATASET]`
1204
+ ## `sanity datasets import SOURCE [TARGETDATASET]`
1205
1205
 
1206
1206
  Import documents to a Sanity dataset
1207
1207
 
1208
1208
  ```
1209
1209
  USAGE
1210
- $ sanity dataset import SOURCE [TARGETDATASET] [--allow-assets-in-different-dataset] [--allow-failing-assets]
1210
+ $ sanity datasets import SOURCE [TARGETDATASET] [--allow-assets-in-different-dataset] [--allow-failing-assets]
1211
1211
  [--allow-replacement-characters] [--allow-system-documents] [--asset-concurrency <value>] [-d <name>] [--missing |
1212
1212
  --replace] [-p <id>] [--replace-assets] [--skip-cross-dataset-references] [-t <value>]
1213
1213
 
@@ -1237,26 +1237,30 @@ DESCRIPTION
1237
1237
  EXAMPLES
1238
1238
  Import "./my-dataset.ndjson" into dataset "staging"
1239
1239
 
1240
- $ sanity dataset import -d staging -t someSecretToken my-dataset.ndjson
1240
+ $ sanity datasets import -d staging my-dataset.ndjson
1241
1241
 
1242
1242
  Import into dataset "test" from stdin
1243
1243
 
1244
- cat my-dataset.ndjson | sanity dataset import -d test -t someToken -
1244
+ cat my-dataset.ndjson | sanity datasets import -d test -
1245
1245
 
1246
1246
  Import with explicit project ID (overrides CLI configuration)
1247
1247
 
1248
- $ sanity dataset import -p projectId -d staging -t someSecretToken my-dataset.ndjson
1248
+ $ sanity datasets import -p projectId -d staging my-dataset.ndjson
1249
+
1250
+ Import with an explicit token (e.g. for CI/CD)
1251
+
1252
+ $ sanity datasets import -d staging -t someSecretToken my-dataset.ndjson
1249
1253
  ```
1250
1254
 
1251
- _See code: [src/commands/dataset/import.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/import.ts)_
1255
+ _See code: [src/commands/datasets/import.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/import.ts)_
1252
1256
 
1253
- ## `sanity dataset list`
1257
+ ## `sanity datasets list`
1254
1258
 
1255
1259
  List datasets of your project
1256
1260
 
1257
1261
  ```
1258
1262
  USAGE
1259
- $ sanity dataset list [-p <id>]
1263
+ $ sanity datasets list [-p <id>]
1260
1264
 
1261
1265
  OVERRIDE FLAGS
1262
1266
  -p, --project-id=<id> Project ID to list datasets for (overrides CLI configuration)
@@ -1267,22 +1271,22 @@ DESCRIPTION
1267
1271
  EXAMPLES
1268
1272
  List datasets of your project
1269
1273
 
1270
- $ sanity dataset list
1274
+ $ sanity datasets list
1271
1275
 
1272
1276
  List datasets for a specific project
1273
1277
 
1274
- $ sanity dataset list --project-id abc123
1278
+ $ sanity datasets list --project-id abc123
1275
1279
  ```
1276
1280
 
1277
- _See code: [src/commands/dataset/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/list.ts)_
1281
+ _See code: [src/commands/datasets/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/list.ts)_
1278
1282
 
1279
- ## `sanity dataset visibility get DATASET`
1283
+ ## `sanity datasets visibility get DATASET`
1280
1284
 
1281
1285
  Get the visibility of a dataset
1282
1286
 
1283
1287
  ```
1284
1288
  USAGE
1285
- $ sanity dataset visibility get DATASET [-p <id>]
1289
+ $ sanity datasets visibility get DATASET [-p <id>]
1286
1290
 
1287
1291
  ARGUMENTS
1288
1292
  DATASET The name of the dataset to get visibility for
@@ -1296,18 +1300,18 @@ DESCRIPTION
1296
1300
  EXAMPLES
1297
1301
  Check the visibility of a dataset
1298
1302
 
1299
- $ sanity dataset visibility get my-dataset
1303
+ $ sanity datasets visibility get my-dataset
1300
1304
  ```
1301
1305
 
1302
- _See code: [src/commands/dataset/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/visibility/get.ts)_
1306
+ _See code: [src/commands/datasets/visibility/get.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/visibility/get.ts)_
1303
1307
 
1304
- ## `sanity dataset visibility set DATASET MODE`
1308
+ ## `sanity datasets visibility set DATASET MODE`
1305
1309
 
1306
1310
  Set the visibility of a dataset
1307
1311
 
1308
1312
  ```
1309
1313
  USAGE
1310
- $ sanity dataset visibility set DATASET MODE [-p <id>]
1314
+ $ sanity datasets visibility set DATASET MODE [-p <id>]
1311
1315
 
1312
1316
  ARGUMENTS
1313
1317
  DATASET The name of the dataset to set visibility for
@@ -1322,14 +1326,14 @@ DESCRIPTION
1322
1326
  EXAMPLES
1323
1327
  Make a dataset private
1324
1328
 
1325
- $ sanity dataset visibility set my-dataset private
1329
+ $ sanity datasets visibility set my-dataset private
1326
1330
 
1327
1331
  Make a dataset public
1328
1332
 
1329
- $ sanity dataset visibility set my-dataset public
1333
+ $ sanity datasets visibility set my-dataset public
1330
1334
  ```
1331
1335
 
1332
- _See code: [src/commands/dataset/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dataset/visibility/set.ts)_
1336
+ _See code: [src/commands/datasets/visibility/set.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/datasets/visibility/set.ts)_
1333
1337
 
1334
1338
  ## `sanity debug`
1335
1339
 
@@ -1352,7 +1356,7 @@ EXAMPLES
1352
1356
  $ sanity debug --secrets
1353
1357
  ```
1354
1358
 
1355
- _See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/debug.ts)_
1359
+ _See code: [src/commands/debug.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/debug.ts)_
1356
1360
 
1357
1361
  ## `sanity deploy [SOURCEDIR]`
1358
1362
 
@@ -1397,7 +1401,7 @@ EXAMPLES
1397
1401
  $ sanity deploy --external
1398
1402
  ```
1399
1403
 
1400
- _See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/deploy.ts)_
1404
+ _See code: [src/commands/deploy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/deploy.ts)_
1401
1405
 
1402
1406
  ## `sanity dev`
1403
1407
 
@@ -1424,7 +1428,7 @@ EXAMPLES
1424
1428
  $ sanity dev --load-in-dashboard
1425
1429
  ```
1426
1430
 
1427
- _See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/dev.ts)_
1431
+ _See code: [src/commands/dev.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/dev.ts)_
1428
1432
 
1429
1433
  ## `sanity docs browse`
1430
1434
 
@@ -1438,7 +1442,7 @@ DESCRIPTION
1438
1442
  Open Sanity docs in a web browser
1439
1443
  ```
1440
1444
 
1441
- _See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/browse.ts)_
1445
+ _See code: [src/commands/docs/browse.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/docs/browse.ts)_
1442
1446
 
1443
1447
  ## `sanity docs read PATH`
1444
1448
 
@@ -1475,7 +1479,7 @@ EXAMPLES
1475
1479
  $ sanity docs read https://www.sanity.io/docs/studio/installation -w
1476
1480
  ```
1477
1481
 
1478
- _See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/read.ts)_
1482
+ _See code: [src/commands/docs/read.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/docs/read.ts)_
1479
1483
 
1480
1484
  ## `sanity docs search QUERY`
1481
1485
 
@@ -1508,7 +1512,7 @@ EXAMPLES
1508
1512
  $ sanity docs search "deployment" --limit=5
1509
1513
  ```
1510
1514
 
1511
- _See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/docs/search.ts)_
1515
+ _See code: [src/commands/docs/search.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/docs/search.ts)_
1512
1516
 
1513
1517
  ## `sanity doctor [CHECKS]`
1514
1518
 
@@ -1539,7 +1543,7 @@ EXAMPLES
1539
1543
  $ sanity doctor cli
1540
1544
  ```
1541
1545
 
1542
- _See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/doctor.ts)_
1546
+ _See code: [src/commands/doctor.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/doctor.ts)_
1543
1547
 
1544
1548
  ## `sanity documents create [FILE]`
1545
1549
 
@@ -1590,7 +1594,7 @@ EXAMPLES
1590
1594
  $ sanity documents create myDocument.json --project-id abc123
1591
1595
  ```
1592
1596
 
1593
- _See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/create.ts)_
1597
+ _See code: [src/commands/documents/create.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/documents/create.ts)_
1594
1598
 
1595
1599
  ## `sanity documents delete ID [IDS]`
1596
1600
 
@@ -1633,7 +1637,7 @@ EXAMPLES
1633
1637
  $ sanity documents delete myDocId --project-id abc123
1634
1638
  ```
1635
1639
 
1636
- _See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/delete.ts)_
1640
+ _See code: [src/commands/documents/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/documents/delete.ts)_
1637
1641
 
1638
1642
  ## `sanity documents get DOCUMENTID`
1639
1643
 
@@ -1674,7 +1678,7 @@ EXAMPLES
1674
1678
  $ sanity documents get myDocId --project-id abc123
1675
1679
  ```
1676
1680
 
1677
- _See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/get.ts)_
1681
+ _See code: [src/commands/documents/get.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/documents/get.ts)_
1678
1682
 
1679
1683
  ## `sanity documents query QUERY`
1680
1684
 
@@ -1717,7 +1721,7 @@ EXAMPLES
1717
1721
  $ sanity documents query '*[_type == "post"]' --project-id abc123 --dataset production
1718
1722
  ```
1719
1723
 
1720
- _See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/query.ts)_
1724
+ _See code: [src/commands/documents/query.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/documents/query.ts)_
1721
1725
 
1722
1726
  ## `sanity documents validate`
1723
1727
 
@@ -1771,7 +1775,7 @@ EXAMPLES
1771
1775
  $ sanity documents validate --project-id abc123 --dataset production
1772
1776
  ```
1773
1777
 
1774
- _See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/documents/validate.ts)_
1778
+ _See code: [src/commands/documents/validate.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/documents/validate.ts)_
1775
1779
 
1776
1780
  ## `sanity exec SCRIPT`
1777
1781
 
@@ -1812,7 +1816,7 @@ EXAMPLES
1812
1816
  $ sanity exec --mock-browser-env myscript.js -- --dry-run positional-argument
1813
1817
  ```
1814
1818
 
1815
- _See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/exec.ts)_
1819
+ _See code: [src/commands/exec.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/exec.ts)_
1816
1820
 
1817
1821
  ## `sanity functions add`
1818
1822
 
@@ -1861,7 +1865,7 @@ EXAMPLES
1861
1865
  $ sanity functions add --name my-function --type document-create --type document-update --lang js
1862
1866
  ```
1863
1867
 
1864
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/add.ts)_
1868
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/add.ts)_
1865
1869
 
1866
1870
  ## `sanity functions dev`
1867
1871
 
@@ -1895,7 +1899,7 @@ EXAMPLES
1895
1899
  $ sanity functions dev --timeout 60
1896
1900
  ```
1897
1901
 
1898
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/dev.ts)_
1902
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/dev.ts)_
1899
1903
 
1900
1904
  ## `sanity functions env add NAME KEY VALUE`
1901
1905
 
@@ -1922,7 +1926,7 @@ EXAMPLES
1922
1926
  $ sanity functions env add MyFunction API_URL https://api.example.com/
1923
1927
  ```
1924
1928
 
1925
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/add.ts)_
1929
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/add.ts)_
1926
1930
 
1927
1931
  ## `sanity functions env list NAME`
1928
1932
 
@@ -1946,7 +1950,7 @@ EXAMPLES
1946
1950
  $ sanity functions env list MyFunction
1947
1951
  ```
1948
1952
 
1949
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/list.ts)_
1953
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/list.ts)_
1950
1954
 
1951
1955
  ## `sanity functions env remove NAME KEY`
1952
1956
 
@@ -1972,7 +1976,7 @@ EXAMPLES
1972
1976
  $ sanity functions env remove MyFunction API_URL
1973
1977
  ```
1974
1978
 
1975
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/env/remove.ts)_
1979
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/env/remove.ts)_
1976
1980
 
1977
1981
  ## `sanity functions logs [NAME]`
1978
1982
 
@@ -2012,7 +2016,7 @@ EXAMPLES
2012
2016
  $ sanity functions logs <name> --delete
2013
2017
  ```
2014
2018
 
2015
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/logs.ts)_
2019
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/logs.ts)_
2016
2020
 
2017
2021
  ## `sanity functions test [NAME]`
2018
2022
 
@@ -2066,7 +2070,7 @@ EXAMPLES
2066
2070
  $ sanity functions test <name> --event update --data-before '{ "title": "before" }' --data-after '{ "title": "after" }'
2067
2071
  ```
2068
2072
 
2069
- _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.5.1/src/commands/functions/test.ts)_
2073
+ _See code: [@sanity/runtime-cli](https://github.com/sanity-io/runtime-cli/blob/v14.6.1/src/commands/functions/test.ts)_
2070
2074
 
2071
2075
  ## `sanity graphql deploy`
2072
2076
 
@@ -2111,7 +2115,7 @@ EXAMPLES
2111
2115
  $ sanity graphql deploy --playground
2112
2116
  ```
2113
2117
 
2114
- _See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/deploy.ts)_
2118
+ _See code: [src/commands/graphql/deploy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/graphql/deploy.ts)_
2115
2119
 
2116
2120
  ## `sanity graphql list`
2117
2121
 
@@ -2137,7 +2141,7 @@ EXAMPLES
2137
2141
  $ sanity graphql list --project-id abc123
2138
2142
  ```
2139
2143
 
2140
- _See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/list.ts)_
2144
+ _See code: [src/commands/graphql/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/graphql/list.ts)_
2141
2145
 
2142
2146
  ## `sanity graphql undeploy`
2143
2147
 
@@ -2185,7 +2189,7 @@ EXAMPLES
2185
2189
  $ sanity graphql undeploy --project-id abc123 --dataset production
2186
2190
  ```
2187
2191
 
2188
- _See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/graphql/undeploy.ts)_
2192
+ _See code: [src/commands/graphql/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/graphql/undeploy.ts)_
2189
2193
 
2190
2194
  ## `sanity help [COMMAND]`
2191
2195
 
@@ -2205,15 +2209,15 @@ DESCRIPTION
2205
2209
  Display help for sanity.
2206
2210
  ```
2207
2211
 
2208
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.38/src/commands/help.ts)_
2212
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/6.2.39/src/commands/help.ts)_
2209
2213
 
2210
- ## `sanity hook attempt ATTEMPTID`
2214
+ ## `sanity hooks attempt ATTEMPTID`
2211
2215
 
2212
2216
  Print details of a given webhook delivery attempt
2213
2217
 
2214
2218
  ```
2215
2219
  USAGE
2216
- $ sanity hook attempt ATTEMPTID [-p <id>]
2220
+ $ sanity hooks attempt ATTEMPTID [-p <id>]
2217
2221
 
2218
2222
  ARGUMENTS
2219
2223
  ATTEMPTID The delivery attempt ID to get details for
@@ -2227,22 +2231,22 @@ DESCRIPTION
2227
2231
  EXAMPLES
2228
2232
  Print details of webhook delivery attempt with ID abc123
2229
2233
 
2230
- $ sanity hook attempt abc123
2234
+ $ sanity hooks attempt abc123
2231
2235
 
2232
2236
  Get attempt details for a specific project
2233
2237
 
2234
- $ sanity hook attempt abc123 --project-id projectId
2238
+ $ sanity hooks attempt abc123 --project-id projectId
2235
2239
  ```
2236
2240
 
2237
- _See code: [src/commands/hook/attempt.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/attempt.ts)_
2241
+ _See code: [src/commands/hooks/attempt.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/hooks/attempt.ts)_
2238
2242
 
2239
- ## `sanity hook create`
2243
+ ## `sanity hooks create`
2240
2244
 
2241
2245
  Create a new webhook for the current project
2242
2246
 
2243
2247
  ```
2244
2248
  USAGE
2245
- $ sanity hook create [-p <id>]
2249
+ $ sanity hooks create [-p <id>]
2246
2250
 
2247
2251
  OVERRIDE FLAGS
2248
2252
  -p, --project-id=<id> Project ID to create webhook for (overrides CLI configuration)
@@ -2253,22 +2257,22 @@ DESCRIPTION
2253
2257
  EXAMPLES
2254
2258
  Create a new webhook for the current project
2255
2259
 
2256
- $ sanity hook create
2260
+ $ sanity hooks create
2257
2261
 
2258
2262
  Create a webhook for a specific project
2259
2263
 
2260
- $ sanity hook create --project-id abc123
2264
+ $ sanity hooks create --project-id abc123
2261
2265
  ```
2262
2266
 
2263
- _See code: [src/commands/hook/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/create.ts)_
2267
+ _See code: [src/commands/hooks/create.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/hooks/create.ts)_
2264
2268
 
2265
- ## `sanity hook delete [NAME]`
2269
+ ## `sanity hooks delete [NAME]`
2266
2270
 
2267
2271
  Delete a hook within your project
2268
2272
 
2269
2273
  ```
2270
2274
  USAGE
2271
- $ sanity hook delete [NAME] [-p <id>]
2275
+ $ sanity hooks delete [NAME] [-p <id>]
2272
2276
 
2273
2277
  ARGUMENTS
2274
2278
  [NAME] Name of hook to delete (will prompt if not provided)
@@ -2282,26 +2286,26 @@ DESCRIPTION
2282
2286
  EXAMPLES
2283
2287
  Interactively select and delete a hook
2284
2288
 
2285
- $ sanity hook delete
2289
+ $ sanity hooks delete
2286
2290
 
2287
2291
  Delete a specific hook by name
2288
2292
 
2289
- $ sanity hook delete my-hook
2293
+ $ sanity hooks delete my-hook
2290
2294
 
2291
2295
  Delete a hook from a specific project
2292
2296
 
2293
- $ sanity hook delete --project-id abc123
2297
+ $ sanity hooks delete --project-id abc123
2294
2298
  ```
2295
2299
 
2296
- _See code: [src/commands/hook/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/delete.ts)_
2300
+ _See code: [src/commands/hooks/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/hooks/delete.ts)_
2297
2301
 
2298
- ## `sanity hook list`
2302
+ ## `sanity hooks list`
2299
2303
 
2300
2304
  List hooks for a given project
2301
2305
 
2302
2306
  ```
2303
2307
  USAGE
2304
- $ sanity hook list [-p <id>]
2308
+ $ sanity hooks list [-p <id>]
2305
2309
 
2306
2310
  OVERRIDE FLAGS
2307
2311
  -p, --project-id=<id> Project ID to list webhooks for (overrides CLI configuration)
@@ -2312,22 +2316,22 @@ DESCRIPTION
2312
2316
  EXAMPLES
2313
2317
  List hooks for a given project
2314
2318
 
2315
- $ sanity hook list
2319
+ $ sanity hooks list
2316
2320
 
2317
2321
  List hooks for a specific project
2318
2322
 
2319
- $ sanity hook list --project-id abc123
2323
+ $ sanity hooks list --project-id abc123
2320
2324
  ```
2321
2325
 
2322
- _See code: [src/commands/hook/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/list.ts)_
2326
+ _See code: [src/commands/hooks/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/hooks/list.ts)_
2323
2327
 
2324
- ## `sanity hook logs [NAME]`
2328
+ ## `sanity hooks logs [NAME]`
2325
2329
 
2326
2330
  List latest log entries for a given hook
2327
2331
 
2328
2332
  ```
2329
2333
  USAGE
2330
- $ sanity hook logs [NAME] [-p <id>] [--detailed]
2334
+ $ sanity hooks logs [NAME] [-p <id>] [--detailed]
2331
2335
 
2332
2336
  ARGUMENTS
2333
2337
  [NAME] Name of the hook to show logs for
@@ -2344,18 +2348,18 @@ DESCRIPTION
2344
2348
  EXAMPLES
2345
2349
  List latest log entries for a given hook
2346
2350
 
2347
- $ sanity hook logs
2351
+ $ sanity hooks logs
2348
2352
 
2349
2353
  List latest log entries for a specific hook by name
2350
2354
 
2351
- $ sanity hook logs [NAME]
2355
+ $ sanity hooks logs [NAME]
2352
2356
 
2353
2357
  List hook logs for a specific project
2354
2358
 
2355
- $ sanity hook logs --project-id abc123
2359
+ $ sanity hooks logs --project-id abc123
2356
2360
  ```
2357
2361
 
2358
- _See code: [src/commands/hook/logs.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/hook/logs.ts)_
2362
+ _See code: [src/commands/hooks/logs.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/hooks/logs.ts)_
2359
2363
 
2360
2364
  ## `sanity init`
2361
2365
 
@@ -2425,7 +2429,7 @@ EXAMPLES
2425
2429
  --output-path /Users/espenh/movies-unlimited
2426
2430
  ```
2427
2431
 
2428
- _See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/init.ts)_
2432
+ _See code: [src/commands/init.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/init.ts)_
2429
2433
 
2430
2434
  ## `sanity install [PACKAGES]`
2431
2435
 
@@ -2449,7 +2453,7 @@ EXAMPLES
2449
2453
  $ sanity install some-package another-package
2450
2454
  ```
2451
2455
 
2452
- _See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/install.ts)_
2456
+ _See code: [src/commands/install.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/install.ts)_
2453
2457
 
2454
2458
  ## `sanity learn`
2455
2459
 
@@ -2463,7 +2467,7 @@ DESCRIPTION
2463
2467
  Opens Sanity Learn in your web browser
2464
2468
  ```
2465
2469
 
2466
- _See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/learn.ts)_
2470
+ _See code: [src/commands/learn.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/learn.ts)_
2467
2471
 
2468
2472
  ## `sanity login`
2469
2473
 
@@ -2495,7 +2499,7 @@ EXAMPLES
2495
2499
  $ sanity login --provider github --no-open
2496
2500
  ```
2497
2501
 
2498
- _See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/login.ts)_
2502
+ _See code: [src/commands/login.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/login.ts)_
2499
2503
 
2500
2504
  ## `sanity logout`
2501
2505
 
@@ -2509,7 +2513,7 @@ DESCRIPTION
2509
2513
  Logs out the CLI from the current user session
2510
2514
  ```
2511
2515
 
2512
- _See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/logout.ts)_
2516
+ _See code: [src/commands/logout.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/logout.ts)_
2513
2517
 
2514
2518
  ## `sanity manage`
2515
2519
 
@@ -2523,7 +2527,7 @@ DESCRIPTION
2523
2527
  Opens project management interface in your web browser
2524
2528
  ```
2525
2529
 
2526
- _See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/manage.ts)_
2530
+ _See code: [src/commands/manage.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/manage.ts)_
2527
2531
 
2528
2532
  ## `sanity manifest extract`
2529
2533
 
@@ -2551,7 +2555,7 @@ EXAMPLES
2551
2555
  $ sanity manifest extract --path /public/static
2552
2556
  ```
2553
2557
 
2554
- _See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/manifest/extract.ts)_
2558
+ _See code: [src/commands/manifest/extract.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/manifest/extract.ts)_
2555
2559
 
2556
2560
  ## `sanity mcp configure`
2557
2561
 
@@ -2570,7 +2574,7 @@ EXAMPLES
2570
2574
  $ sanity mcp configure
2571
2575
  ```
2572
2576
 
2573
- _See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/mcp/configure.ts)_
2577
+ _See code: [src/commands/mcp/configure.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/mcp/configure.ts)_
2574
2578
 
2575
2579
  ## `sanity media create-aspect`
2576
2580
 
@@ -2589,7 +2593,7 @@ EXAMPLES
2589
2593
  $ sanity media create-aspect
2590
2594
  ```
2591
2595
 
2592
- _See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/create-aspect.ts)_
2596
+ _See code: [src/commands/media/create-aspect.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/media/create-aspect.ts)_
2593
2597
 
2594
2598
  ## `sanity media delete-aspect ASPECTNAME`
2595
2599
 
@@ -2618,7 +2622,7 @@ EXAMPLES
2618
2622
  $ sanity media delete-aspect someAspect
2619
2623
  ```
2620
2624
 
2621
- _See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/delete-aspect.ts)_
2625
+ _See code: [src/commands/media/delete-aspect.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/media/delete-aspect.ts)_
2622
2626
 
2623
2627
  ## `sanity media deploy-aspect [ASPECTNAME]`
2624
2628
 
@@ -2651,7 +2655,7 @@ EXAMPLES
2651
2655
  $ sanity media deploy-aspect --all
2652
2656
  ```
2653
2657
 
2654
- _See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/deploy-aspect.ts)_
2658
+ _See code: [src/commands/media/deploy-aspect.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/media/deploy-aspect.ts)_
2655
2659
 
2656
2660
  ## `sanity media export [DESTINATION]`
2657
2661
 
@@ -2692,7 +2696,7 @@ EXAMPLES
2692
2696
  $ sanity media export --media-library-id my-library-id
2693
2697
  ```
2694
2698
 
2695
- _See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/export.ts)_
2699
+ _See code: [src/commands/media/export.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/media/export.ts)_
2696
2700
 
2697
2701
  ## `sanity media import SOURCE`
2698
2702
 
@@ -2730,15 +2734,15 @@ EXAMPLES
2730
2734
  $ sanity media import products --replace-aspects
2731
2735
  ```
2732
2736
 
2733
- _See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/media/import.ts)_
2737
+ _See code: [src/commands/media/import.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/media/import.ts)_
2734
2738
 
2735
- ## `sanity migration create [TITLE]`
2739
+ ## `sanity migrations create [TITLE]`
2736
2740
 
2737
2741
  Create a new migration within your project
2738
2742
 
2739
2743
  ```
2740
2744
  USAGE
2741
- $ sanity migration create [TITLE]
2745
+ $ sanity migrations create [TITLE]
2742
2746
 
2743
2747
  ARGUMENTS
2744
2748
  [TITLE] Title of migration
@@ -2749,22 +2753,22 @@ DESCRIPTION
2749
2753
  EXAMPLES
2750
2754
  Create a new migration, prompting for title and options
2751
2755
 
2752
- $ sanity migration create
2756
+ $ sanity migrations create
2753
2757
 
2754
2758
  Create a new migration with the provided title, prompting for options
2755
2759
 
2756
- $ sanity migration create "Rename field from location to address"
2760
+ $ sanity migrations create "Rename field from location to address"
2757
2761
  ```
2758
2762
 
2759
- _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.0.0/src/commands/migration/create.ts)_
2763
+ _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.1.0/src/commands/migrations/create.ts)_
2760
2764
 
2761
- ## `sanity migration list`
2765
+ ## `sanity migrations list`
2762
2766
 
2763
2767
  List available migrations
2764
2768
 
2765
2769
  ```
2766
2770
  USAGE
2767
- $ sanity migration list
2771
+ $ sanity migrations list
2768
2772
 
2769
2773
  DESCRIPTION
2770
2774
  List available migrations
@@ -2772,18 +2776,18 @@ DESCRIPTION
2772
2776
  EXAMPLES
2773
2777
  List all available migrations in the project
2774
2778
 
2775
- $ sanity migration list
2779
+ $ sanity migrations list
2776
2780
  ```
2777
2781
 
2778
- _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.0.0/src/commands/migration/list.ts)_
2782
+ _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.1.0/src/commands/migrations/list.ts)_
2779
2783
 
2780
- ## `sanity migration run [ID]`
2784
+ ## `sanity migrations run [ID]`
2781
2785
 
2782
2786
  Run a migration against a dataset
2783
2787
 
2784
2788
  ```
2785
2789
  USAGE
2786
- $ sanity migration run [ID] [--api-version <value>] [--concurrency <value>] [--confirm] [--dataset <value>]
2790
+ $ sanity migrations run [ID] [--api-version <value>] [--concurrency <value>] [--confirm] [--dataset <value>]
2787
2791
  [--dry-run] [--from-export <value>] [--progress] [--project <value>]
2788
2792
 
2789
2793
  ARGUMENTS
@@ -2808,18 +2812,18 @@ DESCRIPTION
2808
2812
  EXAMPLES
2809
2813
  dry run the migration
2810
2814
 
2811
- $ sanity migration run <id>
2815
+ $ sanity migrations run <id>
2812
2816
 
2813
2817
  execute the migration against a dataset
2814
2818
 
2815
- $ sanity migration run <id> --no-dry-run --project xyz --dataset staging
2819
+ $ sanity migrations run <id> --no-dry-run --project xyz --dataset staging
2816
2820
 
2817
2821
  execute the migration using a dataset export as the source
2818
2822
 
2819
- $ sanity migration run <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging
2823
+ $ sanity migrations run <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging
2820
2824
  ```
2821
2825
 
2822
- _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.0.0/src/commands/migration/run.ts)_
2826
+ _See code: [@sanity/migrate](https://github.com/sanity-io/migrate/blob/v6.1.0/src/commands/migrations/run.ts)_
2823
2827
 
2824
2828
  ## `sanity openapi get SLUG`
2825
2829
 
@@ -2858,7 +2862,7 @@ EXAMPLES
2858
2862
  $ sanity openapi get query > query-api.yaml
2859
2863
  ```
2860
2864
 
2861
- _See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/openapi/get.ts)_
2865
+ _See code: [src/commands/openapi/get.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/openapi/get.ts)_
2862
2866
 
2863
2867
  ## `sanity openapi list`
2864
2868
 
@@ -2889,7 +2893,7 @@ EXAMPLES
2889
2893
  $ sanity openapi list --web
2890
2894
  ```
2891
2895
 
2892
- _See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/openapi/list.ts)_
2896
+ _See code: [src/commands/openapi/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/openapi/list.ts)_
2893
2897
 
2894
2898
  ## `sanity preview [OUTPUTDIR]`
2895
2899
 
@@ -2917,7 +2921,7 @@ EXAMPLES
2917
2921
  $ sanity preview some/build-output-dir
2918
2922
  ```
2919
2923
 
2920
- _See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/preview.ts)_
2924
+ _See code: [src/commands/preview.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/preview.ts)_
2921
2925
 
2922
2926
  ## `sanity projects create [PROJECTNAME]`
2923
2927
 
@@ -2965,7 +2969,7 @@ EXAMPLES
2965
2969
  $ sanity projects create "CI Project" --yes --json
2966
2970
  ```
2967
2971
 
2968
- _See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/projects/create.ts)_
2972
+ _See code: [src/commands/projects/create.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/projects/create.ts)_
2969
2973
 
2970
2974
  ## `sanity projects list`
2971
2975
 
@@ -2994,15 +2998,15 @@ EXAMPLES
2994
2998
  $ sanity projects list --sort=members --order=asc
2995
2999
  ```
2996
3000
 
2997
- _See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/projects/list.ts)_
3001
+ _See code: [src/commands/projects/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/projects/list.ts)_
2998
3002
 
2999
- ## `sanity schema delete`
3003
+ ## `sanity schemas delete`
3000
3004
 
3001
3005
  Delete schema documents by id
3002
3006
 
3003
3007
  ```
3004
3008
  USAGE
3005
- $ sanity schema delete --ids <value> [-p <id>] [-d <name>] [--verbose]
3009
+ $ sanity schemas delete --ids <value> [-p <id>] [-d <name>] [--verbose]
3006
3010
 
3007
3011
  FLAGS
3008
3012
  -d, --dataset=<name> Delete schemas from a specific dataset
@@ -3018,22 +3022,23 @@ DESCRIPTION
3018
3022
  EXAMPLES
3019
3023
  Delete a single schema
3020
3024
 
3021
- $ sanity schema delete --ids sanity.workspace.schema.workspaceName
3025
+ $ sanity schemas delete --ids sanity.workspace.schema.workspaceName
3022
3026
 
3023
3027
  Delete multiple schemas
3024
3028
 
3025
- $ sanity schema delete --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
3029
+ $ sanity schemas delete --ids \
3030
+ sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace
3026
3031
  ```
3027
3032
 
3028
- _See code: [src/commands/schema/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/delete.ts)_
3033
+ _See code: [src/commands/schemas/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/schemas/delete.ts)_
3029
3034
 
3030
- ## `sanity schema deploy`
3035
+ ## `sanity schemas deploy`
3031
3036
 
3032
3037
  Deploy schema documents into workspace datasets.
3033
3038
 
3034
3039
  ```
3035
3040
  USAGE
3036
- $ sanity schema deploy [--extract-manifest] [--manifest-dir <directory>] [--tag <tag>] [--verbose] [--workspace
3041
+ $ sanity schemas deploy [--extract-manifest] [--manifest-dir <directory>] [--tag <tag>] [--verbose] [--workspace
3037
3042
  <name>]
3038
3043
 
3039
3044
  FLAGS
@@ -3054,22 +3059,22 @@ DESCRIPTION
3054
3059
  EXAMPLES
3055
3060
  Deploy all workspace schemas
3056
3061
 
3057
- $ sanity schema deploy
3062
+ $ sanity schemas deploy
3058
3063
 
3059
3064
  Deploy the schema for only the workspace "default"
3060
3065
 
3061
- $ sanity schema deploy --workspace default
3066
+ $ sanity schemas deploy --workspace default
3062
3067
  ```
3063
3068
 
3064
- _See code: [src/commands/schema/deploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/deploy.ts)_
3069
+ _See code: [src/commands/schemas/deploy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/schemas/deploy.ts)_
3065
3070
 
3066
- ## `sanity schema extract`
3071
+ ## `sanity schemas extract`
3067
3072
 
3068
3073
  Extracts a JSON representation of a Sanity schema within a Studio context.
3069
3074
 
3070
3075
  ```
3071
3076
  USAGE
3072
- $ sanity schema extract [--enforce-required-fields] [--format <format>] [--path <value>] [--watch]
3077
+ $ sanity schemas extract [--enforce-required-fields] [--format <format>] [--path <value>] [--watch]
3073
3078
  [--watch-patterns <glob>...] [--workspace <name>]
3074
3079
 
3075
3080
  FLAGS
@@ -3089,26 +3094,26 @@ DESCRIPTION
3089
3094
  EXAMPLES
3090
3095
  Extracts schema types in a Sanity project with more than one workspace
3091
3096
 
3092
- $ sanity schema extract --workspace default
3097
+ $ sanity schemas extract --workspace default
3093
3098
 
3094
3099
  Watch mode - re-extract on changes
3095
3100
 
3096
- $ sanity schema extract --watch
3101
+ $ sanity schemas extract --watch
3097
3102
 
3098
3103
  Watch with custom glob patterns
3099
3104
 
3100
- $ sanity schema extract --watch --watch-patterns "lib/**/*.ts"
3105
+ $ sanity schemas extract --watch --watch-patterns "lib/**/*.ts"
3101
3106
  ```
3102
3107
 
3103
- _See code: [src/commands/schema/extract.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/extract.ts)_
3108
+ _See code: [src/commands/schemas/extract.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/schemas/extract.ts)_
3104
3109
 
3105
- ## `sanity schema list`
3110
+ ## `sanity schemas list`
3106
3111
 
3107
3112
  Lists all schemas in the current dataset.
3108
3113
 
3109
3114
  ```
3110
3115
  USAGE
3111
- $ sanity schema list [--id <schema_id>] [--json]
3116
+ $ sanity schemas list [--id <schema_id>] [--json]
3112
3117
 
3113
3118
  FLAGS
3114
3119
  --id=<schema_id> Fetch a single schema by id
@@ -3125,30 +3130,30 @@ DESCRIPTION
3125
3130
  EXAMPLES
3126
3131
  List all schemas found in any workspace dataset in a table
3127
3132
 
3128
- $ sanity schema list
3133
+ $ sanity schemas list
3129
3134
 
3130
3135
  Get a schema for a given id
3131
3136
 
3132
- $ sanity schema list --id _.schemas.workspaceName
3137
+ $ sanity schemas list --id _.schemas.workspaceName
3133
3138
 
3134
3139
  Get stored schemas as pretty-printed json-array
3135
3140
 
3136
- $ sanity schema list --json
3141
+ $ sanity schemas list --json
3137
3142
 
3138
3143
  Get singular stored schema as pretty-printed json-object
3139
3144
 
3140
- $ sanity schema list --json --id _.schemas.workspaceName
3145
+ $ sanity schemas list --json --id _.schemas.workspaceName
3141
3146
  ```
3142
3147
 
3143
- _See code: [src/commands/schema/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/list.ts)_
3148
+ _See code: [src/commands/schemas/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/schemas/list.ts)_
3144
3149
 
3145
- ## `sanity schema validate`
3150
+ ## `sanity schemas validate`
3146
3151
 
3147
3152
  Validates all schema types specified in a workspace
3148
3153
 
3149
3154
  ```
3150
3155
  USAGE
3151
- $ sanity schema validate [--debug-metafile-path <value>] [--format pretty|ndjson|json] [--level error|warning]
3156
+ $ sanity schemas validate [--debug-metafile-path <value>] [--format pretty|ndjson|json] [--level error|warning]
3152
3157
  [--workspace <value>]
3153
3158
 
3154
3159
  FLAGS
@@ -3168,22 +3173,22 @@ DESCRIPTION
3168
3173
  EXAMPLES
3169
3174
  Validates all schema types in a Sanity project with more than one workspace
3170
3175
 
3171
- $ sanity schema validate --workspace default
3176
+ $ sanity schemas validate --workspace default
3172
3177
 
3173
3178
  Save the results of the report into a file
3174
3179
 
3175
- $ sanity schema validate > report.txt
3180
+ $ sanity schemas validate > report.txt
3176
3181
 
3177
3182
  Report out only errors
3178
3183
 
3179
- $ sanity schema validate --level error
3184
+ $ sanity schemas validate --level error
3180
3185
 
3181
3186
  Generate a report which can be analyzed with https://esbuild.github.io/analyze/
3182
3187
 
3183
- $ sanity schema validate --debug-metafile-path metafile.json
3188
+ $ sanity schemas validate --debug-metafile-path metafile.json
3184
3189
  ```
3185
3190
 
3186
- _See code: [src/commands/schema/validate.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/schema/validate.ts)_
3191
+ _See code: [src/commands/schemas/validate.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/schemas/validate.ts)_
3187
3192
 
3188
3193
  ## `sanity telemetry disable`
3189
3194
 
@@ -3202,7 +3207,7 @@ EXAMPLES
3202
3207
  $ sanity telemetry telemetry disable
3203
3208
  ```
3204
3209
 
3205
- _See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/disable.ts)_
3210
+ _See code: [src/commands/telemetry/disable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/telemetry/disable.ts)_
3206
3211
 
3207
3212
  ## `sanity telemetry enable`
3208
3213
 
@@ -3221,7 +3226,7 @@ EXAMPLES
3221
3226
  $ sanity telemetry telemetry enable
3222
3227
  ```
3223
3228
 
3224
- _See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/enable.ts)_
3229
+ _See code: [src/commands/telemetry/enable.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/telemetry/enable.ts)_
3225
3230
 
3226
3231
  ## `sanity telemetry status`
3227
3232
 
@@ -3240,7 +3245,7 @@ EXAMPLES
3240
3245
  $ sanity telemetry telemetry status
3241
3246
  ```
3242
3247
 
3243
- _See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/telemetry/status.ts)_
3248
+ _See code: [src/commands/telemetry/status.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/telemetry/status.ts)_
3244
3249
 
3245
3250
  ## `sanity tokens add [LABEL]`
3246
3251
 
@@ -3286,7 +3291,7 @@ EXAMPLES
3286
3291
  $ sanity tokens add "My Token" --project-id abc123 --role=editor
3287
3292
  ```
3288
3293
 
3289
- _See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/add.ts)_
3294
+ _See code: [src/commands/tokens/add.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/tokens/add.ts)_
3290
3295
 
3291
3296
  ## `sanity tokens delete [TOKENID]`
3292
3297
 
@@ -3326,7 +3331,7 @@ EXAMPLES
3326
3331
  $ sanity tokens delete --project-id abc123
3327
3332
  ```
3328
3333
 
3329
- _See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/delete.ts)_
3334
+ _See code: [src/commands/tokens/delete.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/tokens/delete.ts)_
3330
3335
 
3331
3336
  ## `sanity tokens list`
3332
3337
 
@@ -3359,7 +3364,7 @@ EXAMPLES
3359
3364
  $ sanity tokens list --project-id abc123
3360
3365
  ```
3361
3366
 
3362
- _See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/tokens/list.ts)_
3367
+ _See code: [src/commands/tokens/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/tokens/list.ts)_
3363
3368
 
3364
3369
  ## `sanity typegen generate`
3365
3370
 
@@ -3422,7 +3427,7 @@ DESCRIPTION
3422
3427
  Removes the deployed Sanity Studio/App from Sanity hosting
3423
3428
  ```
3424
3429
 
3425
- _See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/undeploy.ts)_
3430
+ _See code: [src/commands/undeploy.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/undeploy.ts)_
3426
3431
 
3427
3432
  ## `sanity users invite [EMAIL]`
3428
3433
 
@@ -3462,7 +3467,7 @@ EXAMPLES
3462
3467
  $ sanity users invite pippi@sanity.io --project-id abc123
3463
3468
  ```
3464
3469
 
3465
- _See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/users/invite.ts)_
3470
+ _See code: [src/commands/users/invite.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/users/invite.ts)_
3466
3471
 
3467
3472
  ## `sanity users list`
3468
3473
 
@@ -3504,7 +3509,7 @@ EXAMPLES
3504
3509
  $ sanity users list --project-id abc123
3505
3510
  ```
3506
3511
 
3507
- _See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/users/list.ts)_
3512
+ _See code: [src/commands/users/list.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/users/list.ts)_
3508
3513
 
3509
3514
  ## `sanity versions`
3510
3515
 
@@ -3521,6 +3526,6 @@ EXAMPLES
3521
3526
  $ sanity versions
3522
3527
  ```
3523
3528
 
3524
- _See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.1.8/src/commands/versions.ts)_
3529
+ _See code: [src/commands/versions.ts](https://github.com/sanity-io/cli/blob/v6.2.0/src/commands/versions.ts)_
3525
3530
 
3526
3531
  <!-- commandsstop -->