@sanity/cli 6.0.0-alpha.19 → 6.0.0-alpha.20
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 +446 -446
- package/dist/hooks/prerun/injectEnvVariables.js +9 -1
- package/dist/hooks/prerun/injectEnvVariables.js.map +1 -1
- package/oclif.manifest.json +350 -350
- package/package.json +4 -4
package/oclif.manifest.json
CHANGED
|
@@ -2267,170 +2267,6 @@
|
|
|
2267
2267
|
"validate.js"
|
|
2268
2268
|
]
|
|
2269
2269
|
},
|
|
2270
|
-
"hook:attempt": {
|
|
2271
|
-
"aliases": [],
|
|
2272
|
-
"args": {
|
|
2273
|
-
"attemptId": {
|
|
2274
|
-
"description": "The delivery attempt ID to get details for",
|
|
2275
|
-
"name": "attemptId",
|
|
2276
|
-
"required": true
|
|
2277
|
-
}
|
|
2278
|
-
},
|
|
2279
|
-
"description": "Print details of a given webhook delivery attempt",
|
|
2280
|
-
"examples": [
|
|
2281
|
-
{
|
|
2282
|
-
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2283
|
-
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2284
|
-
}
|
|
2285
|
-
],
|
|
2286
|
-
"flags": {},
|
|
2287
|
-
"hasDynamicHelp": false,
|
|
2288
|
-
"hiddenAliases": [],
|
|
2289
|
-
"id": "hook:attempt",
|
|
2290
|
-
"pluginAlias": "@sanity/cli",
|
|
2291
|
-
"pluginName": "@sanity/cli",
|
|
2292
|
-
"pluginType": "core",
|
|
2293
|
-
"strict": true,
|
|
2294
|
-
"isESM": true,
|
|
2295
|
-
"relativePath": [
|
|
2296
|
-
"dist",
|
|
2297
|
-
"commands",
|
|
2298
|
-
"hook",
|
|
2299
|
-
"attempt.js"
|
|
2300
|
-
]
|
|
2301
|
-
},
|
|
2302
|
-
"hook:create": {
|
|
2303
|
-
"aliases": [],
|
|
2304
|
-
"args": {},
|
|
2305
|
-
"description": "Create a new webhook for the current project",
|
|
2306
|
-
"examples": [
|
|
2307
|
-
{
|
|
2308
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2309
|
-
"description": "Create a new webhook for the current project"
|
|
2310
|
-
}
|
|
2311
|
-
],
|
|
2312
|
-
"flags": {},
|
|
2313
|
-
"hasDynamicHelp": false,
|
|
2314
|
-
"hiddenAliases": [],
|
|
2315
|
-
"id": "hook:create",
|
|
2316
|
-
"pluginAlias": "@sanity/cli",
|
|
2317
|
-
"pluginName": "@sanity/cli",
|
|
2318
|
-
"pluginType": "core",
|
|
2319
|
-
"strict": true,
|
|
2320
|
-
"isESM": true,
|
|
2321
|
-
"relativePath": [
|
|
2322
|
-
"dist",
|
|
2323
|
-
"commands",
|
|
2324
|
-
"hook",
|
|
2325
|
-
"create.js"
|
|
2326
|
-
]
|
|
2327
|
-
},
|
|
2328
|
-
"hook:delete": {
|
|
2329
|
-
"aliases": [],
|
|
2330
|
-
"args": {
|
|
2331
|
-
"name": {
|
|
2332
|
-
"description": "Name of hook to delete (will prompt if not provided)",
|
|
2333
|
-
"name": "name",
|
|
2334
|
-
"required": false
|
|
2335
|
-
}
|
|
2336
|
-
},
|
|
2337
|
-
"description": "Delete a hook within your project",
|
|
2338
|
-
"examples": [
|
|
2339
|
-
{
|
|
2340
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2341
|
-
"description": "Interactively select and delete a hook"
|
|
2342
|
-
},
|
|
2343
|
-
{
|
|
2344
|
-
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2345
|
-
"description": "Delete a specific hook by name"
|
|
2346
|
-
}
|
|
2347
|
-
],
|
|
2348
|
-
"flags": {},
|
|
2349
|
-
"hasDynamicHelp": false,
|
|
2350
|
-
"hiddenAliases": [],
|
|
2351
|
-
"id": "hook:delete",
|
|
2352
|
-
"pluginAlias": "@sanity/cli",
|
|
2353
|
-
"pluginName": "@sanity/cli",
|
|
2354
|
-
"pluginType": "core",
|
|
2355
|
-
"strict": true,
|
|
2356
|
-
"isESM": true,
|
|
2357
|
-
"relativePath": [
|
|
2358
|
-
"dist",
|
|
2359
|
-
"commands",
|
|
2360
|
-
"hook",
|
|
2361
|
-
"delete.js"
|
|
2362
|
-
]
|
|
2363
|
-
},
|
|
2364
|
-
"hook:list": {
|
|
2365
|
-
"aliases": [],
|
|
2366
|
-
"args": {},
|
|
2367
|
-
"description": "List hooks for a given project",
|
|
2368
|
-
"examples": [
|
|
2369
|
-
{
|
|
2370
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2371
|
-
"description": "List hooks for a given project"
|
|
2372
|
-
}
|
|
2373
|
-
],
|
|
2374
|
-
"flags": {},
|
|
2375
|
-
"hasDynamicHelp": false,
|
|
2376
|
-
"hiddenAliases": [],
|
|
2377
|
-
"id": "hook:list",
|
|
2378
|
-
"pluginAlias": "@sanity/cli",
|
|
2379
|
-
"pluginName": "@sanity/cli",
|
|
2380
|
-
"pluginType": "core",
|
|
2381
|
-
"strict": true,
|
|
2382
|
-
"isESM": true,
|
|
2383
|
-
"relativePath": [
|
|
2384
|
-
"dist",
|
|
2385
|
-
"commands",
|
|
2386
|
-
"hook",
|
|
2387
|
-
"list.js"
|
|
2388
|
-
]
|
|
2389
|
-
},
|
|
2390
|
-
"hook:logs": {
|
|
2391
|
-
"aliases": [],
|
|
2392
|
-
"args": {
|
|
2393
|
-
"name": {
|
|
2394
|
-
"description": "Name of the hook to show logs for",
|
|
2395
|
-
"name": "name",
|
|
2396
|
-
"required": false
|
|
2397
|
-
}
|
|
2398
|
-
},
|
|
2399
|
-
"description": "List latest log entries for a given hook",
|
|
2400
|
-
"examples": [
|
|
2401
|
-
{
|
|
2402
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2403
|
-
"description": "List latest log entries for a given hook"
|
|
2404
|
-
},
|
|
2405
|
-
{
|
|
2406
|
-
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
2407
|
-
"description": "List latest log entries for a specific hook by name"
|
|
2408
|
-
}
|
|
2409
|
-
],
|
|
2410
|
-
"flags": {
|
|
2411
|
-
"detailed": {
|
|
2412
|
-
"description": "Include detailed payload and attempts",
|
|
2413
|
-
"name": "detailed",
|
|
2414
|
-
"required": false,
|
|
2415
|
-
"allowNo": false,
|
|
2416
|
-
"type": "boolean"
|
|
2417
|
-
}
|
|
2418
|
-
},
|
|
2419
|
-
"hasDynamicHelp": false,
|
|
2420
|
-
"hiddenAliases": [],
|
|
2421
|
-
"id": "hook:logs",
|
|
2422
|
-
"pluginAlias": "@sanity/cli",
|
|
2423
|
-
"pluginName": "@sanity/cli",
|
|
2424
|
-
"pluginType": "core",
|
|
2425
|
-
"strict": true,
|
|
2426
|
-
"isESM": true,
|
|
2427
|
-
"relativePath": [
|
|
2428
|
-
"dist",
|
|
2429
|
-
"commands",
|
|
2430
|
-
"hook",
|
|
2431
|
-
"logs.js"
|
|
2432
|
-
]
|
|
2433
|
-
},
|
|
2434
2270
|
"graphql:deploy": {
|
|
2435
2271
|
"aliases": [],
|
|
2436
2272
|
"args": {},
|
|
@@ -2642,6 +2478,170 @@
|
|
|
2642
2478
|
"undeploy.js"
|
|
2643
2479
|
]
|
|
2644
2480
|
},
|
|
2481
|
+
"hook:attempt": {
|
|
2482
|
+
"aliases": [],
|
|
2483
|
+
"args": {
|
|
2484
|
+
"attemptId": {
|
|
2485
|
+
"description": "The delivery attempt ID to get details for",
|
|
2486
|
+
"name": "attemptId",
|
|
2487
|
+
"required": true
|
|
2488
|
+
}
|
|
2489
|
+
},
|
|
2490
|
+
"description": "Print details of a given webhook delivery attempt",
|
|
2491
|
+
"examples": [
|
|
2492
|
+
{
|
|
2493
|
+
"command": "<%= config.bin %> <%= command.id %> abc123",
|
|
2494
|
+
"description": "Print details of webhook delivery attempt with ID abc123"
|
|
2495
|
+
}
|
|
2496
|
+
],
|
|
2497
|
+
"flags": {},
|
|
2498
|
+
"hasDynamicHelp": false,
|
|
2499
|
+
"hiddenAliases": [],
|
|
2500
|
+
"id": "hook:attempt",
|
|
2501
|
+
"pluginAlias": "@sanity/cli",
|
|
2502
|
+
"pluginName": "@sanity/cli",
|
|
2503
|
+
"pluginType": "core",
|
|
2504
|
+
"strict": true,
|
|
2505
|
+
"isESM": true,
|
|
2506
|
+
"relativePath": [
|
|
2507
|
+
"dist",
|
|
2508
|
+
"commands",
|
|
2509
|
+
"hook",
|
|
2510
|
+
"attempt.js"
|
|
2511
|
+
]
|
|
2512
|
+
},
|
|
2513
|
+
"hook:create": {
|
|
2514
|
+
"aliases": [],
|
|
2515
|
+
"args": {},
|
|
2516
|
+
"description": "Create a new webhook for the current project",
|
|
2517
|
+
"examples": [
|
|
2518
|
+
{
|
|
2519
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2520
|
+
"description": "Create a new webhook for the current project"
|
|
2521
|
+
}
|
|
2522
|
+
],
|
|
2523
|
+
"flags": {},
|
|
2524
|
+
"hasDynamicHelp": false,
|
|
2525
|
+
"hiddenAliases": [],
|
|
2526
|
+
"id": "hook:create",
|
|
2527
|
+
"pluginAlias": "@sanity/cli",
|
|
2528
|
+
"pluginName": "@sanity/cli",
|
|
2529
|
+
"pluginType": "core",
|
|
2530
|
+
"strict": true,
|
|
2531
|
+
"isESM": true,
|
|
2532
|
+
"relativePath": [
|
|
2533
|
+
"dist",
|
|
2534
|
+
"commands",
|
|
2535
|
+
"hook",
|
|
2536
|
+
"create.js"
|
|
2537
|
+
]
|
|
2538
|
+
},
|
|
2539
|
+
"hook:delete": {
|
|
2540
|
+
"aliases": [],
|
|
2541
|
+
"args": {
|
|
2542
|
+
"name": {
|
|
2543
|
+
"description": "Name of hook to delete (will prompt if not provided)",
|
|
2544
|
+
"name": "name",
|
|
2545
|
+
"required": false
|
|
2546
|
+
}
|
|
2547
|
+
},
|
|
2548
|
+
"description": "Delete a hook within your project",
|
|
2549
|
+
"examples": [
|
|
2550
|
+
{
|
|
2551
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2552
|
+
"description": "Interactively select and delete a hook"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"command": "<%= config.bin %> <%= command.id %> my-hook",
|
|
2556
|
+
"description": "Delete a specific hook by name"
|
|
2557
|
+
}
|
|
2558
|
+
],
|
|
2559
|
+
"flags": {},
|
|
2560
|
+
"hasDynamicHelp": false,
|
|
2561
|
+
"hiddenAliases": [],
|
|
2562
|
+
"id": "hook:delete",
|
|
2563
|
+
"pluginAlias": "@sanity/cli",
|
|
2564
|
+
"pluginName": "@sanity/cli",
|
|
2565
|
+
"pluginType": "core",
|
|
2566
|
+
"strict": true,
|
|
2567
|
+
"isESM": true,
|
|
2568
|
+
"relativePath": [
|
|
2569
|
+
"dist",
|
|
2570
|
+
"commands",
|
|
2571
|
+
"hook",
|
|
2572
|
+
"delete.js"
|
|
2573
|
+
]
|
|
2574
|
+
},
|
|
2575
|
+
"hook:list": {
|
|
2576
|
+
"aliases": [],
|
|
2577
|
+
"args": {},
|
|
2578
|
+
"description": "List hooks for a given project",
|
|
2579
|
+
"examples": [
|
|
2580
|
+
{
|
|
2581
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2582
|
+
"description": "List hooks for a given project"
|
|
2583
|
+
}
|
|
2584
|
+
],
|
|
2585
|
+
"flags": {},
|
|
2586
|
+
"hasDynamicHelp": false,
|
|
2587
|
+
"hiddenAliases": [],
|
|
2588
|
+
"id": "hook:list",
|
|
2589
|
+
"pluginAlias": "@sanity/cli",
|
|
2590
|
+
"pluginName": "@sanity/cli",
|
|
2591
|
+
"pluginType": "core",
|
|
2592
|
+
"strict": true,
|
|
2593
|
+
"isESM": true,
|
|
2594
|
+
"relativePath": [
|
|
2595
|
+
"dist",
|
|
2596
|
+
"commands",
|
|
2597
|
+
"hook",
|
|
2598
|
+
"list.js"
|
|
2599
|
+
]
|
|
2600
|
+
},
|
|
2601
|
+
"hook:logs": {
|
|
2602
|
+
"aliases": [],
|
|
2603
|
+
"args": {
|
|
2604
|
+
"name": {
|
|
2605
|
+
"description": "Name of the hook to show logs for",
|
|
2606
|
+
"name": "name",
|
|
2607
|
+
"required": false
|
|
2608
|
+
}
|
|
2609
|
+
},
|
|
2610
|
+
"description": "List latest log entries for a given hook",
|
|
2611
|
+
"examples": [
|
|
2612
|
+
{
|
|
2613
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2614
|
+
"description": "List latest log entries for a given hook"
|
|
2615
|
+
},
|
|
2616
|
+
{
|
|
2617
|
+
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
2618
|
+
"description": "List latest log entries for a specific hook by name"
|
|
2619
|
+
}
|
|
2620
|
+
],
|
|
2621
|
+
"flags": {
|
|
2622
|
+
"detailed": {
|
|
2623
|
+
"description": "Include detailed payload and attempts",
|
|
2624
|
+
"name": "detailed",
|
|
2625
|
+
"required": false,
|
|
2626
|
+
"allowNo": false,
|
|
2627
|
+
"type": "boolean"
|
|
2628
|
+
}
|
|
2629
|
+
},
|
|
2630
|
+
"hasDynamicHelp": false,
|
|
2631
|
+
"hiddenAliases": [],
|
|
2632
|
+
"id": "hook:logs",
|
|
2633
|
+
"pluginAlias": "@sanity/cli",
|
|
2634
|
+
"pluginName": "@sanity/cli",
|
|
2635
|
+
"pluginType": "core",
|
|
2636
|
+
"strict": true,
|
|
2637
|
+
"isESM": true,
|
|
2638
|
+
"relativePath": [
|
|
2639
|
+
"dist",
|
|
2640
|
+
"commands",
|
|
2641
|
+
"hook",
|
|
2642
|
+
"logs.js"
|
|
2643
|
+
]
|
|
2644
|
+
},
|
|
2645
2645
|
"manifest:extract": {
|
|
2646
2646
|
"aliases": [],
|
|
2647
2647
|
"args": {},
|
|
@@ -2973,42 +2973,178 @@
|
|
|
2973
2973
|
"description": "Get a specification (YAML format, default)"
|
|
2974
2974
|
},
|
|
2975
2975
|
{
|
|
2976
|
-
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
2977
|
-
"description": "Get specification in JSON format"
|
|
2976
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
2977
|
+
"description": "Get specification in JSON format"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
2981
|
+
"description": "Open specification in browser"
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
2985
|
+
"description": "Pipe to file"
|
|
2986
|
+
}
|
|
2987
|
+
],
|
|
2988
|
+
"flags": {
|
|
2989
|
+
"format": {
|
|
2990
|
+
"description": "Output format: yaml (default), json",
|
|
2991
|
+
"name": "format",
|
|
2992
|
+
"default": "yaml",
|
|
2993
|
+
"hasDynamicHelp": false,
|
|
2994
|
+
"multiple": false,
|
|
2995
|
+
"options": [
|
|
2996
|
+
"yaml",
|
|
2997
|
+
"json"
|
|
2998
|
+
],
|
|
2999
|
+
"type": "option"
|
|
3000
|
+
},
|
|
3001
|
+
"web": {
|
|
3002
|
+
"char": "w",
|
|
3003
|
+
"description": "Open in web browser",
|
|
3004
|
+
"name": "web",
|
|
3005
|
+
"allowNo": false,
|
|
3006
|
+
"type": "boolean"
|
|
3007
|
+
}
|
|
3008
|
+
},
|
|
3009
|
+
"hasDynamicHelp": false,
|
|
3010
|
+
"hiddenAliases": [],
|
|
3011
|
+
"id": "openapi:get",
|
|
3012
|
+
"pluginAlias": "@sanity/cli",
|
|
3013
|
+
"pluginName": "@sanity/cli",
|
|
3014
|
+
"pluginType": "core",
|
|
3015
|
+
"strict": true,
|
|
3016
|
+
"isESM": true,
|
|
3017
|
+
"relativePath": [
|
|
3018
|
+
"dist",
|
|
3019
|
+
"commands",
|
|
3020
|
+
"openapi",
|
|
3021
|
+
"get.js"
|
|
3022
|
+
]
|
|
3023
|
+
},
|
|
3024
|
+
"openapi:list": {
|
|
3025
|
+
"aliases": [],
|
|
3026
|
+
"args": {},
|
|
3027
|
+
"description": "List all available OpenAPI specifications",
|
|
3028
|
+
"examples": [
|
|
3029
|
+
{
|
|
3030
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3031
|
+
"description": "List all available OpenAPI specs"
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3035
|
+
"description": "List with JSON output"
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
3039
|
+
"description": "Open HTTP Reference in browser"
|
|
3040
|
+
}
|
|
3041
|
+
],
|
|
3042
|
+
"flags": {
|
|
3043
|
+
"json": {
|
|
3044
|
+
"description": "Output JSON",
|
|
3045
|
+
"name": "json",
|
|
3046
|
+
"allowNo": false,
|
|
3047
|
+
"type": "boolean"
|
|
3048
|
+
},
|
|
3049
|
+
"web": {
|
|
3050
|
+
"char": "w",
|
|
3051
|
+
"description": "Open HTTP Reference in web browser",
|
|
3052
|
+
"name": "web",
|
|
3053
|
+
"allowNo": false,
|
|
3054
|
+
"type": "boolean"
|
|
3055
|
+
}
|
|
3056
|
+
},
|
|
3057
|
+
"hasDynamicHelp": false,
|
|
3058
|
+
"hiddenAliases": [],
|
|
3059
|
+
"id": "openapi:list",
|
|
3060
|
+
"pluginAlias": "@sanity/cli",
|
|
3061
|
+
"pluginName": "@sanity/cli",
|
|
3062
|
+
"pluginType": "core",
|
|
3063
|
+
"strict": true,
|
|
3064
|
+
"isESM": true,
|
|
3065
|
+
"relativePath": [
|
|
3066
|
+
"dist",
|
|
3067
|
+
"commands",
|
|
3068
|
+
"openapi",
|
|
3069
|
+
"list.js"
|
|
3070
|
+
]
|
|
3071
|
+
},
|
|
3072
|
+
"projects:create": {
|
|
3073
|
+
"aliases": [],
|
|
3074
|
+
"args": {
|
|
3075
|
+
"projectName": {
|
|
3076
|
+
"description": "Name of the project to create",
|
|
3077
|
+
"name": "projectName",
|
|
3078
|
+
"required": false
|
|
3079
|
+
}
|
|
3080
|
+
},
|
|
3081
|
+
"description": "Create a new Sanity project",
|
|
3082
|
+
"examples": [
|
|
3083
|
+
{
|
|
3084
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3085
|
+
"description": "Interactively create a project"
|
|
3086
|
+
},
|
|
3087
|
+
{
|
|
3088
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3089
|
+
"description": "Create a project named \"My New Project\""
|
|
3090
|
+
},
|
|
3091
|
+
{
|
|
3092
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3093
|
+
"description": "Create a project in a specific organization"
|
|
2978
3094
|
},
|
|
2979
3095
|
{
|
|
2980
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2981
|
-
"description": "
|
|
3096
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3097
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
2982
3098
|
},
|
|
2983
3099
|
{
|
|
2984
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2985
|
-
"description": "
|
|
3100
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3101
|
+
"description": "Create a project non-interactively with JSON output"
|
|
2986
3102
|
}
|
|
2987
3103
|
],
|
|
2988
3104
|
"flags": {
|
|
2989
|
-
"
|
|
2990
|
-
"description": "
|
|
2991
|
-
"name": "
|
|
2992
|
-
"
|
|
3105
|
+
"dataset": {
|
|
3106
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3107
|
+
"name": "dataset",
|
|
3108
|
+
"hasDynamicHelp": false,
|
|
3109
|
+
"multiple": false,
|
|
3110
|
+
"type": "option"
|
|
3111
|
+
},
|
|
3112
|
+
"dataset-visibility": {
|
|
3113
|
+
"description": "Dataset visibility: public or private",
|
|
3114
|
+
"name": "dataset-visibility",
|
|
2993
3115
|
"hasDynamicHelp": false,
|
|
2994
3116
|
"multiple": false,
|
|
2995
3117
|
"options": [
|
|
2996
|
-
"
|
|
2997
|
-
"
|
|
3118
|
+
"private",
|
|
3119
|
+
"public"
|
|
2998
3120
|
],
|
|
2999
3121
|
"type": "option"
|
|
3000
3122
|
},
|
|
3001
|
-
"
|
|
3002
|
-
"
|
|
3003
|
-
"
|
|
3004
|
-
"
|
|
3123
|
+
"json": {
|
|
3124
|
+
"description": "Output in JSON format",
|
|
3125
|
+
"name": "json",
|
|
3126
|
+
"allowNo": false,
|
|
3127
|
+
"type": "boolean"
|
|
3128
|
+
},
|
|
3129
|
+
"organization": {
|
|
3130
|
+
"description": "Organization to create the project in",
|
|
3131
|
+
"name": "organization",
|
|
3132
|
+
"hasDynamicHelp": false,
|
|
3133
|
+
"helpValue": "<slug|id>",
|
|
3134
|
+
"multiple": false,
|
|
3135
|
+
"type": "option"
|
|
3136
|
+
},
|
|
3137
|
+
"yes": {
|
|
3138
|
+
"char": "y",
|
|
3139
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3140
|
+
"name": "yes",
|
|
3005
3141
|
"allowNo": false,
|
|
3006
3142
|
"type": "boolean"
|
|
3007
3143
|
}
|
|
3008
3144
|
},
|
|
3009
3145
|
"hasDynamicHelp": false,
|
|
3010
3146
|
"hiddenAliases": [],
|
|
3011
|
-
"id": "
|
|
3147
|
+
"id": "projects:create",
|
|
3012
3148
|
"pluginAlias": "@sanity/cli",
|
|
3013
3149
|
"pluginName": "@sanity/cli",
|
|
3014
3150
|
"pluginType": "core",
|
|
@@ -3017,46 +3153,54 @@
|
|
|
3017
3153
|
"relativePath": [
|
|
3018
3154
|
"dist",
|
|
3019
3155
|
"commands",
|
|
3020
|
-
"
|
|
3021
|
-
"
|
|
3156
|
+
"projects",
|
|
3157
|
+
"create.js"
|
|
3022
3158
|
]
|
|
3023
3159
|
},
|
|
3024
|
-
"
|
|
3160
|
+
"projects:list": {
|
|
3025
3161
|
"aliases": [],
|
|
3026
3162
|
"args": {},
|
|
3027
|
-
"description": "
|
|
3163
|
+
"description": "Lists projects connected to your user",
|
|
3028
3164
|
"examples": [
|
|
3029
3165
|
{
|
|
3030
3166
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3031
|
-
"description": "List
|
|
3032
|
-
},
|
|
3033
|
-
{
|
|
3034
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3035
|
-
"description": "List with JSON output"
|
|
3167
|
+
"description": "List projects"
|
|
3036
3168
|
},
|
|
3037
3169
|
{
|
|
3038
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3039
|
-
"description": "
|
|
3170
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3171
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3040
3172
|
}
|
|
3041
3173
|
],
|
|
3042
3174
|
"flags": {
|
|
3043
|
-
"
|
|
3044
|
-
"
|
|
3045
|
-
"
|
|
3046
|
-
"
|
|
3047
|
-
"
|
|
3175
|
+
"order": {
|
|
3176
|
+
"name": "order",
|
|
3177
|
+
"default": "desc",
|
|
3178
|
+
"hasDynamicHelp": false,
|
|
3179
|
+
"multiple": false,
|
|
3180
|
+
"options": [
|
|
3181
|
+
"asc",
|
|
3182
|
+
"desc"
|
|
3183
|
+
],
|
|
3184
|
+
"type": "option"
|
|
3048
3185
|
},
|
|
3049
|
-
"
|
|
3050
|
-
"
|
|
3051
|
-
"
|
|
3052
|
-
"
|
|
3053
|
-
"
|
|
3054
|
-
"
|
|
3186
|
+
"sort": {
|
|
3187
|
+
"name": "sort",
|
|
3188
|
+
"default": "created",
|
|
3189
|
+
"hasDynamicHelp": false,
|
|
3190
|
+
"multiple": false,
|
|
3191
|
+
"options": [
|
|
3192
|
+
"id",
|
|
3193
|
+
"members",
|
|
3194
|
+
"name",
|
|
3195
|
+
"url",
|
|
3196
|
+
"created"
|
|
3197
|
+
],
|
|
3198
|
+
"type": "option"
|
|
3055
3199
|
}
|
|
3056
3200
|
},
|
|
3057
3201
|
"hasDynamicHelp": false,
|
|
3058
3202
|
"hiddenAliases": [],
|
|
3059
|
-
"id": "
|
|
3203
|
+
"id": "projects:list",
|
|
3060
3204
|
"pluginAlias": "@sanity/cli",
|
|
3061
3205
|
"pluginName": "@sanity/cli",
|
|
3062
3206
|
"pluginType": "core",
|
|
@@ -3065,7 +3209,7 @@
|
|
|
3065
3209
|
"relativePath": [
|
|
3066
3210
|
"dist",
|
|
3067
3211
|
"commands",
|
|
3068
|
-
"
|
|
3212
|
+
"projects",
|
|
3069
3213
|
"list.js"
|
|
3070
3214
|
]
|
|
3071
3215
|
},
|
|
@@ -3787,150 +3931,6 @@
|
|
|
3787
3931
|
"list.js"
|
|
3788
3932
|
]
|
|
3789
3933
|
},
|
|
3790
|
-
"projects:create": {
|
|
3791
|
-
"aliases": [],
|
|
3792
|
-
"args": {
|
|
3793
|
-
"projectName": {
|
|
3794
|
-
"description": "Name of the project to create",
|
|
3795
|
-
"name": "projectName",
|
|
3796
|
-
"required": false
|
|
3797
|
-
}
|
|
3798
|
-
},
|
|
3799
|
-
"description": "Create a new Sanity project",
|
|
3800
|
-
"examples": [
|
|
3801
|
-
{
|
|
3802
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3803
|
-
"description": "Interactively create a project"
|
|
3804
|
-
},
|
|
3805
|
-
{
|
|
3806
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
3807
|
-
"description": "Create a project named \"My New Project\""
|
|
3808
|
-
},
|
|
3809
|
-
{
|
|
3810
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
3811
|
-
"description": "Create a project in a specific organization"
|
|
3812
|
-
},
|
|
3813
|
-
{
|
|
3814
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
3815
|
-
"description": "Create a project with a private dataset named \"staging\""
|
|
3816
|
-
},
|
|
3817
|
-
{
|
|
3818
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
3819
|
-
"description": "Create a project non-interactively with JSON output"
|
|
3820
|
-
}
|
|
3821
|
-
],
|
|
3822
|
-
"flags": {
|
|
3823
|
-
"dataset": {
|
|
3824
|
-
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
3825
|
-
"name": "dataset",
|
|
3826
|
-
"hasDynamicHelp": false,
|
|
3827
|
-
"multiple": false,
|
|
3828
|
-
"type": "option"
|
|
3829
|
-
},
|
|
3830
|
-
"dataset-visibility": {
|
|
3831
|
-
"description": "Dataset visibility: public or private",
|
|
3832
|
-
"name": "dataset-visibility",
|
|
3833
|
-
"hasDynamicHelp": false,
|
|
3834
|
-
"multiple": false,
|
|
3835
|
-
"options": [
|
|
3836
|
-
"private",
|
|
3837
|
-
"public"
|
|
3838
|
-
],
|
|
3839
|
-
"type": "option"
|
|
3840
|
-
},
|
|
3841
|
-
"json": {
|
|
3842
|
-
"description": "Output in JSON format",
|
|
3843
|
-
"name": "json",
|
|
3844
|
-
"allowNo": false,
|
|
3845
|
-
"type": "boolean"
|
|
3846
|
-
},
|
|
3847
|
-
"organization": {
|
|
3848
|
-
"description": "Organization to create the project in",
|
|
3849
|
-
"name": "organization",
|
|
3850
|
-
"hasDynamicHelp": false,
|
|
3851
|
-
"helpValue": "<slug|id>",
|
|
3852
|
-
"multiple": false,
|
|
3853
|
-
"type": "option"
|
|
3854
|
-
},
|
|
3855
|
-
"yes": {
|
|
3856
|
-
"char": "y",
|
|
3857
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
3858
|
-
"name": "yes",
|
|
3859
|
-
"allowNo": false,
|
|
3860
|
-
"type": "boolean"
|
|
3861
|
-
}
|
|
3862
|
-
},
|
|
3863
|
-
"hasDynamicHelp": false,
|
|
3864
|
-
"hiddenAliases": [],
|
|
3865
|
-
"id": "projects:create",
|
|
3866
|
-
"pluginAlias": "@sanity/cli",
|
|
3867
|
-
"pluginName": "@sanity/cli",
|
|
3868
|
-
"pluginType": "core",
|
|
3869
|
-
"strict": true,
|
|
3870
|
-
"isESM": true,
|
|
3871
|
-
"relativePath": [
|
|
3872
|
-
"dist",
|
|
3873
|
-
"commands",
|
|
3874
|
-
"projects",
|
|
3875
|
-
"create.js"
|
|
3876
|
-
]
|
|
3877
|
-
},
|
|
3878
|
-
"projects:list": {
|
|
3879
|
-
"aliases": [],
|
|
3880
|
-
"args": {},
|
|
3881
|
-
"description": "Lists projects connected to your user",
|
|
3882
|
-
"examples": [
|
|
3883
|
-
{
|
|
3884
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3885
|
-
"description": "List projects"
|
|
3886
|
-
},
|
|
3887
|
-
{
|
|
3888
|
-
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
3889
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
3890
|
-
}
|
|
3891
|
-
],
|
|
3892
|
-
"flags": {
|
|
3893
|
-
"order": {
|
|
3894
|
-
"name": "order",
|
|
3895
|
-
"default": "desc",
|
|
3896
|
-
"hasDynamicHelp": false,
|
|
3897
|
-
"multiple": false,
|
|
3898
|
-
"options": [
|
|
3899
|
-
"asc",
|
|
3900
|
-
"desc"
|
|
3901
|
-
],
|
|
3902
|
-
"type": "option"
|
|
3903
|
-
},
|
|
3904
|
-
"sort": {
|
|
3905
|
-
"name": "sort",
|
|
3906
|
-
"default": "created",
|
|
3907
|
-
"hasDynamicHelp": false,
|
|
3908
|
-
"multiple": false,
|
|
3909
|
-
"options": [
|
|
3910
|
-
"id",
|
|
3911
|
-
"members",
|
|
3912
|
-
"name",
|
|
3913
|
-
"url",
|
|
3914
|
-
"created"
|
|
3915
|
-
],
|
|
3916
|
-
"type": "option"
|
|
3917
|
-
}
|
|
3918
|
-
},
|
|
3919
|
-
"hasDynamicHelp": false,
|
|
3920
|
-
"hiddenAliases": [],
|
|
3921
|
-
"id": "projects:list",
|
|
3922
|
-
"pluginAlias": "@sanity/cli",
|
|
3923
|
-
"pluginName": "@sanity/cli",
|
|
3924
|
-
"pluginType": "core",
|
|
3925
|
-
"strict": true,
|
|
3926
|
-
"isESM": true,
|
|
3927
|
-
"relativePath": [
|
|
3928
|
-
"dist",
|
|
3929
|
-
"commands",
|
|
3930
|
-
"projects",
|
|
3931
|
-
"list.js"
|
|
3932
|
-
]
|
|
3933
|
-
},
|
|
3934
3934
|
"dataset:alias:create": {
|
|
3935
3935
|
"aliases": [],
|
|
3936
3936
|
"args": {
|
|
@@ -4428,5 +4428,5 @@
|
|
|
4428
4428
|
]
|
|
4429
4429
|
}
|
|
4430
4430
|
},
|
|
4431
|
-
"version": "6.0.0-alpha.
|
|
4431
|
+
"version": "6.0.0-alpha.20"
|
|
4432
4432
|
}
|