@sanity/cli 6.0.0-alpha.14 → 6.0.0-alpha.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +96 -96
- package/dist/actions/build/buildStaticFiles.js +3 -2
- package/dist/actions/build/buildStaticFiles.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +16 -4
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +64 -6
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/writeMCPConfig.js +27 -15
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js +1 -1
- package/dist/actions/versions/tryFindLatestVersion.js.map +1 -1
- package/dist/commands/mcp/configure.js +1 -1
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/util/resolveLatestVersions.js +2 -2
- package/dist/util/resolveLatestVersions.js.map +1 -1
- package/dist/util/update/fetchLatestVersion.js +1 -1
- package/dist/util/update/fetchLatestVersion.js.map +1 -1
- package/oclif.manifest.json +353 -353
- package/package.json +5 -4
package/oclif.manifest.json
CHANGED
|
@@ -2206,6 +2206,170 @@
|
|
|
2206
2206
|
"validate.js"
|
|
2207
2207
|
]
|
|
2208
2208
|
},
|
|
2209
|
+
"hook:attempt": {
|
|
2210
|
+
"aliases": [],
|
|
2211
|
+
"args": {
|
|
2212
|
+
"attemptId": {
|
|
2213
|
+
"description": "The delivery attempt ID to get details for",
|
|
2214
|
+
"name": "attemptId",
|
|
2215
|
+
"required": true
|
|
2216
|
+
}
|
|
2217
|
+
},
|
|
2218
|
+
"description": "Print details of a given webhook delivery attempt",
|
|
2219
|
+
"examples": [
|
|
2220
|
+
{
|
|
2221
|
+
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2222
|
+
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2223
|
+
}
|
|
2224
|
+
],
|
|
2225
|
+
"flags": {},
|
|
2226
|
+
"hasDynamicHelp": false,
|
|
2227
|
+
"hiddenAliases": [],
|
|
2228
|
+
"id": "hook:attempt",
|
|
2229
|
+
"pluginAlias": "@sanity/cli",
|
|
2230
|
+
"pluginName": "@sanity/cli",
|
|
2231
|
+
"pluginType": "core",
|
|
2232
|
+
"strict": true,
|
|
2233
|
+
"isESM": true,
|
|
2234
|
+
"relativePath": [
|
|
2235
|
+
"dist",
|
|
2236
|
+
"commands",
|
|
2237
|
+
"hook",
|
|
2238
|
+
"attempt.js"
|
|
2239
|
+
]
|
|
2240
|
+
},
|
|
2241
|
+
"hook:create": {
|
|
2242
|
+
"aliases": [],
|
|
2243
|
+
"args": {},
|
|
2244
|
+
"description": "Create a new webhook for the current project",
|
|
2245
|
+
"examples": [
|
|
2246
|
+
{
|
|
2247
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2248
|
+
"description": "Create a new webhook for the current project"
|
|
2249
|
+
}
|
|
2250
|
+
],
|
|
2251
|
+
"flags": {},
|
|
2252
|
+
"hasDynamicHelp": false,
|
|
2253
|
+
"hiddenAliases": [],
|
|
2254
|
+
"id": "hook:create",
|
|
2255
|
+
"pluginAlias": "@sanity/cli",
|
|
2256
|
+
"pluginName": "@sanity/cli",
|
|
2257
|
+
"pluginType": "core",
|
|
2258
|
+
"strict": true,
|
|
2259
|
+
"isESM": true,
|
|
2260
|
+
"relativePath": [
|
|
2261
|
+
"dist",
|
|
2262
|
+
"commands",
|
|
2263
|
+
"hook",
|
|
2264
|
+
"create.js"
|
|
2265
|
+
]
|
|
2266
|
+
},
|
|
2267
|
+
"hook:delete": {
|
|
2268
|
+
"aliases": [],
|
|
2269
|
+
"args": {
|
|
2270
|
+
"name": {
|
|
2271
|
+
"description": "Name of hook to delete (will prompt if not provided)",
|
|
2272
|
+
"name": "name",
|
|
2273
|
+
"required": false
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"description": "Delete a hook within your project",
|
|
2277
|
+
"examples": [
|
|
2278
|
+
{
|
|
2279
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2280
|
+
"description": "Interactively select and delete a hook"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2284
|
+
"description": "Delete a specific hook by name"
|
|
2285
|
+
}
|
|
2286
|
+
],
|
|
2287
|
+
"flags": {},
|
|
2288
|
+
"hasDynamicHelp": false,
|
|
2289
|
+
"hiddenAliases": [],
|
|
2290
|
+
"id": "hook:delete",
|
|
2291
|
+
"pluginAlias": "@sanity/cli",
|
|
2292
|
+
"pluginName": "@sanity/cli",
|
|
2293
|
+
"pluginType": "core",
|
|
2294
|
+
"strict": true,
|
|
2295
|
+
"isESM": true,
|
|
2296
|
+
"relativePath": [
|
|
2297
|
+
"dist",
|
|
2298
|
+
"commands",
|
|
2299
|
+
"hook",
|
|
2300
|
+
"delete.js"
|
|
2301
|
+
]
|
|
2302
|
+
},
|
|
2303
|
+
"hook:list": {
|
|
2304
|
+
"aliases": [],
|
|
2305
|
+
"args": {},
|
|
2306
|
+
"description": "List hooks for a given project",
|
|
2307
|
+
"examples": [
|
|
2308
|
+
{
|
|
2309
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2310
|
+
"description": "List hooks for a given project"
|
|
2311
|
+
}
|
|
2312
|
+
],
|
|
2313
|
+
"flags": {},
|
|
2314
|
+
"hasDynamicHelp": false,
|
|
2315
|
+
"hiddenAliases": [],
|
|
2316
|
+
"id": "hook:list",
|
|
2317
|
+
"pluginAlias": "@sanity/cli",
|
|
2318
|
+
"pluginName": "@sanity/cli",
|
|
2319
|
+
"pluginType": "core",
|
|
2320
|
+
"strict": true,
|
|
2321
|
+
"isESM": true,
|
|
2322
|
+
"relativePath": [
|
|
2323
|
+
"dist",
|
|
2324
|
+
"commands",
|
|
2325
|
+
"hook",
|
|
2326
|
+
"list.js"
|
|
2327
|
+
]
|
|
2328
|
+
},
|
|
2329
|
+
"hook:logs": {
|
|
2330
|
+
"aliases": [],
|
|
2331
|
+
"args": {
|
|
2332
|
+
"name": {
|
|
2333
|
+
"description": "Name of the hook to show logs for",
|
|
2334
|
+
"name": "name",
|
|
2335
|
+
"required": false
|
|
2336
|
+
}
|
|
2337
|
+
},
|
|
2338
|
+
"description": "List latest log entries for a given hook",
|
|
2339
|
+
"examples": [
|
|
2340
|
+
{
|
|
2341
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2342
|
+
"description": "List latest log entries for a given hook"
|
|
2343
|
+
},
|
|
2344
|
+
{
|
|
2345
|
+
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
2346
|
+
"description": "List latest log entries for a specific hook by name"
|
|
2347
|
+
}
|
|
2348
|
+
],
|
|
2349
|
+
"flags": {
|
|
2350
|
+
"detailed": {
|
|
2351
|
+
"description": "Include detailed payload and attempts",
|
|
2352
|
+
"name": "detailed",
|
|
2353
|
+
"required": false,
|
|
2354
|
+
"allowNo": false,
|
|
2355
|
+
"type": "boolean"
|
|
2356
|
+
}
|
|
2357
|
+
},
|
|
2358
|
+
"hasDynamicHelp": false,
|
|
2359
|
+
"hiddenAliases": [],
|
|
2360
|
+
"id": "hook:logs",
|
|
2361
|
+
"pluginAlias": "@sanity/cli",
|
|
2362
|
+
"pluginName": "@sanity/cli",
|
|
2363
|
+
"pluginType": "core",
|
|
2364
|
+
"strict": true,
|
|
2365
|
+
"isESM": true,
|
|
2366
|
+
"relativePath": [
|
|
2367
|
+
"dist",
|
|
2368
|
+
"commands",
|
|
2369
|
+
"hook",
|
|
2370
|
+
"logs.js"
|
|
2371
|
+
]
|
|
2372
|
+
},
|
|
2209
2373
|
"graphql:deploy": {
|
|
2210
2374
|
"aliases": [],
|
|
2211
2375
|
"args": {},
|
|
@@ -2417,170 +2581,6 @@
|
|
|
2417
2581
|
"undeploy.js"
|
|
2418
2582
|
]
|
|
2419
2583
|
},
|
|
2420
|
-
"hook:attempt": {
|
|
2421
|
-
"aliases": [],
|
|
2422
|
-
"args": {
|
|
2423
|
-
"attemptId": {
|
|
2424
|
-
"description": "The delivery attempt ID to get details for",
|
|
2425
|
-
"name": "attemptId",
|
|
2426
|
-
"required": true
|
|
2427
|
-
}
|
|
2428
|
-
},
|
|
2429
|
-
"description": "Print details of a given webhook delivery attempt",
|
|
2430
|
-
"examples": [
|
|
2431
|
-
{
|
|
2432
|
-
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2433
|
-
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2434
|
-
}
|
|
2435
|
-
],
|
|
2436
|
-
"flags": {},
|
|
2437
|
-
"hasDynamicHelp": false,
|
|
2438
|
-
"hiddenAliases": [],
|
|
2439
|
-
"id": "hook:attempt",
|
|
2440
|
-
"pluginAlias": "@sanity/cli",
|
|
2441
|
-
"pluginName": "@sanity/cli",
|
|
2442
|
-
"pluginType": "core",
|
|
2443
|
-
"strict": true,
|
|
2444
|
-
"isESM": true,
|
|
2445
|
-
"relativePath": [
|
|
2446
|
-
"dist",
|
|
2447
|
-
"commands",
|
|
2448
|
-
"hook",
|
|
2449
|
-
"attempt.js"
|
|
2450
|
-
]
|
|
2451
|
-
},
|
|
2452
|
-
"hook:create": {
|
|
2453
|
-
"aliases": [],
|
|
2454
|
-
"args": {},
|
|
2455
|
-
"description": "Create a new webhook for the current project",
|
|
2456
|
-
"examples": [
|
|
2457
|
-
{
|
|
2458
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2459
|
-
"description": "Create a new webhook for the current project"
|
|
2460
|
-
}
|
|
2461
|
-
],
|
|
2462
|
-
"flags": {},
|
|
2463
|
-
"hasDynamicHelp": false,
|
|
2464
|
-
"hiddenAliases": [],
|
|
2465
|
-
"id": "hook:create",
|
|
2466
|
-
"pluginAlias": "@sanity/cli",
|
|
2467
|
-
"pluginName": "@sanity/cli",
|
|
2468
|
-
"pluginType": "core",
|
|
2469
|
-
"strict": true,
|
|
2470
|
-
"isESM": true,
|
|
2471
|
-
"relativePath": [
|
|
2472
|
-
"dist",
|
|
2473
|
-
"commands",
|
|
2474
|
-
"hook",
|
|
2475
|
-
"create.js"
|
|
2476
|
-
]
|
|
2477
|
-
},
|
|
2478
|
-
"hook:delete": {
|
|
2479
|
-
"aliases": [],
|
|
2480
|
-
"args": {
|
|
2481
|
-
"name": {
|
|
2482
|
-
"description": "Name of hook to delete (will prompt if not provided)",
|
|
2483
|
-
"name": "name",
|
|
2484
|
-
"required": false
|
|
2485
|
-
}
|
|
2486
|
-
},
|
|
2487
|
-
"description": "Delete a hook within your project",
|
|
2488
|
-
"examples": [
|
|
2489
|
-
{
|
|
2490
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2491
|
-
"description": "Interactively select and delete a hook"
|
|
2492
|
-
},
|
|
2493
|
-
{
|
|
2494
|
-
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2495
|
-
"description": "Delete a specific hook by name"
|
|
2496
|
-
}
|
|
2497
|
-
],
|
|
2498
|
-
"flags": {},
|
|
2499
|
-
"hasDynamicHelp": false,
|
|
2500
|
-
"hiddenAliases": [],
|
|
2501
|
-
"id": "hook:delete",
|
|
2502
|
-
"pluginAlias": "@sanity/cli",
|
|
2503
|
-
"pluginName": "@sanity/cli",
|
|
2504
|
-
"pluginType": "core",
|
|
2505
|
-
"strict": true,
|
|
2506
|
-
"isESM": true,
|
|
2507
|
-
"relativePath": [
|
|
2508
|
-
"dist",
|
|
2509
|
-
"commands",
|
|
2510
|
-
"hook",
|
|
2511
|
-
"delete.js"
|
|
2512
|
-
]
|
|
2513
|
-
},
|
|
2514
|
-
"hook:list": {
|
|
2515
|
-
"aliases": [],
|
|
2516
|
-
"args": {},
|
|
2517
|
-
"description": "List hooks for a given project",
|
|
2518
|
-
"examples": [
|
|
2519
|
-
{
|
|
2520
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2521
|
-
"description": "List hooks for a given project"
|
|
2522
|
-
}
|
|
2523
|
-
],
|
|
2524
|
-
"flags": {},
|
|
2525
|
-
"hasDynamicHelp": false,
|
|
2526
|
-
"hiddenAliases": [],
|
|
2527
|
-
"id": "hook:list",
|
|
2528
|
-
"pluginAlias": "@sanity/cli",
|
|
2529
|
-
"pluginName": "@sanity/cli",
|
|
2530
|
-
"pluginType": "core",
|
|
2531
|
-
"strict": true,
|
|
2532
|
-
"isESM": true,
|
|
2533
|
-
"relativePath": [
|
|
2534
|
-
"dist",
|
|
2535
|
-
"commands",
|
|
2536
|
-
"hook",
|
|
2537
|
-
"list.js"
|
|
2538
|
-
]
|
|
2539
|
-
},
|
|
2540
|
-
"hook:logs": {
|
|
2541
|
-
"aliases": [],
|
|
2542
|
-
"args": {
|
|
2543
|
-
"name": {
|
|
2544
|
-
"description": "Name of the hook to show logs for",
|
|
2545
|
-
"name": "name",
|
|
2546
|
-
"required": false
|
|
2547
|
-
}
|
|
2548
|
-
},
|
|
2549
|
-
"description": "List latest log entries for a given hook",
|
|
2550
|
-
"examples": [
|
|
2551
|
-
{
|
|
2552
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2553
|
-
"description": "List latest log entries for a given hook"
|
|
2554
|
-
},
|
|
2555
|
-
{
|
|
2556
|
-
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
2557
|
-
"description": "List latest log entries for a specific hook by name"
|
|
2558
|
-
}
|
|
2559
|
-
],
|
|
2560
|
-
"flags": {
|
|
2561
|
-
"detailed": {
|
|
2562
|
-
"description": "Include detailed payload and attempts",
|
|
2563
|
-
"name": "detailed",
|
|
2564
|
-
"required": false,
|
|
2565
|
-
"allowNo": false,
|
|
2566
|
-
"type": "boolean"
|
|
2567
|
-
}
|
|
2568
|
-
},
|
|
2569
|
-
"hasDynamicHelp": false,
|
|
2570
|
-
"hiddenAliases": [],
|
|
2571
|
-
"id": "hook:logs",
|
|
2572
|
-
"pluginAlias": "@sanity/cli",
|
|
2573
|
-
"pluginName": "@sanity/cli",
|
|
2574
|
-
"pluginType": "core",
|
|
2575
|
-
"strict": true,
|
|
2576
|
-
"isESM": true,
|
|
2577
|
-
"relativePath": [
|
|
2578
|
-
"dist",
|
|
2579
|
-
"commands",
|
|
2580
|
-
"hook",
|
|
2581
|
-
"logs.js"
|
|
2582
|
-
]
|
|
2583
|
-
},
|
|
2584
2584
|
"manifest:extract": {
|
|
2585
2585
|
"aliases": [],
|
|
2586
2586
|
"args": {},
|
|
@@ -2623,7 +2623,7 @@
|
|
|
2623
2623
|
"mcp:configure": {
|
|
2624
2624
|
"aliases": [],
|
|
2625
2625
|
"args": {},
|
|
2626
|
-
"description": "Configure Sanity MCP server for AI editors (Cursor,
|
|
2626
|
+
"description": "Configure Sanity MCP server for AI editors (Claude Code, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, VS Code)",
|
|
2627
2627
|
"examples": [
|
|
2628
2628
|
{
|
|
2629
2629
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -2908,182 +2908,46 @@
|
|
|
2908
2908
|
"description": "Get an OpenAPI specification by slug",
|
|
2909
2909
|
"examples": [
|
|
2910
2910
|
{
|
|
2911
|
-
"command": "<%= config.bin %> <%= command.id %> query",
|
|
2912
|
-
"description": "Get a specification (YAML format, default)"
|
|
2913
|
-
},
|
|
2914
|
-
{
|
|
2915
|
-
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
2916
|
-
"description": "Get specification in JSON format"
|
|
2917
|
-
},
|
|
2918
|
-
{
|
|
2919
|
-
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
2920
|
-
"description": "Open specification in browser"
|
|
2921
|
-
},
|
|
2922
|
-
{
|
|
2923
|
-
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
2924
|
-
"description": "Pipe to file"
|
|
2925
|
-
}
|
|
2926
|
-
],
|
|
2927
|
-
"flags": {
|
|
2928
|
-
"format": {
|
|
2929
|
-
"description": "Output format: yaml (default), json",
|
|
2930
|
-
"name": "format",
|
|
2931
|
-
"default": "yaml",
|
|
2932
|
-
"hasDynamicHelp": false,
|
|
2933
|
-
"multiple": false,
|
|
2934
|
-
"options": [
|
|
2935
|
-
"yaml",
|
|
2936
|
-
"json"
|
|
2937
|
-
],
|
|
2938
|
-
"type": "option"
|
|
2939
|
-
},
|
|
2940
|
-
"web": {
|
|
2941
|
-
"char": "w",
|
|
2942
|
-
"description": "Open in web browser",
|
|
2943
|
-
"name": "web",
|
|
2944
|
-
"allowNo": false,
|
|
2945
|
-
"type": "boolean"
|
|
2946
|
-
}
|
|
2947
|
-
},
|
|
2948
|
-
"hasDynamicHelp": false,
|
|
2949
|
-
"hiddenAliases": [],
|
|
2950
|
-
"id": "openapi:get",
|
|
2951
|
-
"pluginAlias": "@sanity/cli",
|
|
2952
|
-
"pluginName": "@sanity/cli",
|
|
2953
|
-
"pluginType": "core",
|
|
2954
|
-
"strict": true,
|
|
2955
|
-
"isESM": true,
|
|
2956
|
-
"relativePath": [
|
|
2957
|
-
"dist",
|
|
2958
|
-
"commands",
|
|
2959
|
-
"openapi",
|
|
2960
|
-
"get.js"
|
|
2961
|
-
]
|
|
2962
|
-
},
|
|
2963
|
-
"openapi:list": {
|
|
2964
|
-
"aliases": [],
|
|
2965
|
-
"args": {},
|
|
2966
|
-
"description": "List all available OpenAPI specifications",
|
|
2967
|
-
"examples": [
|
|
2968
|
-
{
|
|
2969
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2970
|
-
"description": "List all available OpenAPI specs"
|
|
2971
|
-
},
|
|
2972
|
-
{
|
|
2973
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
2974
|
-
"description": "List with JSON output"
|
|
2975
|
-
},
|
|
2976
|
-
{
|
|
2977
|
-
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
2978
|
-
"description": "Open HTTP Reference in browser"
|
|
2979
|
-
}
|
|
2980
|
-
],
|
|
2981
|
-
"flags": {
|
|
2982
|
-
"json": {
|
|
2983
|
-
"description": "Output JSON",
|
|
2984
|
-
"name": "json",
|
|
2985
|
-
"allowNo": false,
|
|
2986
|
-
"type": "boolean"
|
|
2987
|
-
},
|
|
2988
|
-
"web": {
|
|
2989
|
-
"char": "w",
|
|
2990
|
-
"description": "Open HTTP Reference in web browser",
|
|
2991
|
-
"name": "web",
|
|
2992
|
-
"allowNo": false,
|
|
2993
|
-
"type": "boolean"
|
|
2994
|
-
}
|
|
2995
|
-
},
|
|
2996
|
-
"hasDynamicHelp": false,
|
|
2997
|
-
"hiddenAliases": [],
|
|
2998
|
-
"id": "openapi:list",
|
|
2999
|
-
"pluginAlias": "@sanity/cli",
|
|
3000
|
-
"pluginName": "@sanity/cli",
|
|
3001
|
-
"pluginType": "core",
|
|
3002
|
-
"strict": true,
|
|
3003
|
-
"isESM": true,
|
|
3004
|
-
"relativePath": [
|
|
3005
|
-
"dist",
|
|
3006
|
-
"commands",
|
|
3007
|
-
"openapi",
|
|
3008
|
-
"list.js"
|
|
3009
|
-
]
|
|
3010
|
-
},
|
|
3011
|
-
"projects:create": {
|
|
3012
|
-
"aliases": [],
|
|
3013
|
-
"args": {
|
|
3014
|
-
"projectName": {
|
|
3015
|
-
"description": "Name of the project to create",
|
|
3016
|
-
"name": "projectName",
|
|
3017
|
-
"required": false
|
|
3018
|
-
}
|
|
3019
|
-
},
|
|
3020
|
-
"description": "Create a new Sanity project",
|
|
3021
|
-
"examples": [
|
|
3022
|
-
{
|
|
3023
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3024
|
-
"description": "Interactively create a project"
|
|
3025
|
-
},
|
|
3026
|
-
{
|
|
3027
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3028
|
-
"description": "Create a project named \"My New Project\""
|
|
2911
|
+
"command": "<%= config.bin %> <%= command.id %> query",
|
|
2912
|
+
"description": "Get a specification (YAML format, default)"
|
|
3029
2913
|
},
|
|
3030
2914
|
{
|
|
3031
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3032
|
-
"description": "
|
|
2915
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
2916
|
+
"description": "Get specification in JSON format"
|
|
3033
2917
|
},
|
|
3034
2918
|
{
|
|
3035
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3036
|
-
"description": "
|
|
2919
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
2920
|
+
"description": "Open specification in browser"
|
|
3037
2921
|
},
|
|
3038
2922
|
{
|
|
3039
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3040
|
-
"description": "
|
|
2923
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
2924
|
+
"description": "Pipe to file"
|
|
3041
2925
|
}
|
|
3042
2926
|
],
|
|
3043
2927
|
"flags": {
|
|
3044
|
-
"
|
|
3045
|
-
"description": "
|
|
3046
|
-
"name": "
|
|
3047
|
-
"
|
|
3048
|
-
"multiple": false,
|
|
3049
|
-
"type": "option"
|
|
3050
|
-
},
|
|
3051
|
-
"dataset-visibility": {
|
|
3052
|
-
"description": "Dataset visibility: public or private",
|
|
3053
|
-
"name": "dataset-visibility",
|
|
2928
|
+
"format": {
|
|
2929
|
+
"description": "Output format: yaml (default), json",
|
|
2930
|
+
"name": "format",
|
|
2931
|
+
"default": "yaml",
|
|
3054
2932
|
"hasDynamicHelp": false,
|
|
3055
2933
|
"multiple": false,
|
|
3056
2934
|
"options": [
|
|
3057
|
-
"
|
|
3058
|
-
"
|
|
2935
|
+
"yaml",
|
|
2936
|
+
"json"
|
|
3059
2937
|
],
|
|
3060
2938
|
"type": "option"
|
|
3061
2939
|
},
|
|
3062
|
-
"
|
|
3063
|
-
"
|
|
3064
|
-
"
|
|
3065
|
-
"
|
|
3066
|
-
"type": "boolean"
|
|
3067
|
-
},
|
|
3068
|
-
"organization": {
|
|
3069
|
-
"description": "Organization to create the project in",
|
|
3070
|
-
"name": "organization",
|
|
3071
|
-
"hasDynamicHelp": false,
|
|
3072
|
-
"helpValue": "<slug|id>",
|
|
3073
|
-
"multiple": false,
|
|
3074
|
-
"type": "option"
|
|
3075
|
-
},
|
|
3076
|
-
"yes": {
|
|
3077
|
-
"char": "y",
|
|
3078
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3079
|
-
"name": "yes",
|
|
2940
|
+
"web": {
|
|
2941
|
+
"char": "w",
|
|
2942
|
+
"description": "Open in web browser",
|
|
2943
|
+
"name": "web",
|
|
3080
2944
|
"allowNo": false,
|
|
3081
2945
|
"type": "boolean"
|
|
3082
2946
|
}
|
|
3083
2947
|
},
|
|
3084
2948
|
"hasDynamicHelp": false,
|
|
3085
2949
|
"hiddenAliases": [],
|
|
3086
|
-
"id": "
|
|
2950
|
+
"id": "openapi:get",
|
|
3087
2951
|
"pluginAlias": "@sanity/cli",
|
|
3088
2952
|
"pluginName": "@sanity/cli",
|
|
3089
2953
|
"pluginType": "core",
|
|
@@ -3092,54 +2956,46 @@
|
|
|
3092
2956
|
"relativePath": [
|
|
3093
2957
|
"dist",
|
|
3094
2958
|
"commands",
|
|
3095
|
-
"
|
|
3096
|
-
"
|
|
2959
|
+
"openapi",
|
|
2960
|
+
"get.js"
|
|
3097
2961
|
]
|
|
3098
2962
|
},
|
|
3099
|
-
"
|
|
2963
|
+
"openapi:list": {
|
|
3100
2964
|
"aliases": [],
|
|
3101
2965
|
"args": {},
|
|
3102
|
-
"description": "
|
|
2966
|
+
"description": "List all available OpenAPI specifications",
|
|
3103
2967
|
"examples": [
|
|
3104
2968
|
{
|
|
3105
2969
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3106
|
-
"description": "List
|
|
2970
|
+
"description": "List all available OpenAPI specs"
|
|
3107
2971
|
},
|
|
3108
2972
|
{
|
|
3109
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3110
|
-
"description": "List
|
|
2973
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
2974
|
+
"description": "List with JSON output"
|
|
2975
|
+
},
|
|
2976
|
+
{
|
|
2977
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
2978
|
+
"description": "Open HTTP Reference in browser"
|
|
3111
2979
|
}
|
|
3112
2980
|
],
|
|
3113
2981
|
"flags": {
|
|
3114
|
-
"
|
|
3115
|
-
"
|
|
3116
|
-
"
|
|
3117
|
-
"
|
|
3118
|
-
"
|
|
3119
|
-
"options": [
|
|
3120
|
-
"asc",
|
|
3121
|
-
"desc"
|
|
3122
|
-
],
|
|
3123
|
-
"type": "option"
|
|
2982
|
+
"json": {
|
|
2983
|
+
"description": "Output JSON",
|
|
2984
|
+
"name": "json",
|
|
2985
|
+
"allowNo": false,
|
|
2986
|
+
"type": "boolean"
|
|
3124
2987
|
},
|
|
3125
|
-
"
|
|
3126
|
-
"
|
|
3127
|
-
"
|
|
3128
|
-
"
|
|
3129
|
-
"
|
|
3130
|
-
"
|
|
3131
|
-
"id",
|
|
3132
|
-
"members",
|
|
3133
|
-
"name",
|
|
3134
|
-
"url",
|
|
3135
|
-
"created"
|
|
3136
|
-
],
|
|
3137
|
-
"type": "option"
|
|
2988
|
+
"web": {
|
|
2989
|
+
"char": "w",
|
|
2990
|
+
"description": "Open HTTP Reference in web browser",
|
|
2991
|
+
"name": "web",
|
|
2992
|
+
"allowNo": false,
|
|
2993
|
+
"type": "boolean"
|
|
3138
2994
|
}
|
|
3139
2995
|
},
|
|
3140
2996
|
"hasDynamicHelp": false,
|
|
3141
2997
|
"hiddenAliases": [],
|
|
3142
|
-
"id": "
|
|
2998
|
+
"id": "openapi:list",
|
|
3143
2999
|
"pluginAlias": "@sanity/cli",
|
|
3144
3000
|
"pluginName": "@sanity/cli",
|
|
3145
3001
|
"pluginType": "core",
|
|
@@ -3148,7 +3004,7 @@
|
|
|
3148
3004
|
"relativePath": [
|
|
3149
3005
|
"dist",
|
|
3150
3006
|
"commands",
|
|
3151
|
-
"
|
|
3007
|
+
"openapi",
|
|
3152
3008
|
"list.js"
|
|
3153
3009
|
]
|
|
3154
3010
|
},
|
|
@@ -3874,6 +3730,150 @@
|
|
|
3874
3730
|
"list.js"
|
|
3875
3731
|
]
|
|
3876
3732
|
},
|
|
3733
|
+
"projects:create": {
|
|
3734
|
+
"aliases": [],
|
|
3735
|
+
"args": {
|
|
3736
|
+
"projectName": {
|
|
3737
|
+
"description": "Name of the project to create",
|
|
3738
|
+
"name": "projectName",
|
|
3739
|
+
"required": false
|
|
3740
|
+
}
|
|
3741
|
+
},
|
|
3742
|
+
"description": "Create a new Sanity project",
|
|
3743
|
+
"examples": [
|
|
3744
|
+
{
|
|
3745
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3746
|
+
"description": "Interactively create a project"
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3750
|
+
"description": "Create a project named \"My New Project\""
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3754
|
+
"description": "Create a project in a specific organization"
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3758
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3762
|
+
"description": "Create a project non-interactively with JSON output"
|
|
3763
|
+
}
|
|
3764
|
+
],
|
|
3765
|
+
"flags": {
|
|
3766
|
+
"dataset": {
|
|
3767
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3768
|
+
"name": "dataset",
|
|
3769
|
+
"hasDynamicHelp": false,
|
|
3770
|
+
"multiple": false,
|
|
3771
|
+
"type": "option"
|
|
3772
|
+
},
|
|
3773
|
+
"dataset-visibility": {
|
|
3774
|
+
"description": "Dataset visibility: public or private",
|
|
3775
|
+
"name": "dataset-visibility",
|
|
3776
|
+
"hasDynamicHelp": false,
|
|
3777
|
+
"multiple": false,
|
|
3778
|
+
"options": [
|
|
3779
|
+
"private",
|
|
3780
|
+
"public"
|
|
3781
|
+
],
|
|
3782
|
+
"type": "option"
|
|
3783
|
+
},
|
|
3784
|
+
"json": {
|
|
3785
|
+
"description": "Output in JSON format",
|
|
3786
|
+
"name": "json",
|
|
3787
|
+
"allowNo": false,
|
|
3788
|
+
"type": "boolean"
|
|
3789
|
+
},
|
|
3790
|
+
"organization": {
|
|
3791
|
+
"description": "Organization to create the project in",
|
|
3792
|
+
"name": "organization",
|
|
3793
|
+
"hasDynamicHelp": false,
|
|
3794
|
+
"helpValue": "<slug|id>",
|
|
3795
|
+
"multiple": false,
|
|
3796
|
+
"type": "option"
|
|
3797
|
+
},
|
|
3798
|
+
"yes": {
|
|
3799
|
+
"char": "y",
|
|
3800
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3801
|
+
"name": "yes",
|
|
3802
|
+
"allowNo": false,
|
|
3803
|
+
"type": "boolean"
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
"hasDynamicHelp": false,
|
|
3807
|
+
"hiddenAliases": [],
|
|
3808
|
+
"id": "projects:create",
|
|
3809
|
+
"pluginAlias": "@sanity/cli",
|
|
3810
|
+
"pluginName": "@sanity/cli",
|
|
3811
|
+
"pluginType": "core",
|
|
3812
|
+
"strict": true,
|
|
3813
|
+
"isESM": true,
|
|
3814
|
+
"relativePath": [
|
|
3815
|
+
"dist",
|
|
3816
|
+
"commands",
|
|
3817
|
+
"projects",
|
|
3818
|
+
"create.js"
|
|
3819
|
+
]
|
|
3820
|
+
},
|
|
3821
|
+
"projects:list": {
|
|
3822
|
+
"aliases": [],
|
|
3823
|
+
"args": {},
|
|
3824
|
+
"description": "Lists projects connected to your user",
|
|
3825
|
+
"examples": [
|
|
3826
|
+
{
|
|
3827
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3828
|
+
"description": "List projects"
|
|
3829
|
+
},
|
|
3830
|
+
{
|
|
3831
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3832
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3833
|
+
}
|
|
3834
|
+
],
|
|
3835
|
+
"flags": {
|
|
3836
|
+
"order": {
|
|
3837
|
+
"name": "order",
|
|
3838
|
+
"default": "desc",
|
|
3839
|
+
"hasDynamicHelp": false,
|
|
3840
|
+
"multiple": false,
|
|
3841
|
+
"options": [
|
|
3842
|
+
"asc",
|
|
3843
|
+
"desc"
|
|
3844
|
+
],
|
|
3845
|
+
"type": "option"
|
|
3846
|
+
},
|
|
3847
|
+
"sort": {
|
|
3848
|
+
"name": "sort",
|
|
3849
|
+
"default": "created",
|
|
3850
|
+
"hasDynamicHelp": false,
|
|
3851
|
+
"multiple": false,
|
|
3852
|
+
"options": [
|
|
3853
|
+
"id",
|
|
3854
|
+
"members",
|
|
3855
|
+
"name",
|
|
3856
|
+
"url",
|
|
3857
|
+
"created"
|
|
3858
|
+
],
|
|
3859
|
+
"type": "option"
|
|
3860
|
+
}
|
|
3861
|
+
},
|
|
3862
|
+
"hasDynamicHelp": false,
|
|
3863
|
+
"hiddenAliases": [],
|
|
3864
|
+
"id": "projects:list",
|
|
3865
|
+
"pluginAlias": "@sanity/cli",
|
|
3866
|
+
"pluginName": "@sanity/cli",
|
|
3867
|
+
"pluginType": "core",
|
|
3868
|
+
"strict": true,
|
|
3869
|
+
"isESM": true,
|
|
3870
|
+
"relativePath": [
|
|
3871
|
+
"dist",
|
|
3872
|
+
"commands",
|
|
3873
|
+
"projects",
|
|
3874
|
+
"list.js"
|
|
3875
|
+
]
|
|
3876
|
+
},
|
|
3877
3877
|
"dataset:alias:create": {
|
|
3878
3878
|
"aliases": [],
|
|
3879
3879
|
"args": {
|
|
@@ -4168,5 +4168,5 @@
|
|
|
4168
4168
|
]
|
|
4169
4169
|
}
|
|
4170
4170
|
},
|
|
4171
|
-
"version": "6.0.0-alpha.
|
|
4171
|
+
"version": "6.0.0-alpha.15"
|
|
4172
4172
|
}
|