@sanity/cli 8.8.0 → 8.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3731,45 +3731,6 @@
3731
3731
  "undeploy.js"
3732
3732
  ]
3733
3733
  },
3734
- "manifest:extract": {
3735
- "aliases": [],
3736
- "args": {},
3737
- "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
3738
- "examples": [
3739
- {
3740
- "command": "<%= config.bin %> <%= command.id %>",
3741
- "description": "Extracts manifests"
3742
- },
3743
- {
3744
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3745
- "description": "Extracts manifests into /public/static"
3746
- }
3747
- ],
3748
- "flags": {
3749
- "path": {
3750
- "description": "Optional path to specify destination directory of the manifest files",
3751
- "name": "path",
3752
- "default": "dist/static",
3753
- "hasDynamicHelp": false,
3754
- "multiple": false,
3755
- "type": "option"
3756
- }
3757
- },
3758
- "hasDynamicHelp": false,
3759
- "hiddenAliases": [],
3760
- "id": "manifest:extract",
3761
- "pluginAlias": "@sanity/cli",
3762
- "pluginName": "@sanity/cli",
3763
- "pluginType": "core",
3764
- "strict": true,
3765
- "isESM": true,
3766
- "relativePath": [
3767
- "dist",
3768
- "commands",
3769
- "manifest",
3770
- "extract.js"
3771
- ]
3772
- },
3773
3734
  "hooks:attempt": {
3774
3735
  "aliases": [],
3775
3736
  "args": {
@@ -4018,20 +3979,33 @@
4018
3979
  "logs.js"
4019
3980
  ]
4020
3981
  },
