@sanity/cli 8.28.1 → 8.28.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.
package/oclif.manifest.json
CHANGED
|
@@ -5313,146 +5313,110 @@
|
|
|
5313
5313
|
"list.js"
|
|
5314
5314
|
]
|
|
5315
5315
|
},
|
|
5316
|
-
"
|
|
5316
|
+
"organizations:create": {
|
|
5317
5317
|
"aliases": [],
|
|
5318
|
-
"args": {
|
|
5319
|
-
|
|
5320
|
-
"description": "Name of the project to create",
|
|
5321
|
-
"name": "projectName",
|
|
5322
|
-
"required": false
|
|
5323
|
-
}
|
|
5324
|
-
},
|
|
5325
|
-
"description": "Create a new Sanity project",
|
|
5318
|
+
"args": {},
|
|
5319
|
+
"description": "Create a new organization",
|
|
5326
5320
|
"examples": [
|
|
5327
5321
|
{
|
|
5328
5322
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5329
|
-
"description": "Interactively create
|
|
5330
|
-
},
|
|
5331
|
-
{
|
|
5332
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
5333
|
-
"description": "Create a project named \"My New Project\""
|
|
5334
|
-
},
|
|
5335
|
-
{
|
|
5336
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
5337
|
-
"description": "Create a project in a specific organization"
|
|
5323
|
+
"description": "Interactively create an organization"
|
|
5338
5324
|
},
|
|
5339
5325
|
{
|
|
5340
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5341
|
-
"description": "Create
|
|
5326
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
5327
|
+
"description": "Create an organization named \"Acme Corp\""
|
|
5342
5328
|
},
|
|
5343
5329
|
{
|
|
5344
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5345
|
-
"description": "Create
|
|
5330
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
5331
|
+
"description": "Create an organization with a default member role"
|
|
5346
5332
|
}
|
|
5347
5333
|
],
|
|
5348
5334
|
"flags": {
|
|
5349
|
-
"
|
|
5350
|
-
"description": "
|
|
5351
|
-
"
|
|
5352
|
-
"
|
|
5353
|
-
"allowNo": false,
|
|
5354
|
-
"type": "boolean"
|
|
5355
|
-
},
|
|
5356
|
-
"dataset": {
|
|
5357
|
-
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
5358
|
-
"name": "dataset",
|
|
5359
|
-
"hasDynamicHelp": false,
|
|
5360
|
-
"multiple": false,
|
|
5361
|
-
"type": "option"
|
|
5362
|
-
},
|
|
5363
|
-
"dataset-visibility": {
|
|
5364
|
-
"description": "Dataset visibility: public or private",
|
|
5365
|
-
"name": "dataset-visibility",
|
|
5335
|
+
"default-role": {
|
|
5336
|
+
"description": "Default role assigned to new members",
|
|
5337
|
+
"name": "default-role",
|
|
5338
|
+
"required": false,
|
|
5366
5339
|
"hasDynamicHelp": false,
|
|
5367
5340
|
"multiple": false,
|
|
5368
|
-
"options": [
|
|
5369
|
-
"private",
|
|
5370
|
-
"public"
|
|
5371
|
-
],
|
|
5372
5341
|
"type": "option"
|
|
5373
5342
|
},
|
|
5374
|
-
"
|
|
5375
|
-
"description": "Organization
|
|
5376
|
-
"name": "
|
|
5343
|
+
"name": {
|
|
5344
|
+
"description": "Organization name",
|
|
5345
|
+
"name": "name",
|
|
5377
5346
|
"hasDynamicHelp": false,
|
|
5378
|
-
"helpValue": "<slug|id>",
|
|
5379
5347
|
"multiple": false,
|
|
5380
5348
|
"type": "option"
|
|
5381
|
-
},
|
|
5382
|
-
"yes": {
|
|
5383
|
-
"char": "y",
|
|
5384
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
5385
|
-
"name": "yes",
|
|
5386
|
-
"allowNo": false,
|
|
5387
|
-
"type": "boolean"
|
|
5388
5349
|
}
|
|
5389
5350
|
},
|
|
5390
5351
|
"hasDynamicHelp": false,
|
|
5391
5352
|
"hiddenAliases": [
|
|
5392
|
-
"
|
|
5353
|
+
"organization:create",
|
|
5354
|
+
"organisations:create",
|
|
5355
|
+
"organisation:create",
|
|
5356
|
+
"org:create",
|
|
5357
|
+
"orgs:create"
|
|
5393
5358
|
],
|
|
5394
|
-
"id": "
|
|
5359
|
+
"id": "organizations:create",
|
|
5395
5360
|
"pluginAlias": "@sanity/cli",
|
|
5396
5361
|
"pluginName": "@sanity/cli",
|
|
5397
5362
|
"pluginType": "core",
|
|
5398
5363
|
"strict": true,
|
|
5399
|
-
"
|
|
5364
|
+
"telemetry": {
|
|
5365
|
+
"redactedFlags": [
|
|
5366
|
+
{
|
|
5367
|
+
"canonical": "--name",
|
|
5368
|
+
"flags": [
|
|
5369
|
+
"--name"
|
|
5370
|
+
]
|
|
5371
|
+
}
|
|
5372
|
+
]
|
|
5373
|
+
},
|
|
5400
5374
|
"isESM": true,
|
|
5401
5375
|
"relativePath": [
|
|
5402
5376
|
"dist",
|
|
5403
5377
|
"commands",
|
|
5404
|
-
"
|
|
5378
|
+
"organizations",
|
|
5405
5379
|
"create.js"
|
|
5406
5380
|
]
|
|
5407
5381
|
},
|
|
5408
|
-
"
|
|
5382
|
+
"organizations:delete": {
|
|
5409
5383
|
"aliases": [],
|
|
5410
|
-
"args": {
|
|
5411
|
-
|
|
5384
|
+
"args": {
|
|
5385
|
+
"organizationId": {
|
|
5386
|
+
"description": "Organization ID to delete",
|
|
5387
|
+
"name": "organizationId",
|
|
5388
|
+
"required": true
|
|
5389
|
+
}
|
|
5390
|
+
},
|
|
5391
|
+
"description": "Delete an organization",
|
|
5412
5392
|
"examples": [
|
|
5413
5393
|
{
|
|
5414
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5415
|
-
"description": "
|
|
5394
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
5395
|
+
"description": "Delete an organization (prompts for confirmation)"
|
|
5416
5396
|
},
|
|
5417
5397
|
{
|
|
5418
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5419
|
-
"description": "
|
|
5398
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
|
|
5399
|
+
"description": "Delete an organization without confirmation"
|
|
5420
5400
|
}
|
|
5421
5401
|
],
|
|
5422
5402
|
"flags": {
|
|
5423
|
-
"
|
|
5424
|
-
"description": "
|
|
5425
|
-
"name": "
|
|
5426
|
-
"
|
|
5427
|
-
"
|
|
5428
|
-
"
|
|
5429
|
-
"options": [
|
|
5430
|
-
"asc",
|
|
5431
|
-
"desc"
|
|
5432
|
-
],
|
|
5433
|
-
"type": "option"
|
|
5434
|
-
},
|
|
5435
|
-
"sort": {
|
|
5436
|
-
"description": "Sort field",
|
|
5437
|
-
"name": "sort",
|
|
5438
|
-
"default": "created",
|
|
5439
|
-
"hasDynamicHelp": false,
|
|
5440
|
-
"multiple": false,
|
|
5441
|
-
"options": [
|
|
5442
|
-
"id",
|
|
5443
|
-
"members",
|
|
5444
|
-
"name",
|
|
5445
|
-
"url",
|
|
5446
|
-
"created"
|
|
5447
|
-
],
|
|
5448
|
-
"type": "option"
|
|
5403
|
+
"force": {
|
|
5404
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
5405
|
+
"name": "force",
|
|
5406
|
+
"required": false,
|
|
5407
|
+
"allowNo": false,
|
|
5408
|
+
"type": "boolean"
|
|
5449
5409
|
}
|
|
5450
5410
|
},
|
|
5451
5411
|
"hasDynamicHelp": false,
|
|
5452
5412
|
"hiddenAliases": [
|
|
5453
|
-
"
|
|
5413
|
+
"organization:delete",
|
|
5414
|
+
"organisations:delete",
|
|
5415
|
+
"organisation:delete",
|
|
5416
|
+
"org:delete",
|
|
5417
|
+
"orgs:delete"
|
|
5454
5418
|
],
|
|
5455
|
-
"id": "
|
|
5419
|
+
"id": "organizations:delete",
|
|
5456
5420
|
"pluginAlias": "@sanity/cli",
|
|
5457
5421
|
"pluginName": "@sanity/cli",
|
|
5458
5422
|
"pluginType": "core",
|
|
@@ -5461,44 +5425,36 @@
|
|
|
5461
5425
|
"relativePath": [
|
|
5462
5426
|
"dist",
|
|
5463
5427
|
"commands",
|
|
5464
|
-
"
|
|
5465
|
-
"
|
|
5428
|
+
"organizations",
|
|
5429
|
+
"delete.js"
|
|
5466
5430
|
]
|
|
5467
5431
|
},
|
|
5468
|
-
"
|
|
5432
|
+
"organizations:get": {
|
|
5469
5433
|
"aliases": [],
|
|
5470
|
-
"args": {
|
|
5471
|
-
|
|
5434
|
+
"args": {
|
|
5435
|
+
"organizationId": {
|
|
5436
|
+
"description": "Organization ID",
|
|
5437
|
+
"name": "organizationId",
|
|
5438
|
+
"required": true
|
|
5439
|
+
}
|
|
5440
|
+
},
|
|
5441
|
+
"description": "Get details of an organization",
|
|
5472
5442
|
"examples": [
|
|
5473
5443
|
{
|
|
5474
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5475
|
-
"description": "
|
|
5476
|
-
},
|
|
5477
|
-
{
|
|
5478
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
5479
|
-
"description": "Show recovery details for one project"
|
|
5444
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
5445
|
+
"description": "Get details of a specific organization"
|
|
5480
5446
|
}
|
|
5481
5447
|
],
|
|
5482
|
-
"flags": {
|
|
5483
|
-
"project": {
|
|
5484
|
-
"aliases": [
|
|
5485
|
-
"project-id"
|
|
5486
|
-
],
|
|
5487
|
-
"char": "p",
|
|
5488
|
-
"deprecateAliases": true,
|
|
5489
|
-
"description": "Project ID to recover",
|
|
5490
|
-
"name": "project",
|
|
5491
|
-
"hasDynamicHelp": false,
|
|
5492
|
-
"helpValue": "<id>",
|
|
5493
|
-
"multiple": false,
|
|
5494
|
-
"type": "option"
|
|
5495
|
-
}
|
|
5496
|
-
},
|
|
5448
|
+
"flags": {},
|
|
5497
5449
|
"hasDynamicHelp": false,
|
|
5498
5450
|
"hiddenAliases": [
|
|
5499
|
-
"
|
|
5451
|
+
"organization:get",
|
|
5452
|
+
"organisations:get",
|
|
5453
|
+
"organisation:get",
|
|
5454
|
+
"org:get",
|
|
5455
|
+
"orgs:get"
|
|
5500
5456
|
],
|
|
5501
|
-
"id": "
|
|
5457
|
+
"id": "organizations:get",
|
|
5502
5458
|
"pluginAlias": "@sanity/cli",
|
|
5503
5459
|
"pluginName": "@sanity/cli",
|
|
5504
5460
|
"pluginType": "core",
|
|
@@ -5507,24 +5463,30 @@
|
|
|
5507
5463
|
"relativePath": [
|
|
5508
5464
|
"dist",
|
|
5509
5465
|
"commands",
|
|
5510
|
-
"
|
|
5511
|
-
"
|
|
5466
|
+
"organizations",
|
|
5467
|
+
"get.js"
|
|
5512
5468
|
]
|
|
5513
5469
|
},
|
|
5514
|
-
"
|
|
5470
|
+
"organizations:list": {
|
|
5515
5471
|
"aliases": [],
|
|
5516
5472
|
"args": {},
|
|
5517
|
-
"description": "
|
|
5473
|
+
"description": "List organizations you are a member of",
|
|
5518
5474
|
"examples": [
|
|
5519
5475
|
{
|
|
5520
5476
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5521
|
-
"description": "
|
|
5477
|
+
"description": "List all your organizations"
|
|
5522
5478
|
}
|
|
5523
5479
|
],
|
|
5524
5480
|
"flags": {},
|
|
5525
5481
|
"hasDynamicHelp": false,
|
|
5526
|
-
"hiddenAliases": [
|
|
5527
|
-
|
|
5482
|
+
"hiddenAliases": [
|
|
5483
|
+
"organization:list",
|
|
5484
|
+
"organisations:list",
|
|
5485
|
+
"organisation:list",
|
|
5486
|
+
"org:list",
|
|
5487
|
+
"orgs:list"
|
|
5488
|
+
],
|
|
5489
|
+
"id": "organizations:list",
|
|
5528
5490
|
"pluginAlias": "@sanity/cli",
|
|
5529
5491
|
"pluginName": "@sanity/cli",
|
|
5530
5492
|
"pluginType": "core",
|
|
@@ -5533,122 +5495,121 @@
|
|
|
5533
5495
|
"relativePath": [
|
|
5534
5496
|
"dist",
|
|
5535
5497
|
"commands",
|
|
5536
|
-
"
|
|
5537
|
-
"
|
|
5498
|
+
"organizations",
|
|
5499
|
+
"list.js"
|
|
5538
5500
|
]
|
|
5539
5501
|
},
|
|
5540
|
-
"
|
|
5502
|
+
"organizations:update": {
|
|
5541
5503
|
"aliases": [],
|
|
5542
|
-
"args": {
|
|
5543
|
-
|
|
5504
|
+
"args": {
|
|
5505
|
+
"organizationId": {
|
|
5506
|
+
"description": "Organization ID",
|
|
5507
|
+
"name": "organizationId",
|
|
5508
|
+
"required": true
|
|
5509
|
+
}
|
|
5510
|
+
},
|
|
5511
|
+
"description": "Update an organization",
|
|
5544
5512
|
"examples": [
|
|
5545
5513
|
{
|
|
5546
|
-
"command": "<%= config.bin %>
|
|
5547
|
-
"description": "
|
|
5514
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
|
|
5515
|
+
"description": "Rename an organization"
|
|
5516
|
+
},
|
|
5517
|
+
{
|
|
5518
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
|
|
5519
|
+
"description": "Set the organization slug (requires authSAML feature)"
|
|
5520
|
+
},
|
|
5521
|
+
{
|
|
5522
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
5523
|
+
"description": "Change the default member role"
|
|
5548
5524
|
}
|
|
5549
5525
|
],
|
|
5550
|
-
"flags": {
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
"
|
|
5573
|
-
"
|
|
5526
|
+
"flags": {
|
|
5527
|
+
"default-role": {
|
|
5528
|
+
"description": "New default role for new members",
|
|
5529
|
+
"name": "default-role",
|
|
5530
|
+
"required": false,
|
|
5531
|
+
"hasDynamicHelp": false,
|
|
5532
|
+
"multiple": false,
|
|
5533
|
+
"type": "option"
|
|
5534
|
+
},
|
|
5535
|
+
"name": {
|
|
5536
|
+
"description": "New organization name",
|
|
5537
|
+
"name": "name",
|
|
5538
|
+
"required": false,
|
|
5539
|
+
"hasDynamicHelp": false,
|
|
5540
|
+
"multiple": false,
|
|
5541
|
+
"type": "option"
|
|
5542
|
+
},
|
|
5543
|
+
"slug": {
|
|
5544
|
+
"description": "New URL slug (requires authSAML feature on the organization)",
|
|
5545
|
+
"name": "slug",
|
|
5546
|
+
"required": false,
|
|
5547
|
+
"hasDynamicHelp": false,
|
|
5548
|
+
"multiple": false,
|
|
5549
|
+
"type": "option"
|
|
5574
5550
|
}
|
|
5575
|
-
|
|
5576
|
-
"flags": {},
|
|
5551
|
+
},
|
|
5577
5552
|
"hasDynamicHelp": false,
|
|
5578
|
-
"hiddenAliases": [
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
"isESM": true,
|
|
5585
|
-
"relativePath": [
|
|
5586
|
-
"dist",
|
|
5587
|
-
"commands",
|
|
5588
|
-
"telemetry",
|
|
5589
|
-
"enable.js"
|
|
5590
|
-
]
|
|
5591
|
-
},
|
|
5592
|
-
"telemetry:status": {
|
|
5593
|
-
"aliases": [],
|
|
5594
|
-
"args": {},
|
|
5595
|
-
"description": "Check telemetry status for your account",
|
|
5596
|
-
"examples": [
|
|
5597
|
-
{
|
|
5598
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
5599
|
-
"description": "Check telemetry status for your account"
|
|
5600
|
-
}
|
|
5553
|
+
"hiddenAliases": [
|
|
5554
|
+
"organization:update",
|
|
5555
|
+
"organisations:update",
|
|
5556
|
+
"organisation:update",
|
|
5557
|
+
"org:update",
|
|
5558
|
+
"orgs:update"
|
|
5601
5559
|
],
|
|
5602
|
-
"
|
|
5603
|
-
"hasDynamicHelp": false,
|
|
5604
|
-
"hiddenAliases": [],
|
|
5605
|
-
"id": "telemetry:status",
|
|
5560
|
+
"id": "organizations:update",
|
|
5606
5561
|
"pluginAlias": "@sanity/cli",
|
|
5607
5562
|
"pluginName": "@sanity/cli",
|
|
5608
5563
|
"pluginType": "core",
|
|
5609
5564
|
"strict": true,
|
|
5565
|
+
"telemetry": {
|
|
5566
|
+
"redactedFlags": [
|
|
5567
|
+
{
|
|
5568
|
+
"canonical": "--name",
|
|
5569
|
+
"flags": [
|
|
5570
|
+
"--name"
|
|
5571
|
+
]
|
|
5572
|
+
}
|
|
5573
|
+
]
|
|
5574
|
+
},
|
|
5610
5575
|
"isESM": true,
|
|
5611
5576
|
"relativePath": [
|
|
5612
5577
|
"dist",
|
|
5613
5578
|
"commands",
|
|
5614
|
-
"
|
|
5615
|
-
"
|
|
5579
|
+
"organizations",
|
|
5580
|
+
"update.js"
|
|
5616
5581
|
]
|
|
5617
5582
|
},
|
|
5618
|
-
"
|
|
5583
|
+
"projects:create": {
|
|
5619
5584
|
"aliases": [],
|
|
5620
5585
|
"args": {
|
|
5621
|
-
"
|
|
5622
|
-
"description": "
|
|
5623
|
-
"name": "
|
|
5586
|
+
"projectName": {
|
|
5587
|
+
"description": "Name of the project to create",
|
|
5588
|
+
"name": "projectName",
|
|
5624
5589
|
"required": false
|
|
5625
5590
|
}
|
|
5626
5591
|
},
|
|
5627
|
-
"description": "Create a new
|
|
5592
|
+
"description": "Create a new Sanity project",
|
|
5628
5593
|
"examples": [
|
|
5629
5594
|
{
|
|
5630
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5631
|
-
"description": "
|
|
5632
|
-
},
|
|
5633
|
-
{
|
|
5634
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --grant context=developer --grant blueprints --grant project:abc123=editor",
|
|
5635
|
-
"description": "Create an organization token with Context, Blueprints and project access"
|
|
5595
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5596
|
+
"description": "Interactively create a project"
|
|
5636
5597
|
},
|
|
5637
5598
|
{
|
|
5638
|
-
"command": "<%= config.bin %> <%= command.id %> \"My
|
|
5639
|
-
"description": "Create a project
|
|
5599
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
5600
|
+
"description": "Create a project named \"My New Project\""
|
|
5640
5601
|
},
|
|
5641
5602
|
{
|
|
5642
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5643
|
-
"description": "Create a project
|
|
5603
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
5604
|
+
"description": "Create a project in a specific organization"
|
|
5644
5605
|
},
|
|
5645
5606
|
{
|
|
5646
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5647
|
-
"description": "Create a
|
|
5607
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
5608
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
5648
5609
|
},
|
|
5649
5610
|
{
|
|
5650
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5651
|
-
"description": "
|
|
5611
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
5612
|
+
"description": "Create a project non-interactively with JSON output"
|
|
5652
5613
|
}
|
|
5653
5614
|
],
|
|
5654
5615
|
"flags": {
|
|
@@ -5659,56 +5620,35 @@
|
|
|
5659
5620
|
"allowNo": false,
|
|
5660
5621
|
"type": "boolean"
|
|
5661
5622
|
},
|
|
5662
|
-
"
|
|
5663
|
-
"
|
|
5664
|
-
|
|
5665
|
-
],
|
|
5666
|
-
"char": "p",
|
|
5667
|
-
"deprecateAliases": true,
|
|
5668
|
-
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
5669
|
-
"helpGroup": "OVERRIDE",
|
|
5670
|
-
"name": "project",
|
|
5671
|
-
"hasDynamicHelp": false,
|
|
5672
|
-
"helpValue": "<id>",
|
|
5673
|
-
"multiple": false,
|
|
5674
|
-
"type": "option"
|
|
5675
|
-
},
|
|
5676
|
-
"organization": {
|
|
5677
|
-
"description": "Organization to create an organization token in (overrides CLI configuration)",
|
|
5678
|
-
"helpGroup": "OVERRIDE",
|
|
5679
|
-
"name": "organization",
|
|
5623
|
+
"dataset": {
|
|
5624
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
5625
|
+
"name": "dataset",
|
|
5680
5626
|
"hasDynamicHelp": false,
|
|
5681
|
-
"helpValue": "<id>",
|
|
5682
5627
|
"multiple": false,
|
|
5683
5628
|
"type": "option"
|
|
5684
5629
|
},
|
|
5685
|
-
"
|
|
5686
|
-
"description": "
|
|
5687
|
-
"name": "
|
|
5630
|
+
"dataset-visibility": {
|
|
5631
|
+
"description": "Dataset visibility: public or private",
|
|
5632
|
+
"name": "dataset-visibility",
|
|
5688
5633
|
"hasDynamicHelp": false,
|
|
5689
|
-
"helpValue": "2027-01-01",
|
|
5690
5634
|
"multiple": false,
|
|
5635
|
+
"options": [
|
|
5636
|
+
"private",
|
|
5637
|
+
"public"
|
|
5638
|
+
],
|
|
5691
5639
|
"type": "option"
|
|
5692
5640
|
},
|
|
5693
|
-
"
|
|
5694
|
-
"description": "
|
|
5695
|
-
"name": "
|
|
5696
|
-
"hasDynamicHelp": false,
|
|
5697
|
-
"helpValue": "context=editor",
|
|
5698
|
-
"multiple": true,
|
|
5699
|
-
"type": "option"
|
|
5700
|
-
},
|
|
5701
|
-
"role": {
|
|
5702
|
-
"description": "Role to assign on the project (defaults to viewer in unattended mode)",
|
|
5703
|
-
"name": "role",
|
|
5641
|
+
"organization": {
|
|
5642
|
+
"description": "Organization to create the project in",
|
|
5643
|
+
"name": "organization",
|
|
5704
5644
|
"hasDynamicHelp": false,
|
|
5705
|
-
"helpValue": "
|
|
5645
|
+
"helpValue": "<slug|id>",
|
|
5706
5646
|
"multiple": false,
|
|
5707
5647
|
"type": "option"
|
|
5708
5648
|
},
|
|
5709
5649
|
"yes": {
|
|
5710
5650
|
"char": "y",
|
|
5711
|
-
"description": "Skip prompts and use defaults (
|
|
5651
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
5712
5652
|
"name": "yes",
|
|
5713
5653
|
"allowNo": false,
|
|
5714
5654
|
"type": "boolean"
|
|
@@ -5716,11 +5656,9 @@
|
|
|
5716
5656
|
},
|
|
5717
5657
|
"hasDynamicHelp": false,
|
|
5718
5658
|
"hiddenAliases": [
|
|
5719
|
-
"
|
|
5720
|
-
"token:add",
|
|
5721
|
-
"token:create"
|
|
5659
|
+
"project:create"
|
|
5722
5660
|
],
|
|
5723
|
-
"id": "
|
|
5661
|
+
"id": "projects:create",
|
|
5724
5662
|
"pluginAlias": "@sanity/cli",
|
|
5725
5663
|
"pluginName": "@sanity/cli",
|
|
5726
5664
|
"pluginType": "core",
|
|
@@ -5730,85 +5668,58 @@
|
|
|
5730
5668
|
"relativePath": [
|
|
5731
5669
|
"dist",
|
|
5732
5670
|
"commands",
|
|
5733
|
-
"
|
|
5671
|
+
"projects",
|
|
5734
5672
|
"create.js"
|
|
5735
5673
|
]
|
|
5736
5674
|
},
|
|
5737
|
-
"
|
|
5675
|
+
"projects:list": {
|
|
5738
5676
|
"aliases": [],
|
|
5739
|
-
"args": {
|
|
5740
|
-
|
|
5741
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
5742
|
-
"name": "tokenId",
|
|
5743
|
-
"required": false
|
|
5744
|
-
}
|
|
5745
|
-
},
|
|
5746
|
-
"description": "Delete an API token from a project or organization",
|
|
5677
|
+
"args": {},
|
|
5678
|
+
"description": "List your projects",
|
|
5747
5679
|
"examples": [
|
|
5748
|
-
{
|
|
5749
|
-
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
5750
|
-
"description": "Interactively select and delete an organization token"
|
|
5751
|
-
},
|
|
5752
|
-
{
|
|
5753
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --organization org123 --yes",
|
|
5754
|
-
"description": "Delete an organization token without confirmation"
|
|
5755
|
-
},
|
|
5756
5680
|
{
|
|
5757
5681
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5758
|
-
"description": "
|
|
5759
|
-
},
|
|
5760
|
-
{
|
|
5761
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
5762
|
-
"description": "Delete a specific token by ID"
|
|
5763
|
-
},
|
|
5764
|
-
{
|
|
5765
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
5766
|
-
"description": "Delete a specific token without confirmation prompt"
|
|
5682
|
+
"description": "List projects"
|
|
5767
5683
|
},
|
|
5768
5684
|
{
|
|
5769
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5770
|
-
"description": "
|
|
5685
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
5686
|
+
"description": "List projects sorted by member count, ascending"
|
|
5771
5687
|
}
|
|
5772
5688
|
],
|
|
5773
5689
|
"flags": {
|
|
5774
|
-
"
|
|
5775
|
-
"description": "
|
|
5776
|
-
"
|
|
5777
|
-
|
|
5778
|
-
],
|
|
5779
|
-
"name": "organization",
|
|
5690
|
+
"order": {
|
|
5691
|
+
"description": "Sort direction",
|
|
5692
|
+
"name": "order",
|
|
5693
|
+
"default": "desc",
|
|
5780
5694
|
"hasDynamicHelp": false,
|
|
5781
|
-
"helpValue": "<id>",
|
|
5782
5695
|
"multiple": false,
|
|
5696
|
+
"options": [
|
|
5697
|
+
"asc",
|
|
5698
|
+
"desc"
|
|
5699
|
+
],
|
|
5783
5700
|
"type": "option"
|
|
5784
5701
|
},
|
|
5785
|
-
"
|
|
5786
|
-
"
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
"char": "p",
|
|
5790
|
-
"deprecateAliases": true,
|
|
5791
|
-
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
5792
|
-
"helpGroup": "OVERRIDE",
|
|
5793
|
-
"name": "project",
|
|
5702
|
+
"sort": {
|
|
5703
|
+
"description": "Sort field",
|
|
5704
|
+
"name": "sort",
|
|
5705
|
+
"default": "created",
|
|
5794
5706
|
"hasDynamicHelp": false,
|
|
5795
|
-
"helpValue": "<id>",
|
|
5796
5707
|
"multiple": false,
|
|
5708
|
+
"options": [
|
|
5709
|
+
"id",
|
|
5710
|
+
"members",
|
|
5711
|
+
"name",
|
|
5712
|
+
"url",
|
|
5713
|
+
"created"
|
|
5714
|
+
],
|
|
5797
5715
|
"type": "option"
|
|
5798
|
-
},
|
|
5799
|
-
"yes": {
|
|
5800
|
-
"char": "y",
|
|
5801
|
-
"description": "Skip confirmation prompt (unattended mode)",
|
|
5802
|
-
"name": "yes",
|
|
5803
|
-
"allowNo": false,
|
|
5804
|
-
"type": "boolean"
|
|
5805
5716
|
}
|
|
5806
5717
|
},
|
|
5807
5718
|
"hasDynamicHelp": false,
|
|
5808
5719
|
"hiddenAliases": [
|
|
5809
|
-
"
|
|
5720
|
+
"project:list"
|
|
5810
5721
|
],
|
|
5811
|
-
"id": "
|
|
5722
|
+
"id": "projects:list",
|
|
5812
5723
|
"pluginAlias": "@sanity/cli",
|
|
5813
5724
|
"pluginName": "@sanity/cli",
|
|
5814
5725
|
"pluginType": "core",
|
|
@@ -5817,59 +5728,32 @@
|
|
|
5817
5728
|
"relativePath": [
|
|
5818
5729
|
"dist",
|
|
5819
5730
|
"commands",
|
|
5820
|
-
"
|
|
5821
|
-
"
|
|
5731
|
+
"projects",
|
|
5732
|
+
"list.js"
|
|
5822
5733
|
]
|
|
5823
5734
|
},
|
|
5824
|
-
"
|
|
5735
|
+
"projects:unclaimed": {
|
|
5825
5736
|
"aliases": [],
|
|
5826
5737
|
"args": {},
|
|
5827
|
-
"description": "
|
|
5738
|
+
"description": "Recover details for unclaimed projects created on this machine",
|
|
5828
5739
|
"examples": [
|
|
5829
|
-
{
|
|
5830
|
-
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
5831
|
-
"description": "List tokens managed by an organization"
|
|
5832
|
-
},
|
|
5833
5740
|
{
|
|
5834
5741
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5835
|
-
"description": "List
|
|
5836
|
-
},
|
|
5837
|
-
{
|
|
5838
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
5839
|
-
"description": "List tokens in JSON format"
|
|
5742
|
+
"description": "List locally recorded unclaimed projects"
|
|
5840
5743
|
},
|
|
5841
5744
|
{
|
|
5842
5745
|
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
5843
|
-
"description": "
|
|
5746
|
+
"description": "Show recovery details for one project"
|
|
5844
5747
|
}
|
|
5845
5748
|
],
|
|
5846
5749
|
"flags": {
|
|
5847
|
-
"json": {
|
|
5848
|
-
"description": "Format output as json.",
|
|
5849
|
-
"helpGroup": "GLOBAL",
|
|
5850
|
-
"name": "json",
|
|
5851
|
-
"allowNo": false,
|
|
5852
|
-
"type": "boolean"
|
|
5853
|
-
},
|
|
5854
|
-
"organization": {
|
|
5855
|
-
"description": "List tokens managed by this organization",
|
|
5856
|
-
"exclusive": [
|
|
5857
|
-
"project"
|
|
5858
|
-
],
|
|
5859
|
-
"name": "organization",
|
|
5860
|
-
"hasDynamicHelp": false,
|
|
5861
|
-
"helpValue": "<id>",
|
|
5862
|
-
"multiple": false,
|
|
5863
|
-
"type": "option"
|
|
5864
|
-
},
|
|
5865
5750
|
"project": {
|
|
5866
5751
|
"aliases": [
|
|
5867
5752
|
"project-id"
|
|
5868
5753
|
],
|
|
5869
5754
|
"char": "p",
|
|
5870
5755
|
"deprecateAliases": true,
|
|
5871
|
-
"description": "Project ID to
|
|
5872
|
-
"helpGroup": "OVERRIDE",
|
|
5756
|
+
"description": "Project ID to recover",
|
|
5873
5757
|
"name": "project",
|
|
5874
5758
|
"hasDynamicHelp": false,
|
|
5875
5759
|
"helpValue": "<id>",
|
|
@@ -5879,75 +5763,112 @@
|
|
|
5879
5763
|
},
|
|
5880
5764
|
"hasDynamicHelp": false,
|
|
5881
5765
|
"hiddenAliases": [
|
|
5882
|
-
"
|
|
5766
|
+
"project:unclaimed"
|
|
5883
5767
|
],
|
|
5884
|
-
"id": "
|
|
5768
|
+
"id": "projects:unclaimed",
|
|
5885
5769
|
"pluginAlias": "@sanity/cli",
|
|
5886
5770
|
"pluginName": "@sanity/cli",
|
|
5887
5771
|
"pluginType": "core",
|
|
5888
5772
|
"strict": true,
|
|
5889
|
-
"enableJsonFlag": true,
|
|
5890
5773
|
"isESM": true,
|
|
5891
5774
|
"relativePath": [
|
|
5892
5775
|
"dist",
|
|
5893
5776
|
"commands",
|
|
5894
|
-
"
|
|
5895
|
-
"
|
|
5777
|
+
"projects",
|
|
5778
|
+
"unclaimed.js"
|
|
5896
5779
|
]
|
|
5897
5780
|
},
|
|
5898
|
-
"
|
|
5781
|
+
"schemas:delete": {
|
|
5899
5782
|
"aliases": [],
|
|
5900
5783
|
"args": {},
|
|
5901
|
-
"description": "
|
|
5784
|
+
"description": "Delete schema documents by id",
|
|
5902
5785
|
"examples": [
|
|
5903
5786
|
{
|
|
5904
|
-
"command": "
|
|
5905
|
-
"description": "
|
|
5906
|
-
},
|
|
5907
|
-
{
|
|
5908
|
-
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
5909
|
-
"description": "Rotate a token read from a file"
|
|
5787
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
5788
|
+
"description": "Delete a single schema"
|
|
5910
5789
|
},
|
|
5911
5790
|
{
|
|
5912
|
-
"command": "
|
|
5913
|
-
"description": "
|
|
5791
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
5792
|
+
"description": "Delete multiple schemas"
|
|
5914
5793
|
}
|
|
5915
5794
|
],
|
|
5916
5795
|
"flags": {
|
|
5917
|
-
"
|
|
5918
|
-
"
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
"
|
|
5796
|
+
"project": {
|
|
5797
|
+
"aliases": [
|
|
5798
|
+
"project-id"
|
|
5799
|
+
],
|
|
5800
|
+
"char": "p",
|
|
5801
|
+
"deprecateAliases": true,
|
|
5802
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
5803
|
+
"helpGroup": "OVERRIDE",
|
|
5804
|
+
"name": "project",
|
|
5805
|
+
"hasDynamicHelp": false,
|
|
5806
|
+
"helpValue": "<id>",
|
|
5807
|
+
"multiple": false,
|
|
5808
|
+
"type": "option"
|
|
5809
|
+
},
|
|
5810
|
+
"dataset": {
|
|
5811
|
+
"char": "d",
|
|
5812
|
+
"description": "Delete schemas from a specific dataset",
|
|
5813
|
+
"name": "dataset",
|
|
5814
|
+
"hasDynamicHelp": false,
|
|
5815
|
+
"helpValue": "<name>",
|
|
5816
|
+
"multiple": false,
|
|
5817
|
+
"type": "option"
|
|
5818
|
+
},
|
|
5819
|
+
"extract-manifest": {
|
|
5820
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
5821
|
+
"hidden": true,
|
|
5822
|
+
"name": "extract-manifest",
|
|
5823
|
+
"allowNo": true,
|
|
5922
5824
|
"type": "boolean"
|
|
5923
5825
|
},
|
|
5924
|
-
"
|
|
5925
|
-
"
|
|
5926
|
-
"
|
|
5927
|
-
"
|
|
5826
|
+
"ids": {
|
|
5827
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
5828
|
+
"name": "ids",
|
|
5829
|
+
"required": true,
|
|
5830
|
+
"hasDynamicHelp": false,
|
|
5831
|
+
"multiple": false,
|
|
5832
|
+
"type": "option"
|
|
5833
|
+
},
|
|
5834
|
+
"manifest-dir": {
|
|
5835
|
+
"description": "Directory containing manifest file",
|
|
5836
|
+
"hidden": true,
|
|
5837
|
+
"name": "manifest-dir",
|
|
5838
|
+
"default": "./dist/static",
|
|
5928
5839
|
"hasDynamicHelp": false,
|
|
5929
|
-
"helpValue": "<token>",
|
|
5930
5840
|
"multiple": false,
|
|
5931
5841
|
"type": "option"
|
|
5842
|
+
},
|
|
5843
|
+
"verbose": {
|
|
5844
|
+
"description": "Enable verbose logging",
|
|
5845
|
+
"name": "verbose",
|
|
5846
|
+
"allowNo": false,
|
|
5847
|
+
"type": "boolean"
|
|
5848
|
+
},
|
|
5849
|
+
"yes": {
|
|
5850
|
+
"char": "y",
|
|
5851
|
+
"description": "Delete schemas without prompting for confirmation",
|
|
5852
|
+
"name": "yes",
|
|
5853
|
+
"allowNo": false,
|
|
5854
|
+
"type": "boolean"
|
|
5932
5855
|
}
|
|
5933
5856
|
},
|
|
5934
5857
|
"hasDynamicHelp": false,
|
|
5935
5858
|
"hiddenAliases": [
|
|
5936
|
-
"
|
|
5859
|
+
"schema:delete"
|
|
5937
5860
|
],
|
|
5938
|
-
"id": "
|
|
5861
|
+
"id": "schemas:delete",
|
|
5939
5862
|
"pluginAlias": "@sanity/cli",
|
|
5940
5863
|
"pluginName": "@sanity/cli",
|
|
5941
5864
|
"pluginType": "core",
|
|
5942
5865
|
"strict": true,
|
|
5943
|
-
"enableJsonFlag": true,
|
|
5944
5866
|
"telemetry": {
|
|
5945
5867
|
"redactedFlags": [
|
|
5946
5868
|
{
|
|
5947
|
-
"canonical": "--
|
|
5869
|
+
"canonical": "--manifest-dir",
|
|
5948
5870
|
"flags": [
|
|
5949
|
-
"--
|
|
5950
|
-
"-t"
|
|
5871
|
+
"--manifest-dir"
|
|
5951
5872
|
]
|
|
5952
5873
|
}
|
|
5953
5874
|
]
|
|
@@ -5956,40 +5877,68 @@
|
|
|
5956
5877
|
"relativePath": [
|
|
5957
5878
|
"dist",
|
|
5958
5879
|
"commands",
|
|
5959
|
-
"
|
|
5960
|
-
"
|
|
5880
|
+
"schemas",
|
|
5881
|
+
"delete.js"
|
|
5961
5882
|
]
|
|
5962
5883
|
},
|
|
5963
|
-
"
|
|
5884
|
+
"schemas:deploy": {
|
|
5964
5885
|
"aliases": [],
|
|
5965
5886
|
"args": {},
|
|
5966
|
-
"description": "
|
|
5887
|
+
"description": "Deploy schema documents into workspace datasets.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To re-use an existing manifest, use --no-extract-manifest.",
|
|
5967
5888
|
"examples": [
|
|
5968
5889
|
{
|
|
5969
5890
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5970
|
-
"description": "
|
|
5891
|
+
"description": "Deploy all workspace schemas"
|
|
5892
|
+
},
|
|
5893
|
+
{
|
|
5894
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
5895
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
5971
5896
|
}
|
|
5972
5897
|
],
|
|
5973
5898
|
"flags": {
|
|
5974
|
-
"
|
|
5975
|
-
"description": "
|
|
5976
|
-
"name": "
|
|
5899
|
+
"extract-manifest": {
|
|
5900
|
+
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
5901
|
+
"name": "extract-manifest",
|
|
5902
|
+
"allowNo": true,
|
|
5903
|
+
"type": "boolean"
|
|
5904
|
+
},
|
|
5905
|
+
"manifest-dir": {
|
|
5906
|
+
"description": "Directory containing manifest file",
|
|
5907
|
+
"name": "manifest-dir",
|
|
5908
|
+
"default": "./dist/static",
|
|
5977
5909
|
"hasDynamicHelp": false,
|
|
5910
|
+
"helpValue": "<directory>",
|
|
5978
5911
|
"multiple": false,
|
|
5979
5912
|
"type": "option"
|
|
5980
5913
|
},
|
|
5981
|
-
"
|
|
5982
|
-
"description": "
|
|
5983
|
-
"name": "
|
|
5914
|
+
"tag": {
|
|
5915
|
+
"description": "Add a tag suffix to the schema id",
|
|
5916
|
+
"name": "tag",
|
|
5917
|
+
"hasDynamicHelp": false,
|
|
5918
|
+
"helpValue": "<tag>",
|
|
5919
|
+
"multiple": false,
|
|
5920
|
+
"type": "option"
|
|
5921
|
+
},
|
|
5922
|
+
"verbose": {
|
|
5923
|
+
"description": "Print detailed information during deployment",
|
|
5924
|
+
"name": "verbose",
|
|
5984
5925
|
"allowNo": false,
|
|
5985
5926
|
"type": "boolean"
|
|
5927
|
+
},
|
|
5928
|
+
"workspace": {
|
|
5929
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
5930
|
+
"name": "workspace",
|
|
5931
|
+
"hasDynamicHelp": false,
|
|
5932
|
+
"helpValue": "<name>",
|
|
5933
|
+
"multiple": false,
|
|
5934
|
+
"type": "option"
|
|
5986
5935
|
}
|
|
5987
5936
|
},
|
|
5988
5937
|
"hasDynamicHelp": false,
|
|
5989
5938
|
"hiddenAliases": [
|
|
5990
|
-
"
|
|
5939
|
+
"schema:deploy"
|
|
5991
5940
|
],
|
|
5992
|
-
"id": "
|
|
5941
|
+
"id": "schemas:deploy",
|
|
5993
5942
|
"pluginAlias": "@sanity/cli",
|
|
5994
5943
|
"pluginName": "@sanity/cli",
|
|
5995
5944
|
"pluginType": "core",
|
|
@@ -5997,9 +5946,9 @@
|
|
|
5997
5946
|
"telemetry": {
|
|
5998
5947
|
"redactedFlags": [
|
|
5999
5948
|
{
|
|
6000
|
-
"canonical": "--
|
|
5949
|
+
"canonical": "--manifest-dir",
|
|
6001
5950
|
"flags": [
|
|
6002
|
-
"--
|
|
5951
|
+
"--manifest-dir"
|
|
6003
5952
|
]
|
|
6004
5953
|
}
|
|
6005
5954
|
]
|
|
@@ -6008,252 +5957,280 @@
|
|
|
6008
5957
|
"relativePath": [
|
|
6009
5958
|
"dist",
|
|
6010
5959
|
"commands",
|
|
6011
|
-
"
|
|
6012
|
-
"
|
|
5960
|
+
"schemas",
|
|
5961
|
+
"deploy.js"
|
|
6013
5962
|
]
|
|
6014
5963
|
},
|
|
6015
|
-
"
|
|
5964
|
+
"schemas:extract": {
|
|
6016
5965
|
"aliases": [],
|
|
6017
|
-
"args": {
|
|
6018
|
-
|
|
6019
|
-
"description": "Email address to invite",
|
|
6020
|
-
"name": "email",
|
|
6021
|
-
"required": false
|
|
6022
|
-
}
|
|
6023
|
-
},
|
|
6024
|
-
"description": "Invite a new user to the project",
|
|
5966
|
+
"args": {},
|
|
5967
|
+
"description": "Extract a JSON representation of a Sanity schema within a Studio context.\n\nNote: This command is experimental and subject to change.",
|
|
6025
5968
|
"examples": [
|
|
6026
5969
|
{
|
|
6027
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6028
|
-
"description": "
|
|
6029
|
-
},
|
|
6030
|
-
{
|
|
6031
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6032
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
5970
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
5971
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
6033
5972
|
},
|
|
6034
5973
|
{
|
|
6035
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6036
|
-
"description": "
|
|
5974
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
5975
|
+
"description": "Watch mode - re-extract on changes"
|
|
6037
5976
|
},
|
|
6038
5977
|
{
|
|
6039
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6040
|
-
"description": "
|
|
5978
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
5979
|
+
"description": "Watch with custom glob patterns"
|
|
6041
5980
|
}
|
|
6042
5981
|
],
|
|
6043
5982
|
"flags": {
|
|
6044
|
-
"
|
|
6045
|
-
"
|
|
6046
|
-
|
|
6047
|
-
],
|
|
6048
|
-
"char": "p",
|
|
6049
|
-
"deprecateAliases": true,
|
|
6050
|
-
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6051
|
-
"helpGroup": "OVERRIDE",
|
|
6052
|
-
"name": "project",
|
|
5983
|
+
"config-path": {
|
|
5984
|
+
"description": "Path to the Sanity Studio config file",
|
|
5985
|
+
"name": "config-path",
|
|
6053
5986
|
"hasDynamicHelp": false,
|
|
6054
|
-
"helpValue": "<
|
|
5987
|
+
"helpValue": "<path>",
|
|
6055
5988
|
"multiple": false,
|
|
6056
5989
|
"type": "option"
|
|
6057
5990
|
},
|
|
6058
|
-
"
|
|
6059
|
-
"description": "
|
|
6060
|
-
"name": "
|
|
6061
|
-
"
|
|
6062
|
-
"
|
|
5991
|
+
"enforce-required-fields": {
|
|
5992
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
5993
|
+
"name": "enforce-required-fields",
|
|
5994
|
+
"allowNo": false,
|
|
5995
|
+
"type": "boolean"
|
|
5996
|
+
},
|
|
5997
|
+
"force": {
|
|
5998
|
+
"description": "Overwrite an existing schema file",
|
|
5999
|
+
"name": "force",
|
|
6000
|
+
"allowNo": false,
|
|
6001
|
+
"type": "boolean"
|
|
6002
|
+
},
|
|
6003
|
+
"format": {
|
|
6004
|
+
"description": "Output format (currently only groq-type-nodes)",
|
|
6005
|
+
"name": "format",
|
|
6006
|
+
"default": "groq-type-nodes",
|
|
6007
|
+
"hasDynamicHelp": false,
|
|
6008
|
+
"helpValue": "<format>",
|
|
6009
|
+
"multiple": false,
|
|
6010
|
+
"type": "option"
|
|
6011
|
+
},
|
|
6012
|
+
"path": {
|
|
6013
|
+
"description": "Optional path to specify destination of the schema file",
|
|
6014
|
+
"name": "path",
|
|
6015
|
+
"hasDynamicHelp": false,
|
|
6016
|
+
"multiple": false,
|
|
6017
|
+
"type": "option"
|
|
6018
|
+
},
|
|
6019
|
+
"watch": {
|
|
6020
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
6021
|
+
"name": "watch",
|
|
6022
|
+
"allowNo": false,
|
|
6023
|
+
"type": "boolean"
|
|
6024
|
+
},
|
|
6025
|
+
"watch-patterns": {
|
|
6026
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
6027
|
+
"name": "watch-patterns",
|
|
6028
|
+
"hasDynamicHelp": false,
|
|
6029
|
+
"helpValue": "<glob>",
|
|
6030
|
+
"multiple": true,
|
|
6031
|
+
"type": "option"
|
|
6032
|
+
},
|
|
6033
|
+
"workspace": {
|
|
6034
|
+
"description": "The name of the workspace to generate a schema for",
|
|
6035
|
+
"name": "workspace",
|
|
6036
|
+
"hasDynamicHelp": false,
|
|
6037
|
+
"helpValue": "<name>",
|
|
6038
|
+
"multiple": false,
|
|
6063
6039
|
"type": "option"
|
|
6064
6040
|
}
|
|
6065
6041
|
},
|
|
6066
6042
|
"hasDynamicHelp": false,
|
|
6067
6043
|
"hiddenAliases": [
|
|
6068
|
-
"
|
|
6044
|
+
"schema:extract"
|
|
6069
6045
|
],
|
|
6070
|
-
"id": "
|
|
6046
|
+
"id": "schemas:extract",
|
|
6071
6047
|
"pluginAlias": "@sanity/cli",
|
|
6072
6048
|
"pluginName": "@sanity/cli",
|
|
6073
6049
|
"pluginType": "core",
|
|
6074
6050
|
"strict": true,
|
|
6051
|
+
"telemetry": {
|
|
6052
|
+
"redactedFlags": [
|
|
6053
|
+
{
|
|
6054
|
+
"canonical": "--config-path",
|
|
6055
|
+
"flags": [
|
|
6056
|
+
"--config-path"
|
|
6057
|
+
]
|
|
6058
|
+
},
|
|
6059
|
+
{
|
|
6060
|
+
"canonical": "--path",
|
|
6061
|
+
"flags": [
|
|
6062
|
+
"--path"
|
|
6063
|
+
]
|
|
6064
|
+
},
|
|
6065
|
+
{
|
|
6066
|
+
"canonical": "--watch-patterns",
|
|
6067
|
+
"flags": [
|
|
6068
|
+
"--watch-patterns"
|
|
6069
|
+
]
|
|
6070
|
+
}
|
|
6071
|
+
]
|
|
6072
|
+
},
|
|
6075
6073
|
"isESM": true,
|
|
6076
6074
|
"relativePath": [
|
|
6077
6075
|
"dist",
|
|
6078
6076
|
"commands",
|
|
6079
|
-
"
|
|
6080
|
-
"
|
|
6077
|
+
"schemas",
|
|
6078
|
+
"extract.js"
|
|
6081
6079
|
]
|
|
6082
6080
|
},
|
|
6083
|
-
"
|
|
6081
|
+
"schemas:list": {
|
|
6084
6082
|
"aliases": [],
|
|
6085
6083
|
"args": {},
|
|
6086
|
-
"description": "List
|
|
6084
|
+
"description": "List all schemas in the current dataset.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To reuse an existing manifest, use --no-extract-manifest.",
|
|
6087
6085
|
"examples": [
|
|
6088
6086
|
{
|
|
6089
6087
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
6090
|
-
"description": "List all
|
|
6088
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
6091
6089
|
},
|
|
6092
6090
|
{
|
|
6093
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6094
|
-
"description": "
|
|
6091
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
6092
|
+
"description": "Get a schema for a given id"
|
|
6095
6093
|
},
|
|
6096
6094
|
{
|
|
6097
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6098
|
-
"description": "
|
|
6095
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
6096
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
6099
6097
|
},
|
|
6100
6098
|
{
|
|
6101
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6102
|
-
"description": "
|
|
6099
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
6100
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
6103
6101
|
}
|
|
6104
6102
|
],
|
|
6105
6103
|
"flags": {
|
|
6106
|
-
"
|
|
6107
|
-
"
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
"
|
|
6111
|
-
"
|
|
6112
|
-
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6113
|
-
"helpGroup": "OVERRIDE",
|
|
6114
|
-
"name": "project",
|
|
6115
|
-
"hasDynamicHelp": false,
|
|
6116
|
-
"helpValue": "<id>",
|
|
6117
|
-
"multiple": false,
|
|
6118
|
-
"type": "option"
|
|
6104
|
+
"json": {
|
|
6105
|
+
"description": "Format output as json.",
|
|
6106
|
+
"helpGroup": "GLOBAL",
|
|
6107
|
+
"name": "json",
|
|
6108
|
+
"allowNo": false,
|
|
6109
|
+
"type": "boolean"
|
|
6119
6110
|
},
|
|
6120
|
-
"
|
|
6121
|
-
"description": "
|
|
6122
|
-
"
|
|
6111
|
+
"extract-manifest": {
|
|
6112
|
+
"description": "Regenerate manifest before listing (use --no-extract-manifest to skip)",
|
|
6113
|
+
"hidden": true,
|
|
6114
|
+
"name": "extract-manifest",
|
|
6123
6115
|
"allowNo": true,
|
|
6124
6116
|
"type": "boolean"
|
|
6125
6117
|
},
|
|
6126
|
-
"
|
|
6127
|
-
"description": "
|
|
6128
|
-
"name": "
|
|
6129
|
-
"default": "asc",
|
|
6118
|
+
"id": {
|
|
6119
|
+
"description": "Fetch a single schema by id",
|
|
6120
|
+
"name": "id",
|
|
6130
6121
|
"hasDynamicHelp": false,
|
|
6122
|
+
"helpValue": "<schema_id>",
|
|
6131
6123
|
"multiple": false,
|
|
6132
|
-
"options": [
|
|
6133
|
-
"asc",
|
|
6134
|
-
"desc"
|
|
6135
|
-
],
|
|
6136
6124
|
"type": "option"
|
|
6137
6125
|
},
|
|
6138
|
-
"
|
|
6139
|
-
"description": "
|
|
6140
|
-
"
|
|
6141
|
-
"
|
|
6142
|
-
"
|
|
6143
|
-
},
|
|
6144
|
-
"sort": {
|
|
6145
|
-
"description": "Sort users by specified column",
|
|
6146
|
-
"name": "sort",
|
|
6147
|
-
"default": "date",
|
|
6126
|
+
"manifest-dir": {
|
|
6127
|
+
"description": "Directory containing manifest file",
|
|
6128
|
+
"hidden": true,
|
|
6129
|
+
"name": "manifest-dir",
|
|
6130
|
+
"default": "./dist/static",
|
|
6148
6131
|
"hasDynamicHelp": false,
|
|
6132
|
+
"helpValue": "<directory>",
|
|
6149
6133
|
"multiple": false,
|
|
6150
|
-
"options": [
|
|
6151
|
-
"id",
|
|
6152
|
-
"name",
|
|
6153
|
-
"role",
|
|
6154
|
-
"date"
|
|
6155
|
-
],
|
|
6156
6134
|
"type": "option"
|
|
6157
6135
|
}
|
|
6158
6136
|
},
|
|
6159
6137
|
"hasDynamicHelp": false,
|
|
6160
6138
|
"hiddenAliases": [
|
|
6161
|
-
"
|
|
6139
|
+
"schema:list"
|
|
6162
6140
|
],
|
|
6163
|
-
"id": "
|
|
6141
|
+
"id": "schemas:list",
|
|
6164
6142
|
"pluginAlias": "@sanity/cli",
|
|
6165
6143
|
"pluginName": "@sanity/cli",
|
|
6166
6144
|
"pluginType": "core",
|
|
6167
6145
|
"strict": true,
|
|
6146
|
+
"enableJsonFlag": true,
|
|
6147
|
+
"telemetry": {
|
|
6148
|
+
"redactedFlags": [
|
|
6149
|
+
{
|
|
6150
|
+
"canonical": "--manifest-dir",
|
|
6151
|
+
"flags": [
|
|
6152
|
+
"--manifest-dir"
|
|
6153
|
+
]
|
|
6154
|
+
}
|
|
6155
|
+
]
|
|
6156
|
+
},
|
|
6168
6157
|
"isESM": true,
|
|
6169
6158
|
"relativePath": [
|
|
6170
6159
|
"dist",
|
|
6171
6160
|
"commands",
|
|
6172
|
-
"
|
|
6161
|
+
"schemas",
|
|
6173
6162
|
"list.js"
|
|
6174
6163
|
]
|
|
6175
6164
|
},
|
|
6176
|
-
"schemas:
|
|
6165
|
+
"schemas:validate": {
|
|
6177
6166
|
"aliases": [],
|
|
6178
6167
|
"args": {},
|
|
6179
|
-
"description": "
|
|
6168
|
+
"description": "Validates all schema types specified in a workspace",
|
|
6180
6169
|
"examples": [
|
|
6181
6170
|
{
|
|
6182
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6183
|
-
"description": "
|
|
6171
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
6172
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
6184
6173
|
},
|
|
6185
6174
|
{
|
|
6186
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6187
|
-
"description": "
|
|
6175
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
6176
|
+
"description": "Save the results of the report into a file"
|
|
6177
|
+
},
|
|
6178
|
+
{
|
|
6179
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
6180
|
+
"description": "Report out only errors"
|
|
6181
|
+
},
|
|
6182
|
+
{
|
|
6183
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
6184
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
6188
6185
|
}
|
|
6189
6186
|
],
|
|
6190
6187
|
"flags": {
|
|
6191
|
-
"
|
|
6192
|
-
"
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
"char": "p",
|
|
6196
|
-
"deprecateAliases": true,
|
|
6197
|
-
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
6198
|
-
"helpGroup": "OVERRIDE",
|
|
6199
|
-
"name": "project",
|
|
6188
|
+
"debug-metafile-path": {
|
|
6189
|
+
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
6190
|
+
"helpGroup": "DEBUG",
|
|
6191
|
+
"name": "debug-metafile-path",
|
|
6200
6192
|
"hasDynamicHelp": false,
|
|
6201
|
-
"helpValue": "<id>",
|
|
6202
6193
|
"multiple": false,
|
|
6203
6194
|
"type": "option"
|
|
6204
6195
|
},
|
|
6205
|
-
"
|
|
6206
|
-
"
|
|
6207
|
-
"
|
|
6208
|
-
"
|
|
6196
|
+
"format": {
|
|
6197
|
+
"description": "The output format used to print schema errors and warnings",
|
|
6198
|
+
"name": "format",
|
|
6199
|
+
"default": "pretty",
|
|
6209
6200
|
"hasDynamicHelp": false,
|
|
6210
|
-
"helpValue": "<name>",
|
|
6211
6201
|
"multiple": false,
|
|
6202
|
+
"options": [
|
|
6203
|
+
"pretty",
|
|
6204
|
+
"ndjson",
|
|
6205
|
+
"json"
|
|
6206
|
+
],
|
|
6212
6207
|
"type": "option"
|
|
6213
6208
|
},
|
|
6214
|
-
"
|
|
6215
|
-
"description": "
|
|
6216
|
-
"
|
|
6217
|
-
"
|
|
6218
|
-
"allowNo": true,
|
|
6219
|
-
"type": "boolean"
|
|
6220
|
-
},
|
|
6221
|
-
"ids": {
|
|
6222
|
-
"description": "Comma-separated list of schema ids to delete",
|
|
6223
|
-
"name": "ids",
|
|
6224
|
-
"required": true,
|
|
6209
|
+
"level": {
|
|
6210
|
+
"description": "The minimum level reported out",
|
|
6211
|
+
"name": "level",
|
|
6212
|
+
"default": "warning",
|
|
6225
6213
|
"hasDynamicHelp": false,
|
|
6226
6214
|
"multiple": false,
|
|
6215
|
+
"options": [
|
|
6216
|
+
"error",
|
|
6217
|
+
"warning"
|
|
6218
|
+
],
|
|
6227
6219
|
"type": "option"
|
|
6228
6220
|
},
|
|
6229
|
-
"
|
|
6230
|
-
"description": "
|
|
6231
|
-
"
|
|
6232
|
-
"name": "manifest-dir",
|
|
6233
|
-
"default": "./dist/static",
|
|
6221
|
+
"workspace": {
|
|
6222
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
6223
|
+
"name": "workspace",
|
|
6234
6224
|
"hasDynamicHelp": false,
|
|
6235
6225
|
"multiple": false,
|
|
6236
6226
|
"type": "option"
|
|
6237
|
-
},
|
|
6238
|
-
"verbose": {
|
|
6239
|
-
"description": "Enable verbose logging",
|
|
6240
|
-
"name": "verbose",
|
|
6241
|
-
"allowNo": false,
|
|
6242
|
-
"type": "boolean"
|
|
6243
|
-
},
|
|
6244
|
-
"yes": {
|
|
6245
|
-
"char": "y",
|
|
6246
|
-
"description": "Delete schemas without prompting for confirmation",
|
|
6247
|
-
"name": "yes",
|
|
6248
|
-
"allowNo": false,
|
|
6249
|
-
"type": "boolean"
|
|
6250
6227
|
}
|
|
6251
6228
|
},
|
|
6252
6229
|
"hasDynamicHelp": false,
|
|
6253
6230
|
"hiddenAliases": [
|
|
6254
|
-
"schema:
|
|
6231
|
+
"schema:validate"
|
|
6255
6232
|
],
|
|
6256
|
-
"id": "schemas:
|
|
6233
|
+
"id": "schemas:validate",
|
|
6257
6234
|
"pluginAlias": "@sanity/cli",
|
|
6258
6235
|
"pluginName": "@sanity/cli",
|
|
6259
6236
|
"pluginType": "core",
|
|
@@ -6261,9 +6238,9 @@
|
|
|
6261
6238
|
"telemetry": {
|
|
6262
6239
|
"redactedFlags": [
|
|
6263
6240
|
{
|
|
6264
|
-
"canonical": "--
|
|
6241
|
+
"canonical": "--debug-metafile-path",
|
|
6265
6242
|
"flags": [
|
|
6266
|
-
"--
|
|
6243
|
+
"--debug-metafile-path"
|
|
6267
6244
|
]
|
|
6268
6245
|
}
|
|
6269
6246
|
]
|
|
@@ -6273,226 +6250,339 @@
|
|
|
6273
6250
|
"dist",
|
|
6274
6251
|
"commands",
|
|
6275
6252
|
"schemas",
|
|
6276
|
-
"
|
|
6253
|
+
"validate.js"
|
|
6277
6254
|
]
|
|
6278
6255
|
},
|
|
6279
|
-
"
|
|
6256
|
+
"skills:install": {
|
|
6280
6257
|
"aliases": [],
|
|
6281
6258
|
"args": {},
|
|
6282
|
-
"description": "
|
|
6259
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
6283
6260
|
"examples": [
|
|
6284
6261
|
{
|
|
6285
6262
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
6286
|
-
"description": "
|
|
6263
|
+
"description": "Install Sanity agent skills for detected AI editors"
|
|
6264
|
+
}
|
|
6265
|
+
],
|
|
6266
|
+
"flags": {},
|
|
6267
|
+
"hasDynamicHelp": false,
|
|
6268
|
+
"hiddenAliases": [],
|
|
6269
|
+
"id": "skills:install",
|
|
6270
|
+
"pluginAlias": "@sanity/cli",
|
|
6271
|
+
"pluginName": "@sanity/cli",
|
|
6272
|
+
"pluginType": "core",
|
|
6273
|
+
"strict": true,
|
|
6274
|
+
"isESM": true,
|
|
6275
|
+
"relativePath": [
|
|
6276
|
+
"dist",
|
|
6277
|
+
"commands",
|
|
6278
|
+
"skills",
|
|
6279
|
+
"install.js"
|
|
6280
|
+
]
|
|
6281
|
+
},
|
|
6282
|
+
"telemetry:disable": {
|
|
6283
|
+
"aliases": [],
|
|
6284
|
+
"args": {},
|
|
6285
|
+
"description": "Disable telemetry for your account",
|
|
6286
|
+
"examples": [
|
|
6287
|
+
{
|
|
6288
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6289
|
+
"description": "Disable telemetry for your account"
|
|
6290
|
+
}
|
|
6291
|
+
],
|
|
6292
|
+
"flags": {},
|
|
6293
|
+
"hasDynamicHelp": false,
|
|
6294
|
+
"hiddenAliases": [],
|
|
6295
|
+
"id": "telemetry:disable",
|
|
6296
|
+
"pluginAlias": "@sanity/cli",
|
|
6297
|
+
"pluginName": "@sanity/cli",
|
|
6298
|
+
"pluginType": "core",
|
|
6299
|
+
"strict": true,
|
|
6300
|
+
"isESM": true,
|
|
6301
|
+
"relativePath": [
|
|
6302
|
+
"dist",
|
|
6303
|
+
"commands",
|
|
6304
|
+
"telemetry",
|
|
6305
|
+
"disable.js"
|
|
6306
|
+
]
|
|
6307
|
+
},
|
|
6308
|
+
"telemetry:enable": {
|
|
6309
|
+
"aliases": [],
|
|
6310
|
+
"args": {},
|
|
6311
|
+
"description": "Enable telemetry for your account",
|
|
6312
|
+
"examples": [
|
|
6313
|
+
{
|
|
6314
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6315
|
+
"description": "Enable telemetry for your account"
|
|
6316
|
+
}
|
|
6317
|
+
],
|
|
6318
|
+
"flags": {},
|
|
6319
|
+
"hasDynamicHelp": false,
|
|
6320
|
+
"hiddenAliases": [],
|
|
6321
|
+
"id": "telemetry:enable",
|
|
6322
|
+
"pluginAlias": "@sanity/cli",
|
|
6323
|
+
"pluginName": "@sanity/cli",
|
|
6324
|
+
"pluginType": "core",
|
|
6325
|
+
"strict": true,
|
|
6326
|
+
"isESM": true,
|
|
6327
|
+
"relativePath": [
|
|
6328
|
+
"dist",
|
|
6329
|
+
"commands",
|
|
6330
|
+
"telemetry",
|
|
6331
|
+
"enable.js"
|
|
6332
|
+
]
|
|
6333
|
+
},
|
|
6334
|
+
"telemetry:status": {
|
|
6335
|
+
"aliases": [],
|
|
6336
|
+
"args": {},
|
|
6337
|
+
"description": "Check telemetry status for your account",
|
|
6338
|
+
"examples": [
|
|
6339
|
+
{
|
|
6340
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6341
|
+
"description": "Check telemetry status for your account"
|
|
6342
|
+
}
|
|
6343
|
+
],
|
|
6344
|
+
"flags": {},
|
|
6345
|
+
"hasDynamicHelp": false,
|
|
6346
|
+
"hiddenAliases": [],
|
|
6347
|
+
"id": "telemetry:status",
|
|
6348
|
+
"pluginAlias": "@sanity/cli",
|
|
6349
|
+
"pluginName": "@sanity/cli",
|
|
6350
|
+
"pluginType": "core",
|
|
6351
|
+
"strict": true,
|
|
6352
|
+
"isESM": true,
|
|
6353
|
+
"relativePath": [
|
|
6354
|
+
"dist",
|
|
6355
|
+
"commands",
|
|
6356
|
+
"telemetry",
|
|
6357
|
+
"status.js"
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6360
|
+
"tokens:create": {
|
|
6361
|
+
"aliases": [],
|
|
6362
|
+
"args": {
|
|
6363
|
+
"label": {
|
|
6364
|
+
"description": "Label for the new token",
|
|
6365
|
+
"name": "label",
|
|
6366
|
+
"required": false
|
|
6367
|
+
}
|
|
6368
|
+
},
|
|
6369
|
+
"description": "Create a new API token with access to an organization and its projects",
|
|
6370
|
+
"examples": [
|
|
6371
|
+
{
|
|
6372
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
6373
|
+
"description": "Create a token, choosing its access interactively"
|
|
6287
6374
|
},
|
|
6288
6375
|
{
|
|
6289
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6290
|
-
"description": "
|
|
6376
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --grant context=developer --grant blueprints --grant project:abc123=editor",
|
|
6377
|
+
"description": "Create an organization token with Context, Blueprints and project access"
|
|
6378
|
+
},
|
|
6379
|
+
{
|
|
6380
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project abc123 --role=editor",
|
|
6381
|
+
"description": "Create a project token with editor role"
|
|
6382
|
+
},
|
|
6383
|
+
{
|
|
6384
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
6385
|
+
"description": "Create a project token in unattended mode"
|
|
6386
|
+
},
|
|
6387
|
+
{
|
|
6388
|
+
"command": "<%= config.bin %> <%= command.id %> \"Build Token\" --expires-at 2027-01-01",
|
|
6389
|
+
"description": "Create a token that expires on a given date"
|
|
6390
|
+
},
|
|
6391
|
+
{
|
|
6392
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
6393
|
+
"description": "Output token information as JSON"
|
|
6291
6394
|
}
|
|
6292
6395
|
],
|
|
6293
6396
|
"flags": {
|
|
6294
|
-
"
|
|
6295
|
-
"description": "
|
|
6296
|
-
"
|
|
6297
|
-
"
|
|
6397
|
+
"json": {
|
|
6398
|
+
"description": "Format output as json.",
|
|
6399
|
+
"helpGroup": "GLOBAL",
|
|
6400
|
+
"name": "json",
|
|
6401
|
+
"allowNo": false,
|
|
6298
6402
|
"type": "boolean"
|
|
6299
6403
|
},
|
|
6300
|
-
"
|
|
6301
|
-
"
|
|
6302
|
-
|
|
6303
|
-
|
|
6404
|
+
"project": {
|
|
6405
|
+
"aliases": [
|
|
6406
|
+
"project-id"
|
|
6407
|
+
],
|
|
6408
|
+
"char": "p",
|
|
6409
|
+
"deprecateAliases": true,
|
|
6410
|
+
"description": "Project ID to create token in (overrides CLI configuration)",
|
|
6411
|
+
"helpGroup": "OVERRIDE",
|
|
6412
|
+
"name": "project",
|
|
6413
|
+
"hasDynamicHelp": false,
|
|
6414
|
+
"helpValue": "<id>",
|
|
6415
|
+
"multiple": false,
|
|
6416
|
+
"type": "option"
|
|
6417
|
+
},
|
|
6418
|
+
"organization": {
|
|
6419
|
+
"description": "Organization to create an organization token in (overrides CLI configuration)",
|
|
6420
|
+
"helpGroup": "OVERRIDE",
|
|
6421
|
+
"name": "organization",
|
|
6304
6422
|
"hasDynamicHelp": false,
|
|
6305
|
-
"helpValue": "<
|
|
6423
|
+
"helpValue": "<id>",
|
|
6306
6424
|
"multiple": false,
|
|
6307
6425
|
"type": "option"
|
|
6308
6426
|
},
|
|
6309
|
-
"
|
|
6310
|
-
"description": "
|
|
6311
|
-
"name": "
|
|
6427
|
+
"expires-at": {
|
|
6428
|
+
"description": "Date or timestamp the token expires (ISO 8601; tokens never expire by default)",
|
|
6429
|
+
"name": "expires-at",
|
|
6312
6430
|
"hasDynamicHelp": false,
|
|
6313
|
-
"helpValue": "
|
|
6431
|
+
"helpValue": "2027-01-01",
|
|
6314
6432
|
"multiple": false,
|
|
6315
6433
|
"type": "option"
|
|
6316
6434
|
},
|
|
6317
|
-
"
|
|
6318
|
-
"description": "
|
|
6319
|
-
"name": "
|
|
6320
|
-
"
|
|
6321
|
-
"
|
|
6435
|
+
"grant": {
|
|
6436
|
+
"description": "Access to grant, as <permission>[=<role>] or project:<projectId>=<role>[,<role>]. Permissions: context, blueprints, media-library, canvas, sdk-apps, access, deploy-studios. Repeatable",
|
|
6437
|
+
"name": "grant",
|
|
6438
|
+
"hasDynamicHelp": false,
|
|
6439
|
+
"helpValue": "context=editor",
|
|
6440
|
+
"multiple": true,
|
|
6441
|
+
"type": "option"
|
|
6322
6442
|
},
|
|
6323
|
-
"
|
|
6324
|
-
"description": "
|
|
6325
|
-
"name": "
|
|
6443
|
+
"role": {
|
|
6444
|
+
"description": "Role to assign on the project (defaults to viewer in unattended mode)",
|
|
6445
|
+
"name": "role",
|
|
6326
6446
|
"hasDynamicHelp": false,
|
|
6327
|
-
"helpValue": "
|
|
6447
|
+
"helpValue": "viewer",
|
|
6328
6448
|
"multiple": false,
|
|
6329
6449
|
"type": "option"
|
|
6450
|
+
},
|
|
6451
|
+
"yes": {
|
|
6452
|
+
"char": "y",
|
|
6453
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
6454
|
+
"name": "yes",
|
|
6455
|
+
"allowNo": false,
|
|
6456
|
+
"type": "boolean"
|
|
6330
6457
|
}
|
|
6331
6458
|
},
|
|
6332
6459
|
"hasDynamicHelp": false,
|
|
6333
6460
|
"hiddenAliases": [
|
|
6334
|
-
"
|
|
6461
|
+
"tokens:add",
|
|
6462
|
+
"token:add",
|
|
6463
|
+
"token:create"
|
|
6335
6464
|
],
|
|
6336
|
-
"id": "
|
|
6465
|
+
"id": "tokens:create",
|
|
6337
6466
|
"pluginAlias": "@sanity/cli",
|
|
6338
6467
|
"pluginName": "@sanity/cli",
|
|
6339
6468
|
"pluginType": "core",
|
|
6340
6469
|
"strict": true,
|
|
6341
|
-
"
|
|
6342
|
-
"redactedFlags": [
|
|
6343
|
-
{
|
|
6344
|
-
"canonical": "--manifest-dir",
|
|
6345
|
-
"flags": [
|
|
6346
|
-
"--manifest-dir"
|
|
6347
|
-
]
|
|
6348
|
-
}
|
|
6349
|
-
]
|
|
6350
|
-
},
|
|
6470
|
+
"enableJsonFlag": true,
|
|
6351
6471
|
"isESM": true,
|
|
6352
6472
|
"relativePath": [
|
|
6353
6473
|
"dist",
|
|
6354
6474
|
"commands",
|
|
6355
|
-
"
|
|
6356
|
-
"
|
|
6475
|
+
"tokens",
|
|
6476
|
+
"create.js"
|
|
6357
6477
|
]
|
|
6358
6478
|
},
|
|
6359
|
-
"
|
|
6479
|
+
"tokens:delete": {
|
|
6360
6480
|
"aliases": [],
|
|
6361
|
-
"args": {
|
|
6362
|
-
|
|
6481
|
+
"args": {
|
|
6482
|
+
"tokenId": {
|
|
6483
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
6484
|
+
"name": "tokenId",
|
|
6485
|
+
"required": false
|
|
6486
|
+
}
|
|
6487
|
+
},
|
|
6488
|
+
"description": "Delete an API token from a project or organization",
|
|
6363
6489
|
"examples": [
|
|
6364
6490
|
{
|
|
6365
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6366
|
-
"description": "
|
|
6491
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
6492
|
+
"description": "Interactively select and delete an organization token"
|
|
6367
6493
|
},
|
|
6368
6494
|
{
|
|
6369
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6370
|
-
"description": "
|
|
6495
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --organization org123 --yes",
|
|
6496
|
+
"description": "Delete an organization token without confirmation"
|
|
6371
6497
|
},
|
|
6372
6498
|
{
|
|
6373
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6374
|
-
"description": "
|
|
6375
|
-
}
|
|
6376
|
-
],
|
|
6377
|
-
"flags": {
|
|
6378
|
-
"config-path": {
|
|
6379
|
-
"description": "Path to the Sanity Studio config file",
|
|
6380
|
-
"name": "config-path",
|
|
6381
|
-
"hasDynamicHelp": false,
|
|
6382
|
-
"helpValue": "<path>",
|
|
6383
|
-
"multiple": false,
|
|
6384
|
-
"type": "option"
|
|
6499
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6500
|
+
"description": "Interactively select and delete a token"
|
|
6385
6501
|
},
|
|
6386
|
-
|
|
6387
|
-
"
|
|
6388
|
-
"
|
|
6389
|
-
"allowNo": false,
|
|
6390
|
-
"type": "boolean"
|
|
6502
|
+
{
|
|
6503
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
6504
|
+
"description": "Delete a specific token by ID"
|
|
6391
6505
|
},
|
|
6392
|
-
|
|
6393
|
-
"
|
|
6394
|
-
"
|
|
6395
|
-
"allowNo": false,
|
|
6396
|
-
"type": "boolean"
|
|
6506
|
+
{
|
|
6507
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
6508
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
6397
6509
|
},
|
|
6398
|
-
|
|
6399
|
-
"
|
|
6400
|
-
"
|
|
6401
|
-
|
|
6510
|
+
{
|
|
6511
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6512
|
+
"description": "Delete a token from a specific project"
|
|
6513
|
+
}
|
|
6514
|
+
],
|
|
6515
|
+
"flags": {
|
|
6516
|
+
"organization": {
|
|
6517
|
+
"description": "Delete a token managed by this organization",
|
|
6518
|
+
"exclusive": [
|
|
6519
|
+
"project"
|
|
6520
|
+
],
|
|
6521
|
+
"name": "organization",
|
|
6402
6522
|
"hasDynamicHelp": false,
|
|
6403
|
-
"helpValue": "<
|
|
6523
|
+
"helpValue": "<id>",
|
|
6404
6524
|
"multiple": false,
|
|
6405
6525
|
"type": "option"
|
|
6406
6526
|
},
|
|
6407
|
-
"
|
|
6408
|
-
"
|
|
6409
|
-
|
|
6527
|
+
"project": {
|
|
6528
|
+
"aliases": [
|
|
6529
|
+
"project-id"
|
|
6530
|
+
],
|
|
6531
|
+
"char": "p",
|
|
6532
|
+
"deprecateAliases": true,
|
|
6533
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
6534
|
+
"helpGroup": "OVERRIDE",
|
|
6535
|
+
"name": "project",
|
|
6410
6536
|
"hasDynamicHelp": false,
|
|
6537
|
+
"helpValue": "<id>",
|
|
6411
6538
|
"multiple": false,
|
|
6412
6539
|
"type": "option"
|
|
6413
6540
|
},
|
|
6414
|
-
"
|
|
6415
|
-
"
|
|
6416
|
-
"
|
|
6541
|
+
"yes": {
|
|
6542
|
+
"char": "y",
|
|
6543
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
6544
|
+
"name": "yes",
|
|
6417
6545
|
"allowNo": false,
|
|
6418
6546
|
"type": "boolean"
|
|
6419
|
-
},
|
|
6420
|
-
"watch-patterns": {
|
|
6421
|
-
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
6422
|
-
"name": "watch-patterns",
|
|
6423
|
-
"hasDynamicHelp": false,
|
|
6424
|
-
"helpValue": "<glob>",
|
|
6425
|
-
"multiple": true,
|
|
6426
|
-
"type": "option"
|
|
6427
|
-
},
|
|
6428
|
-
"workspace": {
|
|
6429
|
-
"description": "The name of the workspace to generate a schema for",
|
|
6430
|
-
"name": "workspace",
|
|
6431
|
-
"hasDynamicHelp": false,
|
|
6432
|
-
"helpValue": "<name>",
|
|
6433
|
-
"multiple": false,
|
|
6434
|
-
"type": "option"
|
|
6435
6547
|
}
|
|
6436
6548
|
},
|
|
6437
6549
|
"hasDynamicHelp": false,
|
|
6438
6550
|
"hiddenAliases": [
|
|
6439
|
-
"
|
|
6551
|
+
"token:delete"
|
|
6440
6552
|
],
|
|
6441
|
-
"id": "
|
|
6553
|
+
"id": "tokens:delete",
|
|
6442
6554
|
"pluginAlias": "@sanity/cli",
|
|
6443
6555
|
"pluginName": "@sanity/cli",
|
|
6444
6556
|
"pluginType": "core",
|
|
6445
6557
|
"strict": true,
|
|
6446
|
-
"telemetry": {
|
|
6447
|
-
"redactedFlags": [
|
|
6448
|
-
{
|
|
6449
|
-
"canonical": "--config-path",
|
|
6450
|
-
"flags": [
|
|
6451
|
-
"--config-path"
|
|
6452
|
-
]
|
|
6453
|
-
},
|
|
6454
|
-
{
|
|
6455
|
-
"canonical": "--path",
|
|
6456
|
-
"flags": [
|
|
6457
|
-
"--path"
|
|
6458
|
-
]
|
|
6459
|
-
},
|
|
6460
|
-
{
|
|
6461
|
-
"canonical": "--watch-patterns",
|
|
6462
|
-
"flags": [
|
|
6463
|
-
"--watch-patterns"
|
|
6464
|
-
]
|
|
6465
|
-
}
|
|
6466
|
-
]
|
|
6467
|
-
},
|
|
6468
6558
|
"isESM": true,
|
|
6469
6559
|
"relativePath": [
|
|
6470
6560
|
"dist",
|
|
6471
6561
|
"commands",
|
|
6472
|
-
"
|
|
6473
|
-
"
|
|
6562
|
+
"tokens",
|
|
6563
|
+
"delete.js"
|
|
6474
6564
|
]
|
|
6475
6565
|
},
|
|
6476
|
-
"
|
|
6566
|
+
"tokens:list": {
|
|
6477
6567
|
"aliases": [],
|
|
6478
6568
|
"args": {},
|
|
6479
|
-
"description": "List
|
|
6569
|
+
"description": "List API tokens for a project or organization",
|
|
6480
6570
|
"examples": [
|
|
6481
6571
|
{
|
|
6482
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6483
|
-
"description": "List
|
|
6572
|
+
"command": "<%= config.bin %> <%= command.id %> --organization org123",
|
|
6573
|
+
"description": "List tokens managed by an organization"
|
|
6484
6574
|
},
|
|
6485
6575
|
{
|
|
6486
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6487
|
-
"description": "
|
|
6576
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6577
|
+
"description": "List tokens for the project"
|
|
6488
6578
|
},
|
|
6489
6579
|
{
|
|
6490
6580
|
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
6491
|
-
"description": "
|
|
6581
|
+
"description": "List tokens in JSON format"
|
|
6492
6582
|
},
|
|
6493
6583
|
{
|
|
6494
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6495
|
-
"description": "
|
|
6584
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6585
|
+
"description": "List tokens for a specific project"
|
|
6496
6586
|
}
|
|
6497
6587
|
],
|
|
6498
6588
|
"flags": {
|
|
@@ -6503,139 +6593,103 @@
|
|
|
6503
6593
|
"allowNo": false,
|
|
6504
6594
|
"type": "boolean"
|
|
6505
6595
|
},
|
|
6506
|
-
"
|
|
6507
|
-
"description": "
|
|
6508
|
-
"
|
|
6509
|
-
|
|
6510
|
-
|
|
6511
|
-
"
|
|
6512
|
-
},
|
|
6513
|
-
"id": {
|
|
6514
|
-
"description": "Fetch a single schema by id",
|
|
6515
|
-
"name": "id",
|
|
6596
|
+
"organization": {
|
|
6597
|
+
"description": "List tokens managed by this organization",
|
|
6598
|
+
"exclusive": [
|
|
6599
|
+
"project"
|
|
6600
|
+
],
|
|
6601
|
+
"name": "organization",
|
|
6516
6602
|
"hasDynamicHelp": false,
|
|
6517
|
-
"helpValue": "<
|
|
6603
|
+
"helpValue": "<id>",
|
|
6518
6604
|
"multiple": false,
|
|
6519
6605
|
"type": "option"
|
|
6520
6606
|
},
|
|
6521
|
-
"
|
|
6522
|
-
"
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
"
|
|
6607
|
+
"project": {
|
|
6608
|
+
"aliases": [
|
|
6609
|
+
"project-id"
|
|
6610
|
+
],
|
|
6611
|
+
"char": "p",
|
|
6612
|
+
"deprecateAliases": true,
|
|
6613
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
6614
|
+
"helpGroup": "OVERRIDE",
|
|
6615
|
+
"name": "project",
|
|
6526
6616
|
"hasDynamicHelp": false,
|
|
6527
|
-
"helpValue": "<
|
|
6617
|
+
"helpValue": "<id>",
|
|
6528
6618
|
"multiple": false,
|
|
6529
6619
|
"type": "option"
|
|
6530
6620
|
}
|
|
6531
6621
|
},
|
|
6532
6622
|
"hasDynamicHelp": false,
|
|
6533
6623
|
"hiddenAliases": [
|
|
6534
|
-
"
|
|
6624
|
+
"token:list"
|
|
6535
6625
|
],
|
|
6536
|
-
"id": "
|
|
6626
|
+
"id": "tokens:list",
|
|
6537
6627
|
"pluginAlias": "@sanity/cli",
|
|
6538
6628
|
"pluginName": "@sanity/cli",
|
|
6539
6629
|
"pluginType": "core",
|
|
6540
6630
|
"strict": true,
|
|
6541
6631
|
"enableJsonFlag": true,
|
|
6542
|
-
"telemetry": {
|
|
6543
|
-
"redactedFlags": [
|
|
6544
|
-
{
|
|
6545
|
-
"canonical": "--manifest-dir",
|
|
6546
|
-
"flags": [
|
|
6547
|
-
"--manifest-dir"
|
|
6548
|
-
]
|
|
6549
|
-
}
|
|
6550
|
-
]
|
|
6551
|
-
},
|
|
6552
6632
|
"isESM": true,
|
|
6553
6633
|
"relativePath": [
|
|
6554
6634
|
"dist",
|
|
6555
6635
|
"commands",
|
|
6556
|
-
"
|
|
6636
|
+
"tokens",
|
|
6557
6637
|
"list.js"
|
|
6558
6638
|
]
|
|
6559
6639
|
},
|
|
6560
|
-
"
|
|
6640
|
+
"tokens:rotate": {
|
|
6561
6641
|
"aliases": [],
|
|
6562
6642
|
"args": {},
|
|
6563
|
-
"description": "
|
|
6643
|
+
"description": "Rotate an API token, replacing its secret with a new one",
|
|
6564
6644
|
"examples": [
|
|
6565
6645
|
{
|
|
6566
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6567
|
-
"description": "
|
|
6568
|
-
},
|
|
6569
|
-
{
|
|
6570
|
-
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
6571
|
-
"description": "Save the results of the report into a file"
|
|
6646
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
|
|
6647
|
+
"description": "Rotate the token piped on standard input"
|
|
6572
6648
|
},
|
|
6573
6649
|
{
|
|
6574
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6575
|
-
"description": "
|
|
6650
|
+
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
6651
|
+
"description": "Rotate a token read from a file"
|
|
6576
6652
|
},
|
|
6577
6653
|
{
|
|
6578
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
6579
|
-
"description": "
|
|
6654
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
|
|
6655
|
+
"description": "Output the rotated token as JSON"
|
|
6580
6656
|
}
|
|
6581
6657
|
],
|
|
6582
6658
|
"flags": {
|
|
6583
|
-
"
|
|
6584
|
-
"description": "
|
|
6585
|
-
"helpGroup": "
|
|
6586
|
-
"name": "
|
|
6587
|
-
"
|
|
6588
|
-
"
|
|
6589
|
-
"type": "option"
|
|
6590
|
-
},
|
|
6591
|
-
"format": {
|
|
6592
|
-
"description": "The output format used to print schema errors and warnings",
|
|
6593
|
-
"name": "format",
|
|
6594
|
-
"default": "pretty",
|
|
6595
|
-
"hasDynamicHelp": false,
|
|
6596
|
-
"multiple": false,
|
|
6597
|
-
"options": [
|
|
6598
|
-
"pretty",
|
|
6599
|
-
"ndjson",
|
|
6600
|
-
"json"
|
|
6601
|
-
],
|
|
6602
|
-
"type": "option"
|
|
6603
|
-
},
|
|
6604
|
-
"level": {
|
|
6605
|
-
"description": "The minimum level reported out",
|
|
6606
|
-
"name": "level",
|
|
6607
|
-
"default": "warning",
|
|
6608
|
-
"hasDynamicHelp": false,
|
|
6609
|
-
"multiple": false,
|
|
6610
|
-
"options": [
|
|
6611
|
-
"error",
|
|
6612
|
-
"warning"
|
|
6613
|
-
],
|
|
6614
|
-
"type": "option"
|
|
6659
|
+
"json": {
|
|
6660
|
+
"description": "Format output as json.",
|
|
6661
|
+
"helpGroup": "GLOBAL",
|
|
6662
|
+
"name": "json",
|
|
6663
|
+
"allowNo": false,
|
|
6664
|
+
"type": "boolean"
|
|
6615
6665
|
},
|
|
6616
|
-
"
|
|
6617
|
-
"
|
|
6618
|
-
"
|
|
6666
|
+
"token": {
|
|
6667
|
+
"char": "t",
|
|
6668
|
+
"description": "Token to rotate (prefer standard input to keep it out of shell history)",
|
|
6669
|
+
"name": "token",
|
|
6619
6670
|
"hasDynamicHelp": false,
|
|
6671
|
+
"helpValue": "<token>",
|
|
6620
6672
|
"multiple": false,
|
|
6621
6673
|
"type": "option"
|
|
6622
6674
|
}
|
|
6623
6675
|
},
|
|
6624
6676
|
"hasDynamicHelp": false,
|
|
6625
6677
|
"hiddenAliases": [
|
|
6626
|
-
"
|
|
6678
|
+
"token:rotate"
|
|
6627
6679
|
],
|
|
6628
|
-
"id": "
|
|
6680
|
+
"id": "tokens:rotate",
|
|
6629
6681
|
"pluginAlias": "@sanity/cli",
|
|
6630
6682
|
"pluginName": "@sanity/cli",
|
|
6631
6683
|
"pluginType": "core",
|
|
6632
6684
|
"strict": true,
|
|
6685
|
+
"enableJsonFlag": true,
|
|
6633
6686
|
"telemetry": {
|
|
6634
6687
|
"redactedFlags": [
|
|
6635
6688
|
{
|
|
6636
|
-
"canonical": "--
|
|
6689
|
+
"canonical": "--token",
|
|
6637
6690
|
"flags": [
|
|
6638
|
-
"--
|
|
6691
|
+
"--token",
|
|
6692
|
+
"-t"
|
|
6639
6693
|
]
|
|
6640
6694
|
}
|
|
6641
6695
|
]
|
|
@@ -6644,54 +6698,40 @@
|
|
|
6644
6698
|
"relativePath": [
|
|
6645
6699
|
"dist",
|
|
6646
6700
|
"commands",
|
|
6647
|
-
"
|
|
6648
|
-
"
|
|
6701
|
+
"tokens",
|
|
6702
|
+
"rotate.js"
|
|
6649
6703
|
]
|
|
6650
6704
|
},
|
|
6651
|
-
"
|
|
6705
|
+
"typegen:generate": {
|
|
6652
6706
|
"aliases": [],
|
|
6653
6707
|
"args": {},
|
|
6654
|
-
"description": "
|
|
6708
|
+
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
6655
6709
|
"examples": [
|
|
6656
6710
|
{
|
|
6657
6711
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
6658
|
-
"description": "
|
|
6659
|
-
},
|
|
6660
|
-
{
|
|
6661
|
-
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
6662
|
-
"description": "Create an organization named \"Acme Corp\""
|
|
6663
|
-
},
|
|
6664
|
-
{
|
|
6665
|
-
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
6666
|
-
"description": "Create an organization with a default member role"
|
|
6712
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6667
6713
|
}
|
|
6668
6714
|
],
|
|
6669
6715
|
"flags": {
|
|
6670
|
-
"
|
|
6671
|
-
"description": "Default
|
|
6672
|
-
"name": "
|
|
6673
|
-
"required": false,
|
|
6716
|
+
"config-path": {
|
|
6717
|
+
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
6718
|
+
"name": "config-path",
|
|
6674
6719
|
"hasDynamicHelp": false,
|
|
6675
6720
|
"multiple": false,
|
|
6676
6721
|
"type": "option"
|
|
6677
6722
|
},
|
|
6678
|
-
"
|
|
6679
|
-
"description": "
|
|
6680
|
-
"name": "
|
|
6681
|
-
"
|
|
6682
|
-
"
|
|
6683
|
-
"type": "option"
|
|
6723
|
+
"watch": {
|
|
6724
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
6725
|
+
"name": "watch",
|
|
6726
|
+
"allowNo": false,
|
|
6727
|
+
"type": "boolean"
|
|
6684
6728
|
}
|
|
6685
6729
|
},
|
|
6686
6730
|
"hasDynamicHelp": false,
|
|
6687
6731
|
"hiddenAliases": [
|
|
6688
|
-
"
|
|
6689
|
-
"organisations:create",
|
|
6690
|
-
"organisation:create",
|
|
6691
|
-
"org:create",
|
|
6692
|
-
"orgs:create"
|
|
6732
|
+
"typegen:generate"
|
|
6693
6733
|
],
|
|
6694
|
-
"id": "
|
|
6734
|
+
"id": "typegen:generate",
|
|
6695
6735
|
"pluginAlias": "@sanity/cli",
|
|
6696
6736
|
"pluginName": "@sanity/cli",
|
|
6697
6737
|
"pluginType": "core",
|
|
@@ -6699,9 +6739,9 @@
|
|
|
6699
6739
|
"telemetry": {
|
|
6700
6740
|
"redactedFlags": [
|
|
6701
6741
|
{
|
|
6702
|
-
"canonical": "--
|
|
6742
|
+
"canonical": "--config-path",
|
|
6703
6743
|
"flags": [
|
|
6704
|
-
"--
|
|
6744
|
+
"--config-path"
|
|
6705
6745
|
]
|
|
6706
6746
|
}
|
|
6707
6747
|
]
|
|
@@ -6710,118 +6750,66 @@
|
|
|
6710
6750
|
"relativePath": [
|
|
6711
6751
|
"dist",
|
|
6712
6752
|
"commands",
|
|
6713
|
-
"
|
|
6714
|
-
"
|
|
6753
|
+
"typegen",
|
|
6754
|
+
"generate.js"
|
|
6715
6755
|
]
|
|
6716
6756
|
},
|
|
6717
|
-
"
|
|
6757
|
+
"users:invite": {
|
|
6718
6758
|
"aliases": [],
|
|
6719
6759
|
"args": {
|
|
6720
|
-
"
|
|
6721
|
-
"description": "
|
|
6722
|
-
"name": "
|
|
6723
|
-
"required":
|
|
6760
|
+
"email": {
|
|
6761
|
+
"description": "Email address to invite",
|
|
6762
|
+
"name": "email",
|
|
6763
|
+
"required": false
|
|
6724
6764
|
}
|
|
6725
6765
|
},
|
|
6726
|
-
"description": "
|
|
6766
|
+
"description": "Invite a new user to the project",
|
|
6727
6767
|
"examples": [
|
|
6728
6768
|
{
|
|
6729
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6730
|
-
"description": "
|
|
6769
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6770
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
6731
6771
|
},
|
|
6732
6772
|
{
|
|
6733
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6734
|
-
"description": "
|
|
6735
|
-
}
|
|
6736
|
-
],
|
|
6737
|
-
"flags": {
|
|
6738
|
-
"force": {
|
|
6739
|
-
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
6740
|
-
"name": "force",
|
|
6741
|
-
"required": false,
|
|
6742
|
-
"allowNo": false,
|
|
6743
|
-
"type": "boolean"
|
|
6744
|
-
}
|
|
6745
|
-
},
|
|
6746
|
-
"hasDynamicHelp": false,
|
|
6747
|
-
"hiddenAliases": [
|
|
6748
|
-
"organization:delete",
|
|
6749
|
-
"organisations:delete",
|
|
6750
|
-
"organisation:delete",
|
|
6751
|
-
"org:delete",
|
|
6752
|
-
"orgs:delete"
|
|
6753
|
-
],
|
|
6754
|
-
"id": "organizations:delete",
|
|
6755
|
-
"pluginAlias": "@sanity/cli",
|
|
6756
|
-
"pluginName": "@sanity/cli",
|
|
6757
|
-
"pluginType": "core",
|
|
6758
|
-
"strict": true,
|
|
6759
|
-
"isESM": true,
|
|
6760
|
-
"relativePath": [
|
|
6761
|
-
"dist",
|
|
6762
|
-
"commands",
|
|
6763
|
-
"organizations",
|
|
6764
|
-
"delete.js"
|
|
6765
|
-
]
|
|
6766
|
-
},
|
|
6767
|
-
"organizations:get": {
|
|
6768
|
-
"aliases": [],
|
|
6769
|
-
"args": {
|
|
6770
|
-
"organizationId": {
|
|
6771
|
-
"description": "Organization ID",
|
|
6772
|
-
"name": "organizationId",
|
|
6773
|
-
"required": true
|
|
6774
|
-
}
|
|
6775
|
-
},
|
|
6776
|
-
"description": "Get details of an organization",
|
|
6777
|
-
"examples": [
|
|
6773
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6774
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
6775
|
+
},
|
|
6778
6776
|
{
|
|
6779
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6780
|
-
"description": "
|
|
6777
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
6778
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
6779
|
+
},
|
|
6780
|
+
{
|
|
6781
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project abc123",
|
|
6782
|
+
"description": "Invite a user to a specific project"
|
|
6781
6783
|
}
|
|
6782
6784
|
],
|
|
6783
|
-
"flags": {
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
},
|
|
6805
|
-
"organizations:list": {
|
|
6806
|
-
"aliases": [],
|
|
6807
|
-
"args": {},
|
|
6808
|
-
"description": "List organizations you are a member of",
|
|
6809
|
-
"examples": [
|
|
6810
|
-
{
|
|
6811
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6812
|
-
"description": "List all your organizations"
|
|
6785
|
+
"flags": {
|
|
6786
|
+
"project": {
|
|
6787
|
+
"aliases": [
|
|
6788
|
+
"project-id"
|
|
6789
|
+
],
|
|
6790
|
+
"char": "p",
|
|
6791
|
+
"deprecateAliases": true,
|
|
6792
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6793
|
+
"helpGroup": "OVERRIDE",
|
|
6794
|
+
"name": "project",
|
|
6795
|
+
"hasDynamicHelp": false,
|
|
6796
|
+
"helpValue": "<id>",
|
|
6797
|
+
"multiple": false,
|
|
6798
|
+
"type": "option"
|
|
6799
|
+
},
|
|
6800
|
+
"role": {
|
|
6801
|
+
"description": "Role to invite the user as",
|
|
6802
|
+
"name": "role",
|
|
6803
|
+
"hasDynamicHelp": false,
|
|
6804
|
+
"multiple": false,
|
|
6805
|
+
"type": "option"
|
|
6813
6806
|
}
|
|
6814
|
-
|
|
6815
|
-
"flags": {},
|
|
6807
|
+
},
|
|
6816
6808
|
"hasDynamicHelp": false,
|
|
6817
6809
|
"hiddenAliases": [
|
|
6818
|
-
"
|
|
6819
|
-
"organisations:list",
|
|
6820
|
-
"organisation:list",
|
|
6821
|
-
"org:list",
|
|
6822
|
-
"orgs:list"
|
|
6810
|
+
"user:invite"
|
|
6823
6811
|
],
|
|
6824
|
-
"id": "
|
|
6812
|
+
"id": "users:invite",
|
|
6825
6813
|
"pluginAlias": "@sanity/cli",
|
|
6826
6814
|
"pluginName": "@sanity/cli",
|
|
6827
6815
|
"pluginType": "core",
|
|
@@ -6830,89 +6818,101 @@
|
|
|
6830
6818
|
"relativePath": [
|
|
6831
6819
|
"dist",
|
|
6832
6820
|
"commands",
|
|
6833
|
-
"
|
|
6834
|
-
"
|
|
6821
|
+
"users",
|
|
6822
|
+
"invite.js"
|
|
6835
6823
|
]
|
|
6836
6824
|
},
|
|
6837
|
-
"
|
|
6825
|
+
"users:list": {
|
|
6838
6826
|
"aliases": [],
|
|
6839
|
-
"args": {
|
|
6840
|
-
|
|
6841
|
-
"description": "Organization ID",
|
|
6842
|
-
"name": "organizationId",
|
|
6843
|
-
"required": true
|
|
6844
|
-
}
|
|
6845
|
-
},
|
|
6846
|
-
"description": "Update an organization",
|
|
6827
|
+
"args": {},
|
|
6828
|
+
"description": "List project members",
|
|
6847
6829
|
"examples": [
|
|
6848
6830
|
{
|
|
6849
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6850
|
-
"description": "
|
|
6831
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6832
|
+
"description": "List all users of the project"
|
|
6851
6833
|
},
|
|
6852
6834
|
{
|
|
6853
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6854
|
-
"description": "
|
|
6835
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6836
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6855
6837
|
},
|
|
6856
6838
|
{
|
|
6857
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6858
|
-
"description": "
|
|
6839
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
6840
|
+
"description": "List all users, sorted by role"
|
|
6841
|
+
},
|
|
6842
|
+
{
|
|
6843
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6844
|
+
"description": "List users for a specific project"
|
|
6859
6845
|
}
|
|
6860
6846
|
],
|
|
6861
6847
|
"flags": {
|
|
6862
|
-
"
|
|
6863
|
-
"
|
|
6864
|
-
|
|
6865
|
-
|
|
6848
|
+
"project": {
|
|
6849
|
+
"aliases": [
|
|
6850
|
+
"project-id"
|
|
6851
|
+
],
|
|
6852
|
+
"char": "p",
|
|
6853
|
+
"deprecateAliases": true,
|
|
6854
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6855
|
+
"helpGroup": "OVERRIDE",
|
|
6856
|
+
"name": "project",
|
|
6866
6857
|
"hasDynamicHelp": false,
|
|
6858
|
+
"helpValue": "<id>",
|
|
6867
6859
|
"multiple": false,
|
|
6868
6860
|
"type": "option"
|
|
6869
6861
|
},
|
|
6870
|
-
"
|
|
6871
|
-
"description": "
|
|
6872
|
-
"name": "
|
|
6873
|
-
"
|
|
6862
|
+
"invitations": {
|
|
6863
|
+
"description": "Includes or excludes pending invitations",
|
|
6864
|
+
"name": "invitations",
|
|
6865
|
+
"allowNo": true,
|
|
6866
|
+
"type": "boolean"
|
|
6867
|
+
},
|
|
6868
|
+
"order": {
|
|
6869
|
+
"description": "Sort output ascending/descending",
|
|
6870
|
+
"name": "order",
|
|
6871
|
+
"default": "asc",
|
|
6874
6872
|
"hasDynamicHelp": false,
|
|
6875
6873
|
"multiple": false,
|
|
6874
|
+
"options": [
|
|
6875
|
+
"asc",
|
|
6876
|
+
"desc"
|
|
6877
|
+
],
|
|
6876
6878
|
"type": "option"
|
|
6877
6879
|
},
|
|
6878
|
-
"
|
|
6879
|
-
"description": "
|
|
6880
|
-
"name": "
|
|
6881
|
-
"
|
|
6880
|
+
"robots": {
|
|
6881
|
+
"description": "Includes or excludes robots (token users)",
|
|
6882
|
+
"name": "robots",
|
|
6883
|
+
"allowNo": true,
|
|
6884
|
+
"type": "boolean"
|
|
6885
|
+
},
|
|
6886
|
+
"sort": {
|
|
6887
|
+
"description": "Sort users by specified column",
|
|
6888
|
+
"name": "sort",
|
|
6889
|
+
"default": "date",
|
|
6882
6890
|
"hasDynamicHelp": false,
|
|
6883
6891
|
"multiple": false,
|
|
6892
|
+
"options": [
|
|
6893
|
+
"id",
|
|
6894
|
+
"name",
|
|
6895
|
+
"role",
|
|
6896
|
+
"date"
|
|
6897
|
+
],
|
|
6884
6898
|
"type": "option"
|
|
6885
6899
|
}
|
|
6886
6900
|
},
|
|
6887
6901
|
"hasDynamicHelp": false,
|
|
6888
6902
|
"hiddenAliases": [
|
|
6889
|
-
"
|
|
6890
|
-
"organisations:update",
|
|
6891
|
-
"organisation:update",
|
|
6892
|
-
"org:update",
|
|
6893
|
-
"orgs:update"
|
|
6903
|
+
"user:list"
|
|
6894
6904
|
],
|
|
6895
|
-
"id": "
|
|
6905
|
+
"id": "users:list",
|
|
6896
6906
|
"pluginAlias": "@sanity/cli",
|
|
6897
6907
|
"pluginName": "@sanity/cli",
|
|
6898
6908
|
"pluginType": "core",
|
|
6899
6909
|
"strict": true,
|
|
6900
|
-
"telemetry": {
|
|
6901
|
-
"redactedFlags": [
|
|
6902
|
-
{
|
|
6903
|
-
"canonical": "--name",
|
|
6904
|
-
"flags": [
|
|
6905
|
-
"--name"
|
|
6906
|
-
]
|
|
6907
|
-
}
|
|
6908
|
-
]
|
|
6909
|
-
},
|
|
6910
6910
|
"isESM": true,
|
|
6911
6911
|
"relativePath": [
|
|
6912
6912
|
"dist",
|
|
6913
6913
|
"commands",
|
|
6914
|
-
"
|
|
6915
|
-
"
|
|
6914
|
+
"users",
|
|
6915
|
+
"list.js"
|
|
6916
6916
|
]
|
|
6917
6917
|
},
|
|
6918
6918
|
"context:documents:content": {
|
|
@@ -8110,67 +8110,6 @@
|
|
|
8110
8110
|
"resolve.js"
|
|
8111
8111
|
]
|
|
8112
8112
|
},
|
|
8113
|
-
"context:jobs:get": {
|
|
8114
|
-
"aliases": [],
|
|
8115
|
-
"args": {
|
|
8116
|
-
"knowledgeBaseId": {
|
|
8117
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
8118
|
-
"name": "knowledgeBaseId",
|
|
8119
|
-
"required": true
|
|
8120
|
-
},
|
|
8121
|
-
"jobId": {
|
|
8122
|
-
"description": "The job ID returned by the endpoint that started the work.",
|
|
8123
|
-
"name": "jobId",
|
|
8124
|
-
"required": true
|
|
8125
|
-
}
|
|
8126
|
-
},
|
|
8127
|
-
"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.",
|
|
8128
|
-
"examples": [
|
|
8129
|
-
{
|
|
8130
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
8131
|
-
"description": "Get a job"
|
|
8132
|
-
},
|
|
8133
|
-
{
|
|
8134
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
8135
|
-
"description": "Get a job, as JSON"
|
|
8136
|
-
}
|
|
8137
|
-
],
|
|
8138
|
-
"flags": {
|
|
8139
|
-
"json": {
|
|
8140
|
-
"description": "Format output as json.",
|
|
8141
|
-
"helpGroup": "GLOBAL",
|
|
8142
|
-
"name": "json",
|
|
8143
|
-
"allowNo": false,
|
|
8144
|
-
"type": "boolean"
|
|
8145
|
-
},
|
|
8146
|
-
"watch": {
|
|
8147
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
8148
|
-
"name": "watch",
|
|
8149
|
-
"allowNo": false,
|
|
8150
|
-
"type": "boolean"
|
|
8151
|
-
}
|
|
8152
|
-
},
|
|
8153
|
-
"hasDynamicHelp": false,
|
|
8154
|
-
"hiddenAliases": [],
|
|
8155
|
-
"id": "context:jobs:get",
|
|
8156
|
-
"pluginAlias": "@sanity/cli",
|
|
8157
|
-
"pluginName": "@sanity/cli",
|
|
8158
|
-
"pluginType": "core",
|
|
8159
|
-
"strict": true,
|
|
8160
|
-
"summary": "Get a job",
|
|
8161
|
-
"enableJsonFlag": true,
|
|
8162
|
-
"telemetry": {
|
|
8163
|
-
"redactedFlags": []
|
|
8164
|
-
},
|
|
8165
|
-
"isESM": true,
|
|
8166
|
-
"relativePath": [
|
|
8167
|
-
"dist",
|
|
8168
|
-
"commands",
|
|
8169
|
-
"context",
|
|
8170
|
-
"jobs",
|
|
8171
|
-
"get.js"
|
|
8172
|
-
]
|
|
8173
|
-
},
|
|
8174
8113
|
"context:mcp:create": {
|
|
8175
8114
|
"aliases": [],
|
|
8176
8115
|
"args": {
|
|
@@ -9544,6 +9483,67 @@
|
|
|
9544
9483
|
"upload.js"
|
|
9545
9484
|
]
|
|
9546
9485
|
},
|
|
9486
|
+
"context:jobs:get": {
|
|
9487
|
+
"aliases": [],
|
|
9488
|
+
"args": {
|
|
9489
|
+
"knowledgeBaseId": {
|
|
9490
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
9491
|
+
"name": "knowledgeBaseId",
|
|
9492
|
+
"required": true
|
|
9493
|
+
},
|
|
9494
|
+
"jobId": {
|
|
9495
|
+
"description": "The job ID returned by the endpoint that started the work.",
|
|
9496
|
+
"name": "jobId",
|
|
9497
|
+
"required": true
|
|
9498
|
+
}
|
|
9499
|
+
},
|
|
9500
|
+
"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.",
|
|
9501
|
+
"examples": [
|
|
9502
|
+
{
|
|
9503
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
9504
|
+
"description": "Get a job"
|
|
9505
|
+
},
|
|
9506
|
+
{
|
|
9507
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
9508
|
+
"description": "Get a job, as JSON"
|
|
9509
|
+
}
|
|
9510
|
+
],
|
|
9511
|
+
"flags": {
|
|
9512
|
+
"json": {
|
|
9513
|
+
"description": "Format output as json.",
|
|
9514
|
+
"helpGroup": "GLOBAL",
|
|
9515
|
+
"name": "json",
|
|
9516
|
+
"allowNo": false,
|
|
9517
|
+
"type": "boolean"
|
|
9518
|
+
},
|
|
9519
|
+
"watch": {
|
|
9520
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
9521
|
+
"name": "watch",
|
|
9522
|
+
"allowNo": false,
|
|
9523
|
+
"type": "boolean"
|
|
9524
|
+
}
|
|
9525
|
+
},
|
|
9526
|
+
"hasDynamicHelp": false,
|
|
9527
|
+
"hiddenAliases": [],
|
|
9528
|
+
"id": "context:jobs:get",
|
|
9529
|
+
"pluginAlias": "@sanity/cli",
|
|
9530
|
+
"pluginName": "@sanity/cli",
|
|
9531
|
+
"pluginType": "core",
|
|
9532
|
+
"strict": true,
|
|
9533
|
+
"summary": "Get a job",
|
|
9534
|
+
"enableJsonFlag": true,
|
|
9535
|
+
"telemetry": {
|
|
9536
|
+
"redactedFlags": []
|
|
9537
|
+
},
|
|
9538
|
+
"isESM": true,
|
|
9539
|
+
"relativePath": [
|
|
9540
|
+
"dist",
|
|
9541
|
+
"commands",
|
|
9542
|
+
"context",
|
|
9543
|
+
"jobs",
|
|
9544
|
+
"get.js"
|
|
9545
|
+
]
|
|
9546
|
+
},
|
|
9547
9547
|
"datasets:alias:create": {
|
|
9548
9548
|
"aliases": [],
|
|
9549
9549
|
"args": {
|
|
@@ -10351,5 +10351,5 @@
|
|
|
10351
10351
|
]
|
|
10352
10352
|
}
|
|
10353
10353
|
},
|
|
10354
|
-
"version": "8.28.
|
|
10354
|
+
"version": "8.28.2"
|
|
10355
10355
|
}
|