@sanity/cli 8.38.0 → 8.38.2

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.
@@ -4498,210 +4498,79 @@
4498
4498
  "logs.js"
4499
4499
  ]
4500
4500
  },
4501
- "mcp:configure": {
4501
+ "manifest:extract": {
4502
4502
  "aliases": [],
4503
4503
  "args": {},
4504
- "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
4505
- "examples": [
4506
- {
4507
- "command": "<%= config.bin %> <%= command.id %>",
4508
- "description": "Configure Sanity MCP server for detected AI editors"
4509
- }
4510
- ],
4511
- "flags": {},
4512
- "hasDynamicHelp": false,
4513
- "hiddenAliases": [],
4514
- "id": "mcp:configure",
4515
- "pluginAlias": "@sanity/cli",
4516
- "pluginName": "@sanity/cli",
4517
- "pluginType": "core",
4518
- "strict": true,
4519
- "isESM": true,
4520
- "relativePath": [
4521
- "dist",
4522
- "commands",
4523
- "mcp",
4524
- "configure.js"
4525
- ]
4526
- },
4527
- "migrations:create": {
4528
- "aliases": [],
4529
- "args": {
4530
- "title": {
4531
- "description": "Title of migration",
4532
- "name": "title",
4533
- "required": false
4534
- }
4535
- },
4536
- "description": "Create a new migration within your project",
4504
+ "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.",
4537
4505
  "examples": [
4538
4506
  {
4539
4507
  "command": "<%= config.bin %> <%= command.id %>",
4540
- "description": "Create a new migration, prompting for title and options"
4508
+ "description": "Extracts manifests"
4541
4509
  },
4542
4510
  {
4543
- "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
4544
- "description": "Create a new migration with the provided title, prompting for options"
4511
+ "command": "<%= config.bin %> <%= command.id %> --path /public/static",
4512
+ "description": "Extracts manifests into /public/static"
4545
4513
  }
4546
4514
  ],
4547
- "flags": {},
4515
+ "flags": {
4516
+ "path": {
4517
+ "description": "Optional path to specify destination directory of the manifest files",
4518
+ "name": "path",
4519
+ "default": "dist/static",
4520
+ "hasDynamicHelp": false,
4521
+ "multiple": false,
4522
+ "type": "option"
4523
+ }
4524
+ },
4548
4525
  "hasDynamicHelp": false,
4549
- "hiddenAliases": [
4550
- "migration:create"
4551
- ],
4552
- "id": "migrations:create",
4526
+ "hiddenAliases": [],
4527
+ "id": "manifest:extract",
4553
4528
  "pluginAlias": "@sanity/cli",
4554
4529
  "pluginName": "@sanity/cli",
4555
4530
  "pluginType": "core",
4556
4531
  "strict": true,
4532
+ "telemetry": {
4533
+ "redactedFlags": [
4534
+ {
4535
+ "canonical": "--path",
4536
+ "flags": [
4537
+ "--path"
4538
+ ]
4539
+ }
4540
+ ]
4541
+ },
4557
4542
  "isESM": true,
4558
4543
  "relativePath": [
4559
4544
  "dist",
4560
4545
  "commands",
4561
- "migrations",
4562
- "create.js"
4546
+ "manifest",
4547
+ "extract.js"
4563
4548
  ]
4564
4549
  },
4565
- "migrations:list": {
4550
+ "mcp:configure": {
4566
4551
  "aliases": [],
4567
4552
  "args": {},
4568
- "description": "List available migrations",
4553
+ "description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
4569
4554
  "examples": [
4570
4555
  {
4571
4556
  "command": "<%= config.bin %> <%= command.id %>",
4572
- "description": "List all available migrations in the project"
4557
+ "description": "Configure Sanity MCP server for detected AI editors"
4573
4558
  }
4574
4559
  ],
4575
4560
  "flags": {},
4576
4561
  "hasDynamicHelp": false,
4577
- "hiddenAliases": [
4578
- "migration:list"
4579
- ],
4580
- "id": "migrations:list",
4581
- "pluginAlias": "@sanity/cli",
4582
- "pluginName": "@sanity/cli",
4583
- "pluginType": "core",
4584
- "strict": true,
4585
- "isESM": true,
4586
- "relativePath": [
4587
- "dist",
4588
- "commands",
4589
- "migrations",
4590
- "list.js"
4591
- ]
4592
- },
4593
- "migrations:run": {
4594
- "aliases": [],
4595
- "args": {
4596
- "id": {
4597
- "description": "ID",
4598
- "name": "id",
4599
- "required": false
4600
- }
4601
- },
4602
- "description": "Run a migration against a dataset",
4603
- "examples": [
4604
- {
4605
- "command": "<%= config.bin %> <%= command.id %> <id>",
4606
- "description": "dry run the migration"
4607
- },
4608
- {
4609
- "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
4610
- "description": "execute the migration against a dataset"
4611
- },
4612
- {
4613
- "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
4614
- "description": "execute the migration using a dataset export as the source"
4615
- }
4616
- ],
4617
- "flags": {
4618
- "api-version": {
4619
- "description": "API version to use when migrating. Defaults to v2024-01-29.",
4620
- "name": "api-version",
4621
- "hasDynamicHelp": false,
4622
- "multiple": false,
4623
- "type": "option"
4624
- },
4625
- "concurrency": {
4626
- "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
4627
- "name": "concurrency",
4628
- "default": 6,
4629
- "hasDynamicHelp": false,
4630
- "multiple": false,
4631
- "type": "option"
4632
- },
4633
- "confirm": {
4634
- "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
4635
- "name": "confirm",
4636
- "allowNo": true,
4637
- "type": "boolean"
4638
- },
4639
- "dataset": {
4640
- "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
4641
- "name": "dataset",
4642
- "hasDynamicHelp": false,
4643
- "multiple": false,
4644
- "type": "option"
4645
- },
4646
- "dry-run": {
4647
- "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
4648
- "name": "dry-run",
4649
- "allowNo": true,
4650
- "type": "boolean"
4651
- },
4652
- "from-export": {
4653
- "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
4654
- "name": "from-export",
4655
- "hasDynamicHelp": false,
4656
- "multiple": false,
4657
- "type": "option"
4658
- },
4659
- "progress": {
4660
- "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
4661
- "name": "progress",
4662
- "allowNo": true,
4663
- "type": "boolean"
4664
- },
4665
- "project": {
4666
- "aliases": [
4667
- "project-id"
4668
- ],
4669
- "char": "p",
4670
- "deprecateAliases": true,
4671
- "description": "Project ID of the dataset to migrate (overrides CLI configuration)",
4672
- "helpGroup": "OVERRIDE",
4673
- "name": "project",
4674
- "hasDynamicHelp": false,
4675
- "helpValue": "<id>",
4676
- "multiple": false,
4677
- "type": "option"
4678
- }
4679
- },
4680
- "hasDynamicHelp": false,
4681
- "hiddenAliases": [
4682
- "migration:run"
4683
- ],
4684
- "id": "migrations:run",
4562
+ "hiddenAliases": [],
4563
+ "id": "mcp:configure",
4685
4564
  "pluginAlias": "@sanity/cli",
4686
4565
  "pluginName": "@sanity/cli",
4687
4566
  "pluginType": "core",
4688
4567
  "strict": true,
4689
- "telemetry": {
4690
- "redactedFlags": [
4691
- {
4692
- "canonical": "--from-export",
4693
- "flags": [
4694
- "--from-export"
4695
- ]
4696
- }
4697
- ]
4698
- },
4699
4568
  "isESM": true,
4700
4569
  "relativePath": [
4701
4570
  "dist",
4702
4571
  "commands",
4703
- "migrations",
4704
- "run.js"
4572
+ "mcp",
4573
+ "configure.js"
4705
4574
  ]
4706
4575
  },
4707
4576
  "media:create-aspect": {
@@ -5311,59 +5180,190 @@
5311
5180
  "list.js"
5312
5181
  ]
5313
5182
  },
5314
- "manifest:extract": {
5183
+ "migrations:create": {
5315
5184
  "aliases": [],
5316
- "args": {},
5317
- "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.",
5185
+ "args": {
5186
+ "title": {
5187
+ "description": "Title of migration",
5188
+ "name": "title",
5189
+ "required": false
5190
+ }
5191
+ },
5192
+ "description": "Create a new migration within your project",
5318
5193
  "examples": [
5319
5194
  {
5320
5195
  "command": "<%= config.bin %> <%= command.id %>",
5321
- "description": "Extracts manifests"
5196
+ "description": "Create a new migration, prompting for title and options"
5322
5197
  },
5323
5198
  {
5324
- "command": "<%= config.bin %> <%= command.id %> --path /public/static",
5325
- "description": "Extracts manifests into /public/static"
5199
+ "command": "<%= config.bin %> <%= command.id %> \"Rename field from location to address\"",
5200
+ "description": "Create a new migration with the provided title, prompting for options"
5326
5201
  }
5327
5202
  ],
5328
- "flags": {
5329
- "path": {
5330
- "description": "Optional path to specify destination directory of the manifest files",
5331
- "name": "path",
5332
- "default": "dist/static",
5333
- "hasDynamicHelp": false,
5334
- "multiple": false,
5335
- "type": "option"
5336
- }
5337
- },
5203
+ "flags": {},
5338
5204
  "hasDynamicHelp": false,
5339
- "hiddenAliases": [],
5340
- "id": "manifest:extract",
5205
+ "hiddenAliases": [
5206
+ "migration:create"
5207
+ ],
5208
+ "id": "migrations:create",
5341
5209
  "pluginAlias": "@sanity/cli",
5342
5210
  "pluginName": "@sanity/cli",
5343
5211
  "pluginType": "core",
5344
5212
  "strict": true,
5345
- "telemetry": {
5346
- "redactedFlags": [
5347
- {
5348
- "canonical": "--path",
5349
- "flags": [
5350
- "--path"
5351
- ]
5352
- }
5353
- ]
5354
- },
5355
5213
  "isESM": true,
5356
5214
  "relativePath": [
5357
5215
  "dist",
5358
5216
  "commands",
5359
- "manifest",
5360
- "extract.js"
5217
+ "migrations",
5218
+ "create.js"
5361
5219
  ]
5362
5220
  },
5363
- "organizations:create": {
5221
+ "migrations:list": {
5364
5222
  "aliases": [],
5365
5223
  "args": {},
5366
- "description": "Create a new organization",
5224
+ "description": "List available migrations",
5225
+ "examples": [
5226
+ {
5227
+ "command": "<%= config.bin %> <%= command.id %>",
5228
+ "description": "List all available migrations in the project"
5229
+ }
5230
+ ],
5231
+ "flags": {},
5232
+ "hasDynamicHelp": false,
5233
+ "hiddenAliases": [
5234
+ "migration:list"
5235
+ ],
5236
+ "id": "migrations:list",
5237
+ "pluginAlias": "@sanity/cli",
5238
+ "pluginName": "@sanity/cli",
5239
+ "pluginType": "core",
5240
+ "strict": true,
5241
+ "isESM": true,
5242
+ "relativePath": [
5243
+ "dist",
5244
+ "commands",
5245
+ "migrations",
5246
+ "list.js"
5247
+ ]
5248
+ },
5249
+ "migrations:run": {
5250
+ "aliases": [],
5251
+ "args": {
5252
+ "id": {
5253
+ "description": "ID",
5254
+ "name": "id",
5255
+ "required": false
5256
+ }
5257
+ },
5258
+ "description": "Run a migration against a dataset",
5259
+ "examples": [
5260
+ {
5261
+ "command": "<%= config.bin %> <%= command.id %> <id>",
5262
+ "description": "dry run the migration"
5263
+ },
5264
+ {
5265
+ "command": "<%= config.bin %> <%= command.id %> <id> --no-dry-run --project xyz --dataset staging",
5266
+ "description": "execute the migration against a dataset"
5267
+ },
5268
+ {
5269
+ "command": "<%= config.bin %> <%= command.id %> <id> --from-export=production.tar.gz --no-dry-run --project xyz --dataset staging",
5270
+ "description": "execute the migration using a dataset export as the source"
5271
+ }
5272
+ ],
5273
+ "flags": {
5274
+ "api-version": {
5275
+ "description": "API version to use when migrating. Defaults to v2024-01-29.",
5276
+ "name": "api-version",
5277
+ "hasDynamicHelp": false,
5278
+ "multiple": false,
5279
+ "type": "option"
5280
+ },
5281
+ "concurrency": {
5282
+ "description": "How many mutation requests to run in parallel. Must be between 1 and 10. Default: 6.",
5283
+ "name": "concurrency",
5284
+ "default": 6,
5285
+ "hasDynamicHelp": false,
5286
+ "multiple": false,
5287
+ "type": "option"
5288
+ },
5289
+ "confirm": {
5290
+ "description": "Prompt for confirmation before running the migration (default: true). Use --no-confirm to skip.",
5291
+ "name": "confirm",
5292
+ "allowNo": true,
5293
+ "type": "boolean"
5294
+ },
5295
+ "dataset": {
5296
+ "description": "Dataset to migrate. Defaults to the dataset configured in your Sanity CLI config.",
5297
+ "name": "dataset",
5298
+ "hasDynamicHelp": false,
5299
+ "multiple": false,
5300
+ "type": "option"
5301
+ },
5302
+ "dry-run": {
5303
+ "description": "By default the migration runs in dry mode. Use --no-dry-run to migrate dataset.",
5304
+ "name": "dry-run",
5305
+ "allowNo": true,
5306
+ "type": "boolean"
5307
+ },
5308
+ "from-export": {
5309
+ "description": "Use a local dataset export as source for migration instead of calling the Sanity API. Note: this is only supported for dry runs.",
5310
+ "name": "from-export",
5311
+ "hasDynamicHelp": false,
5312
+ "multiple": false,
5313
+ "type": "option"
5314
+ },
5315
+ "progress": {
5316
+ "description": "Display progress during migration (default: true). Use --no-progress to hide output.",
5317
+ "name": "progress",
5318
+ "allowNo": true,
5319
+ "type": "boolean"
5320
+ },
5321
+ "project": {
5322
+ "aliases": [
5323
+ "project-id"
5324
+ ],
5325
+ "char": "p",
5326
+ "deprecateAliases": true,
5327
+ "description": "Project ID of the dataset to migrate (overrides CLI configuration)",
5328
+ "helpGroup": "OVERRIDE",
5329
+ "name": "project",
5330
+ "hasDynamicHelp": false,
5331
+ "helpValue": "<id>",
5332
+ "multiple": false,
5333
+ "type": "option"
5334
+ }
5335
+ },
5336
+ "hasDynamicHelp": false,
5337
+ "hiddenAliases": [
5338
+ "migration:run"
5339
+ ],
5340
+ "id": "migrations:run",
5341
+ "pluginAlias": "@sanity/cli",
5342
+ "pluginName": "@sanity/cli",
5343
+ "pluginType": "core",
5344
+ "strict": true,
5345
+ "telemetry": {
5346
+ "redactedFlags": [
5347
+ {
5348
+ "canonical": "--from-export",
5349
+ "flags": [
5350
+ "--from-export"
5351
+ ]
5352
+ }
5353
+ ]
5354
+ },
5355
+ "isESM": true,
5356
+ "relativePath": [
5357
+ "dist",
5358
+ "commands",
5359
+ "migrations",
5360
+ "run.js"
5361
+ ]
5362
+ },
5363
+ "organizations:create": {
5364
+ "aliases": [],
5365
+ "args": {},
5366
+ "description": "Create a new organization",
5367
5367
  "examples": [
5368
5368
  {
5369
5369
  "command": "<%= config.bin %> <%= command.id %>",
@@ -7831,7 +7831,7 @@
7831
7831
  "edit.js"
7832
7832
  ]
7833
7833
  },
7834
- "context:issues:apply": {
7834
+ "context:jobs:get": {
7835
7835
  "aliases": [],
7836
7836
  "args": {
7837
7837
  "knowledgeBaseId": {
@@ -7839,22 +7839,21 @@
7839
7839
  "name": "knowledgeBaseId",
7840
7840
  "required": true
7841
7841
  },
7842
- "issueIds": {
7843
- "description": "The IDs of the issues to accept and apply.",
7844
- "multiple": true,
7845
- "name": "issueIds",
7842
+ "jobId": {
7843
+ "description": "The job ID returned by the endpoint that started the work.",
7844
+ "name": "jobId",
7846
7845
  "required": true
7847
7846
  }
7848
7847
  },
7849
- "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
7848
+ "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
7850
7849
  "examples": [
7851
7850
  {
7852
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
7853
- "description": "Accept and apply issues"
7851
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
7852
+ "description": "Get a job"
7854
7853
  },
7855
7854
  {
7856
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
7857
- "description": "Accept and apply issues, as JSON"
7855
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
7856
+ "description": "Get a job, as JSON"
7858
7857
  }
7859
7858
  ],
7860
7859
  "flags": {
@@ -7874,12 +7873,12 @@
7874
7873
  },
7875
7874
  "hasDynamicHelp": false,
7876
7875
  "hiddenAliases": [],
7877
- "id": "context:issues:apply",
7876
+ "id": "context:jobs:get",
7878
7877
  "pluginAlias": "@sanity/cli",
7879
7878
  "pluginName": "@sanity/cli",
7880
7879
  "pluginType": "core",
7881
7880
  "strict": true,
7882
- "summary": "Accept and apply issues",
7881
+ "summary": "Get a job",
7883
7882
  "enableJsonFlag": true,
7884
7883
  "telemetry": {
7885
7884
  "redactedFlags": []
@@ -7889,146 +7888,243 @@
7889
7888
  "dist",
7890
7889
  "commands",
7891
7890
  "context",
7892
- "issues",
7893
- "apply.js"
7891
+ "jobs",
7892
+ "get.js"
7894
7893
  ]
7895
7894
  },
7896
- "context:issues:dismiss": {
7895
+ "context:mcp:create": {
7897
7896
  "aliases": [],
7898
7897
  "args": {
7899
- "knowledgeBaseId": {
7900
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
7901
- "name": "knowledgeBaseId",
7902
- "required": true
7903
- },
7904
- "issueId": {
7905
- "description": "The issue's document ID.",
7906
- "name": "issueId",
7898
+ "name": {
7899
+ "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
7900
+ "name": "name",
7907
7901
  "required": true
7908
7902
  }
7909
7903
  },
7910
- "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
7904
+ "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
7911
7905
  "examples": [
7912
7906
  {
7913
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
7914
- "description": "Dismiss an issue"
7907
+ "command": "<%= config.bin %> <%= command.id %> support --title \"Support\" --knowledge-base kb-abc123 --knowledge-base kb-def456",
7908
+ "description": "Create an MCP endpoint that serves two knowledge bases"
7915
7909
  },
7916
7910
  {
7917
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
7918
- "description": "Dismiss an issue, as JSON"
7911
+ "command": "<%= config.bin %> <%= command.id %> catalog --title \"Catalog\" --project abc123 --dataset production --perspective drafts --groq-filter '_type in [\"product\"]'",
7912
+ "description": "Create an MCP endpoint that serves the products in a dataset"
7919
7913
  }
7920
7914
  ],
7921
7915
  "flags": {
7922
- "json": {
7923
- "description": "Format output as json.",
7924
- "helpGroup": "GLOBAL",
7925
- "name": "json",
7926
- "allowNo": false,
7927
- "type": "boolean"
7928
- }
7929
- },
7930
- "hasDynamicHelp": false,
7931
- "hiddenAliases": [],
7932
- "id": "context:issues:dismiss",
7933
- "pluginAlias": "@sanity/cli",
7934
- "pluginName": "@sanity/cli",
7935
- "pluginType": "core",
7936
- "strict": true,
7937
- "summary": "Dismiss an issue",
7938
- "enableJsonFlag": true,
7939
- "telemetry": {
7940
- "redactedFlags": []
7941
- },
7942
- "isESM": true,
7943
- "relativePath": [
7944
- "dist",
7945
- "commands",
7946
- "context",
7947
- "issues",
7948
- "dismiss.js"
7949
- ]
7950
- },
7951
- "context:issues:get": {
7952
- "aliases": [],
7953
- "args": {
7954
- "knowledgeBaseId": {
7955
- "description": "Knowledge base ID",
7956
- "name": "knowledgeBaseId",
7957
- "required": true
7916
+ "organization": {
7917
+ "description": "Organization to create the MCP endpoint in (overrides CLI configuration)",
7918
+ "helpGroup": "OVERRIDE",
7919
+ "name": "organization",
7920
+ "hasDynamicHelp": false,
7921
+ "helpValue": "<id>",
7922
+ "multiple": false,
7923
+ "type": "option"
7958
7924
  },
7959
- "issueId": {
7960
- "description": "Issue ID",
7961
- "name": "issueId",
7962
- "required": true
7963
- }
7964
- },
7965
- "description": "Get details of an issue",
7966
- "examples": [
7967
- {
7968
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
7969
- "description": "Get details of a specific issue"
7925
+ "dataset": {
7926
+ "char": "d",
7927
+ "description": "Dataset the endpoint serves",
7928
+ "name": "dataset",
7929
+ "hasDynamicHelp": false,
7930
+ "helpValue": "<name>",
7931
+ "multiple": false,
7932
+ "type": "option"
7970
7933
  },
7971
- {
7972
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
7973
- "description": "Output the issue as JSON"
7974
- }
7975
- ],
7976
- "flags": {
7977
- "json": {
7978
- "description": "Format output as json.",
7979
- "helpGroup": "GLOBAL",
7980
- "name": "json",
7981
- "allowNo": false,
7934
+ "project": {
7935
+ "aliases": [
7936
+ "project-id"
7937
+ ],
7938
+ "char": "p",
7939
+ "dependsOn": [
7940
+ "dataset"
7941
+ ],
7942
+ "deprecateAliases": true,
7943
+ "description": "Project the dataset belongs to (overrides CLI configuration)",
7944
+ "helpGroup": "OVERRIDE",
7945
+ "name": "project",
7946
+ "hasDynamicHelp": false,
7947
+ "helpValue": "<id>",
7948
+ "multiple": false,
7949
+ "type": "option"
7950
+ },
7951
+ "groq-filter": {
7952
+ "dependsOn": [
7953
+ "dataset"
7954
+ ],
7955
+ "description": "GROQ filter that limits which dataset documents the endpoint serves",
7956
+ "name": "groq-filter",
7957
+ "hasDynamicHelp": false,
7958
+ "multiple": false,
7959
+ "type": "option"
7960
+ },
7961
+ "instructions": {
7962
+ "description": "Instructions the endpoint serves to connecting agents",
7963
+ "name": "instructions",
7964
+ "hasDynamicHelp": false,
7965
+ "multiple": false,
7966
+ "type": "option"
7967
+ },
7968
+ "knowledge-base": {
7969
+ "description": "Knowledge base the endpoint serves; repeat the flag to serve several",
7970
+ "name": "knowledge-base",
7971
+ "hasDynamicHelp": false,
7972
+ "helpValue": "<id>",
7973
+ "multiple": true,
7974
+ "type": "option"
7975
+ },
7976
+ "perspective": {
7977
+ "dependsOn": [
7978
+ "dataset"
7979
+ ],
7980
+ "description": "Perspective agents query the dataset with",
7981
+ "name": "perspective",
7982
+ "hasDynamicHelp": false,
7983
+ "multiple": false,
7984
+ "options": [
7985
+ "published",
7986
+ "drafts",
7987
+ "raw"
7988
+ ],
7989
+ "type": "option"
7990
+ },
7991
+ "semantic-search": {
7992
+ "dependsOn": [
7993
+ "dataset"
7994
+ ],
7995
+ "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
7996
+ "name": "semantic-search",
7997
+ "allowNo": true,
7982
7998
  "type": "boolean"
7999
+ },
8000
+ "title": {
8001
+ "description": "MCP endpoint title",
8002
+ "name": "title",
8003
+ "hasDynamicHelp": false,
8004
+ "multiple": false,
8005
+ "type": "option"
8006
+ },
8007
+ "workspace": {
8008
+ "dependsOn": [
8009
+ "dataset"
8010
+ ],
8011
+ "description": "Studio workspace whose schema agents use, instead of the first workspace",
8012
+ "name": "workspace",
8013
+ "hasDynamicHelp": false,
8014
+ "multiple": false,
8015
+ "type": "option"
7983
8016
  }
7984
8017
  },
7985
8018
  "hasDynamicHelp": false,
7986
8019
  "hiddenAliases": [],
7987
- "id": "context:issues:get",
8020
+ "id": "context:mcp:create",
7988
8021
  "pluginAlias": "@sanity/cli",
7989
8022
  "pluginName": "@sanity/cli",
7990
8023
  "pluginType": "core",
7991
8024
  "strict": true,
7992
- "enableJsonFlag": true,
8025
+ "telemetry": {
8026
+ "redactedFlags": [
8027
+ {
8028
+ "canonical": "--title",
8029
+ "flags": [
8030
+ "--title"
8031
+ ]
8032
+ },
8033
+ {
8034
+ "canonical": "--instructions",
8035
+ "flags": [
8036
+ "--instructions"
8037
+ ]
8038
+ },
8039
+ {
8040
+ "canonical": "--groq-filter",
8041
+ "flags": [
8042
+ "--groq-filter"
8043
+ ]
8044
+ }
8045
+ ]
8046
+ },
7993
8047
  "isESM": true,
7994
8048
  "relativePath": [
7995
8049
  "dist",
7996
8050
  "commands",
7997
8051
  "context",
7998
- "issues",
7999
- "get.js"
8052
+ "mcp",
8053
+ "create.js"
8000
8054
  ]
8001
8055
  },
8002
- "context:issues:list": {
8056
+ "context:mcp:delete": {
8003
8057
  "aliases": [],
8004
8058
  "args": {
8005
- "knowledgeBaseId": {
8006
- "description": "Knowledge base ID",
8007
- "name": "knowledgeBaseId",
8059
+ "name": {
8060
+ "description": "MCP endpoint name, as in its URL",
8061
+ "name": "name",
8008
8062
  "required": true
8009
8063
  }
8010
8064
  },
8011
- "description": "List issues found by knowledge base builds",
8065
+ "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
8012
8066
  "examples": [
8013
8067
  {
8014
- "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8015
- "description": "List all issues for a knowledge base"
8016
- },
8017
- {
8018
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
8019
- "description": "List issues awaiting triage"
8068
+ "command": "<%= config.bin %> <%= command.id %> support",
8069
+ "description": "Delete an MCP endpoint after confirmation"
8020
8070
  },
8021
8071
  {
8022
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
8023
- "description": "List critical conflicts"
8072
+ "command": "<%= config.bin %> <%= command.id %> support --yes",
8073
+ "description": "Delete an MCP endpoint without confirmation prompt"
8074
+ }
8075
+ ],
8076
+ "flags": {
8077
+ "organization": {
8078
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8079
+ "helpGroup": "OVERRIDE",
8080
+ "name": "organization",
8081
+ "hasDynamicHelp": false,
8082
+ "helpValue": "<id>",
8083
+ "multiple": false,
8084
+ "type": "option"
8024
8085
  },
8086
+ "yes": {
8087
+ "char": "y",
8088
+ "description": "Skip confirmation prompt (unattended mode)",
8089
+ "name": "yes",
8090
+ "allowNo": false,
8091
+ "type": "boolean"
8092
+ }
8093
+ },
8094
+ "hasDynamicHelp": false,
8095
+ "hiddenAliases": [],
8096
+ "id": "context:mcp:delete",
8097
+ "pluginAlias": "@sanity/cli",
8098
+ "pluginName": "@sanity/cli",
8099
+ "pluginType": "core",
8100
+ "strict": true,
8101
+ "isESM": true,
8102
+ "relativePath": [
8103
+ "dist",
8104
+ "commands",
8105
+ "context",
8106
+ "mcp",
8107
+ "delete.js"
8108
+ ]
8109
+ },
8110
+ "context:mcp:get": {
8111
+ "aliases": [],
8112
+ "args": {
8113
+ "name": {
8114
+ "description": "MCP endpoint name, as in its URL",
8115
+ "name": "name",
8116
+ "required": true
8117
+ }
8118
+ },
8119
+ "description": "Get details of a Context MCP endpoint, including its URL",
8120
+ "examples": [
8025
8121
  {
8026
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
8027
- "description": "List issues about entries under billing/"
8122
+ "command": "<%= config.bin %> <%= command.id %> support",
8123
+ "description": "Get details of the \"support\" MCP endpoint"
8028
8124
  },
8029
8125
  {
8030
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8031
- "description": "Output issues as JSON"
8126
+ "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8127
+ "description": "Output an MCP endpoint in a specific organization as JSON"
8032
8128
  }
8033
8129
  ],
8034
8130
  "flags": {
@@ -8039,52 +8135,19 @@
8039
8135
  "allowNo": false,
8040
8136
  "type": "boolean"
8041
8137
  },
8042
- "kind": {
8043
- "description": "Only list issues of this kind",
8044
- "name": "kind",
8045
- "hasDynamicHelp": false,
8046
- "multiple": false,
8047
- "options": [
8048
- "conflict",
8049
- "update_required"
8050
- ],
8051
- "type": "option"
8052
- },
8053
- "scope": {
8054
- "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
8055
- "name": "scope",
8056
- "hasDynamicHelp": false,
8057
- "helpValue": "<path>",
8058
- "multiple": false,
8059
- "type": "option"
8060
- },
8061
- "severity": {
8062
- "description": "Only list issues of this severity",
8063
- "name": "severity",
8064
- "hasDynamicHelp": false,
8065
- "multiple": false,
8066
- "options": [
8067
- "critical",
8068
- "suggestion"
8069
- ],
8070
- "type": "option"
8071
- },
8072
- "status": {
8073
- "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8074
- "name": "status",
8138
+ "organization": {
8139
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8140
+ "helpGroup": "OVERRIDE",
8141
+ "name": "organization",
8075
8142
  "hasDynamicHelp": false,
8143
+ "helpValue": "<id>",
8076
8144
  "multiple": false,
8077
- "options": [
8078
- "open",
8079
- "accepted",
8080
- "rejected"
8081
- ],
8082
8145
  "type": "option"
8083
8146
  }
8084
8147
  },
8085
8148
  "hasDynamicHelp": false,
8086
8149
  "hiddenAliases": [],
8087
- "id": "context:issues:list",
8150
+ "id": "context:mcp:get",
8088
8151
  "pluginAlias": "@sanity/cli",
8089
8152
  "pluginName": "@sanity/cli",
8090
8153
  "pluginType": "core",
@@ -8095,33 +8158,28 @@
8095
8158
  "dist",
8096
8159
  "commands",
8097
8160
  "context",
8098
- "issues",
8099
- "list.js"
8161
+ "mcp",
8162
+ "get.js"
8100
8163
  ]
8101
8164
  },
8102
- "context:issues:reopen": {
8165
+ "context:mcp:initial-context": {
8103
8166
  "aliases": [],
8104
8167
  "args": {
8105
- "knowledgeBaseId": {
8106
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8107
- "name": "knowledgeBaseId",
8108
- "required": true
8109
- },
8110
- "issueId": {
8111
- "description": "The issue's document ID.",
8112
- "name": "issueId",
8168
+ "mcpEndpoint": {
8169
+ "description": "The MCP endpoint's name, set when the endpoint was created.",
8170
+ "name": "mcpEndpoint",
8113
8171
  "required": true
8114
8172
  }
8115
8173
  },
8116
- "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
8174
+ "description": "Returns the same text as the `initial_context` MCP tool, as plain text you can add to a system prompt. `heading_offset` shifts markdown headings down by that many levels. The default is `1`, so `#` becomes `##`.",
8117
8175
  "examples": [
8118
8176
  {
8119
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8120
- "description": "Reopen an accepted conflict"
8177
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8178
+ "description": "Get an MCP endpoint's initial context"
8121
8179
  },
8122
8180
  {
8123
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8124
- "description": "Reopen an accepted conflict, as JSON"
8181
+ "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8182
+ "description": "Get an MCP endpoint's initial context, as JSON"
8125
8183
  }
8126
8184
  ],
8127
8185
  "flags": {
@@ -8131,52 +8189,77 @@
8131
8189
  "name": "json",
8132
8190
  "allowNo": false,
8133
8191
  "type": "boolean"
8192
+ },
8193
+ "link-resolver": {
8194
+ "description": "A JSON array that adds `_url` fields to query results. Each item has `types` (document types), `baseUrl`, and an optional `slugExpression`, a GROQ expression that defaults to `slug.current`. Invalid JSON is ignored.",
8195
+ "name": "link-resolver",
8196
+ "hasDynamicHelp": false,
8197
+ "multiple": false,
8198
+ "type": "option"
8199
+ },
8200
+ "heading_offset": {
8201
+ "description": "How many levels to shift markdown headings down, from `0` to `6`. Defaults to `1`, so `#` becomes `##`.",
8202
+ "name": "heading_offset",
8203
+ "hasDynamicHelp": false,
8204
+ "multiple": false,
8205
+ "type": "option"
8206
+ },
8207
+ "organization": {
8208
+ "description": "Organization ID (overrides CLI configuration)",
8209
+ "helpGroup": "OVERRIDE",
8210
+ "name": "organization",
8211
+ "hasDynamicHelp": false,
8212
+ "helpValue": "<id>",
8213
+ "multiple": false,
8214
+ "type": "option"
8134
8215
  }
8135
8216
  },
8136
8217
  "hasDynamicHelp": false,
8137
8218
  "hiddenAliases": [],
8138
- "id": "context:issues:reopen",
8219
+ "id": "context:mcp:initial-context",
8139
8220
  "pluginAlias": "@sanity/cli",
8140
8221
  "pluginName": "@sanity/cli",
8141
8222
  "pluginType": "core",
8142
8223
  "strict": true,
8143
- "summary": "Reopen an accepted conflict",
8224
+ "summary": "Get an MCP endpoint's initial context",
8144
8225
  "enableJsonFlag": true,
8145
8226
  "telemetry": {
8146
- "redactedFlags": []
8227
+ "redactedFlags": [
8228
+ {
8229
+ "canonical": "--link-resolver",
8230
+ "flags": [
8231
+ "--link-resolver"
8232
+ ]
8233
+ },
8234
+ {
8235
+ "canonical": "--heading_offset",
8236
+ "flags": [
8237
+ "--heading_offset"
8238
+ ]
8239
+ }
8240
+ ]
8147
8241
  },
8148
8242
  "isESM": true,
8149
8243
  "relativePath": [
8150
8244
  "dist",
8151
8245
  "commands",
8152
8246
  "context",
8153
- "issues",
8154
- "reopen.js"
8247
+ "mcp",
8248
+ "initial-context.js"
8155
8249
  ]
8156
8250
  },
8157
- "context:issues:resolve": {
8251
+ "context:mcp:list": {
8158
8252
  "aliases": [],
8159
- "args": {
8160
- "knowledgeBaseId": {
8161
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8162
- "name": "knowledgeBaseId",
8163
- "required": true
8164
- },
8165
- "issueId": {
8166
- "description": "The issue's document ID.",
8167
- "name": "issueId",
8168
- "required": true
8169
- }
8170
- },
8171
- "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
8253
+ "args": {},
8254
+ "description": "List Context MCP endpoints in an organization",
8172
8255
  "examples": [
8173
8256
  {
8174
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8175
- "description": "Choose the correct side interactively"
8257
+ "command": "<%= config.bin %> <%= command.id %>",
8258
+ "description": "List MCP endpoints, selecting the organization interactively"
8176
8259
  },
8177
8260
  {
8178
- "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8179
- "description": "Choose side 1 and wait for the entry rewrite"
8261
+ "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8262
+ "description": "Output the MCP endpoints of a specific organization as JSON"
8180
8263
  }
8181
8264
  ],
8182
8265
  "flags": {
@@ -8187,63 +8270,47 @@
8187
8270
  "allowNo": false,
8188
8271
  "type": "boolean"
8189
8272
  },
8190
- "watch": {
8191
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8192
- "name": "watch",
8193
- "allowNo": false,
8194
- "type": "boolean"
8195
- },
8196
- "side": {
8197
- "description": "Index of the correct side, as listed by `sanity context issues get`",
8198
- "name": "side",
8273
+ "organization": {
8274
+ "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8275
+ "helpGroup": "OVERRIDE",
8276
+ "name": "organization",
8199
8277
  "hasDynamicHelp": false,
8278
+ "helpValue": "<id>",
8200
8279
  "multiple": false,
8201
8280
  "type": "option"
8202
8281
  }
8203
8282
  },
8204
8283
  "hasDynamicHelp": false,
8205
8284
  "hiddenAliases": [],
8206
- "id": "context:issues:resolve",
8285
+ "id": "context:mcp:list",
8207
8286
  "pluginAlias": "@sanity/cli",
8208
8287
  "pluginName": "@sanity/cli",
8209
8288
  "pluginType": "core",
8210
- "summary": "Resolve a conflict issue",
8289
+ "strict": true,
8211
8290
  "enableJsonFlag": true,
8212
- "telemetry": {
8213
- "redactedFlags": []
8214
- },
8215
8291
  "isESM": true,
8216
8292
  "relativePath": [
8217
8293
  "dist",
8218
8294
  "commands",
8219
8295
  "context",
8220
- "issues",
8221
- "resolve.js"
8296
+ "mcp",
8297
+ "list.js"
8222
8298
  ]
8223
8299
  },
8224
- "context:jobs:get": {
8300
+ "context:mcp:status": {
8225
8301
  "aliases": [],
8226
8302
  "args": {
8227
- "knowledgeBaseId": {
8228
- "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8229
- "name": "knowledgeBaseId",
8230
- "required": true
8231
- },
8232
- "jobId": {
8233
- "description": "The job ID returned by the endpoint that started the work.",
8234
- "name": "jobId",
8303
+ "name": {
8304
+ "description": "MCP endpoint name, as in its URL",
8305
+ "name": "name",
8235
8306
  "required": true
8236
8307
  }
8237
8308
  },
8238
- "description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
8309
+ "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
8239
8310
  "examples": [
8240
8311
  {
8241
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
8242
- "description": "Get a job"
8243
- },
8244
- {
8245
- "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
8246
- "description": "Get a job, as JSON"
8312
+ "command": "<%= config.bin %> <%= command.id %> support",
8313
+ "description": "Check the \"support\" MCP endpoint"
8247
8314
  }
8248
8315
  ],
8249
8316
  "flags": {
@@ -8254,57 +8321,68 @@
8254
8321
  "allowNo": false,
8255
8322
  "type": "boolean"
8256
8323
  },
8257
- "watch": {
8258
- "description": "Wait for the job to finish, exiting non-zero if it fails",
8259
- "name": "watch",
8260
- "allowNo": false,
8261
- "type": "boolean"
8324
+ "organization": {
8325
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8326
+ "helpGroup": "OVERRIDE",
8327
+ "name": "organization",
8328
+ "hasDynamicHelp": false,
8329
+ "helpValue": "<id>",
8330
+ "multiple": false,
8331
+ "type": "option"
8262
8332
  }
8263
8333
  },
8264
8334
  "hasDynamicHelp": false,
8265
8335
  "hiddenAliases": [],
8266
- "id": "context:jobs:get",
8336
+ "id": "context:mcp:status",
8267
8337
  "pluginAlias": "@sanity/cli",
8268
8338
  "pluginName": "@sanity/cli",
8269
8339
  "pluginType": "core",
8270
8340
  "strict": true,
8271
- "summary": "Get a job",
8272
8341
  "enableJsonFlag": true,
8273
- "telemetry": {
8274
- "redactedFlags": []
8275
- },
8276
8342
  "isESM": true,
8277
8343
  "relativePath": [
8278
8344
  "dist",
8279
8345
  "commands",
8280
8346
  "context",
8281
- "jobs",
8282
- "get.js"
8347
+ "mcp",
8348
+ "status.js"
8283
8349
  ]
8284
8350
  },
8285
- "context:mcp:create": {
8351
+ "context:mcp:update": {
8286
8352
  "aliases": [],
8287
8353
  "args": {
8288
8354
  "name": {
8289
- "description": "Permanent MCP endpoint name used in its URL, made of lowercase letters, digits and hyphens",
8355
+ "description": "MCP endpoint name, as in its URL",
8290
8356
  "name": "name",
8291
8357
  "required": true
8292
8358
  }
8293
8359
  },
8294
- "description": "Create a Context MCP endpoint that serves knowledge bases and a dataset to agents",
8360
+ "description": "Update a Context MCP endpoint\n\nOnly the settings you pass change. Dataset settings (--workspace, --perspective, --semantic-search) apply to the endpoint's dataset and start from the defaults when --dataset switches to another dataset.",
8295
8361
  "examples": [
8296
8362
  {
8297
- "command": "<%= config.bin %> <%= command.id %> support --title \"Support\" --knowledge-base kb-abc123 --knowledge-base kb-def456",
8298
- "description": "Create an MCP endpoint that serves two knowledge bases"
8363
+ "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8364
+ "description": "Rename an MCP endpoint"
8365
+ },
8366
+ {
8367
+ "command": "<%= config.bin %> <%= command.id %> support --add-knowledge-base kb-def456 --remove-knowledge-base kb-abc123",
8368
+ "description": "Serve a different knowledge base"
8369
+ },
8370
+ {
8371
+ "command": "<%= config.bin %> <%= command.id %> catalog --project abc123 --dataset staging --perspective drafts",
8372
+ "description": "Switch to another dataset and query its drafts"
8373
+ },
8374
+ {
8375
+ "command": "<%= config.bin %> <%= command.id %> support --no-dataset",
8376
+ "description": "Stop serving the dataset"
8299
8377
  },
8300
8378
  {
8301
- "command": "<%= config.bin %> <%= command.id %> catalog --title \"Catalog\" --project abc123 --dataset production --perspective drafts --groq-filter '_type in [\"product\"]'",
8302
- "description": "Create an MCP endpoint that serves the products in a dataset"
8379
+ "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8380
+ "description": "Remove the instructions"
8303
8381
  }
8304
8382
  ],
8305
8383
  "flags": {
8306
8384
  "organization": {
8307
- "description": "Organization to create the MCP endpoint in (overrides CLI configuration)",
8385
+ "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8308
8386
  "helpGroup": "OVERRIDE",
8309
8387
  "name": "organization",
8310
8388
  "hasDynamicHelp": false,
@@ -8312,9 +8390,17 @@
8312
8390
  "multiple": false,
8313
8391
  "type": "option"
8314
8392
  },
8393
+ "add-knowledge-base": {
8394
+ "description": "Knowledge base to add to the endpoint; repeat the flag to add several",
8395
+ "name": "add-knowledge-base",
8396
+ "hasDynamicHelp": false,
8397
+ "helpValue": "<id>",
8398
+ "multiple": true,
8399
+ "type": "option"
8400
+ },
8315
8401
  "dataset": {
8316
8402
  "char": "d",
8317
- "description": "Dataset the endpoint serves",
8403
+ "description": "Dataset the endpoint serves, replacing its current dataset",
8318
8404
  "name": "dataset",
8319
8405
  "hasDynamicHelp": false,
8320
8406
  "helpValue": "<name>",
@@ -8339,34 +8425,36 @@
8339
8425
  "type": "option"
8340
8426
  },
8341
8427
  "groq-filter": {
8342
- "dependsOn": [
8343
- "dataset"
8344
- ],
8345
- "description": "GROQ filter that limits which dataset documents the endpoint serves",
8428
+ "description": "GROQ filter that limits which dataset documents the endpoint serves (\"\" removes it)",
8346
8429
  "name": "groq-filter",
8347
8430
  "hasDynamicHelp": false,
8348
8431
  "multiple": false,
8349
8432
  "type": "option"
8350
8433
  },
8351
8434
  "instructions": {
8352
- "description": "Instructions the endpoint serves to connecting agents",
8435
+ "description": "Instructions the endpoint serves to connecting agents (\"\" removes them)",
8353
8436
  "name": "instructions",
8354
8437
  "hasDynamicHelp": false,
8355
8438
  "multiple": false,
8356
8439
  "type": "option"
8357
8440
  },
8358
8441
  "knowledge-base": {
8359
- "description": "Knowledge base the endpoint serves; repeat the flag to serve several",
8442
+ "hidden": true,
8360
8443
  "name": "knowledge-base",
8361
8444
  "hasDynamicHelp": false,
8362
- "helpValue": "<id>",
8363
8445
  "multiple": true,
8364
8446
  "type": "option"
8365
8447
  },
8366
- "perspective": {
8367
- "dependsOn": [
8448
+ "no-dataset": {
8449
+ "description": "Stop serving the dataset, which also removes the GROQ filter",
8450
+ "exclusive": [
8368
8451
  "dataset"
8369
8452
  ],
8453
+ "name": "no-dataset",
8454
+ "allowNo": false,
8455
+ "type": "boolean"
8456
+ },
8457
+ "perspective": {
8370
8458
  "description": "Perspective agents query the dataset with",
8371
8459
  "name": "perspective",
8372
8460
  "hasDynamicHelp": false,
@@ -8378,27 +8466,29 @@
8378
8466
  ],
8379
8467
  "type": "option"
8380
8468
  },
8469
+ "remove-knowledge-base": {
8470
+ "description": "Knowledge base to remove from the endpoint; repeat the flag to remove several",
8471
+ "name": "remove-knowledge-base",
8472
+ "hasDynamicHelp": false,
8473
+ "helpValue": "<id>",
8474
+ "multiple": true,
8475
+ "type": "option"
8476
+ },
8381
8477
  "semantic-search": {
8382
- "dependsOn": [
8383
- "dataset"
8384
- ],
8385
8478
  "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
8386
8479
  "name": "semantic-search",
8387
8480
  "allowNo": true,
8388
8481
  "type": "boolean"
8389
8482
  },
8390
8483
  "title": {
8391
- "description": "MCP endpoint title",
8484
+ "description": "New MCP endpoint title",
8392
8485
  "name": "title",
8393
8486
  "hasDynamicHelp": false,
8394
8487
  "multiple": false,
8395
8488
  "type": "option"
8396
8489
  },
8397
8490
  "workspace": {
8398
- "dependsOn": [
8399
- "dataset"
8400
- ],
8401
- "description": "Studio workspace whose schema agents use, instead of the first workspace",
8491
+ "description": "Studio workspace whose schema agents use (\"\" goes back to the first workspace)",
8402
8492
  "name": "workspace",
8403
8493
  "hasDynamicHelp": false,
8404
8494
  "multiple": false,
@@ -8407,7 +8497,7 @@
8407
8497
  },
8408
8498
  "hasDynamicHelp": false,
8409
8499
  "hiddenAliases": [],
8410
- "id": "context:mcp:create",
8500
+ "id": "context:mcp:update",
8411
8501
  "pluginAlias": "@sanity/cli",
8412
8502
  "pluginName": "@sanity/cli",
8413
8503
  "pluginType": "core",
@@ -8440,81 +8530,33 @@
8440
8530
  "commands",
8441
8531
  "context",
8442
8532
  "mcp",
8443
- "create.js"
8533
+ "update.js"
8444
8534
  ]
8445
8535
  },
8446
- "context:mcp:delete": {
8536
+ "context:issues:apply": {
8447
8537
  "aliases": [],
8448
8538
  "args": {
8449
- "name": {
8450
- "description": "MCP endpoint name, as in its URL",
8451
- "name": "name",
8539
+ "knowledgeBaseId": {
8540
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8541
+ "name": "knowledgeBaseId",
8452
8542
  "required": true
8453
- }
8454
- },
8455
- "description": "Delete a Context MCP endpoint, which disconnects any agents using it",
8456
- "examples": [
8457
- {
8458
- "command": "<%= config.bin %> <%= command.id %> support",
8459
- "description": "Delete an MCP endpoint after confirmation"
8460
- },
8461
- {
8462
- "command": "<%= config.bin %> <%= command.id %> support --yes",
8463
- "description": "Delete an MCP endpoint without confirmation prompt"
8464
- }
8465
- ],
8466
- "flags": {
8467
- "organization": {
8468
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8469
- "helpGroup": "OVERRIDE",
8470
- "name": "organization",
8471
- "hasDynamicHelp": false,
8472
- "helpValue": "<id>",
8473
- "multiple": false,
8474
- "type": "option"
8475
8543
  },
8476
- "yes": {
8477
- "char": "y",
8478
- "description": "Skip confirmation prompt (unattended mode)",
8479
- "name": "yes",
8480
- "allowNo": false,
8481
- "type": "boolean"
8482
- }
8483
- },
8484
- "hasDynamicHelp": false,
8485
- "hiddenAliases": [],
8486
- "id": "context:mcp:delete",
8487
- "pluginAlias": "@sanity/cli",
8488
- "pluginName": "@sanity/cli",
8489
- "pluginType": "core",
8490
- "strict": true,
8491
- "isESM": true,
8492
- "relativePath": [
8493
- "dist",
8494
- "commands",
8495
- "context",
8496
- "mcp",
8497
- "delete.js"
8498
- ]
8499
- },
8500
- "context:mcp:get": {
8501
- "aliases": [],
8502
- "args": {
8503
- "name": {
8504
- "description": "MCP endpoint name, as in its URL",
8505
- "name": "name",
8544
+ "issueIds": {
8545
+ "description": "The IDs of the issues to accept and apply.",
8546
+ "multiple": true,
8547
+ "name": "issueIds",
8506
8548
  "required": true
8507
8549
  }
8508
8550
  },
8509
- "description": "Get details of a Context MCP endpoint, including its URL",
8551
+ "description": "Accepts the issues in `issueIds`, then queues a job that applies them, rewrites the affected entries, and saves a new revision. Returns a job ID. IDs of issues that no longer exist are skipped. Returns `409` with code `issueNotAutoApplicable`, and accepts none of the issues, if any of them cannot be applied: a `conflict` (resolve it with `POST .../issues/{issueId}/resolve`), or an `update_required` issue whose `scopePath` is `*` or names an entry that no longer exists. Dismiss those instead.",
8510
8552
  "examples": [
8511
8553
  {
8512
- "command": "<%= config.bin %> <%= command.id %> support",
8513
- "description": "Get details of the \"support\" MCP endpoint"
8554
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
8555
+ "description": "Accept and apply issues"
8514
8556
  },
8515
8557
  {
8516
- "command": "<%= config.bin %> <%= command.id %> support --organization org-abc123 --json",
8517
- "description": "Output an MCP endpoint in a specific organization as JSON"
8558
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
8559
+ "description": "Accept and apply issues, as JSON"
8518
8560
  }
8519
8561
  ],
8520
8562
  "flags": {
@@ -8525,131 +8567,57 @@
8525
8567
  "allowNo": false,
8526
8568
  "type": "boolean"
8527
8569
  },
8528
- "organization": {
8529
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8530
- "helpGroup": "OVERRIDE",
8531
- "name": "organization",
8532
- "hasDynamicHelp": false,
8533
- "helpValue": "<id>",
8534
- "multiple": false,
8535
- "type": "option"
8570
+ "watch": {
8571
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8572
+ "name": "watch",
8573
+ "allowNo": false,
8574
+ "type": "boolean"
8536
8575
  }
8537
8576
  },
8538
8577
  "hasDynamicHelp": false,
8539
8578
  "hiddenAliases": [],
8540
- "id": "context:mcp:get",
8579
+ "id": "context:issues:apply",
8541
8580
  "pluginAlias": "@sanity/cli",
8542
8581
  "pluginName": "@sanity/cli",
8543
8582
  "pluginType": "core",
8544
8583
  "strict": true,
8584
+ "summary": "Accept and apply issues",
8545
8585
  "enableJsonFlag": true,
8586
+ "telemetry": {
8587
+ "redactedFlags": []
8588
+ },
8546
8589
  "isESM": true,
8547
8590
  "relativePath": [
8548
8591
  "dist",
8549
8592
  "commands",
8550
8593
  "context",
8551
- "mcp",
8552
- "get.js"
8594
+ "issues",
8595
+ "apply.js"
8553
8596
  ]
8554
8597
  },
8555
- "context:mcp:initial-context": {
8598
+ "context:issues:dismiss": {
8556
8599
  "aliases": [],
8557
8600
  "args": {
8558
- "mcpEndpoint": {
8559
- "description": "The MCP endpoint's name, set when the endpoint was created.",
8560
- "name": "mcpEndpoint",
8601
+ "knowledgeBaseId": {
8602
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8603
+ "name": "knowledgeBaseId",
8561
8604
  "required": true
8562
- }
8563
- },
8564
- "description": "Returns the same text as the `initial_context` MCP tool, as plain text you can add to a system prompt. `heading_offset` shifts markdown headings down by that many levels. The default is `1`, so `#` becomes `##`.",
8565
- "examples": [
8566
- {
8567
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint>",
8568
- "description": "Get an MCP endpoint's initial context"
8569
- },
8570
- {
8571
- "command": "<%= config.bin %> <%= command.id %> <mcpEndpoint> --json",
8572
- "description": "Get an MCP endpoint's initial context, as JSON"
8573
- }
8574
- ],
8575
- "flags": {
8576
- "json": {
8577
- "description": "Format output as json.",
8578
- "helpGroup": "GLOBAL",
8579
- "name": "json",
8580
- "allowNo": false,
8581
- "type": "boolean"
8582
- },
8583
- "link-resolver": {
8584
- "description": "A JSON array that adds `_url` fields to query results. Each item has `types` (document types), `baseUrl`, and an optional `slugExpression`, a GROQ expression that defaults to `slug.current`. Invalid JSON is ignored.",
8585
- "name": "link-resolver",
8586
- "hasDynamicHelp": false,
8587
- "multiple": false,
8588
- "type": "option"
8589
- },
8590
- "heading_offset": {
8591
- "description": "How many levels to shift markdown headings down, from `0` to `6`. Defaults to `1`, so `#` becomes `##`.",
8592
- "name": "heading_offset",
8593
- "hasDynamicHelp": false,
8594
- "multiple": false,
8595
- "type": "option"
8596
8605
  },
8597
- "organization": {
8598
- "description": "Organization ID (overrides CLI configuration)",
8599
- "helpGroup": "OVERRIDE",
8600
- "name": "organization",
8601
- "hasDynamicHelp": false,
8602
- "helpValue": "<id>",
8603
- "multiple": false,
8604
- "type": "option"
8606
+ "issueId": {
8607
+ "description": "The issue's document ID.",
8608
+ "name": "issueId",
8609
+ "required": true
8605
8610
  }
8606
8611
  },
8607
- "hasDynamicHelp": false,
8608
- "hiddenAliases": [],
8609
- "id": "context:mcp:initial-context",
8610
- "pluginAlias": "@sanity/cli",
8611
- "pluginName": "@sanity/cli",
8612
- "pluginType": "core",
8613
- "strict": true,
8614
- "summary": "Get an MCP endpoint's initial context",
8615
- "enableJsonFlag": true,
8616
- "telemetry": {
8617
- "redactedFlags": [
8618
- {
8619
- "canonical": "--link-resolver",
8620
- "flags": [
8621
- "--link-resolver"
8622
- ]
8623
- },
8624
- {
8625
- "canonical": "--heading_offset",
8626
- "flags": [
8627
- "--heading_offset"
8628
- ]
8629
- }
8630
- ]
8631
- },
8632
- "isESM": true,
8633
- "relativePath": [
8634
- "dist",
8635
- "commands",
8636
- "context",
8637
- "mcp",
8638
- "initial-context.js"
8639
- ]
8640
- },
8641
- "context:mcp:list": {
8642
- "aliases": [],
8643
- "args": {},
8644
- "description": "List Context MCP endpoints in an organization",
8612
+ "description": "Marks the issue as rejected. If the issue already left triage, the request returns it unchanged. Returns `422` with code `issueDocumentInvalid` if the issue document was edited into a shape the API cannot verify. Returns `409` with code `issueTransitionConflict` if another change to the issue happened at the same time. You can safely retry a `409`.",
8645
8613
  "examples": [
8646
8614
  {
8647
- "command": "<%= config.bin %> <%= command.id %>",
8648
- "description": "List MCP endpoints, selecting the organization interactively"
8615
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8616
+ "description": "Dismiss an issue"
8649
8617
  },
8650
8618
  {
8651
- "command": "<%= config.bin %> <%= command.id %> --organization org-abc123 --json",
8652
- "description": "Output the MCP endpoints of a specific organization as JSON"
8619
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8620
+ "description": "Dismiss an issue, as JSON"
8653
8621
  }
8654
8622
  ],
8655
8623
  "flags": {
@@ -8659,48 +8627,52 @@
8659
8627
  "name": "json",
8660
8628
  "allowNo": false,
8661
8629
  "type": "boolean"
8662
- },
8663
- "organization": {
8664
- "description": "Organization to list MCP endpoints for (overrides CLI configuration)",
8665
- "helpGroup": "OVERRIDE",
8666
- "name": "organization",
8667
- "hasDynamicHelp": false,
8668
- "helpValue": "<id>",
8669
- "multiple": false,
8670
- "type": "option"
8671
8630
  }
8672
8631
  },
8673
8632
  "hasDynamicHelp": false,
8674
8633
  "hiddenAliases": [],
8675
- "id": "context:mcp:list",
8634
+ "id": "context:issues:dismiss",
8676
8635
  "pluginAlias": "@sanity/cli",
8677
8636
  "pluginName": "@sanity/cli",
8678
8637
  "pluginType": "core",
8679
8638
  "strict": true,
8639
+ "summary": "Dismiss an issue",
8680
8640
  "enableJsonFlag": true,
8641
+ "telemetry": {
8642
+ "redactedFlags": []
8643
+ },
8681
8644
  "isESM": true,
8682
8645
  "relativePath": [
8683
8646
  "dist",
8684
8647
  "commands",
8685
8648
  "context",
8686
- "mcp",
8687
- "list.js"
8649
+ "issues",
8650
+ "dismiss.js"
8688
8651
  ]
8689
8652
  },
8690
- "context:mcp:status": {
8653
+ "context:issues:get": {
8691
8654
  "aliases": [],
8692
8655
  "args": {
8693
- "name": {
8694
- "description": "MCP endpoint name, as in its URL",
8695
- "name": "name",
8656
+ "knowledgeBaseId": {
8657
+ "description": "Knowledge base ID",
8658
+ "name": "knowledgeBaseId",
8659
+ "required": true
8660
+ },
8661
+ "issueId": {
8662
+ "description": "Issue ID",
8663
+ "name": "issueId",
8696
8664
  "required": true
8697
8665
  }
8698
8666
  },
8699
- "description": "Check whether an agent connecting with your credentials can use a Context MCP endpoint",
8667
+ "description": "Get details of an issue",
8700
8668
  "examples": [
8701
8669
  {
8702
- "command": "<%= config.bin %> <%= command.id %> support",
8703
- "description": "Check the \"support\" MCP endpoint"
8670
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456",
8671
+ "description": "Get details of a specific issue"
8672
+ },
8673
+ {
8674
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue.def456 --json",
8675
+ "description": "Output the issue as JSON"
8704
8676
  }
8705
8677
  ],
8706
8678
  "flags": {
@@ -8710,20 +8682,11 @@
8710
8682
  "name": "json",
8711
8683
  "allowNo": false,
8712
8684
  "type": "boolean"
8713
- },
8714
- "organization": {
8715
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8716
- "helpGroup": "OVERRIDE",
8717
- "name": "organization",
8718
- "hasDynamicHelp": false,
8719
- "helpValue": "<id>",
8720
- "multiple": false,
8721
- "type": "option"
8722
8685
  }
8723
8686
  },
8724
8687
  "hasDynamicHelp": false,
8725
8688
  "hiddenAliases": [],
8726
- "id": "context:mcp:status",
8689
+ "id": "context:issues:get",
8727
8690
  "pluginAlias": "@sanity/cli",
8728
8691
  "pluginName": "@sanity/cli",
8729
8692
  "pluginType": "core",
@@ -8734,152 +8697,207 @@
8734
8697
  "dist",
8735
8698
  "commands",
8736
8699
  "context",
8737
- "mcp",
8738
- "status.js"
8700
+ "issues",
8701
+ "get.js"
8739
8702
  ]
8740
8703
  },
8741
- "context:mcp:update": {
8704
+ "context:issues:list": {
8742
8705
  "aliases": [],
8743
8706
  "args": {
8744
- "name": {
8745
- "description": "MCP endpoint name, as in its URL",
8746
- "name": "name",
8707
+ "knowledgeBaseId": {
8708
+ "description": "Knowledge base ID",
8709
+ "name": "knowledgeBaseId",
8747
8710
  "required": true
8748
8711
  }
8749
8712
  },
8750
- "description": "Update a Context MCP endpoint\n\nOnly the settings you pass change. Dataset settings (--workspace, --perspective, --semantic-search) apply to the endpoint's dataset and start from the defaults when --dataset switches to another dataset.",
8713
+ "description": "List issues found by knowledge base builds",
8751
8714
  "examples": [
8752
8715
  {
8753
- "command": "<%= config.bin %> <%= command.id %> support --title \"Customer support\"",
8754
- "description": "Rename an MCP endpoint"
8716
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123",
8717
+ "description": "List all issues for a knowledge base"
8755
8718
  },
8756
8719
  {
8757
- "command": "<%= config.bin %> <%= command.id %> support --add-knowledge-base kb-def456 --remove-knowledge-base kb-abc123",
8758
- "description": "Serve a different knowledge base"
8720
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --status open",
8721
+ "description": "List issues awaiting triage"
8759
8722
  },
8760
8723
  {
8761
- "command": "<%= config.bin %> <%= command.id %> catalog --project abc123 --dataset staging --perspective drafts",
8762
- "description": "Switch to another dataset and query its drafts"
8724
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --kind conflict --severity critical",
8725
+ "description": "List critical conflicts"
8763
8726
  },
8764
8727
  {
8765
- "command": "<%= config.bin %> <%= command.id %> support --no-dataset",
8766
- "description": "Stop serving the dataset"
8728
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --scope billing",
8729
+ "description": "List issues about entries under billing/"
8767
8730
  },
8768
8731
  {
8769
- "command": "<%= config.bin %> <%= command.id %> support --instructions \"\"",
8770
- "description": "Remove the instructions"
8732
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
8733
+ "description": "Output issues as JSON"
8771
8734
  }
8772
8735
  ],
8773
8736
  "flags": {
8774
- "organization": {
8775
- "description": "Organization the MCP endpoint belongs to (overrides CLI configuration)",
8776
- "helpGroup": "OVERRIDE",
8777
- "name": "organization",
8778
- "hasDynamicHelp": false,
8779
- "helpValue": "<id>",
8780
- "multiple": false,
8781
- "type": "option"
8782
- },
8783
- "add-knowledge-base": {
8784
- "description": "Knowledge base to add to the endpoint; repeat the flag to add several",
8785
- "name": "add-knowledge-base",
8786
- "hasDynamicHelp": false,
8787
- "helpValue": "<id>",
8788
- "multiple": true,
8789
- "type": "option"
8737
+ "json": {
8738
+ "description": "Format output as json.",
8739
+ "helpGroup": "GLOBAL",
8740
+ "name": "json",
8741
+ "allowNo": false,
8742
+ "type": "boolean"
8790
8743
  },
8791
- "dataset": {
8792
- "char": "d",
8793
- "description": "Dataset the endpoint serves, replacing its current dataset",
8794
- "name": "dataset",
8744
+ "kind": {
8745
+ "description": "Only list issues of this kind",
8746
+ "name": "kind",
8795
8747
  "hasDynamicHelp": false,
8796
- "helpValue": "<name>",
8797
8748
  "multiple": false,
8749
+ "options": [
8750
+ "conflict",
8751
+ "update_required"
8752
+ ],
8798
8753
  "type": "option"
8799
8754
  },
8800
- "project": {
8801
- "aliases": [
8802
- "project-id"
8803
- ],
8804
- "char": "p",
8805
- "dependsOn": [
8806
- "dataset"
8807
- ],
8808
- "deprecateAliases": true,
8809
- "description": "Project the dataset belongs to (overrides CLI configuration)",
8810
- "helpGroup": "OVERRIDE",
8811
- "name": "project",
8755
+ "scope": {
8756
+ "description": "Only list issues about this entry path or anything under it (`*` for knowledge-base-wide issues)",
8757
+ "name": "scope",
8812
8758
  "hasDynamicHelp": false,
8813
- "helpValue": "<id>",
8759
+ "helpValue": "<path>",
8814
8760
  "multiple": false,
8815
8761
  "type": "option"
8816
8762
  },
8817
- "groq-filter": {
8818
- "description": "GROQ filter that limits which dataset documents the endpoint serves (\"\" removes it)",
8819
- "name": "groq-filter",
8763
+ "severity": {
8764
+ "description": "Only list issues of this severity",
8765
+ "name": "severity",
8820
8766
  "hasDynamicHelp": false,
8821
8767
  "multiple": false,
8768
+ "options": [
8769
+ "critical",
8770
+ "suggestion"
8771
+ ],
8822
8772
  "type": "option"
8823
8773
  },
8824
- "instructions": {
8825
- "description": "Instructions the endpoint serves to connecting agents (\"\" removes them)",
8826
- "name": "instructions",
8774
+ "status": {
8775
+ "description": "Only list issues with this status (rejected = dismissed, accepted = resolved or applied)",
8776
+ "name": "status",
8827
8777
  "hasDynamicHelp": false,
8828
8778
  "multiple": false,
8779
+ "options": [
8780
+ "open",
8781
+ "accepted",
8782
+ "rejected"
8783
+ ],
8829
8784
  "type": "option"
8785
+ }
8786
+ },
8787
+ "hasDynamicHelp": false,
8788
+ "hiddenAliases": [],
8789
+ "id": "context:issues:list",
8790
+ "pluginAlias": "@sanity/cli",
8791
+ "pluginName": "@sanity/cli",
8792
+ "pluginType": "core",
8793
+ "strict": true,
8794
+ "enableJsonFlag": true,
8795
+ "isESM": true,
8796
+ "relativePath": [
8797
+ "dist",
8798
+ "commands",
8799
+ "context",
8800
+ "issues",
8801
+ "list.js"
8802
+ ]
8803
+ },
8804
+ "context:issues:reopen": {
8805
+ "aliases": [],
8806
+ "args": {
8807
+ "knowledgeBaseId": {
8808
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8809
+ "name": "knowledgeBaseId",
8810
+ "required": true
8830
8811
  },
8831
- "knowledge-base": {
8832
- "hidden": true,
8833
- "name": "knowledge-base",
8834
- "hasDynamicHelp": false,
8835
- "multiple": true,
8836
- "type": "option"
8812
+ "issueId": {
8813
+ "description": "The issue's document ID.",
8814
+ "name": "issueId",
8815
+ "required": true
8816
+ }
8817
+ },
8818
+ "description": "Returns an accepted conflict issue to triage, clears its resolution, and deletes the instruction the resolution created. Reopening an open or dismissed conflict returns it unchanged. Other issue types return `422` with code `issueNotResolvable`.",
8819
+ "examples": [
8820
+ {
8821
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId>",
8822
+ "description": "Reopen an accepted conflict"
8823
+ },
8824
+ {
8825
+ "command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <issueId> --json",
8826
+ "description": "Reopen an accepted conflict, as JSON"
8827
+ }
8828
+ ],
8829
+ "flags": {
8830
+ "json": {
8831
+ "description": "Format output as json.",
8832
+ "helpGroup": "GLOBAL",
8833
+ "name": "json",
8834
+ "allowNo": false,
8835
+ "type": "boolean"
8836
+ }
8837
+ },
8838
+ "hasDynamicHelp": false,
8839
+ "hiddenAliases": [],
8840
+ "id": "context:issues:reopen",
8841
+ "pluginAlias": "@sanity/cli",
8842
+ "pluginName": "@sanity/cli",
8843
+ "pluginType": "core",
8844
+ "strict": true,
8845
+ "summary": "Reopen an accepted conflict",
8846
+ "enableJsonFlag": true,
8847
+ "telemetry": {
8848
+ "redactedFlags": []
8849
+ },
8850
+ "isESM": true,
8851
+ "relativePath": [
8852
+ "dist",
8853
+ "commands",
8854
+ "context",
8855
+ "issues",
8856
+ "reopen.js"
8857
+ ]
8858
+ },
8859
+ "context:issues:resolve": {
8860
+ "aliases": [],
8861
+ "args": {
8862
+ "knowledgeBaseId": {
8863
+ "description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
8864
+ "name": "knowledgeBaseId",
8865
+ "required": true
8866
+ },
8867
+ "issueId": {
8868
+ "description": "The issue's document ID.",
8869
+ "name": "issueId",
8870
+ "required": true
8871
+ }
8872
+ },
8873
+ "description": "Resolves a conflict issue by choosing one of its sides. Set `resolution` to the index of a side in `content.sides`. For a conflict on a single entry, index `0` is the entry's current content, so choosing it keeps the entry as it is. Choosing any other side rewrites the entry, and the returned `jobId` tracks the rewrite. The decision becomes a standing instruction for every future build, and `resolvedBy` records who made it. To change a decision, resolve the accepted conflict again. Other issue types, dismissed conflicts, and out-of-range indexes return `422` with code `issueNotResolvable`.",
8874
+ "examples": [
8875
+ {
8876
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456",
8877
+ "description": "Choose the correct side interactively"
8837
8878
  },
8838
- "no-dataset": {
8839
- "description": "Stop serving the dataset, which also removes the GROQ filter",
8840
- "exclusive": [
8841
- "dataset"
8842
- ],
8843
- "name": "no-dataset",
8879
+ {
8880
+ "command": "<%= config.bin %> <%= command.id %> kb-abc123 issue-def456 --side 1 --watch",
8881
+ "description": "Choose side 1 and wait for the entry rewrite"
8882
+ }
8883
+ ],
8884
+ "flags": {
8885
+ "json": {
8886
+ "description": "Format output as json.",
8887
+ "helpGroup": "GLOBAL",
8888
+ "name": "json",
8844
8889
  "allowNo": false,
8845
8890
  "type": "boolean"
8846
8891
  },
8847
- "perspective": {
8848
- "description": "Perspective agents query the dataset with",
8849
- "name": "perspective",
8850
- "hasDynamicHelp": false,
8851
- "multiple": false,
8852
- "options": [
8853
- "published",
8854
- "drafts",
8855
- "raw"
8856
- ],
8857
- "type": "option"
8858
- },
8859
- "remove-knowledge-base": {
8860
- "description": "Knowledge base to remove from the endpoint; repeat the flag to remove several",
8861
- "name": "remove-knowledge-base",
8862
- "hasDynamicHelp": false,
8863
- "helpValue": "<id>",
8864
- "multiple": true,
8865
- "type": "option"
8866
- },
8867
- "semantic-search": {
8868
- "description": "Let agents use semantic search on the dataset (--no-semantic-search to turn it off)",
8869
- "name": "semantic-search",
8870
- "allowNo": true,
8892
+ "watch": {
8893
+ "description": "Wait for the job to finish, exiting non-zero if it fails",
8894
+ "name": "watch",
8895
+ "allowNo": false,
8871
8896
  "type": "boolean"
8872
8897
  },
8873
- "title": {
8874
- "description": "New MCP endpoint title",
8875
- "name": "title",
8876
- "hasDynamicHelp": false,
8877
- "multiple": false,
8878
- "type": "option"
8879
- },
8880
- "workspace": {
8881
- "description": "Studio workspace whose schema agents use (\"\" goes back to the first workspace)",
8882
- "name": "workspace",
8898
+ "side": {
8899
+ "description": "Index of the correct side, as listed by `sanity context issues get`",
8900
+ "name": "side",
8883
8901
  "hasDynamicHelp": false,
8884
8902
  "multiple": false,
8885
8903
  "type": "option"
@@ -8887,40 +8905,22 @@
8887
8905
  },
8888
8906
  "hasDynamicHelp": false,
8889
8907
  "hiddenAliases": [],
8890
- "id": "context:mcp:update",
8908
+ "id": "context:issues:resolve",
8891
8909
  "pluginAlias": "@sanity/cli",
8892
8910
  "pluginName": "@sanity/cli",
8893
8911
  "pluginType": "core",
8894
- "strict": true,
8912
+ "summary": "Resolve a conflict issue",
8913
+ "enableJsonFlag": true,
8895
8914
  "telemetry": {
8896
- "redactedFlags": [
8897
- {
8898
- "canonical": "--title",
8899
- "flags": [
8900
- "--title"
8901
- ]
8902
- },
8903
- {
8904
- "canonical": "--instructions",
8905
- "flags": [
8906
- "--instructions"
8907
- ]
8908
- },
8909
- {
8910
- "canonical": "--groq-filter",
8911
- "flags": [
8912
- "--groq-filter"
8913
- ]
8914
- }
8915
- ]
8915
+ "redactedFlags": []
8916
8916
  },
8917
8917
  "isESM": true,
8918
8918
  "relativePath": [
8919
8919
  "dist",
8920
8920
  "commands",
8921
8921
  "context",
8922
- "mcp",
8923
- "update.js"
8922
+ "issues",
8923
+ "resolve.js"
8924
8924
  ]
8925
8925
  },
8926
8926
  "context:sources:create": {
@@ -9655,37 +9655,20 @@
9655
9655
  "upload.js"
9656
9656
  ]
9657
9657
  },
9658
- "datasets:alias:create": {
9658
+ "datasets:embeddings:disable": {
9659
9659
  "aliases": [],
9660
9660
  "args": {
9661
- "aliasName": {
9662
- "description": "Dataset alias name to create",
9663
- "name": "aliasName",
9664
- "required": false
9665
- },
9666
- "targetDataset": {
9667
- "description": "Target dataset name to link the alias to",
9668
- "name": "targetDataset",
9661
+ "dataset": {
9662
+ "description": "Dataset name to disable embeddings for",
9663
+ "name": "dataset",
9669
9664
  "required": false
9670
9665
  }
9671
9666
  },
9672
- "description": "Create a dataset alias for the project",
9667
+ "description": "Disable embeddings for a dataset",
9673
9668
  "examples": [
9674
9669
  {
9675
- "command": "<%= config.bin %> <%= command.id %> --project abc123 conference conf-2025",
9676
- "description": "Create alias in a specific project"
9677
- },
9678
- {
9679
- "command": "<%= config.bin %> <%= command.id %>",
9680
- "description": "Create an alias with interactive prompts"
9681
- },
9682
- {
9683
- "command": "<%= config.bin %> <%= command.id %> conference",
9684
- "description": "Create alias named \"conference\" with interactive dataset selection"
9685
- },
9686
- {
9687
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9688
- "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
9670
+ "command": "<%= config.bin %> <%= command.id %> production",
9671
+ "description": "Disable embeddings for the production dataset"
9689
9672
  }
9690
9673
  ],
9691
9674
  "flags": {
@@ -9695,7 +9678,7 @@
9695
9678
  ],
9696
9679
  "char": "p",
9697
9680
  "deprecateAliases": true,
9698
- "description": "Project ID to create dataset alias in (overrides CLI configuration)",
9681
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
9699
9682
  "helpGroup": "OVERRIDE",
9700
9683
  "name": "project",
9701
9684
  "hasDynamicHelp": false,
@@ -9706,9 +9689,9 @@
9706
9689
  },
9707
9690
  "hasDynamicHelp": false,
9708
9691
  "hiddenAliases": [
9709
- "dataset:alias:create"
9692
+ "dataset:embeddings:disable"
9710
9693
  ],
9711
- "id": "datasets:alias:create",
9694
+ "id": "datasets:embeddings:disable",
9712
9695
  "pluginAlias": "@sanity/cli",
9713
9696
  "pluginName": "@sanity/cli",
9714
9697
  "pluginType": "core",
@@ -9718,28 +9701,32 @@
9718
9701
  "dist",
9719
9702
  "commands",
9720
9703
  "datasets",
9721
- "alias",
9722
- "create.js"
9704
+ "embeddings",
9705
+ "disable.js"
9723
9706
  ]
9724
9707
  },
9725
- "datasets:alias:delete": {
9708
+ "datasets:embeddings:enable": {
9726
9709
  "aliases": [],
9727
9710
  "args": {
9728
- "aliasName": {
9729
- "description": "Dataset alias name to delete",
9730
- "name": "aliasName",
9731
- "required": true
9711
+ "dataset": {
9712
+ "description": "Dataset name to enable embeddings for",
9713
+ "name": "dataset",
9714
+ "required": false
9732
9715
  }
9733
9716
  },
9734
- "description": "Delete a dataset alias from the project",
9717
+ "description": "Enable embeddings for a dataset",
9735
9718
  "examples": [
9736
9719
  {
9737
- "command": "<%= config.bin %> <%= command.id %> conference",
9738
- "description": "Delete alias named \"conference\" with confirmation prompt"
9720
+ "command": "<%= config.bin %> <%= command.id %> production",
9721
+ "description": "Enable embeddings for the production dataset"
9739
9722
  },
9740
9723
  {
9741
- "command": "<%= config.bin %> <%= command.id %> conference --force",
9742
- "description": "Delete alias named \"conference\" without confirmation prompt"
9724
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
9725
+ "description": "Enable embeddings with a specific projection"
9726
+ },
9727
+ {
9728
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
9729
+ "description": "Enable embeddings and wait for processing to complete"
9743
9730
  }
9744
9731
  ],
9745
9732
  "flags": {
@@ -9749,7 +9736,7 @@
9749
9736
  ],
9750
9737
  "char": "p",
9751
9738
  "deprecateAliases": true,
9752
- "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
9739
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
9753
9740
  "helpGroup": "OVERRIDE",
9754
9741
  "name": "project",
9755
9742
  "hasDynamicHelp": false,
@@ -9757,62 +9744,63 @@
9757
9744
  "multiple": false,
9758
9745
  "type": "option"
9759
9746
  },
9760
- "force": {
9761
- "description": "Skip confirmation prompt and delete immediately",
9762
- "name": "force",
9747
+ "projection": {
9748
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
9749
+ "name": "projection",
9750
+ "required": false,
9751
+ "hasDynamicHelp": false,
9752
+ "multiple": false,
9753
+ "type": "option"
9754
+ },
9755
+ "wait": {
9756
+ "description": "Wait for embeddings processing to complete before returning",
9757
+ "name": "wait",
9763
9758
  "allowNo": false,
9764
9759
  "type": "boolean"
9765
9760
  }
9766
9761
  },
9767
9762
  "hasDynamicHelp": false,
9768
9763
  "hiddenAliases": [
9769
- "dataset:alias:delete"
9764
+ "dataset:embeddings:enable"
9770
9765
  ],
9771
- "id": "datasets:alias:delete",
9766
+ "id": "datasets:embeddings:enable",
9772
9767
  "pluginAlias": "@sanity/cli",
9773
9768
  "pluginName": "@sanity/cli",
9774
9769
  "pluginType": "core",
9775
9770
  "strict": true,
9771
+ "telemetry": {
9772
+ "redactedFlags": [
9773
+ {
9774
+ "canonical": "--projection",
9775
+ "flags": [
9776
+ "--projection"
9777
+ ]
9778
+ }
9779
+ ]
9780
+ },
9776
9781
  "isESM": true,
9777
9782
  "relativePath": [
9778
9783
  "dist",
9779
9784
  "commands",
9780
9785
  "datasets",
9781
- "alias",
9782
- "delete.js"
9786
+ "embeddings",
9787
+ "enable.js"
9783
9788
  ]
9784
9789
  },
9785
- "datasets:alias:link": {
9790
+ "datasets:embeddings:status": {
9786
9791
  "aliases": [],
9787
9792
  "args": {
9788
- "aliasName": {
9789
- "description": "Dataset alias name to link",
9790
- "name": "aliasName",
9791
- "required": false
9792
- },
9793
- "targetDataset": {
9794
- "description": "Target dataset name to link the alias to",
9795
- "name": "targetDataset",
9793
+ "dataset": {
9794
+ "description": "The name of the dataset to check embeddings status for",
9795
+ "name": "dataset",
9796
9796
  "required": false
9797
9797
  }
9798
9798
  },
9799
- "description": "Link a dataset alias to a dataset in the project",
9799
+ "description": "Show embeddings settings and status for a dataset",
9800
9800
  "examples": [
9801
9801
  {
9802
- "command": "<%= config.bin %> <%= command.id %>",
9803
- "description": "Link an alias with interactive prompts"
9804
- },
9805
- {
9806
- "command": "<%= config.bin %> <%= command.id %> conference",
9807
- "description": "Link alias named \"conference\" with interactive dataset selection"
9808
- },
9809
- {
9810
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9811
- "description": "Link alias \"conference\" to \"conf-2025\" dataset"
9812
- },
9813
- {
9814
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
9815
- "description": "Force link without confirmation (skip relink prompt)"
9802
+ "command": "<%= config.bin %> <%= command.id %> production",
9803
+ "description": "Show embeddings status for the production dataset"
9816
9804
  }
9817
9805
  ],
9818
9806
  "flags": {
@@ -9822,27 +9810,20 @@
9822
9810
  ],
9823
9811
  "char": "p",
9824
9812
  "deprecateAliases": true,
9825
- "description": "Project ID to link dataset alias in (overrides CLI configuration)",
9813
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
9826
9814
  "helpGroup": "OVERRIDE",
9827
9815
  "name": "project",
9828
9816
  "hasDynamicHelp": false,
9829
9817
  "helpValue": "<id>",
9830
9818
  "multiple": false,
9831
9819
  "type": "option"
9832
- },
9833
- "force": {
9834
- "description": "Skip confirmation prompt when relinking existing alias",
9835
- "name": "force",
9836
- "required": false,
9837
- "allowNo": false,
9838
- "type": "boolean"
9839
9820
  }
9840
9821
  },
9841
9822
  "hasDynamicHelp": false,
9842
9823
  "hiddenAliases": [
9843
- "dataset:alias:link"
9824
+ "dataset:embeddings:status"
9844
9825
  ],
9845
- "id": "datasets:alias:link",
9826
+ "id": "datasets:embeddings:status",
9846
9827
  "pluginAlias": "@sanity/cli",
9847
9828
  "pluginName": "@sanity/cli",
9848
9829
  "pluginType": "core",
@@ -9852,32 +9833,24 @@
9852
9833
  "dist",
9853
9834
  "commands",
9854
9835
  "datasets",
9855
- "alias",
9856
- "link.js"
9836
+ "embeddings",
9837
+ "status.js"
9857
9838
  ]
9858
9839
  },
9859
- "datasets:alias:unlink": {
9840
+ "datasets:visibility:get": {
9860
9841
  "aliases": [],
9861
9842
  "args": {
9862
- "aliasName": {
9863
- "description": "Dataset alias name to unlink",
9864
- "name": "aliasName",
9865
- "required": false
9843
+ "dataset": {
9844
+ "description": "The name of the dataset to get visibility for",
9845
+ "name": "dataset",
9846
+ "required": true
9866
9847
  }
9867
9848
  },
9868
- "description": "Unlink a dataset alias from its dataset in the project",
9869
- "examples": [
9870
- {
9871
- "command": "<%= config.bin %> <%= command.id %>",
9872
- "description": "Unlink an alias with interactive selection"
9873
- },
9874
- {
9875
- "command": "<%= config.bin %> <%= command.id %> conference",
9876
- "description": "Unlink alias \"conference\" with confirmation prompt"
9877
- },
9849
+ "description": "Get the visibility of a dataset",
9850
+ "examples": [
9878
9851
  {
9879
- "command": "<%= config.bin %> <%= command.id %> conference --force",
9880
- "description": "Unlink alias \"conference\" without confirmation prompt"
9852
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
9853
+ "description": "Check the visibility of a dataset"
9881
9854
  }
9882
9855
  ],
9883
9856
  "flags": {
@@ -9887,26 +9860,20 @@
9887
9860
  ],
9888
9861
  "char": "p",
9889
9862
  "deprecateAliases": true,
9890
- "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
9863
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
9891
9864
  "helpGroup": "OVERRIDE",
9892
9865
  "name": "project",
9893
9866
  "hasDynamicHelp": false,
9894
9867
  "helpValue": "<id>",
9895
9868
  "multiple": false,
9896
9869
  "type": "option"
9897
- },
9898
- "force": {
9899
- "description": "Skip confirmation prompt and unlink immediately",
9900
- "name": "force",
9901
- "allowNo": false,
9902
- "type": "boolean"
9903
9870
  }
9904
9871
  },
9905
9872
  "hasDynamicHelp": false,
9906
9873
  "hiddenAliases": [
9907
- "dataset:alias:unlink"
9874
+ "dataset:visibility:get"
9908
9875
  ],
9909
- "id": "datasets:alias:unlink",
9876
+ "id": "datasets:visibility:get",
9910
9877
  "pluginAlias": "@sanity/cli",
9911
9878
  "pluginName": "@sanity/cli",
9912
9879
  "pluginType": "core",
@@ -9916,24 +9883,37 @@
9916
9883
  "dist",
9917
9884
  "commands",
9918
9885
  "datasets",
9919
- "alias",
9920
- "unlink.js"
9886
+ "visibility",
9887
+ "get.js"
9921
9888
  ]
9922
9889
  },
9923
- "datasets:embeddings:disable": {
9890
+ "datasets:visibility:set": {
9924
9891
  "aliases": [],
9925
9892
  "args": {
9926
9893
  "dataset": {
9927
- "description": "Dataset name to disable embeddings for",
9894
+ "description": "The name of the dataset to set visibility for",
9928
9895
  "name": "dataset",
9929
- "required": false
9896
+ "required": true
9897
+ },
9898
+ "mode": {
9899
+ "description": "The visibility mode to set",
9900
+ "name": "mode",
9901
+ "options": [
9902
+ "public",
9903
+ "private"
9904
+ ],
9905
+ "required": true
9930
9906
  }
9931
9907
  },
9932
- "description": "Disable embeddings for a dataset",
9908
+ "description": "Set the visibility of a dataset",
9933
9909
  "examples": [
9934
9910
  {
9935
- "command": "<%= config.bin %> <%= command.id %> production",
9936
- "description": "Disable embeddings for the production dataset"
9911
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
9912
+ "description": "Make a dataset private"
9913
+ },
9914
+ {
9915
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
9916
+ "description": "Make a dataset public"
9937
9917
  }
9938
9918
  ],
9939
9919
  "flags": {
@@ -9943,7 +9923,7 @@
9943
9923
  ],
9944
9924
  "char": "p",
9945
9925
  "deprecateAliases": true,
9946
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
9926
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
9947
9927
  "helpGroup": "OVERRIDE",
9948
9928
  "name": "project",
9949
9929
  "hasDynamicHelp": false,
@@ -9954,9 +9934,9 @@
9954
9934
  },
9955
9935
  "hasDynamicHelp": false,
9956
9936
  "hiddenAliases": [
9957
- "dataset:embeddings:disable"
9937
+ "dataset:visibility:set"
9958
9938
  ],
9959
- "id": "datasets:embeddings:disable",
9939
+ "id": "datasets:visibility:set",
9960
9940
  "pluginAlias": "@sanity/cli",
9961
9941
  "pluginName": "@sanity/cli",
9962
9942
  "pluginType": "core",
@@ -9966,32 +9946,41 @@
9966
9946
  "dist",
9967
9947
  "commands",
9968
9948
  "datasets",
9969
- "embeddings",
9970
- "disable.js"
9949
+ "visibility",
9950
+ "set.js"
9971
9951
  ]
9972
9952
  },
9973
- "datasets:embeddings:enable": {
9953
+ "datasets:alias:create": {
9974
9954
  "aliases": [],
9975
9955
  "args": {
9976
- "dataset": {
9977
- "description": "Dataset name to enable embeddings for",
9978
- "name": "dataset",
9956
+ "aliasName": {
9957
+ "description": "Dataset alias name to create",
9958
+ "name": "aliasName",
9959
+ "required": false
9960
+ },
9961
+ "targetDataset": {
9962
+ "description": "Target dataset name to link the alias to",
9963
+ "name": "targetDataset",
9979
9964
  "required": false
9980
9965
  }
9981
9966
  },
9982
- "description": "Enable embeddings for a dataset",
9967
+ "description": "Create a dataset alias for the project",
9983
9968
  "examples": [
9984
9969
  {
9985
- "command": "<%= config.bin %> <%= command.id %> production",
9986
- "description": "Enable embeddings for the production dataset"
9970
+ "command": "<%= config.bin %> <%= command.id %> --project abc123 conference conf-2025",
9971
+ "description": "Create alias in a specific project"
9987
9972
  },
9988
9973
  {
9989
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
9990
- "description": "Enable embeddings with a specific projection"
9974
+ "command": "<%= config.bin %> <%= command.id %>",
9975
+ "description": "Create an alias with interactive prompts"
9991
9976
  },
9992
9977
  {
9993
- "command": "<%= config.bin %> <%= command.id %> production --wait",
9994
- "description": "Enable embeddings and wait for processing to complete"
9978
+ "command": "<%= config.bin %> <%= command.id %> conference",
9979
+ "description": "Create alias named \"conference\" with interactive dataset selection"
9980
+ },
9981
+ {
9982
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
9983
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
9995
9984
  }
9996
9985
  ],
9997
9986
  "flags": {
@@ -10001,71 +9990,51 @@
10001
9990
  ],
10002
9991
  "char": "p",
10003
9992
  "deprecateAliases": true,
10004
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
9993
+ "description": "Project ID to create dataset alias in (overrides CLI configuration)",
10005
9994
  "helpGroup": "OVERRIDE",
10006
9995
  "name": "project",
10007
9996
  "hasDynamicHelp": false,
10008
9997
  "helpValue": "<id>",
10009
9998
  "multiple": false,
10010
9999
  "type": "option"
10011
- },
10012
- "projection": {
10013
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
10014
- "name": "projection",
10015
- "required": false,
10016
- "hasDynamicHelp": false,
10017
- "multiple": false,
10018
- "type": "option"
10019
- },
10020
- "wait": {
10021
- "description": "Wait for embeddings processing to complete before returning",
10022
- "name": "wait",
10023
- "allowNo": false,
10024
- "type": "boolean"
10025
10000
  }
10026
10001
  },
10027
10002
  "hasDynamicHelp": false,
10028
10003
  "hiddenAliases": [
10029
- "dataset:embeddings:enable"
10004
+ "dataset:alias:create"
10030
10005
  ],
10031
- "id": "datasets:embeddings:enable",
10006
+ "id": "datasets:alias:create",
10032
10007
  "pluginAlias": "@sanity/cli",
10033
10008
  "pluginName": "@sanity/cli",
10034
10009
  "pluginType": "core",
10035
10010
  "strict": true,
10036
- "telemetry": {
10037
- "redactedFlags": [
10038
- {
10039
- "canonical": "--projection",
10040
- "flags": [
10041
- "--projection"
10042
- ]
10043
- }
10044
- ]
10045
- },
10046
10011
  "isESM": true,
10047
10012
  "relativePath": [
10048
10013
  "dist",
10049
10014
  "commands",
10050
10015
  "datasets",
10051
- "embeddings",
10052
- "enable.js"
10016
+ "alias",
10017
+ "create.js"
10053
10018
  ]
10054
10019
  },
10055
- "datasets:embeddings:status": {
10020
+ "datasets:alias:delete": {
10056
10021
  "aliases": [],
10057
10022
  "args": {
10058
- "dataset": {
10059
- "description": "The name of the dataset to check embeddings status for",
10060
- "name": "dataset",
10061
- "required": false
10023
+ "aliasName": {
10024
+ "description": "Dataset alias name to delete",
10025
+ "name": "aliasName",
10026
+ "required": true
10062
10027
  }
10063
10028
  },
10064
- "description": "Show embeddings settings and status for a dataset",
10029
+ "description": "Delete a dataset alias from the project",
10065
10030
  "examples": [
10066
10031
  {
10067
- "command": "<%= config.bin %> <%= command.id %> production",
10068
- "description": "Show embeddings status for the production dataset"
10032
+ "command": "<%= config.bin %> <%= command.id %> conference",
10033
+ "description": "Delete alias named \"conference\" with confirmation prompt"
10034
+ },
10035
+ {
10036
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
10037
+ "description": "Delete alias named \"conference\" without confirmation prompt"
10069
10038
  }
10070
10039
  ],
10071
10040
  "flags": {
@@ -10075,20 +10044,26 @@
10075
10044
  ],
10076
10045
  "char": "p",
10077
10046
  "deprecateAliases": true,
10078
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
10047
+ "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
10079
10048
  "helpGroup": "OVERRIDE",
10080
10049
  "name": "project",
10081
10050
  "hasDynamicHelp": false,
10082
10051
  "helpValue": "<id>",
10083
10052
  "multiple": false,
10084
10053
  "type": "option"
10054
+ },
10055
+ "force": {
10056
+ "description": "Skip confirmation prompt and delete immediately",
10057
+ "name": "force",
10058
+ "allowNo": false,
10059
+ "type": "boolean"
10085
10060
  }
10086
10061
  },
10087
10062
  "hasDynamicHelp": false,
10088
10063
  "hiddenAliases": [
10089
- "dataset:embeddings:status"
10064
+ "dataset:alias:delete"
10090
10065
  ],
10091
- "id": "datasets:embeddings:status",
10066
+ "id": "datasets:alias:delete",
10092
10067
  "pluginAlias": "@sanity/cli",
10093
10068
  "pluginName": "@sanity/cli",
10094
10069
  "pluginType": "core",
@@ -10098,24 +10073,41 @@
10098
10073
  "dist",
10099
10074
  "commands",
10100
10075
  "datasets",
10101
- "embeddings",
10102
- "status.js"
10076
+ "alias",
10077
+ "delete.js"
10103
10078
  ]
10104
10079
  },
10105
- "datasets:visibility:get": {
10080
+ "datasets:alias:link": {
10106
10081
  "aliases": [],
10107
10082
  "args": {
10108
- "dataset": {
10109
- "description": "The name of the dataset to get visibility for",
10110
- "name": "dataset",
10111
- "required": true
10083
+ "aliasName": {
10084
+ "description": "Dataset alias name to link",
10085
+ "name": "aliasName",
10086
+ "required": false
10087
+ },
10088
+ "targetDataset": {
10089
+ "description": "Target dataset name to link the alias to",
10090
+ "name": "targetDataset",
10091
+ "required": false
10112
10092
  }
10113
10093
  },
10114
- "description": "Get the visibility of a dataset",
10094
+ "description": "Link a dataset alias to a dataset in the project",
10115
10095
  "examples": [
10116
10096
  {
10117
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
10118
- "description": "Check the visibility of a dataset"
10097
+ "command": "<%= config.bin %> <%= command.id %>",
10098
+ "description": "Link an alias with interactive prompts"
10099
+ },
10100
+ {
10101
+ "command": "<%= config.bin %> <%= command.id %> conference",
10102
+ "description": "Link alias named \"conference\" with interactive dataset selection"
10103
+ },
10104
+ {
10105
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
10106
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
10107
+ },
10108
+ {
10109
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
10110
+ "description": "Force link without confirmation (skip relink prompt)"
10119
10111
  }
10120
10112
  ],
10121
10113
  "flags": {
@@ -10125,20 +10117,27 @@
10125
10117
  ],
10126
10118
  "char": "p",
10127
10119
  "deprecateAliases": true,
10128
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
10120
+ "description": "Project ID to link dataset alias in (overrides CLI configuration)",
10129
10121
  "helpGroup": "OVERRIDE",
10130
10122
  "name": "project",
10131
10123
  "hasDynamicHelp": false,
10132
10124
  "helpValue": "<id>",
10133
10125
  "multiple": false,
10134
10126
  "type": "option"
10127
+ },
10128
+ "force": {
10129
+ "description": "Skip confirmation prompt when relinking existing alias",
10130
+ "name": "force",
10131
+ "required": false,
10132
+ "allowNo": false,
10133
+ "type": "boolean"
10135
10134
  }
10136
10135
  },
10137
10136
  "hasDynamicHelp": false,
10138
10137
  "hiddenAliases": [
10139
- "dataset:visibility:get"
10138
+ "dataset:alias:link"
10140
10139
  ],
10141
- "id": "datasets:visibility:get",
10140
+ "id": "datasets:alias:link",
10142
10141
  "pluginAlias": "@sanity/cli",
10143
10142
  "pluginName": "@sanity/cli",
10144
10143
  "pluginType": "core",
@@ -10148,37 +10147,32 @@
10148
10147
  "dist",
10149
10148
  "commands",
10150
10149
  "datasets",
10151
- "visibility",
10152
- "get.js"
10150
+ "alias",
10151
+ "link.js"
10153
10152
  ]
10154
10153
  },
10155
- "datasets:visibility:set": {
10154
+ "datasets:alias:unlink": {
10156
10155
  "aliases": [],
10157
10156
  "args": {
10158
- "dataset": {
10159
- "description": "The name of the dataset to set visibility for",
10160
- "name": "dataset",
10161
- "required": true
10162
- },
10163
- "mode": {
10164
- "description": "The visibility mode to set",
10165
- "name": "mode",
10166
- "options": [
10167
- "public",
10168
- "private"
10169
- ],
10170
- "required": true
10157
+ "aliasName": {
10158
+ "description": "Dataset alias name to unlink",
10159
+ "name": "aliasName",
10160
+ "required": false
10171
10161
  }
10172
10162
  },
10173
- "description": "Set the visibility of a dataset",
10163
+ "description": "Unlink a dataset alias from its dataset in the project",
10174
10164
  "examples": [
10175
10165
  {
10176
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
10177
- "description": "Make a dataset private"
10166
+ "command": "<%= config.bin %> <%= command.id %>",
10167
+ "description": "Unlink an alias with interactive selection"
10178
10168
  },
10179
10169
  {
10180
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
10181
- "description": "Make a dataset public"
10170
+ "command": "<%= config.bin %> <%= command.id %> conference",
10171
+ "description": "Unlink alias \"conference\" with confirmation prompt"
10172
+ },
10173
+ {
10174
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
10175
+ "description": "Unlink alias \"conference\" without confirmation prompt"
10182
10176
  }
10183
10177
  ],
10184
10178
  "flags": {
@@ -10188,20 +10182,26 @@
10188
10182
  ],
10189
10183
  "char": "p",
10190
10184
  "deprecateAliases": true,
10191
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
10185
+ "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
10192
10186
  "helpGroup": "OVERRIDE",
10193
10187
  "name": "project",
10194
10188
  "hasDynamicHelp": false,
10195
10189
  "helpValue": "<id>",
10196
10190
  "multiple": false,
10197
10191
  "type": "option"
10192
+ },
10193
+ "force": {
10194
+ "description": "Skip confirmation prompt and unlink immediately",
10195
+ "name": "force",
10196
+ "allowNo": false,
10197
+ "type": "boolean"
10198
10198
  }
10199
10199
  },
10200
10200
  "hasDynamicHelp": false,
10201
10201
  "hiddenAliases": [
10202
- "dataset:visibility:set"
10202
+ "dataset:alias:unlink"
10203
10203
  ],
10204
- "id": "datasets:visibility:set",
10204
+ "id": "datasets:alias:unlink",
10205
10205
  "pluginAlias": "@sanity/cli",
10206
10206
  "pluginName": "@sanity/cli",
10207
10207
  "pluginType": "core",
@@ -10211,8 +10211,8 @@
10211
10211
  "dist",
10212
10212
  "commands",
10213
10213
  "datasets",
10214
- "visibility",
10215
- "set.js"
10214
+ "alias",
10215
+ "unlink.js"
10216
10216
  ]
10217
10217
  },
10218
10218
  "context:sources:syncs:confirm": {
@@ -10462,5 +10462,5 @@
10462
10462
  ]
10463
10463
  }
10464
10464
  },
10465
- "version": "8.38.0"
10465
+ "version": "8.38.2"
10466
10466
  }