4021
- "mcp:configure": {
3982
+ "manifest:extract": {
4022
3983
  "aliases": [],
4023
3984
  "args": {},
4024
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
3985
+ "description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
4025
3986
  "examples": [
4026
3987
  {
4027
3988
  "command": "<%= config.bin %> <%= command.id %>",
4028
- "description": "Configure Sanity MCP server for detected AI editors"
3989
+ "description": "Extracts manifests"
3990
+ },
3991
+ {
3992
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
3993
+ "description": "Extracts manifests into /public/static"
4029
3994
  }
4030
3995
  ],
4031
- "flags": {},
3996
+ "flags": {
3997
+ "path": {
3998
+ "description": "Optional path to specify destination directory of the manifest files",
3999
+ "name": "path",
4000
+ "default": "dist/static",
4001
+ "hasDynamicHelp": false,
4002
+ "multiple": false,
4003
+ "type": "option"
4004
+ }
4005
+ },
4032
4006
  "hasDynamicHelp": false,
4033
4007
  "hiddenAliases": [],
4034
- "id": "mcp:configure",
4008
+ "id": "manifest:extract",
4035
4009
  "pluginAlias": "@sanity/cli",
4036
4010
  "pluginName": "@sanity/cli",
4037
4011
  "pluginType": "core",
@@ -4040,36 +4014,24 @@
4040
4014
  "relativePath": [
4041
4015
  "dist",
4042
4016
  "commands",
4043
- "mcp",
4044
- "configure.js"
4017
+ "manifest",
4018
+ "extract.js"
4045
4019
  ]
4046
4020
  },
4047
- "migrations:create": {
4021
+ "mcp:configure": {
4048
4022
  "aliases": [],
4049
- "args": {
4050
- "title": {
4051
- "description": "Title of migration",
4052
- "name": "title",
4053
- "required": false
4054
- }
4055
- },
4056
- "description": "Create a new migration within your project",
4023
+ "args": {},
4024
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
4057
4025
  "examples": [
4058
4026
  {
4059
4027
  "command": "<%= config.bin %> <%= command.id %>",
4060
- "description": "Create a new migration, prompting for title and options"
4061
- },
4062
- {
4063
- "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
4064
- "description": "Create a new migration with the provided title, prompting for options"
4028
+ "description": "Configure Sanity MCP server for detected AI editors"
4065
4029
  }
4066
4030
  ],
4067
4031
  "flags": {},
4068
4032
  "hasDynamicHelp": false,
4069
- "hiddenAliases": [
4070
- "migration:create"
4071
- ],
4072
- "id": "migrations:create",
4033
+ "hiddenAliases": [],
4034
+ "id": "mcp:configure",
4073
4035
  "pluginAlias": "@sanity/cli",
4074
4036
  "pluginName": "@sanity/cli",
4075
4037
  "pluginType": "core",
@@ -4078,26 +4040,39 @@
4078
4040
  "relativePath": [
4079
4041
  "dist",
4080
4042
  "commands",
4081
- "migrations",
4082
- "create.js"
4043
+ "mcp",
4044
+ "configure.js"
4083
4045
  ]
4084
4046
  },
4085
- "migrations:list": {
4047
+ "media:create-aspect": {
4086
4048
  "aliases": [],
4087
4049
  "args": {},
4088
- "description": "List available migrations",
4050
+ "description": "Create a new aspect definition file",
4089
4051
  "examples": [
4090
4052
  {
4091
4053
  "command": "<%= config.bin %> <%= command.id %>",
4092
- "description": "List all available migrations in the project"
4054
+ "description": "Create a new aspect definition file"
4093
4055
  }
4094
4056
  ],
4095
- "flags": {},
4057
+ "flags": {
4058
+ "name": {
4059
+ "description": "Aspect name. Defaults to the title in camel case",
4060
+ "name": "name",
4061
+ "hasDynamicHelp": false,
4062
+ "multiple": false,
4063
+ "type": "option"
4064
+ },
4065
+ "title": {
4066
+ "description": "Aspect title",
4067
+ "name": "title",
4068
+ "hasDynamicHelp": false,
4069
+ "multiple": false,
4070
+ "type": "option"
4071
+ }
4072
+ },
4096
4073
  "hasDynamicHelp": false,
4097
- "hiddenAliases": [
4098
- "migration:list"
4099
- ],
4100
- "id": "migrations:list",
4074
+ "hiddenAliases": [],
4075
+ "id": "media:create-aspect",
4101
4076
  "pluginAlias": "@sanity/cli",
4102
4077
  "pluginName": "@sanity/cli",
4103
4078
  "pluginType": "core",
@@ -4106,95 +4081,55 @@
4106
4081
  "relativePath": [
4107
4082
  "dist",
4108
4083
  "commands",
4109
- "migrations",
4110
- "list.js"
4084
+ "media",
4085
+ "create-aspect.js"
4111
4086
  ]
4112
4087
  },
4113
- "migrations:run": {
4088
+ "media:delete-aspect": {
4114
4089
  "aliases": [],
4115
4090
  "args": {
4116
- "id": {
4117
- "description": "ID",
4118
- "name": "id",
4119
- "required": false
4091
+ "aspectName": {
4092
+ "description": "Name of the aspect to delete",
4093
+ "name": "aspectName",
4094
+ "required": true
4120
4095
  }
4121
4096
  },
4122
- "description": "Run a migration against a dataset",
4097
+ "description": "Delete an aspect definition",
4123
4098
  "examples": [
4124
4099
  {
4125
- "command": "<%= config.bin %> <%= command.id %> <id>",
4126
- "description": "dry run the migration"
4127
- },
4128
- {
4129
- "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
4130
- "description": "execute the migration against a dataset"
4131
- },
4132
- {
4133
- "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
4134
- "description": "execute the migration using a dataset export as the source"
4100
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
4101
+ "description": "Delete the aspect named \"someAspect\""
4135
4102
  }
4136
4103
  ],
4137
4104
  "flags": {
4138
- "api-version": {
4139
- "description": "API version to use when migrating. Defaults to v2024-01-29.",
4140
- "name": "api-version",
4141
- "hasDynamicHelp": false,
4142
- "multiple": false,
4143
- "type": "option"
4144
- },
4145
- "concurrency": {
4146
- "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
4147
- "name": "concurrency",
4148
- "default": 6,
4149
- "hasDynamicHelp": false,
4150
- "multiple": false,
4151
- "type": "option"
4152
- },
4153
- "confirm": {
4154
- "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
4155
- "name": "confirm",
4156
- "allowNo": true,
4157
- "type": "boolean"
4158
- },
4159
- "dataset": {
4160
- "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
4161
- "name": "dataset",
4105
+ "project-id": {
4106
+ "char": "p",
4107
+ "description": "Project ID to delete media aspect from (overrides CLI configuration)",
4108
+ "helpGroup": "OVERRIDE",
4109
+ "name": "project-id",
4162
4110
  "hasDynamicHelp": false,
4111
+ "helpValue": "<id>",
4163
4112
  "multiple": false,
4164
4113
  "type": "option"
4165
4114
  },
4166
- "dry-run": {
4167
- "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
4168
- "name": "dry-run",
4169
- "allowNo": true,
4170
- "type": "boolean"
4171
- },
4172
- "from-export": {
4173
- "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
4174
- "name": "from-export",
4115
+ "media-library-id": {
4116
+ "description": "The id of the target media library",
4117
+ "name": "media-library-id",
4175
4118
  "hasDynamicHelp": false,
4176
4119
  "multiple": false,
4177
4120
  "type": "option"
4178
4121
  },
4179
- "progress": {
4180
- "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
4181
- "name": "progress",
4182
- "allowNo": true,
4122
+ "yes": {
4123
+ "char": "y",
4124
+ "description": "Run without prompts and confirm deletion",
4125
+ "name": "yes",
4126
+ "allowNo": false,
4183
4127
  "type": "boolean"
4184
- },
4185
- "project": {
4186
- "description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
4187
- "name": "project",
4188
- "hasDynamicHelp": false,
4189
- "multiple": false,
4190
- "type": "option"
4191
4128
  }
4192
4129
  },
4193
4130
  "hasDynamicHelp": false,
4194
- "hiddenAliases": [
4195
- "migration:run"
4196
- ],
4197
- "id": "migrations:run",
4131
+ "hiddenAliases": [],
4132
+ "id": "media:delete-aspect",
4198
4133
  "pluginAlias": "@sanity/cli",
4199
4134
  "pluginName": "@sanity/cli",
4200
4135
  "pluginType": "core",
@@ -4203,246 +4138,36 @@
4203
4138
  "relativePath": [
4204
4139
  "dist",
4205
4140
  "commands",
4206
- "migrations",
4207
- "run.js"
4141
+ "media",
4142
+ "delete-aspect.js"
4208
4143
  ]
4209
4144
  },
4210
- "openapi:get": {
4145
+ "media:deploy-aspect": {
4211
4146
  "aliases": [],
4212
4147
  "args": {
4213
- "slug": {
4214
- "description": "Slug of the OpenAPI specification to retrieve",
4215
- "name": "slug",
4216
- "required": true
4148
+ "aspectName": {
4149
+ "description": "Name of the aspect to deploy",
4150
+ "name": "aspectName",
4151
+ "required": false
4217
4152
  }
4218
4153
  },
4219
- "description": "Get an OpenAPI specification by slug",
4154
+ "description": "Deploy an aspect",
4220
4155
  "examples": [
4221
4156
  {
4222
- "command": "<%= config.bin %> <%= command.id %> query",
4223
- "description": "Get a specification (YAML format, default)"
4224
- },
4225
- {
4226
- "command": "<%= config.bin %> <%= command.id %> query --format=json",
4227
- "description": "Get specification in JSON format"
4228
- },
4229
- {
4230
- "command": "<%= config.bin %> <%= command.id %> query --web",
4231
- "description": "Open specification in browser"
4157
+ "command": "<%= config.bin %> <%= command.id %> someAspect",
4158
+ "description": "Deploy the aspect named \"someAspect\""
4232
4159
  },
4233
4160
  {
4234
- "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
4235
- "description": "Pipe to file"
4161
+ "command": "<%= config.bin %> <%= command.id %> --all",
4162
+ "description": "Deploy all aspects"
4236
4163
  }
4237
4164
  ],
4238
4165
  "flags": {
4239
- "format": {
4240
- "description": "Output format: yaml (default), json",
4241
- "name": "format",
4242
- "default": "yaml",
4243
- "hasDynamicHelp": false,
4244
- "multiple": false,
4245
- "options": [
4246
- "yaml",
4247
- "json"
4248
- ],
4249
- "type": "option"
4250
- },
4251
- "web": {
4252
- "char": "w",
4253
- "description": "Open in web browser",
4254
- "name": "web",
4255
- "allowNo": false,
4256
- "type": "boolean"
4257
- }
4258
- },
4259
- "hasDynamicHelp": false,
4260
- "hiddenAliases": [],
4261
- "id": "openapi:get",
4262
- "pluginAlias": "@sanity/cli",
4263
- "pluginName": "@sanity/cli",
4264
- "pluginType": "core",
4265
- "strict": true,
4266
- "isESM": true,
4267
- "relativePath": [
4268
- "dist",
4269
- "commands",
4270
- "openapi",
4271
- "get.js"
4272
- ]
4273
- },
4274
- "openapi:list": {
4275
- "aliases": [],
4276
- "args": {},
4277
- "description": "List all available OpenAPI specifications",
4278
- "examples": [
4279
- {
4280
- "command": "<%= config.bin %> <%= command.id %>",
4281
- "description": "List all available OpenAPI specs"
4282
- },
4283
- {
4284
- "command": "<%= config.bin %> <%= command.id %> --json",
4285
- "description": "List with JSON output"
4286
- },
4287
- {
4288
- "command": "<%= config.bin %> <%= command.id %> --web",
4289
- "description": "Open HTTP Reference in browser"
4290
- }
4291
- ],
4292
- "flags": {
4293
- "json": {
4294
- "description": "Output JSON",
4295
- "name": "json",
4296
- "allowNo": false,
4297
- "type": "boolean"
4298
- },
4299
- "web": {
4300
- "char": "w",
4301
- "description": "Open HTTP Reference in web browser",
4302
- "name": "web",
4303
- "allowNo": false,
4304
- "type": "boolean"
4305
- }
4306
- },
4307
- "hasDynamicHelp": false,
4308
- "hiddenAliases": [],
4309
- "id": "openapi:list",
4310
- "pluginAlias": "@sanity/cli",
4311
- "pluginName": "@sanity/cli",
4312
- "pluginType": "core",
4313
- "strict": true,
4314
- "isESM": true,
4315
- "relativePath": [
4316
- "dist",
4317
- "commands",
4318
- "openapi",
4319
- "list.js"
4320
- ]
4321
- },
4322
- "media:create-aspect": {
4323
- "aliases": [],
4324
- "args": {},
4325
- "description": "Create a new aspect definition file",
4326
- "examples": [
4327
- {
4328
- "command": "<%= config.bin %> <%= command.id %>",
4329
- "description": "Create a new aspect definition file"
4330
- }
4331
- ],
4332
- "flags": {
4333
- "name": {
4334
- "description": "Aspect name. Defaults to the title in camel case",
4335
- "name": "name",
4336
- "hasDynamicHelp": false,
4337
- "multiple": false,
4338
- "type": "option"
4339
- },
4340
- "title": {
4341
- "description": "Aspect title",
4342
- "name": "title",
4343
- "hasDynamicHelp": false,
4344
- "multiple": false,
4345
- "type": "option"
4346
- }
4347
- },
4348
- "hasDynamicHelp": false,
4349
- "hiddenAliases": [],
4350
- "id": "media:create-aspect",
4351
- "pluginAlias": "@sanity/cli",
4352
- "pluginName": "@sanity/cli",
4353
- "pluginType": "core",
4354
- "strict": true,
4355
- "isESM": true,
4356
- "relativePath": [
4357
- "dist",
4358
- "commands",
4359
- "media",
4360
- "create-aspect.js"
4361
- ]
4362
- },
4363
- "media:delete-aspect": {
4364
- "aliases": [],
4365
- "args": {
4366
- "aspectName": {
4367
- "description": "Name of the aspect to delete",
4368
- "name": "aspectName",
4369
- "required": true
4370
- }
4371
- },
4372
- "description": "Delete an aspect definition",
4373
- "examples": [
4374
- {
4375
- "command": "<%= config.bin %> <%= command.id %> someAspect",
4376
- "description": "Delete the aspect named \"someAspect\""
4377
- }
4378
- ],
4379
- "flags": {
4380
- "project-id": {
4381
- "char": "p",
4382
- "description": "Project ID to delete media aspect from (overrides CLI configuration)",
4383
- "helpGroup": "OVERRIDE",
4384
- "name": "project-id",
4385
- "hasDynamicHelp": false,
4386
- "helpValue": "<id>",
4387
- "multiple": false,
4388
- "type": "option"
4389
- },
4390
- "media-library-id": {
4391
- "description": "The id of the target media library",
4392
- "name": "media-library-id",
4393
- "hasDynamicHelp": false,
4394
- "multiple": false,
4395
- "type": "option"
4396
- },
4397
- "yes": {
4398
- "char": "y",
4399
- "description": "Run without prompts and confirm deletion",
4400
- "name": "yes",
4401
- "allowNo": false,
4402
- "type": "boolean"
4403
- }
4404
- },
4405
- "hasDynamicHelp": false,
4406
- "hiddenAliases": [],
4407
- "id": "media:delete-aspect",
4408
- "pluginAlias": "@sanity/cli",
4409
- "pluginName": "@sanity/cli",
4410
- "pluginType": "core",
4411
- "strict": true,
4412
- "isESM": true,
4413
- "relativePath": [
4414
- "dist",
4415
- "commands",
4416
- "media",
4417
- "delete-aspect.js"
4418
- ]
4419
- },
4420
- "media:deploy-aspect": {
4421
- "aliases": [],
4422
- "args": {
4423
- "aspectName": {
4424
- "description": "Name of the aspect to deploy",
4425
- "name": "aspectName",
4426
- "required": false
4427
- }
4428
- },
4429
- "description": "Deploy an aspect",
4430
- "examples": [
4431
- {
4432
- "command": "<%= config.bin %> <%= command.id %> someAspect",
4433
- "description": "Deploy the aspect named \"someAspect\""
4434
- },
4435
- {
4436
- "command": "<%= config.bin %> <%= command.id %> --all",
4437
- "description": "Deploy all aspects"
4438
- }
4439
- ],
4440
- "flags": {
4441
- "project-id": {
4442
- "char": "p",
4443
- "description": "Project ID to deploy media aspect to (overrides CLI configuration)",
4444
- "helpGroup": "OVERRIDE",
4445
- "name": "project-id",
4166
+ "project-id": {
4167
+ "char": "p",
4168
+ "description": "Project ID to deploy media aspect to (overrides CLI configuration)",
4169
+ "helpGroup": "OVERRIDE",
4170
+ "name": "project-id",
4446
4171
  "hasDynamicHelp": false,
4447
4172
  "helpValue": "<id>",
4448
4173
  "multiple": false,
@@ -4619,84 +4344,32 @@
4619
4344
  "import.js"
4620
4345
  ]
4621
4346
  },
4622
- "projects:create": {
4347
+ "migrations:create": {
4623
4348
  "aliases": [],
4624
4349
  "args": {
4625
- "projectName": {
4626
- "description": "Name of the project to create",
4627
- "name": "projectName",
4350
+ "title": {
4351
+ "description": "Title of migration",
4352
+ "name": "title",
4628
4353
  "required": false
4629
4354
  }
4630
4355
  },
4631
- "description": "Create a new Sanity project",
4356
+ "description": "Create a new migration within your project",
4632
4357
  "examples": [
4633
4358
  {
4634
4359
  "command": "<%= config.bin %> <%= command.id %>",
4635
- "description": "Interactively create a project"
4636
- },
4637
- {
4638
- "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4639
- "description": "Create a project named \"My New Project\""
4640
- },
4641
- {
4642
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4643
- "description": "Create a project in a specific organization"
4644
- },
4645
- {
4646
- "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4647
- "description": "Create a project with a private dataset named \"staging\""
4360
+ "description": "Create a new migration, prompting for title and options"
4648
4361
  },
4649
4362
  {
4650
- "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4651
- "description": "Create a project non-interactively with JSON output"
4363
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
4364
+ "description": "Create a new migration with the provided title, prompting for options"
4652
4365
  }
4653
4366
  ],
4654
- "flags": {
4655
- "dataset": {
4656
- "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4657
- "name": "dataset",
4658
- "hasDynamicHelp": false,
4659
- "multiple": false,
4660
- "type": "option"
4661
- },
4662
- "dataset-visibility": {
4663
- "description": "Dataset visibility: public or private",
4664
- "name": "dataset-visibility",
4665
- "hasDynamicHelp": false,
4666
- "multiple": false,
4667
- "options": [
4668
- "private",
4669
- "public"
4670
- ],
4671
- "type": "option"
4672
- },
4673
- "json": {
4674
- "description": "Output in JSON format",
4675
- "name": "json",
4676
- "allowNo": false,
4677
- "type": "boolean"
4678
- },
4679
- "organization": {
4680
- "description": "Organization to create the project in",
4681
- "name": "organization",
4682
- "hasDynamicHelp": false,
4683
- "helpValue": "<slug|id>",
4684
- "multiple": false,
4685
- "type": "option"
4686
- },
4687
- "yes": {
4688
- "char": "y",
4689
- "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4690
- "name": "yes",
4691
- "allowNo": false,
4692
- "type": "boolean"
4693
- }
4694
- },
4367
+ "flags": {},
4695
4368
  "hasDynamicHelp": false,
4696
4369
  "hiddenAliases": [
4697
- "project:create"
4370
+ "migration:create"
4698
4371
  ],
4699
- "id": "projects:create",
4372
+ "id": "migrations:create",
4700
4373
  "pluginAlias": "@sanity/cli",
4701
4374
  "pluginName": "@sanity/cli",
4702
4375
  "pluginType": "core",
@@ -4705,58 +4378,123 @@
4705
4378
  "relativePath": [
4706
4379
  "dist",
4707
4380
  "commands",
4708
- "projects",
4381
+ "migrations",
4709
4382
  "create.js"
4710
4383
  ]
4711
4384
  },
4712
- "projects:list": {
4385
+ "migrations:list": {
4713
4386
  "aliases": [],
4714
4387
  "args": {},
4715
- "description": "List your projects",
4388
+ "description": "List available migrations",
4716
4389
  "examples": [
4717
4390
  {
4718
4391
  "command": "<%= config.bin %> <%= command.id %>",
4719
- "description": "List projects"
4392
+ "description": "List all available migrations in the project"
4393
+ }
4394
+ ],
4395
+ "flags": {},
4396
+ "hasDynamicHelp": false,
4397
+ "hiddenAliases": [
4398
+ "migration:list"
4399
+ ],
4400
+ "id": "migrations:list",
4401
+ "pluginAlias": "@sanity/cli",
4402
+ "pluginName": "@sanity/cli",
4403
+ "pluginType": "core",
4404
+ "strict": true,
4405
+ "isESM": true,
4406
+ "relativePath": [
4407
+ "dist",
4408
+ "commands",
4409
+ "migrations",
4410
+ "list.js"
4411
+ ]
4412
+ },
4413
+ "migrations:run": {
4414
+ "aliases": [],
4415
+ "args": {
4416
+ "id": {
4417
+ "description": "ID",
4418
+ "name": "id",
4419
+ "required": false
4420
+ }
4421
+ },
4422
+ "description": "Run a migration against a dataset",
4423
+ "examples": [
4424
+ {
4425
+ "command": "<%= config.bin %> <%= command.id %> <id>",
4426
+ "description": "dry run the migration"
4720
4427
  },
4721
4428
  {
4722
- "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4723
- "description": "List projects sorted by member count, ascending"
4429
+ "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
4430
+ "description": "execute the migration against a dataset"
4431
+ },
4432
+ {
4433
+ "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
4434
+ "description": "execute the migration using a dataset export as the source"
4724
4435
  }
4725
4436
  ],
4726
4437
  "flags": {
4727
- "order": {
4728
- "description": "Sort direction",
4729
- "name": "order",
4730
- "default": "desc",
4438
+ "api-version": {
4439
+ "description": "API version to use when migrating. Defaults to v2024-01-29.",
4440
+ "name": "api-version",
4731
4441
  "hasDynamicHelp": false,
4732
4442
  "multiple": false,
4733
- "options": [
4734
- "asc",
4735
- "desc"
4736
- ],
4737
4443
  "type": "option"
4738
4444
  },
4739
- "sort": {
4740
- "description": "Sort field",
4741
- "name": "sort",
4742
- "default": "created",
4445
+ "concurrency": {
4446
+ "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
4447
+ "name": "concurrency",
4448
+ "default": 6,
4449
+ "hasDynamicHelp": false,
4450
+ "multiple": false,
4451
+ "type": "option"
4452
+ },
4453
+ "confirm": {
4454
+ "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
4455
+ "name": "confirm",
4456
+ "allowNo": true,
4457
+ "type": "boolean"
4458
+ },
4459
+ "dataset": {
4460
+ "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
4461
+ "name": "dataset",
4462
+ "hasDynamicHelp": false,
4463
+ "multiple": false,
4464
+ "type": "option"
4465
+ },
4466
+ "dry-run": {
4467
+ "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
4468
+ "name": "dry-run",
4469
+ "allowNo": true,
4470
+ "type": "boolean"
4471
+ },
4472
+ "from-export": {
4473
+ "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
4474
+ "name": "from-export",
4475
+ "hasDynamicHelp": false,
4476
+ "multiple": false,
4477
+ "type": "option"
4478
+ },
4479
+ "progress": {
4480
+ "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
4481
+ "name": "progress",
4482
+ "allowNo": true,
4483
+ "type": "boolean"
4484
+ },
4485
+ "project": {
4486
+ "description": "Project ID of the dataset to migrate. Defaults to the projectId configured in your Sanity CLI config.",
4487
+ "name": "project",
4743
4488
  "hasDynamicHelp": false,
4744
4489
  "multiple": false,
4745
- "options": [
4746
- "id",
4747
- "members",
4748
- "name",
4749
- "url",
4750
- "created"
4751
- ],
4752
4490
  "type": "option"
4753
4491
  }
4754
4492
  },
4755
4493
  "hasDynamicHelp": false,
4756
4494
  "hiddenAliases": [
4757
- "project:list"
4495
+ "migration:run"
4758
4496
  ],
4759
- "id": "projects:list",
4497
+ "id": "migrations:run",
4760
4498
  "pluginAlias": "@sanity/cli",
4761
4499
  "pluginName": "@sanity/cli",
4762
4500
  "pluginType": "core",
@@ -4765,38 +4503,110 @@
4765
4503
  "relativePath": [
4766
4504
  "dist",
4767
4505
  "commands",
4768
- "projects",
4769
- "list.js"
4506
+ "migrations",
4507
+ "run.js"
4770
4508
  ]
4771
4509
  },
4772
- "projects:unclaimed": {
4510
+ "openapi:get": {
4773
4511
  "aliases": [],
4774
- "args": {},
4775
- "description": "Recover details for unclaimed projects created on this machine",
4512
+ "args": {
4513
+ "slug": {
4514
+ "description": "Slug of the OpenAPI specification to retrieve",
4515
+ "name": "slug",
4516
+ "required": true
4517
+ }
4518
+ },
4519
+ "description": "Get an OpenAPI specification by slug",
4776
4520
  "examples": [
4777
4521
  {
4778
- "command": "<%= config.bin %> <%= command.id %>",
4779
- "description": "List locally recorded unclaimed projects"
4522
+ "command": "<%= config.bin %> <%= command.id %> query",
4523
+ "description": "Get a specification (YAML format, default)"
4780
4524
  },
4781
4525
  {
4782
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
4783
- "description": "Show recovery details for one project"
4526
+ "command": "<%= config.bin %> <%= command.id %> query --format=json",
4527
+ "description": "Get specification in JSON format"
4528
+ },
4529
+ {
4530
+ "command": "<%= config.bin %> <%= command.id %> query --web",
4531
+ "description": "Open specification in browser"
4532
+ },
4533
+ {
4534
+ "command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
4535
+ "description": "Pipe to file"
4784
4536
  }
4785
4537
  ],
4786
4538
  "flags": {
4787
- "project-id": {
4788
- "description": "Project ID to recover",
4789
- "name": "project-id",
4539
+ "format": {
4540
+ "description": "Output format: yaml (default), json",
4541
+ "name": "format",
4542
+ "default": "yaml",
4790
4543
  "hasDynamicHelp": false,
4791
4544
  "multiple": false,
4545
+ "options": [
4546
+ "yaml",
4547
+ "json"
4548
+ ],
4792
4549
  "type": "option"
4550
+ },
4551
+ "web": {
4552
+ "char": "w",
4553
+ "description": "Open in web browser",
4554
+ "name": "web",
4555
+ "allowNo": false,
4556
+ "type": "boolean"
4793
4557
  }
4794
4558
  },
4795
4559
  "hasDynamicHelp": false,
4796
- "hiddenAliases": [
4797
- "project:unclaimed"
4560
+ "hiddenAliases": [],
4561
+ "id": "openapi:get",
4562
+ "pluginAlias": "@sanity/cli",
4563
+ "pluginName": "@sanity/cli",
4564
+ "pluginType": "core",
4565
+ "strict": true,
4566
+ "isESM": true,
4567
+ "relativePath": [
4568
+ "dist",
4569
+ "commands",
4570
+ "openapi",
4571
+ "get.js"
4572
+ ]
4573
+ },
4574
+ "openapi:list": {
4575
+ "aliases": [],
4576
+ "args": {},
4577
+ "description": "List all available OpenAPI specifications",
4578
+ "examples": [
4579
+ {
4580
+ "command": "<%= config.bin %> <%= command.id %>",
4581
+ "description": "List all available OpenAPI specs"
4582
+ },
4583
+ {
4584
+ "command": "<%= config.bin %> <%= command.id %> --json",
4585
+ "description": "List with JSON output"
4586
+ },
4587
+ {
4588
+ "command": "<%= config.bin %> <%= command.id %> --web",
4589
+ "description": "Open HTTP Reference in browser"
4590
+ }
4798
4591
  ],
4799
- "id": "projects:unclaimed",
4592
+ "flags": {
4593
+ "json": {
4594
+ "description": "Output JSON",
4595
+ "name": "json",
4596
+ "allowNo": false,
4597
+ "type": "boolean"
4598
+ },
4599
+ "web": {
4600
+ "char": "w",
4601
+ "description": "Open HTTP Reference in web browser",
4602
+ "name": "web",
4603
+ "allowNo": false,
4604
+ "type": "boolean"
4605
+ }
4606
+ },
4607
+ "hasDynamicHelp": false,
4608
+ "hiddenAliases": [],
4609
+ "id": "openapi:list",
4800
4610
  "pluginAlias": "@sanity/cli",
4801
4611
  "pluginName": "@sanity/cli",
4802
4612
  "pluginType": "core",
@@ -4805,8 +4615,8 @@
4805
4615
  "relativePath": [
4806
4616
  "dist",
4807
4617
  "commands",
4808
- "projects",
4809
- "unclaimed.js"
4618
+ "openapi",
4619
+ "list.js"
4810
4620
  ]
4811
4621
  },
4812
4622
  "organizations:create": {
@@ -4896,51 +4706,244 @@
4896
4706
  },
4897
4707
  "hasDynamicHelp": false,
4898
4708
  "hiddenAliases": [
4899
- "organization:delete",
4900
- "organisations:delete",
4901
- "organisation:delete",
4902
- "org:delete",
4903
- "orgs:delete"
4904
- ],
4905
- "id": "organizations:delete",
4906
- "pluginAlias": "@sanity/cli",
4907
- "pluginName": "@sanity/cli",
4908
- "pluginType": "core",
4909
- "strict": true,
4910
- "isESM": true,
4911
- "relativePath": [
4912
- "dist",
4913
- "commands",
4914
- "organizations",
4915
- "delete.js"
4916
- ]
4917
- },
4918
- "organizations:get": {
4919
- "aliases": [],
4920
- "args": {
4921
- "organizationId": {
4922
- "description": "Organization ID",
4923
- "name": "organizationId",
4924
- "required": true
4925
- }
4926
- },
4927
- "description": "Get details of an organization",
4928
- "examples": [
4929
- {
4930
- "command": "<%= config.bin %> <%= command.id %> org-abc123",
4931
- "description": "Get details of a specific organization"
4932
- }
4933
- ],
4934
- "flags": {},
4935
- "hasDynamicHelp": false,
4936
- "hiddenAliases": [
4937
- "organization:get",
4938
- "organisations:get",
4939
- "organisation:get",
4940
- "org:get",
4941
- "orgs:get"
4709
+ "organization:delete",
4710
+ "organisations:delete",
4711
+ "organisation:delete",
4712
+ "org:delete",
4713
+ "orgs:delete"
4714
+ ],
4715
+ "id": "organizations:delete",
4716
+ "pluginAlias": "@sanity/cli",
4717
+ "pluginName": "@sanity/cli",
4718
+ "pluginType": "core",
4719
+ "strict": true,
4720
+ "isESM": true,
4721
+ "relativePath": [
4722
+ "dist",
4723
+ "commands",
4724
+ "organizations",
4725
+ "delete.js"
4726
+ ]
4727
+ },
4728
+ "organizations:get": {
4729
+ "aliases": [],
4730
+ "args": {
4731
+ "organizationId": {
4732
+ "description": "Organization ID",
4733
+ "name": "organizationId",
4734
+ "required": true
4735
+ }
4736
+ },
4737
+ "description": "Get details of an organization",
4738
+ "examples": [
4739
+ {
4740
+ "command": "<%= config.bin %> <%= command.id %> org-abc123",
4741
+ "description": "Get details of a specific organization"
4742
+ }
4743
+ ],
4744
+ "flags": {},
4745
+ "hasDynamicHelp": false,
4746
+ "hiddenAliases": [
4747
+ "organization:get",
4748
+ "organisations:get",
4749
+ "organisation:get",
4750
+ "org:get",
4751
+ "orgs:get"
4752
+ ],
4753
+ "id": "organizations:get",
4754
+ "pluginAlias": "@sanity/cli",
4755
+ "pluginName": "@sanity/cli",
4756
+ "pluginType": "core",
4757
+ "strict": true,
4758
+ "isESM": true,
4759
+ "relativePath": [
4760
+ "dist",
4761
+ "commands",
4762
+ "organizations",
4763
+ "get.js"
4764
+ ]
4765
+ },
4766
+ "organizations:list": {
4767
+ "aliases": [],
4768
+ "args": {},
4769
+ "description": "List organizations you are a member of",
4770
+ "examples": [
4771
+ {
4772
+ "command": "<%= config.bin %> <%= command.id %>",
4773
+ "description": "List all your organizations"
4774
+ }
4775
+ ],
4776
+ "flags": {},
4777
+ "hasDynamicHelp": false,
4778
+ "hiddenAliases": [
4779
+ "organization:list",
4780
+ "organisations:list",
4781
+ "organisation:list",
4782
+ "org:list",
4783
+ "orgs:list"
4784
+ ],
4785
+ "id": "organizations:list",
4786
+ "pluginAlias": "@sanity/cli",
4787
+ "pluginName": "@sanity/cli",
4788
+ "pluginType": "core",
4789
+ "strict": true,
4790
+ "isESM": true,
4791
+ "relativePath": [
4792
+ "dist",
4793
+ "commands",
4794
+ "organizations",
4795
+ "list.js"
4796
+ ]
4797
+ },
4798
+ "organizations:update": {
4799
+ "aliases": [],
4800
+ "args": {
4801
+ "organizationId": {
4802
+ "description": "Organization ID",
4803
+ "name": "organizationId",
4804
+ "required": true
4805
+ }
4806
+ },
4807
+ "description": "Update an organization",
4808
+ "examples": [
4809
+ {
4810
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
4811
+ "description": "Rename an organization"
4812
+ },
4813
+ {
4814
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
4815
+ "description": "Set the organization slug (requires authSAML feature)"
4816
+ },
4817
+ {
4818
+ "command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
4819
+ "description": "Change the default member role"
4820
+ }
4821
+ ],
4822
+ "flags": {
4823
+ "default-role": {
4824
+ "description": "New default role for new members",
4825
+ "name": "default-role",
4826
+ "required": false,
4827
+ "hasDynamicHelp": false,
4828
+ "multiple": false,
4829
+ "type": "option"
4830
+ },
4831
+ "name": {
4832
+ "description": "New organization name",
4833
+ "name": "name",
4834
+ "required": false,
4835
+ "hasDynamicHelp": false,
4836
+ "multiple": false,
4837
+ "type": "option"
4838
+ },
4839
+ "slug": {
4840
+ "description": "New URL slug (requires authSAML feature on the organization)",
4841
+ "name": "slug",
4842
+ "required": false,
4843
+ "hasDynamicHelp": false,
4844
+ "multiple": false,
4845
+ "type": "option"
4846
+ }
4847
+ },
4848
+ "hasDynamicHelp": false,
4849
+ "hiddenAliases": [
4850
+ "organization:update",
4851
+ "organisations:update",
4852
+ "organisation:update",
4853
+ "org:update",
4854
+ "orgs:update"
4855
+ ],
4856
+ "id": "organizations:update",
4857
+ "pluginAlias": "@sanity/cli",
4858
+ "pluginName": "@sanity/cli",
4859
+ "pluginType": "core",
4860
+ "strict": true,
4861
+ "isESM": true,
4862
+ "relativePath": [
4863
+ "dist",
4864
+ "commands",
4865
+ "organizations",
4866
+ "update.js"
4867
+ ]
4868
+ },
4869
+ "projects:create": {
4870
+ "aliases": [],
4871
+ "args": {
4872
+ "projectName": {
4873
+ "description": "Name of the project to create",
4874
+ "name": "projectName",
4875
+ "required": false
4876
+ }
4877
+ },
4878
+ "description": "Create a new Sanity project",
4879
+ "examples": [
4880
+ {
4881
+ "command": "<%= config.bin %> <%= command.id %>",
4882
+ "description": "Interactively create a project"
4883
+ },
4884
+ {
4885
+ "command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
4886
+ "description": "Create a project named \"My New Project\""
4887
+ },
4888
+ {
4889
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
4890
+ "description": "Create a project in a specific organization"
4891
+ },
4892
+ {
4893
+ "command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
4894
+ "description": "Create a project with a private dataset named \"staging\""
4895
+ },
4896
+ {
4897
+ "command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
4898
+ "description": "Create a project non-interactively with JSON output"
4899
+ }
4900
+ ],
4901
+ "flags": {
4902
+ "dataset": {
4903
+ "description": "Create a dataset. Prompts for visibility unless specified or --yes used",
4904
+ "name": "dataset",
4905
+ "hasDynamicHelp": false,
4906
+ "multiple": false,
4907
+ "type": "option"
4908
+ },
4909
+ "dataset-visibility": {
4910
+ "description": "Dataset visibility: public or private",
4911
+ "name": "dataset-visibility",
4912
+ "hasDynamicHelp": false,
4913
+ "multiple": false,
4914
+ "options": [
4915
+ "private",
4916
+ "public"
4917
+ ],
4918
+ "type": "option"
4919
+ },
4920
+ "json": {
4921
+ "description": "Output in JSON format",
4922
+ "name": "json",
4923
+ "allowNo": false,
4924
+ "type": "boolean"
4925
+ },
4926
+ "organization": {
4927
+ "description": "Organization to create the project in",
4928
+ "name": "organization",
4929
+ "hasDynamicHelp": false,
4930
+ "helpValue": "<slug|id>",
4931
+ "multiple": false,
4932
+ "type": "option"
4933
+ },
4934
+ "yes": {
4935
+ "char": "y",
4936
+ "description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
4937
+ "name": "yes",
4938
+ "allowNo": false,
4939
+ "type": "boolean"
4940
+ }
4941
+ },
4942
+ "hasDynamicHelp": false,
4943
+ "hiddenAliases": [
4944
+ "project:create"
4942
4945
  ],
4943
- "id": "organizations:get",
4946
+ "id": "projects:create",
4944
4947
  "pluginAlias": "@sanity/cli",
4945
4948
  "pluginName": "@sanity/cli",
4946
4949
  "pluginType": "core",
@@ -4949,30 +4952,58 @@
4949
4952
  "relativePath": [
4950
4953
  "dist",
4951
4954
  "commands",
4952
- "organizations",
4953
- "get.js"
4955
+ "projects",
4956
+ "create.js"
4954
4957
  ]
4955
4958
  },
4956
- "organizations:list": {
4959
+ "projects:list": {
4957
4960
  "aliases": [],
4958
4961
  "args": {},
4959
- "description": "List organizations you are a member of",
4962
+ "description": "List your projects",
4960
4963
  "examples": [
4961
4964
  {
4962
4965
  "command": "<%= config.bin %> <%= command.id %>",
4963
- "description": "List all your organizations"
4966
+ "description": "List projects"
4967
+ },
4968
+ {
4969
+ "command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
4970
+ "description": "List projects sorted by member count, ascending"
4964
4971
  }
4965
4972
  ],
4966
- "flags": {},
4973
+ "flags": {
4974
+ "order": {
4975
+ "description": "Sort direction",
4976
+ "name": "order",
4977
+ "default": "desc",
4978
+ "hasDynamicHelp": false,
4979
+ "multiple": false,
4980
+ "options": [
4981
+ "asc",
4982
+ "desc"
4983
+ ],
4984
+ "type": "option"
4985
+ },
4986
+ "sort": {
4987
+ "description": "Sort field",
4988
+ "name": "sort",
4989
+ "default": "created",
4990
+ "hasDynamicHelp": false,
4991
+ "multiple": false,
4992
+ "options": [
4993
+ "id",
4994
+ "members",
4995
+ "name",
4996
+ "url",
4997
+ "created"
4998
+ ],
4999
+ "type": "option"
5000
+ }
5001
+ },
4967
5002
  "hasDynamicHelp": false,
4968
5003
  "hiddenAliases": [
4969
- "organization:list",
4970
- "organisations:list",
4971
- "organisation:list",
4972
- "org:list",
4973
- "orgs:list"
5004
+ "project:list"
4974
5005
  ],
4975
- "id": "organizations:list",
5006
+ "id": "projects:list",
4976
5007
  "pluginAlias": "@sanity/cli",
4977
5008
  "pluginName": "@sanity/cli",
4978
5009
  "pluginType": "core",
@@ -4981,55 +5012,28 @@
4981
5012
  "relativePath": [
4982
5013
  "dist",
4983
5014
  "commands",
4984
- "organizations",
5015
+ "projects",
4985
5016
  "list.js"
4986
5017
  ]
4987
5018
  },
4988
- "organizations:update": {
5019
+ "projects:unclaimed": {
4989
5020
  "aliases": [],
4990
- "args": {
4991
- "organizationId": {
4992
- "description": "Organization ID",
4993
- "name": "organizationId",
4994
- "required": true
4995
- }
4996
- },
4997
- "description": "Update an organization",
5021
+ "args": {},
5022
+ "description": "Recover details for unclaimed projects created on this machine",
4998
5023
  "examples": [
4999
5024
  {
5000
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
5001
- "description": "Rename an organization"
5002
- },
5003
- {
5004
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
5005
- "description": "Set the organization slug (requires authSAML feature)"
5025
+ "command": "<%= config.bin %> <%= command.id %>",
5026
+ "description": "List locally recorded unclaimed projects"
5006
5027
  },
5007
5028
  {
5008
- "command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
5009
- "description": "Change the default member role"
5029
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
5030
+ "description": "Show recovery details for one project"
5010
5031
  }
5011
5032
  ],
5012
5033
  "flags": {
5013
- "default-role": {
5014
- "description": "New default role for new members",
5015
- "name": "default-role",
5016
- "required": false,
5017
- "hasDynamicHelp": false,
5018
- "multiple": false,
5019
- "type": "option"
5020
- },
5021
- "name": {
5022
- "description": "New organization name",
5023
- "name": "name",
5024
- "required": false,
5025
- "hasDynamicHelp": false,
5026
- "multiple": false,
5027
- "type": "option"
5028
- },
5029
- "slug": {
5030
- "description": "New URL slug (requires authSAML feature on the organization)",
5031
- "name": "slug",
5032
- "required": false,
5034
+ "project-id": {
5035
+ "description": "Project ID to recover",
5036
+ "name": "project-id",
5033
5037
  "hasDynamicHelp": false,
5034
5038
  "multiple": false,
5035
5039
  "type": "option"
@@ -5037,13 +5041,9 @@
5037
5041
  },
5038
5042
  "hasDynamicHelp": false,
5039
5043
  "hiddenAliases": [
5040
- "organization:update",
5041
- "organisations:update",
5042
- "organisation:update",
5043
- "org:update",
5044
- "orgs:update"
5044
+ "project:unclaimed"
5045
5045
  ],
5046
- "id": "organizations:update",
5046
+ "id": "projects:unclaimed",
5047
5047
  "pluginAlias": "@sanity/cli",
5048
5048
  "pluginName": "@sanity/cli",
5049
5049
  "pluginType": "core",
@@ -5052,8 +5052,8 @@
5052
5052
  "relativePath": [
5053
5053
  "dist",
5054
5054
  "commands",
5055
- "organizations",
5056
- "update.js"
5055
+ "projects",
5056
+ "unclaimed.js"
5057
5057
  ]
5058
5058
  },
5059
5059
  "schemas:delete": {
@@ -5559,48 +5559,6 @@
5559
5559
  "status.js"
5560
5560
  ]
5561
5561
  },
5562
- "typegen:generate": {
5563
- "aliases": [],
5564
- "args": {},
5565
- "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5566
- "examples": [
5567
- {
5568
- "command": "<%= config.bin %> <%= command.id %>",
5569
- "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
5570
- }
5571
- ],
5572
- "flags": {
5573
- "config-path": {
5574
- "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
5575
- "name": "config-path",
5576
- "hasDynamicHelp": false,
5577
- "multiple": false,
5578
- "type": "option"
5579
- },
5580
- "watch": {
5581
- "description": "[Default: false] Run the typegen in watch mode",
5582
- "name": "watch",
5583
- "allowNo": false,
5584
- "type": "boolean"
5585
- }
5586
- },
5587
- "hasDynamicHelp": false,
5588
- "hiddenAliases": [
5589
- "typegen:generate"
5590
- ],
5591
- "id": "typegen:generate",
5592
- "pluginAlias": "@sanity/cli",
5593
- "pluginName": "@sanity/cli",
5594
- "pluginType": "core",
5595
- "strict": true,
5596
- "isESM": true,
5597
- "relativePath": [
5598
- "dist",
5599
- "commands",
5600
- "typegen",
5601
- "generate.js"
5602
- ]
5603
- },
5604
5562
  "tokens:create": {
5605
5563
  "aliases": [],
5606
5564
  "args": {
@@ -5866,6 +5824,48 @@
5866
5824
  "rotate.js"
5867
5825
  ]
5868
5826
  },
5827
+ "typegen:generate": {
5828
+ "aliases": [],
5829
+ "args": {},
5830
+ "description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.",
5831
+ "examples": [
5832
+ {
5833
+ "command": "<%= config.bin %> <%= command.id %>",
5834
+ "description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
5835
+ }
5836
+ ],
5837
+ "flags": {
5838
+ "config-path": {
5839
+ "description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
5840
+ "name": "config-path",
5841
+ "hasDynamicHelp": false,
5842
+ "multiple": false,
5843
+ "type": "option"
5844
+ },
5845
+ "watch": {
5846
+ "description": "[Default: false] Run the typegen in watch mode",
5847
+ "name": "watch",
5848
+ "allowNo": false,
5849
+ "type": "boolean"
5850
+ }
5851
+ },
5852
+ "hasDynamicHelp": false,
5853
+ "hiddenAliases": [
5854
+ "typegen:generate"
5855
+ ],
5856
+ "id": "typegen:generate",
5857
+ "pluginAlias": "@sanity/cli",
5858
+ "pluginName": "@sanity/cli",
5859
+ "pluginType": "core",
5860
+ "strict": true,
5861
+ "isESM": true,
5862
+ "relativePath": [
5863
+ "dist",
5864
+ "commands",
5865
+ "typegen",
5866
+ "generate.js"
5867
+ ]
5868
+ },
5869
5869
  "users:invite": {
5870
5870
  "aliases": [],
5871
5871
  "args": {
@@ -6955,5 +6955,5 @@
6955
6955
  ]
6956
6956
  }
6957
6957
  },
6958
- "version": "8.8.0"
6958
+ "version": "8.9.0"
6959
6959
  }