@sanity/cli 8.30.0 → 8.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deploy/deployApp.js +12 -6
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +14 -14
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/deployStudioSchemasAndManifests.js +1 -2
- package/dist/actions/deploy/deployStudioSchemasAndManifests.js.map +1 -1
- package/dist/actions/deploy/types.js +0 -1
- package/dist/actions/deploy/types.js.map +1 -1
- package/dist/actions/dev/devAction.js +5 -1
- package/dist/actions/dev/devAction.js.map +1 -1
- package/dist/actions/dev/servers/startAppDevServer.js +3 -3
- package/dist/actions/dev/servers/startAppDevServer.js.map +1 -1
- package/dist/actions/dev/servers/startStudioDevServer.js +12 -13
- package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
- package/dist/actions/dev/types.js.map +1 -1
- package/dist/actions/manifest/extractManifest.js +2 -1
- package/dist/actions/manifest/extractManifest.js.map +1 -1
- package/dist/actions/manifest/extractStudioManifest.js +1 -0
- package/dist/actions/manifest/extractStudioManifest.js.map +1 -1
- package/oclif.manifest.json +1097 -1097
- package/package.json +5 -5
package/oclif.manifest.json
CHANGED
|
@@ -1967,6 +1967,179 @@
|
|
|
1967
1967
|
"list.js"
|
|
1968
1968
|
]
|
|
1969
1969
|
},
|
|
1970
|
+
"cors:add": {
|
|
1971
|
+
"aliases": [],
|
|
1972
|
+
"args": {
|
|
1973
|
+
"origin": {
|
|
1974
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
1975
|
+
"name": "origin",
|
|
1976
|
+
"required": true
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"description": "Add a CORS origin to the project",
|
|
1980
|
+
"examples": [
|
|
1981
|
+
{
|
|
1982
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
1983
|
+
"description": "Interactively add a CORS origin"
|
|
1984
|
+
},
|
|
1985
|
+
{
|
|
1986
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
1987
|
+
"description": "Add a localhost origin without credentials"
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
1991
|
+
"description": "Add a production origin with credentials allowed"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
1995
|
+
"description": "Add a CORS origin for a specific project"
|
|
1996
|
+
}
|
|
1997
|
+
],
|
|
1998
|
+
"flags": {
|
|
1999
|
+
"project": {
|
|
2000
|
+
"aliases": [
|
|
2001
|
+
"project-id"
|
|
2002
|
+
],
|
|
2003
|
+
"char": "p",
|
|
2004
|
+
"deprecateAliases": true,
|
|
2005
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2006
|
+
"helpGroup": "OVERRIDE",
|
|
2007
|
+
"name": "project",
|
|
2008
|
+
"hasDynamicHelp": false,
|
|
2009
|
+
"helpValue": "<id>",
|
|
2010
|
+
"multiple": false,
|
|
2011
|
+
"type": "option"
|
|
2012
|
+
},
|
|
2013
|
+
"credentials": {
|
|
2014
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2015
|
+
"name": "credentials",
|
|
2016
|
+
"required": false,
|
|
2017
|
+
"allowNo": true,
|
|
2018
|
+
"type": "boolean"
|
|
2019
|
+
},
|
|
2020
|
+
"yes": {
|
|
2021
|
+
"char": "y",
|
|
2022
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
2023
|
+
"name": "yes",
|
|
2024
|
+
"allowNo": false,
|
|
2025
|
+
"type": "boolean"
|
|
2026
|
+
}
|
|
2027
|
+
},
|
|
2028
|
+
"hasDynamicHelp": false,
|
|
2029
|
+
"hiddenAliases": [],
|
|
2030
|
+
"id": "cors:add",
|
|
2031
|
+
"pluginAlias": "@sanity/cli",
|
|
2032
|
+
"pluginName": "@sanity/cli",
|
|
2033
|
+
"pluginType": "core",
|
|
2034
|
+
"strict": true,
|
|
2035
|
+
"isESM": true,
|
|
2036
|
+
"relativePath": [
|
|
2037
|
+
"dist",
|
|
2038
|
+
"commands",
|
|
2039
|
+
"cors",
|
|
2040
|
+
"add.js"
|
|
2041
|
+
]
|
|
2042
|
+
},
|
|
2043
|
+
"cors:delete": {
|
|
2044
|
+
"aliases": [],
|
|
2045
|
+
"args": {
|
|
2046
|
+
"origin": {
|
|
2047
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
2048
|
+
"name": "origin",
|
|
2049
|
+
"required": false
|
|
2050
|
+
}
|
|
2051
|
+
},
|
|
2052
|
+
"description": "Delete a CORS origin from the project",
|
|
2053
|
+
"examples": [
|
|
2054
|
+
{
|
|
2055
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2056
|
+
"description": "Interactively select and delete a CORS origin"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2060
|
+
"description": "Delete a specific CORS origin"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2064
|
+
"description": "Delete a CORS origin from a specific project"
|
|
2065
|
+
}
|
|
2066
|
+
],
|
|
2067
|
+
"flags": {
|
|
2068
|
+
"project": {
|
|
2069
|
+
"aliases": [
|
|
2070
|
+
"project-id"
|
|
2071
|
+
],
|
|
2072
|
+
"char": "p",
|
|
2073
|
+
"deprecateAliases": true,
|
|
2074
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2075
|
+
"helpGroup": "OVERRIDE",
|
|
2076
|
+
"name": "project",
|
|
2077
|
+
"hasDynamicHelp": false,
|
|
2078
|
+
"helpValue": "<id>",
|
|
2079
|
+
"multiple": false,
|
|
2080
|
+
"type": "option"
|
|
2081
|
+
}
|
|
2082
|
+
},
|
|
2083
|
+
"hasDynamicHelp": false,
|
|
2084
|
+
"hiddenAliases": [],
|
|
2085
|
+
"id": "cors:delete",
|
|
2086
|
+
"pluginAlias": "@sanity/cli",
|
|
2087
|
+
"pluginName": "@sanity/cli",
|
|
2088
|
+
"pluginType": "core",
|
|
2089
|
+
"strict": true,
|
|
2090
|
+
"isESM": true,
|
|
2091
|
+
"relativePath": [
|
|
2092
|
+
"dist",
|
|
2093
|
+
"commands",
|
|
2094
|
+
"cors",
|
|
2095
|
+
"delete.js"
|
|
2096
|
+
]
|
|
2097
|
+
},
|
|
2098
|
+
"cors:list": {
|
|
2099
|
+
"aliases": [],
|
|
2100
|
+
"args": {},
|
|
2101
|
+
"description": "List CORS origins for the project",
|
|
2102
|
+
"examples": [
|
|
2103
|
+
{
|
|
2104
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2105
|
+
"description": "List CORS origins for the project"
|
|
2106
|
+
},
|
|
2107
|
+
{
|
|
2108
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2109
|
+
"description": "List CORS origins for a specific project"
|
|
2110
|
+
}
|
|
2111
|
+
],
|
|
2112
|
+
"flags": {
|
|
2113
|
+
"project": {
|
|
2114
|
+
"aliases": [
|
|
2115
|
+
"project-id"
|
|
2116
|
+
],
|
|
2117
|
+
"char": "p",
|
|
2118
|
+
"deprecateAliases": true,
|
|
2119
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2120
|
+
"helpGroup": "OVERRIDE",
|
|
2121
|
+
"name": "project",
|
|
2122
|
+
"hasDynamicHelp": false,
|
|
2123
|
+
"helpValue": "<id>",
|
|
2124
|
+
"multiple": false,
|
|
2125
|
+
"type": "option"
|
|
2126
|
+
}
|
|
2127
|
+
},
|
|
2128
|
+
"hasDynamicHelp": false,
|
|
2129
|
+
"hiddenAliases": [],
|
|
2130
|
+
"id": "cors:list",
|
|
2131
|
+
"pluginAlias": "@sanity/cli",
|
|
2132
|
+
"pluginName": "@sanity/cli",
|
|
2133
|
+
"pluginType": "core",
|
|
2134
|
+
"strict": true,
|
|
2135
|
+
"isESM": true,
|
|
2136
|
+
"relativePath": [
|
|
2137
|
+
"dist",
|
|
2138
|
+
"commands",
|
|
2139
|
+
"cors",
|
|
2140
|
+
"list.js"
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
1970
2143
|
"context:build": {
|
|
1971
2144
|
"aliases": [],
|
|
1972
2145
|
"args": {
|
|
@@ -2492,32 +2665,57 @@
|
|
|
2492
2665
|
"update.js"
|
|
2493
2666
|
]
|
|
2494
2667
|
},
|
|
2495
|
-
"
|
|
2668
|
+
"datasets:copy": {
|
|
2496
2669
|
"aliases": [],
|
|
2497
2670
|
"args": {
|
|
2498
|
-
"
|
|
2499
|
-
"description": "
|
|
2500
|
-
"name": "
|
|
2501
|
-
"required":
|
|
2671
|
+
"source": {
|
|
2672
|
+
"description": "Name of the dataset to copy from",
|
|
2673
|
+
"name": "source",
|
|
2674
|
+
"required": false
|
|
2675
|
+
},
|
|
2676
|
+
"target": {
|
|
2677
|
+
"description": "Name of the dataset to copy to",
|
|
2678
|
+
"name": "target",
|
|
2679
|
+
"required": false
|
|
2502
2680
|
}
|
|
2503
2681
|
},
|
|
2504
|
-
"description": "
|
|
2682
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2505
2683
|
"examples": [
|
|
2506
2684
|
{
|
|
2507
2685
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2508
|
-
"description": "Interactively
|
|
2686
|
+
"description": "Interactively copy a dataset"
|
|
2509
2687
|
},
|
|
2510
2688
|
{
|
|
2511
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2512
|
-
"description": "
|
|
2689
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2690
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2513
2691
|
},
|
|
2514
2692
|
{
|
|
2515
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2516
|
-
"description": "
|
|
2693
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2694
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2517
2695
|
},
|
|
2518
2696
|
{
|
|
2519
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2520
|
-
"description": "
|
|
2697
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2698
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2702
|
+
"description": "Copy without content release documents"
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2706
|
+
"description": "Start copy job without waiting for completion"
|
|
2707
|
+
},
|
|
2708
|
+
{
|
|
2709
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2710
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2714
|
+
"description": "List all dataset copy jobs"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2718
|
+
"description": "List copy jobs with pagination"
|
|
2521
2719
|
}
|
|
2522
2720
|
],
|
|
2523
2721
|
"flags": {
|
|
@@ -2527,7 +2725,7 @@
|
|
|
2527
2725
|
],
|
|
2528
2726
|
"char": "p",
|
|
2529
2727
|
"deprecateAliases": true,
|
|
2530
|
-
"description": "Project ID to
|
|
2728
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2531
2729
|
"helpGroup": "OVERRIDE",
|
|
2532
2730
|
"name": "project",
|
|
2533
2731
|
"hasDynamicHelp": false,
|
|
@@ -2535,225 +2733,27 @@
|
|
|
2535
2733
|
"multiple": false,
|
|
2536
2734
|
"type": "option"
|
|
2537
2735
|
},
|
|
2538
|
-
"
|
|
2539
|
-
"description": "
|
|
2540
|
-
"
|
|
2736
|
+
"attach": {
|
|
2737
|
+
"description": "Attach to the running copy process to show progress",
|
|
2738
|
+
"exclusive": [
|
|
2739
|
+
"list",
|
|
2740
|
+
"detach",
|
|
2741
|
+
"skip-history"
|
|
2742
|
+
],
|
|
2743
|
+
"name": "attach",
|
|
2541
2744
|
"required": false,
|
|
2542
|
-
"
|
|
2543
|
-
"
|
|
2745
|
+
"hasDynamicHelp": false,
|
|
2746
|
+
"multiple": false,
|
|
2747
|
+
"type": "option"
|
|
2544
2748
|
},
|
|
2545
|
-
"
|
|
2546
|
-
"
|
|
2547
|
-
"
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
"hasDynamicHelp": false,
|
|
2554
|
-
"hiddenAliases": [],
|
|
2555
|
-
"id": "cors:add",
|
|
2556
|
-
"pluginAlias": "@sanity/cli",
|
|
2557
|
-
"pluginName": "@sanity/cli",
|
|
2558
|
-
"pluginType": "core",
|
|
2559
|
-
"strict": true,
|
|
2560
|
-
"isESM": true,
|
|
2561
|
-
"relativePath": [
|
|
2562
|
-
"dist",
|
|
2563
|
-
"commands",
|
|
2564
|
-
"cors",
|
|
2565
|
-
"add.js"
|
|
2566
|
-
]
|
|
2567
|
-
},
|
|
2568
|
-
"cors:delete": {
|
|
2569
|
-
"aliases": [],
|
|
2570
|
-
"args": {
|
|
2571
|
-
"origin": {
|
|
2572
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2573
|
-
"name": "origin",
|
|
2574
|
-
"required": false
|
|
2575
|
-
}
|
|
2576
|
-
},
|
|
2577
|
-
"description": "Delete a CORS origin from the project",
|
|
2578
|
-
"examples": [
|
|
2579
|
-
{
|
|
2580
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2581
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2582
|
-
},
|
|
2583
|
-
{
|
|
2584
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2585
|
-
"description": "Delete a specific CORS origin"
|
|
2586
|
-
},
|
|
2587
|
-
{
|
|
2588
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2589
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2590
|
-
}
|
|
2591
|
-
],
|
|
2592
|
-
"flags": {
|
|
2593
|
-
"project": {
|
|
2594
|
-
"aliases": [
|
|
2595
|
-
"project-id"
|
|
2596
|
-
],
|
|
2597
|
-
"char": "p",
|
|
2598
|
-
"deprecateAliases": true,
|
|
2599
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2600
|
-
"helpGroup": "OVERRIDE",
|
|
2601
|
-
"name": "project",
|
|
2602
|
-
"hasDynamicHelp": false,
|
|
2603
|
-
"helpValue": "<id>",
|
|
2604
|
-
"multiple": false,
|
|
2605
|
-
"type": "option"
|
|
2606
|
-
}
|
|
2607
|
-
},
|
|
2608
|
-
"hasDynamicHelp": false,
|
|
2609
|
-
"hiddenAliases": [],
|
|
2610
|
-
"id": "cors:delete",
|
|
2611
|
-
"pluginAlias": "@sanity/cli",
|
|
2612
|
-
"pluginName": "@sanity/cli",
|
|
2613
|
-
"pluginType": "core",
|
|
2614
|
-
"strict": true,
|
|
2615
|
-
"isESM": true,
|
|
2616
|
-
"relativePath": [
|
|
2617
|
-
"dist",
|
|
2618
|
-
"commands",
|
|
2619
|
-
"cors",
|
|
2620
|
-
"delete.js"
|
|
2621
|
-
]
|
|
2622
|
-
},
|
|
2623
|
-
"cors:list": {
|
|
2624
|
-
"aliases": [],
|
|
2625
|
-
"args": {},
|
|
2626
|
-
"description": "List CORS origins for the project",
|
|
2627
|
-
"examples": [
|
|
2628
|
-
{
|
|
2629
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2630
|
-
"description": "List CORS origins for the project"
|
|
2631
|
-
},
|
|
2632
|
-
{
|
|
2633
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2634
|
-
"description": "List CORS origins for a specific project"
|
|
2635
|
-
}
|
|
2636
|
-
],
|
|
2637
|
-
"flags": {
|
|
2638
|
-
"project": {
|
|
2639
|
-
"aliases": [
|
|
2640
|
-
"project-id"
|
|
2641
|
-
],
|
|
2642
|
-
"char": "p",
|
|
2643
|
-
"deprecateAliases": true,
|
|
2644
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2645
|
-
"helpGroup": "OVERRIDE",
|
|
2646
|
-
"name": "project",
|
|
2647
|
-
"hasDynamicHelp": false,
|
|
2648
|
-
"helpValue": "<id>",
|
|
2649
|
-
"multiple": false,
|
|
2650
|
-
"type": "option"
|
|
2651
|
-
}
|
|
2652
|
-
},
|
|
2653
|
-
"hasDynamicHelp": false,
|
|
2654
|
-
"hiddenAliases": [],
|
|
2655
|
-
"id": "cors:list",
|
|
2656
|
-
"pluginAlias": "@sanity/cli",
|
|
2657
|
-
"pluginName": "@sanity/cli",
|
|
2658
|
-
"pluginType": "core",
|
|
2659
|
-
"strict": true,
|
|
2660
|
-
"isESM": true,
|
|
2661
|
-
"relativePath": [
|
|
2662
|
-
"dist",
|
|
2663
|
-
"commands",
|
|
2664
|
-
"cors",
|
|
2665
|
-
"list.js"
|
|
2666
|
-
]
|
|
2667
|
-
},
|
|
2668
|
-
"datasets:copy": {
|
|
2669
|
-
"aliases": [],
|
|
2670
|
-
"args": {
|
|
2671
|
-
"source": {
|
|
2672
|
-
"description": "Name of the dataset to copy from",
|
|
2673
|
-
"name": "source",
|
|
2674
|
-
"required": false
|
|
2675
|
-
},
|
|
2676
|
-
"target": {
|
|
2677
|
-
"description": "Name of the dataset to copy to",
|
|
2678
|
-
"name": "target",
|
|
2679
|
-
"required": false
|
|
2680
|
-
}
|
|
2681
|
-
},
|
|
2682
|
-
"description": "Copy a dataset or manage copy jobs",
|
|
2683
|
-
"examples": [
|
|
2684
|
-
{
|
|
2685
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2686
|
-
"description": "Interactively copy a dataset"
|
|
2687
|
-
},
|
|
2688
|
-
{
|
|
2689
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2690
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
2691
|
-
},
|
|
2692
|
-
{
|
|
2693
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2694
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
2695
|
-
},
|
|
2696
|
-
{
|
|
2697
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2698
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2699
|
-
},
|
|
2700
|
-
{
|
|
2701
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2702
|
-
"description": "Copy without content release documents"
|
|
2703
|
-
},
|
|
2704
|
-
{
|
|
2705
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2706
|
-
"description": "Start copy job without waiting for completion"
|
|
2707
|
-
},
|
|
2708
|
-
{
|
|
2709
|
-
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2710
|
-
"description": "Attach to a running copy job to follow progress"
|
|
2711
|
-
},
|
|
2712
|
-
{
|
|
2713
|
-
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2714
|
-
"description": "List all dataset copy jobs"
|
|
2715
|
-
},
|
|
2716
|
-
{
|
|
2717
|
-
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2718
|
-
"description": "List copy jobs with pagination"
|
|
2719
|
-
}
|
|
2720
|
-
],
|
|
2721
|
-
"flags": {
|
|
2722
|
-
"project": {
|
|
2723
|
-
"aliases": [
|
|
2724
|
-
"project-id"
|
|
2725
|
-
],
|
|
2726
|
-
"char": "p",
|
|
2727
|
-
"deprecateAliases": true,
|
|
2728
|
-
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2729
|
-
"helpGroup": "OVERRIDE",
|
|
2730
|
-
"name": "project",
|
|
2731
|
-
"hasDynamicHelp": false,
|
|
2732
|
-
"helpValue": "<id>",
|
|
2733
|
-
"multiple": false,
|
|
2734
|
-
"type": "option"
|
|
2735
|
-
},
|
|
2736
|
-
"attach": {
|
|
2737
|
-
"description": "Attach to the running copy process to show progress",
|
|
2738
|
-
"exclusive": [
|
|
2739
|
-
"list",
|
|
2740
|
-
"detach",
|
|
2741
|
-
"skip-history"
|
|
2742
|
-
],
|
|
2743
|
-
"name": "attach",
|
|
2744
|
-
"required": false,
|
|
2745
|
-
"hasDynamicHelp": false,
|
|
2746
|
-
"multiple": false,
|
|
2747
|
-
"type": "option"
|
|
2748
|
-
},
|
|
2749
|
-
"detach": {
|
|
2750
|
-
"description": "Start the copy without waiting for it to finish",
|
|
2751
|
-
"exclusive": [
|
|
2752
|
-
"list",
|
|
2753
|
-
"attach"
|
|
2754
|
-
],
|
|
2755
|
-
"name": "detach",
|
|
2756
|
-
"required": false,
|
|
2749
|
+
"detach": {
|
|
2750
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2751
|
+
"exclusive": [
|
|
2752
|
+
"list",
|
|
2753
|
+
"attach"
|
|
2754
|
+
],
|
|
2755
|
+
"name": "detach",
|
|
2756
|
+
"required": false,
|
|
2757
2757
|
"allowNo": false,
|
|
2758
2758
|
"type": "boolean"
|
|
2759
2759
|
},
|
|
@@ -3321,152 +3321,28 @@
|
|
|
3321
3321
|
"list.js"
|
|
3322
3322
|
]
|
|
3323
3323
|
},
|
|
3324
|
-
"
|
|
3325
|
-
"aliases": [],
|
|
3326
|
-
"args": {},
|
|
3327
|
-
"description": "Open Sanity docs in your browser",
|
|
3328
|
-
"flags": {},
|
|
3329
|
-
"hasDynamicHelp": false,
|
|
3330
|
-
"hiddenAliases": [],
|
|
3331
|
-
"id": "docs:browse",
|
|
3332
|
-
"pluginAlias": "@sanity/cli",
|
|
3333
|
-
"pluginName": "@sanity/cli",
|
|
3334
|
-
"pluginType": "core",
|
|
3335
|
-
"strict": true,
|
|
3336
|
-
"enableJsonFlag": false,
|
|
3337
|
-
"isESM": true,
|
|
3338
|
-
"relativePath": [
|
|
3339
|
-
"dist",
|
|
3340
|
-
"commands",
|
|
3341
|
-
"docs",
|
|
3342
|
-
"browse.js"
|
|
3343
|
-
]
|
|
3344
|
-
},
|
|
3345
|
-
"docs:read": {
|
|
3324
|
+
"documents:create": {
|
|
3346
3325
|
"aliases": [],
|
|
3347
3326
|
"args": {
|
|
3348
|
-
"
|
|
3349
|
-
"description": "
|
|
3350
|
-
"name": "
|
|
3351
|
-
"required":
|
|
3327
|
+
"file": {
|
|
3328
|
+
"description": "JSON file to create document(s) from",
|
|
3329
|
+
"name": "file",
|
|
3330
|
+
"required": false
|
|
3352
3331
|
}
|
|
3353
3332
|
},
|
|
3354
|
-
"description": "
|
|
3333
|
+
"description": "Create one or more documents",
|
|
3355
3334
|
"examples": [
|
|
3356
3335
|
{
|
|
3357
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3358
|
-
"description": "
|
|
3336
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3337
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
3359
3338
|
},
|
|
3360
3339
|
{
|
|
3361
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3362
|
-
"description": "
|
|
3340
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3341
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3363
3342
|
},
|
|
3364
3343
|
{
|
|
3365
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3366
|
-
"description": "
|
|
3367
|
-
},
|
|
3368
|
-
{
|
|
3369
|
-
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3370
|
-
"description": "Open using full URL in web browser"
|
|
3371
|
-
}
|
|
3372
|
-
],
|
|
3373
|
-
"flags": {
|
|
3374
|
-
"web": {
|
|
3375
|
-
"aliases": [
|
|
3376
|
-
"w"
|
|
3377
|
-
],
|
|
3378
|
-
"description": "Open in a web browser",
|
|
3379
|
-
"name": "web",
|
|
3380
|
-
"allowNo": false,
|
|
3381
|
-
"type": "boolean"
|
|
3382
|
-
}
|
|
3383
|
-
},
|
|
3384
|
-
"hasDynamicHelp": false,
|
|
3385
|
-
"hiddenAliases": [],
|
|
3386
|
-
"id": "docs:read",
|
|
3387
|
-
"pluginAlias": "@sanity/cli",
|
|
3388
|
-
"pluginName": "@sanity/cli",
|
|
3389
|
-
"pluginType": "core",
|
|
3390
|
-
"strict": true,
|
|
3391
|
-
"isESM": true,
|
|
3392
|
-
"relativePath": [
|
|
3393
|
-
"dist",
|
|
3394
|
-
"commands",
|
|
3395
|
-
"docs",
|
|
3396
|
-
"read.js"
|
|
3397
|
-
]
|
|
3398
|
-
},
|
|
3399
|
-
"docs:search": {
|
|
3400
|
-
"aliases": [],
|
|
3401
|
-
"args": {
|
|
3402
|
-
"query": {
|
|
3403
|
-
"description": "Search query for documentation",
|
|
3404
|
-
"name": "query",
|
|
3405
|
-
"required": true
|
|
3406
|
-
}
|
|
3407
|
-
},
|
|
3408
|
-
"description": "Search Sanity docs",
|
|
3409
|
-
"examples": [
|
|
3410
|
-
{
|
|
3411
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3412
|
-
"description": "Search for documentation about schemas"
|
|
3413
|
-
},
|
|
3414
|
-
{
|
|
3415
|
-
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3416
|
-
"description": "Search with phrase"
|
|
3417
|
-
},
|
|
3418
|
-
{
|
|
3419
|
-
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3420
|
-
"description": "Limit search results"
|
|
3421
|
-
}
|
|
3422
|
-
],
|
|
3423
|
-
"flags": {
|
|
3424
|
-
"limit": {
|
|
3425
|
-
"description": "Maximum number of results to return",
|
|
3426
|
-
"name": "limit",
|
|
3427
|
-
"default": 10,
|
|
3428
|
-
"hasDynamicHelp": false,
|
|
3429
|
-
"multiple": false,
|
|
3430
|
-
"type": "option"
|
|
3431
|
-
}
|
|
3432
|
-
},
|
|
3433
|
-
"hasDynamicHelp": false,
|
|
3434
|
-
"hiddenAliases": [],
|
|
3435
|
-
"id": "docs:search",
|
|
3436
|
-
"pluginAlias": "@sanity/cli",
|
|
3437
|
-
"pluginName": "@sanity/cli",
|
|
3438
|
-
"pluginType": "core",
|
|
3439
|
-
"strict": true,
|
|
3440
|
-
"isESM": true,
|
|
3441
|
-
"relativePath": [
|
|
3442
|
-
"dist",
|
|
3443
|
-
"commands",
|
|
3444
|
-
"docs",
|
|
3445
|
-
"search.js"
|
|
3446
|
-
]
|
|
3447
|
-
},
|
|
3448
|
-
"documents:create": {
|
|
3449
|
-
"aliases": [],
|
|
3450
|
-
"args": {
|
|
3451
|
-
"file": {
|
|
3452
|
-
"description": "JSON file to create document(s) from",
|
|
3453
|
-
"name": "file",
|
|
3454
|
-
"required": false
|
|
3455
|
-
}
|
|
3456
|
-
},
|
|
3457
|
-
"description": "Create one or more documents",
|
|
3458
|
-
"examples": [
|
|
3459
|
-
{
|
|
3460
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3461
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
3462
|
-
},
|
|
3463
|
-
{
|
|
3464
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3465
|
-
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3466
|
-
},
|
|
3467
|
-
{
|
|
3468
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3469
|
-
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
3344
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3345
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
3470
3346
|
},
|
|
3471
3347
|
{
|
|
3472
3348
|
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
@@ -3937,6 +3813,130 @@
|
|
|
3937
3813
|
"validate.js"
|
|
3938
3814
|
]
|
|
3939
3815
|
},
|
|
3816
|
+
"docs:browse": {
|
|
3817
|
+
"aliases": [],
|
|
3818
|
+
"args": {},
|
|
3819
|
+
"description": "Open Sanity docs in your browser",
|
|
3820
|
+
"flags": {},
|
|
3821
|
+
"hasDynamicHelp": false,
|
|
3822
|
+
"hiddenAliases": [],
|
|
3823
|
+
"id": "docs:browse",
|
|
3824
|
+
"pluginAlias": "@sanity/cli",
|
|
3825
|
+
"pluginName": "@sanity/cli",
|
|
3826
|
+
"pluginType": "core",
|
|
3827
|
+
"strict": true,
|
|
3828
|
+
"enableJsonFlag": false,
|
|
3829
|
+
"isESM": true,
|
|
3830
|
+
"relativePath": [
|
|
3831
|
+
"dist",
|
|
3832
|
+
"commands",
|
|
3833
|
+
"docs",
|
|
3834
|
+
"browse.js"
|
|
3835
|
+
]
|
|
3836
|
+
},
|
|
3837
|
+
"docs:read": {
|
|
3838
|
+
"aliases": [],
|
|
3839
|
+
"args": {
|
|
3840
|
+
"path": {
|
|
3841
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3842
|
+
"name": "path",
|
|
3843
|
+
"required": true
|
|
3844
|
+
}
|
|
3845
|
+
},
|
|
3846
|
+
"description": "Read an article in terminal",
|
|
3847
|
+
"examples": [
|
|
3848
|
+
{
|
|
3849
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
3850
|
+
"description": "Read as markdown in terminal"
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3854
|
+
"description": "Read using full URL"
|
|
3855
|
+
},
|
|
3856
|
+
{
|
|
3857
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3858
|
+
"description": "Open in web browser"
|
|
3859
|
+
},
|
|
3860
|
+
{
|
|
3861
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3862
|
+
"description": "Open using full URL in web browser"
|
|
3863
|
+
}
|
|
3864
|
+
],
|
|
3865
|
+
"flags": {
|
|
3866
|
+
"web": {
|
|
3867
|
+
"aliases": [
|
|
3868
|
+
"w"
|
|
3869
|
+
],
|
|
3870
|
+
"description": "Open in a web browser",
|
|
3871
|
+
"name": "web",
|
|
3872
|
+
"allowNo": false,
|
|
3873
|
+
"type": "boolean"
|
|
3874
|
+
}
|
|
3875
|
+
},
|
|
3876
|
+
"hasDynamicHelp": false,
|
|
3877
|
+
"hiddenAliases": [],
|
|
3878
|
+
"id": "docs:read",
|
|
3879
|
+
"pluginAlias": "@sanity/cli",
|
|
3880
|
+
"pluginName": "@sanity/cli",
|
|
3881
|
+
"pluginType": "core",
|
|
3882
|
+
"strict": true,
|
|
3883
|
+
"isESM": true,
|
|
3884
|
+
"relativePath": [
|
|
3885
|
+
"dist",
|
|
3886
|
+
"commands",
|
|
3887
|
+
"docs",
|
|
3888
|
+
"read.js"
|
|
3889
|
+
]
|
|
3890
|
+
},
|
|
3891
|
+
"docs:search": {
|
|
3892
|
+
"aliases": [],
|
|
3893
|
+
"args": {
|
|
3894
|
+
"query": {
|
|
3895
|
+
"description": "Search query for documentation",
|
|
3896
|
+
"name": "query",
|
|
3897
|
+
"required": true
|
|
3898
|
+
}
|
|
3899
|
+
},
|
|
3900
|
+
"description": "Search Sanity docs",
|
|
3901
|
+
"examples": [
|
|
3902
|
+
{
|
|
3903
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3904
|
+
"description": "Search for documentation about schemas"
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3908
|
+
"description": "Search with phrase"
|
|
3909
|
+
},
|
|
3910
|
+
{
|
|
3911
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3912
|
+
"description": "Limit search results"
|
|
3913
|
+
}
|
|
3914
|
+
],
|
|
3915
|
+
"flags": {
|
|
3916
|
+
"limit": {
|
|
3917
|
+
"description": "Maximum number of results to return",
|
|
3918
|
+
"name": "limit",
|
|
3919
|
+
"default": 10,
|
|
3920
|
+
"hasDynamicHelp": false,
|
|
3921
|
+
"multiple": false,
|
|
3922
|
+
"type": "option"
|
|
3923
|
+
}
|
|
3924
|
+
},
|
|
3925
|
+
"hasDynamicHelp": false,
|
|
3926
|
+
"hiddenAliases": [],
|
|
3927
|
+
"id": "docs:search",
|
|
3928
|
+
"pluginAlias": "@sanity/cli",
|
|
3929
|
+
"pluginName": "@sanity/cli",
|
|
3930
|
+
"pluginType": "core",
|
|
3931
|
+
"strict": true,
|
|
3932
|
+
"isESM": true,
|
|
3933
|
+
"relativePath": [
|
|
3934
|
+
"dist",
|
|
3935
|
+
"commands",
|
|
3936
|
+
"docs",
|
|
3937
|
+
"search.js"
|
|
3938
|
+
]
|
|
3939
|
+
},
|
|
3940
3940
|
"graphql:deploy": {
|
|
3941
3941
|
"aliases": [],
|
|
3942
3942
|
"args": {},
|
|
@@ -6357,233 +6357,20 @@
|
|
|
6357
6357
|
"status.js"
|
|
6358
6358
|
]
|
|
6359
6359
|
},
|
|
6360
|
-
"
|
|
6360
|
+
"tokens:create": {
|
|
6361
6361
|
"aliases": [],
|
|
6362
|
-
"args": {
|
|
6363
|
-
|
|
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",
|
|
6364
6370
|
"examples": [
|
|
6365
6371
|
{
|
|
6366
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6367
|
-
"description": "
|
|
6368
|
-
}
|
|
6369
|
-
],
|
|
6370
|
-
"flags": {
|
|
6371
|
-
"config-path": {
|
|
6372
|
-
"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.",
|
|
6373
|
-
"name": "config-path",
|
|
6374
|
-
"hasDynamicHelp": false,
|
|
6375
|
-
"multiple": false,
|
|
6376
|
-
"type": "option"
|
|
6377
|
-
},
|
|
6378
|
-
"watch": {
|
|
6379
|
-
"description": "[Default: false] Run the typegen in watch mode",
|
|
6380
|
-
"name": "watch",
|
|
6381
|
-
"allowNo": false,
|
|
6382
|
-
"type": "boolean"
|
|
6383
|
-
}
|
|
6384
|
-
},
|
|
6385
|
-
"hasDynamicHelp": false,
|
|
6386
|
-
"hiddenAliases": [
|
|
6387
|
-
"typegen:generate"
|
|
6388
|
-
],
|
|
6389
|
-
"id": "typegen:generate",
|
|
6390
|
-
"pluginAlias": "@sanity/cli",
|
|
6391
|
-
"pluginName": "@sanity/cli",
|
|
6392
|
-
"pluginType": "core",
|
|
6393
|
-
"strict": true,
|
|
6394
|
-
"telemetry": {
|
|
6395
|
-
"redactedFlags": [
|
|
6396
|
-
{
|
|
6397
|
-
"canonical": "--config-path",
|
|
6398
|
-
"flags": [
|
|
6399
|
-
"--config-path"
|
|
6400
|
-
]
|
|
6401
|
-
}
|
|
6402
|
-
]
|
|
6403
|
-
},
|
|
6404
|
-
"isESM": true,
|
|
6405
|
-
"relativePath": [
|
|
6406
|
-
"dist",
|
|
6407
|
-
"commands",
|
|
6408
|
-
"typegen",
|
|
6409
|
-
"generate.js"
|
|
6410
|
-
]
|
|
6411
|
-
},
|
|
6412
|
-
"users:invite": {
|
|
6413
|
-
"aliases": [],
|
|
6414
|
-
"args": {
|
|
6415
|
-
"email": {
|
|
6416
|
-
"description": "Email address to invite",
|
|
6417
|
-
"name": "email",
|
|
6418
|
-
"required": false
|
|
6419
|
-
}
|
|
6420
|
-
},
|
|
6421
|
-
"description": "Invite a new user to the project",
|
|
6422
|
-
"examples": [
|
|
6423
|
-
{
|
|
6424
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6425
|
-
"description": "Invite a new user to the project (prompt for details)"
|
|
6426
|
-
},
|
|
6427
|
-
{
|
|
6428
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6429
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
6430
|
-
},
|
|
6431
|
-
{
|
|
6432
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
6433
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
6434
|
-
},
|
|
6435
|
-
{
|
|
6436
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project abc123",
|
|
6437
|
-
"description": "Invite a user to a specific project"
|
|
6438
|
-
}
|
|
6439
|
-
],
|
|
6440
|
-
"flags": {
|
|
6441
|
-
"project": {
|
|
6442
|
-
"aliases": [
|
|
6443
|
-
"project-id"
|
|
6444
|
-
],
|
|
6445
|
-
"char": "p",
|
|
6446
|
-
"deprecateAliases": true,
|
|
6447
|
-
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6448
|
-
"helpGroup": "OVERRIDE",
|
|
6449
|
-
"name": "project",
|
|
6450
|
-
"hasDynamicHelp": false,
|
|
6451
|
-
"helpValue": "<id>",
|
|
6452
|
-
"multiple": false,
|
|
6453
|
-
"type": "option"
|
|
6454
|
-
},
|
|
6455
|
-
"role": {
|
|
6456
|
-
"description": "Role to invite the user as",
|
|
6457
|
-
"name": "role",
|
|
6458
|
-
"hasDynamicHelp": false,
|
|
6459
|
-
"multiple": false,
|
|
6460
|
-
"type": "option"
|
|
6461
|
-
}
|
|
6462
|
-
},
|
|
6463
|
-
"hasDynamicHelp": false,
|
|
6464
|
-
"hiddenAliases": [
|
|
6465
|
-
"user:invite"
|
|
6466
|
-
],
|
|
6467
|
-
"id": "users:invite",
|
|
6468
|
-
"pluginAlias": "@sanity/cli",
|
|
6469
|
-
"pluginName": "@sanity/cli",
|
|
6470
|
-
"pluginType": "core",
|
|
6471
|
-
"strict": true,
|
|
6472
|
-
"isESM": true,
|
|
6473
|
-
"relativePath": [
|
|
6474
|
-
"dist",
|
|
6475
|
-
"commands",
|
|
6476
|
-
"users",
|
|
6477
|
-
"invite.js"
|
|
6478
|
-
]
|
|
6479
|
-
},
|
|
6480
|
-
"users:list": {
|
|
6481
|
-
"aliases": [],
|
|
6482
|
-
"args": {},
|
|
6483
|
-
"description": "List project members",
|
|
6484
|
-
"examples": [
|
|
6485
|
-
{
|
|
6486
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6487
|
-
"description": "List all users of the project"
|
|
6488
|
-
},
|
|
6489
|
-
{
|
|
6490
|
-
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6491
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6492
|
-
},
|
|
6493
|
-
{
|
|
6494
|
-
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
6495
|
-
"description": "List all users, sorted by role"
|
|
6496
|
-
},
|
|
6497
|
-
{
|
|
6498
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6499
|
-
"description": "List users for a specific project"
|
|
6500
|
-
}
|
|
6501
|
-
],
|
|
6502
|
-
"flags": {
|
|
6503
|
-
"project": {
|
|
6504
|
-
"aliases": [
|
|
6505
|
-
"project-id"
|
|
6506
|
-
],
|
|
6507
|
-
"char": "p",
|
|
6508
|
-
"deprecateAliases": true,
|
|
6509
|
-
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6510
|
-
"helpGroup": "OVERRIDE",
|
|
6511
|
-
"name": "project",
|
|
6512
|
-
"hasDynamicHelp": false,
|
|
6513
|
-
"helpValue": "<id>",
|
|
6514
|
-
"multiple": false,
|
|
6515
|
-
"type": "option"
|
|
6516
|
-
},
|
|
6517
|
-
"invitations": {
|
|
6518
|
-
"description": "Includes or excludes pending invitations",
|
|
6519
|
-
"name": "invitations",
|
|
6520
|
-
"allowNo": true,
|
|
6521
|
-
"type": "boolean"
|
|
6522
|
-
},
|
|
6523
|
-
"order": {
|
|
6524
|
-
"description": "Sort output ascending/descending",
|
|
6525
|
-
"name": "order",
|
|
6526
|
-
"default": "asc",
|
|
6527
|
-
"hasDynamicHelp": false,
|
|
6528
|
-
"multiple": false,
|
|
6529
|
-
"options": [
|
|
6530
|
-
"asc",
|
|
6531
|
-
"desc"
|
|
6532
|
-
],
|
|
6533
|
-
"type": "option"
|
|
6534
|
-
},
|
|
6535
|
-
"robots": {
|
|
6536
|
-
"description": "Includes or excludes robots (token users)",
|
|
6537
|
-
"name": "robots",
|
|
6538
|
-
"allowNo": true,
|
|
6539
|
-
"type": "boolean"
|
|
6540
|
-
},
|
|
6541
|
-
"sort": {
|
|
6542
|
-
"description": "Sort users by specified column",
|
|
6543
|
-
"name": "sort",
|
|
6544
|
-
"default": "date",
|
|
6545
|
-
"hasDynamicHelp": false,
|
|
6546
|
-
"multiple": false,
|
|
6547
|
-
"options": [
|
|
6548
|
-
"id",
|
|
6549
|
-
"name",
|
|
6550
|
-
"role",
|
|
6551
|
-
"date"
|
|
6552
|
-
],
|
|
6553
|
-
"type": "option"
|
|
6554
|
-
}
|
|
6555
|
-
},
|
|
6556
|
-
"hasDynamicHelp": false,
|
|
6557
|
-
"hiddenAliases": [
|
|
6558
|
-
"user:list"
|
|
6559
|
-
],
|
|
6560
|
-
"id": "users:list",
|
|
6561
|
-
"pluginAlias": "@sanity/cli",
|
|
6562
|
-
"pluginName": "@sanity/cli",
|
|
6563
|
-
"pluginType": "core",
|
|
6564
|
-
"strict": true,
|
|
6565
|
-
"isESM": true,
|
|
6566
|
-
"relativePath": [
|
|
6567
|
-
"dist",
|
|
6568
|
-
"commands",
|
|
6569
|
-
"users",
|
|
6570
|
-
"list.js"
|
|
6571
|
-
]
|
|
6572
|
-
},
|
|
6573
|
-
"tokens:create": {
|
|
6574
|
-
"aliases": [],
|
|
6575
|
-
"args": {
|
|
6576
|
-
"label": {
|
|
6577
|
-
"description": "Label for the new token",
|
|
6578
|
-
"name": "label",
|
|
6579
|
-
"required": false
|
|
6580
|
-
}
|
|
6581
|
-
},
|
|
6582
|
-
"description": "Create a new API token with access to an organization and its projects",
|
|
6583
|
-
"examples": [
|
|
6584
|
-
{
|
|
6585
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
6586
|
-
"description": "Create a token, choosing its access interactively"
|
|
6372
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
6373
|
+
"description": "Create a token, choosing its access interactively"
|
|
6587
6374
|
},
|
|
6588
6375
|
{
|
|
6589
6376
|
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --grant context=developer --grant blueprints --grant project:abc123=editor",
|
|
@@ -6915,59 +6702,678 @@
|
|
|
6915
6702
|
"rotate.js"
|
|
6916
6703
|
]
|
|
6917
6704
|
},
|
|
6918
|
-
"
|
|
6705
|
+
"typegen:generate": {
|
|
6919
6706
|
"aliases": [],
|
|
6920
|
-
"args": {
|
|
6921
|
-
|
|
6922
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
6923
|
-
"name": "knowledgeBaseId",
|
|
6924
|
-
"required": true
|
|
6925
|
-
},
|
|
6926
|
-
"documentId": {
|
|
6927
|
-
"description": "The document's ID.",
|
|
6928
|
-
"name": "documentId",
|
|
6929
|
-
"required": true
|
|
6930
|
-
}
|
|
6931
|
-
},
|
|
6932
|
-
"description": "Returns the markdown a document converted to: the text builds read, and the line numbers citations use. Set `chunk` or `lines` to get part of it, and `format` to `markdown` or `plain` to get the text alone instead of JSON. Until the document is converted, the request returns `409` with code `documentNotConverted`. With `format=raw` it returns the document as its source gave it, as an attachment, or `409` with code `documentNotStored` when the document was too large to keep.",
|
|
6707
|
+
"args": {},
|
|
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.",
|
|
6933
6709
|
"examples": [
|
|
6934
6710
|
{
|
|
6935
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
6936
|
-
"description": "
|
|
6937
|
-
},
|
|
6938
|
-
{
|
|
6939
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 document-def456 --lines 10-20 --line-numbers",
|
|
6940
|
-
"description": "Print lines 10 to 20, each with its line number"
|
|
6941
|
-
},
|
|
6942
|
-
{
|
|
6943
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 document-def456 --format raw --output handbook.pdf",
|
|
6944
|
-
"description": "Download the original file"
|
|
6711
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6712
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6945
6713
|
}
|
|
6946
6714
|
],
|
|
6947
6715
|
"flags": {
|
|
6948
|
-
"
|
|
6949
|
-
"description": "
|
|
6950
|
-
"
|
|
6951
|
-
"
|
|
6952
|
-
"
|
|
6953
|
-
"type": "
|
|
6954
|
-
},
|
|
6955
|
-
"
|
|
6956
|
-
"description": "
|
|
6957
|
-
"name": "
|
|
6958
|
-
"
|
|
6959
|
-
"
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
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",
|
|
6719
|
+
"hasDynamicHelp": false,
|
|
6720
|
+
"multiple": false,
|
|
6721
|
+
"type": "option"
|
|
6722
|
+
},
|
|
6723
|
+
"watch": {
|
|
6724
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
6725
|
+
"name": "watch",
|
|
6726
|
+
"allowNo": false,
|
|
6727
|
+
"type": "boolean"
|
|
6728
|
+
}
|
|
6729
|
+
},
|
|
6730
|
+
"hasDynamicHelp": false,
|
|
6731
|
+
"hiddenAliases": [
|
|
6732
|
+
"typegen:generate"
|
|
6733
|
+
],
|
|
6734
|
+
"id": "typegen:generate",
|
|
6735
|
+
"pluginAlias": "@sanity/cli",
|
|
6736
|
+
"pluginName": "@sanity/cli",
|
|
6737
|
+
"pluginType": "core",
|
|
6738
|
+
"strict": true,
|
|
6739
|
+
"telemetry": {
|
|
6740
|
+
"redactedFlags": [
|
|
6741
|
+
{
|
|
6742
|
+
"canonical": "--config-path",
|
|
6743
|
+
"flags": [
|
|
6744
|
+
"--config-path"
|
|
6745
|
+
]
|
|
6746
|
+
}
|
|
6747
|
+
]
|
|
6748
|
+
},
|
|
6749
|
+
"isESM": true,
|
|
6750
|
+
"relativePath": [
|
|
6751
|
+
"dist",
|
|
6752
|
+
"commands",
|
|
6753
|
+
"typegen",
|
|
6754
|
+
"generate.js"
|
|
6755
|
+
]
|
|
6756
|
+
},
|
|
6757
|
+
"users:invite": {
|
|
6758
|
+
"aliases": [],
|
|
6759
|
+
"args": {
|
|
6760
|
+
"email": {
|
|
6761
|
+
"description": "Email address to invite",
|
|
6762
|
+
"name": "email",
|
|
6763
|
+
"required": false
|
|
6764
|
+
}
|
|
6765
|
+
},
|
|
6766
|
+
"description": "Invite a new user to the project",
|
|
6767
|
+
"examples": [
|
|
6768
|
+
{
|
|
6769
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6770
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
6771
|
+
},
|
|
6772
|
+
{
|
|
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
|
+
},
|
|
6776
|
+
{
|
|
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"
|
|
6783
|
+
}
|
|
6784
|
+
],
|
|
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"
|
|
6806
|
+
}
|
|
6807
|
+
},
|
|
6808
|
+
"hasDynamicHelp": false,
|
|
6809
|
+
"hiddenAliases": [
|
|
6810
|
+
"user:invite"
|
|
6811
|
+
],
|
|
6812
|
+
"id": "users:invite",
|
|
6813
|
+
"pluginAlias": "@sanity/cli",
|
|
6814
|
+
"pluginName": "@sanity/cli",
|
|
6815
|
+
"pluginType": "core",
|
|
6816
|
+
"strict": true,
|
|
6817
|
+
"isESM": true,
|
|
6818
|
+
"relativePath": [
|
|
6819
|
+
"dist",
|
|
6820
|
+
"commands",
|
|
6821
|
+
"users",
|
|
6822
|
+
"invite.js"
|
|
6823
|
+
]
|
|
6824
|
+
},
|
|
6825
|
+
"users:list": {
|
|
6826
|
+
"aliases": [],
|
|
6827
|
+
"args": {},
|
|
6828
|
+
"description": "List project members",
|
|
6829
|
+
"examples": [
|
|
6830
|
+
{
|
|
6831
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6832
|
+
"description": "List all users of the project"
|
|
6833
|
+
},
|
|
6834
|
+
{
|
|
6835
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6836
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6837
|
+
},
|
|
6838
|
+
{
|
|
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"
|
|
6845
|
+
}
|
|
6846
|
+
],
|
|
6847
|
+
"flags": {
|
|
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",
|
|
6857
|
+
"hasDynamicHelp": false,
|
|
6858
|
+
"helpValue": "<id>",
|
|
6859
|
+
"multiple": false,
|
|
6860
|
+
"type": "option"
|
|
6861
|
+
},
|
|
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",
|
|
6872
|
+
"hasDynamicHelp": false,
|
|
6873
|
+
"multiple": false,
|
|
6874
|
+
"options": [
|
|
6875
|
+
"asc",
|
|
6876
|
+
"desc"
|
|
6877
|
+
],
|
|
6878
|
+
"type": "option"
|
|
6879
|
+
},
|
|
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",
|
|
6890
|
+
"hasDynamicHelp": false,
|
|
6891
|
+
"multiple": false,
|
|
6892
|
+
"options": [
|
|
6893
|
+
"id",
|
|
6894
|
+
"name",
|
|
6895
|
+
"role",
|
|
6896
|
+
"date"
|
|
6897
|
+
],
|
|
6898
|
+
"type": "option"
|
|
6899
|
+
}
|
|
6900
|
+
},
|
|
6901
|
+
"hasDynamicHelp": false,
|
|
6902
|
+
"hiddenAliases": [
|
|
6903
|
+
"user:list"
|
|
6904
|
+
],
|
|
6905
|
+
"id": "users:list",
|
|
6906
|
+
"pluginAlias": "@sanity/cli",
|
|
6907
|
+
"pluginName": "@sanity/cli",
|
|
6908
|
+
"pluginType": "core",
|
|
6909
|
+
"strict": true,
|
|
6910
|
+
"isESM": true,
|
|
6911
|
+
"relativePath": [
|
|
6912
|
+
"dist",
|
|
6913
|
+
"commands",
|
|
6914
|
+
"users",
|
|
6915
|
+
"list.js"
|
|
6916
|
+
]
|
|
6917
|
+
},
|
|
6918
|
+
"context:entries:get": {
|
|
6919
|
+
"aliases": [],
|
|
6920
|
+
"args": {
|
|
6921
|
+
"knowledgeBaseId": {
|
|
6922
|
+
"description": "Knowledge base ID",
|
|
6923
|
+
"name": "knowledgeBaseId",
|
|
6924
|
+
"required": true
|
|
6925
|
+
},
|
|
6926
|
+
"path": {
|
|
6927
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
6928
|
+
"name": "path",
|
|
6929
|
+
"required": true
|
|
6930
|
+
}
|
|
6931
|
+
},
|
|
6932
|
+
"description": "Get an entry and its content",
|
|
6933
|
+
"examples": [
|
|
6934
|
+
{
|
|
6935
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
6936
|
+
"description": "Print an entry and its content"
|
|
6937
|
+
},
|
|
6938
|
+
{
|
|
6939
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
6940
|
+
"description": "Output the entry, including citations, as JSON"
|
|
6941
|
+
}
|
|
6942
|
+
],
|
|
6943
|
+
"flags": {
|
|
6944
|
+
"json": {
|
|
6945
|
+
"description": "Format output as json.",
|
|
6946
|
+
"helpGroup": "GLOBAL",
|
|
6947
|
+
"name": "json",
|
|
6948
|
+
"allowNo": false,
|
|
6949
|
+
"type": "boolean"
|
|
6950
|
+
}
|
|
6951
|
+
},
|
|
6952
|
+
"hasDynamicHelp": false,
|
|
6953
|
+
"hiddenAliases": [],
|
|
6954
|
+
"id": "context:entries:get",
|
|
6955
|
+
"pluginAlias": "@sanity/cli",
|
|
6956
|
+
"pluginName": "@sanity/cli",
|
|
6957
|
+
"pluginType": "core",
|
|
6958
|
+
"strict": true,
|
|
6959
|
+
"enableJsonFlag": true,
|
|
6960
|
+
"isESM": true,
|
|
6961
|
+
"relativePath": [
|
|
6962
|
+
"dist",
|
|
6963
|
+
"commands",
|
|
6964
|
+
"context",
|
|
6965
|
+
"entries",
|
|
6966
|
+
"get.js"
|
|
6967
|
+
]
|
|
6968
|
+
},
|
|
6969
|
+
"context:entries:list": {
|
|
6970
|
+
"aliases": [],
|
|
6971
|
+
"args": {
|
|
6972
|
+
"knowledgeBaseId": {
|
|
6973
|
+
"description": "Knowledge base ID",
|
|
6974
|
+
"name": "knowledgeBaseId",
|
|
6975
|
+
"required": true
|
|
6976
|
+
}
|
|
6977
|
+
},
|
|
6978
|
+
"description": "List the entries a knowledge base build produced",
|
|
6979
|
+
"examples": [
|
|
6980
|
+
{
|
|
6981
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
6982
|
+
"description": "List all entries for a knowledge base"
|
|
6983
|
+
},
|
|
6984
|
+
{
|
|
6985
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
6986
|
+
"description": "Output entries as JSON"
|
|
6987
|
+
}
|
|
6988
|
+
],
|
|
6989
|
+
"flags": {
|
|
6990
|
+
"json": {
|
|
6991
|
+
"description": "Format output as json.",
|
|
6992
|
+
"helpGroup": "GLOBAL",
|
|
6993
|
+
"name": "json",
|
|
6994
|
+
"allowNo": false,
|
|
6995
|
+
"type": "boolean"
|
|
6996
|
+
}
|
|
6997
|
+
},
|
|
6998
|
+
"hasDynamicHelp": false,
|
|
6999
|
+
"hiddenAliases": [],
|
|
7000
|
+
"id": "context:entries:list",
|
|
7001
|
+
"pluginAlias": "@sanity/cli",
|
|
7002
|
+
"pluginName": "@sanity/cli",
|
|
7003
|
+
"pluginType": "core",
|
|
7004
|
+
"strict": true,
|
|
7005
|
+
"enableJsonFlag": true,
|
|
7006
|
+
"isESM": true,
|
|
7007
|
+
"relativePath": [
|
|
7008
|
+
"dist",
|
|
7009
|
+
"commands",
|
|
7010
|
+
"context",
|
|
7011
|
+
"entries",
|
|
7012
|
+
"list.js"
|
|
7013
|
+
]
|
|
7014
|
+
},
|
|
7015
|
+
"context:entries:rebuild": {
|
|
7016
|
+
"aliases": [],
|
|
7017
|
+
"args": {
|
|
7018
|
+
"knowledgeBaseId": {
|
|
7019
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7020
|
+
"name": "knowledgeBaseId",
|
|
7021
|
+
"required": true
|
|
7022
|
+
},
|
|
7023
|
+
"entryPath": {
|
|
7024
|
+
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
7025
|
+
"name": "entryPath",
|
|
7026
|
+
"required": true
|
|
7027
|
+
}
|
|
7028
|
+
},
|
|
7029
|
+
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
7030
|
+
"examples": [
|
|
7031
|
+
{
|
|
7032
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
7033
|
+
"description": "Rebuild an entry from its sources"
|
|
7034
|
+
},
|
|
7035
|
+
{
|
|
7036
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
7037
|
+
"description": "Rebuild an entry from its sources, as JSON"
|
|
7038
|
+
}
|
|
7039
|
+
],
|
|
7040
|
+
"flags": {
|
|
7041
|
+
"json": {
|
|
7042
|
+
"description": "Format output as json.",
|
|
7043
|
+
"helpGroup": "GLOBAL",
|
|
7044
|
+
"name": "json",
|
|
7045
|
+
"allowNo": false,
|
|
7046
|
+
"type": "boolean"
|
|
7047
|
+
},
|
|
7048
|
+
"watch": {
|
|
7049
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7050
|
+
"name": "watch",
|
|
7051
|
+
"allowNo": false,
|
|
7052
|
+
"type": "boolean"
|
|
7053
|
+
}
|
|
7054
|
+
},
|
|
7055
|
+
"hasDynamicHelp": false,
|
|
7056
|
+
"hiddenAliases": [],
|
|
7057
|
+
"id": "context:entries:rebuild",
|
|
7058
|
+
"pluginAlias": "@sanity/cli",
|
|
7059
|
+
"pluginName": "@sanity/cli",
|
|
7060
|
+
"pluginType": "core",
|
|
7061
|
+
"strict": true,
|
|
7062
|
+
"summary": "Rebuild an entry from its sources",
|
|
7063
|
+
"enableJsonFlag": true,
|
|
7064
|
+
"telemetry": {
|
|
7065
|
+
"redactedFlags": []
|
|
7066
|
+
},
|
|
7067
|
+
"isESM": true,
|
|
7068
|
+
"relativePath": [
|
|
7069
|
+
"dist",
|
|
7070
|
+
"commands",
|
|
7071
|
+
"context",
|
|
7072
|
+
"entries",
|
|
7073
|
+
"rebuild.js"
|
|
7074
|
+
]
|
|
7075
|
+
},
|
|
7076
|
+
"context:instructions:create": {
|
|
7077
|
+
"aliases": [],
|
|
7078
|
+
"args": {
|
|
7079
|
+
"knowledgeBaseId": {
|
|
7080
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7081
|
+
"name": "knowledgeBaseId",
|
|
7082
|
+
"required": true
|
|
7083
|
+
}
|
|
7084
|
+
},
|
|
7085
|
+
"description": "Creates a standing instruction for how entries built from its documents are written. Every instruction applies to specific documents, set in `scopeDocumentIds`. To rebuild entries under the new instruction right away, pass their paths in `rebuildPaths`. The response includes the rebuild job ID, or `null` if the rebuild could not start. The instruction is saved either way. After the instruction is saved, a background check files issues for entries that contradict it. If you already checked the instruction for contradictions, set `verified` to skip the background check. If the requested rebuild does not start, the background check runs even when `verified` is set.",
|
|
7086
|
+
"examples": [
|
|
7087
|
+
{
|
|
7088
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7089
|
+
"description": "Create an instruction"
|
|
7090
|
+
},
|
|
7091
|
+
{
|
|
7092
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7093
|
+
"description": "Create an instruction, as JSON"
|
|
7094
|
+
}
|
|
7095
|
+
],
|
|
7096
|
+
"flags": {
|
|
7097
|
+
"json": {
|
|
7098
|
+
"description": "Format output as json.",
|
|
7099
|
+
"helpGroup": "GLOBAL",
|
|
7100
|
+
"name": "json",
|
|
7101
|
+
"allowNo": false,
|
|
7102
|
+
"type": "boolean"
|
|
7103
|
+
},
|
|
7104
|
+
"statement": {
|
|
7105
|
+
"description": "The instruction in plain language. Builds follow it over what the sources say.",
|
|
7106
|
+
"name": "statement",
|
|
7107
|
+
"required": true,
|
|
7108
|
+
"hasDynamicHelp": false,
|
|
7109
|
+
"multiple": false,
|
|
7110
|
+
"type": "option"
|
|
7111
|
+
},
|
|
7112
|
+
"scope-document-ids": {
|
|
7113
|
+
"description": "IDs of the documents the instruction applies to. Builds apply it when they write entries built from these documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7114
|
+
"name": "scope-document-ids",
|
|
7115
|
+
"required": true,
|
|
7116
|
+
"hasDynamicHelp": false,
|
|
7117
|
+
"multiple": true,
|
|
7118
|
+
"type": "option"
|
|
7119
|
+
},
|
|
7120
|
+
"rebuild-paths": {
|
|
7121
|
+
"description": "Paths of entries to rebuild under the new instruction right away. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7122
|
+
"name": "rebuild-paths",
|
|
7123
|
+
"hasDynamicHelp": false,
|
|
7124
|
+
"multiple": true,
|
|
7125
|
+
"type": "option"
|
|
7126
|
+
},
|
|
7127
|
+
"verified": {
|
|
7128
|
+
"description": "Whether you already checked the instruction for entries that contradict it. When `true`, the background check that files issues for those entries is skipped. It still runs if the rebuild you requested in `rebuildPaths` does not start.",
|
|
7129
|
+
"name": "verified",
|
|
7130
|
+
"allowNo": true,
|
|
7131
|
+
"type": "boolean"
|
|
7132
|
+
}
|
|
7133
|
+
},
|
|
7134
|
+
"hasDynamicHelp": false,
|
|
7135
|
+
"hiddenAliases": [],
|
|
7136
|
+
"id": "context:instructions:create",
|
|
7137
|
+
"pluginAlias": "@sanity/cli",
|
|
7138
|
+
"pluginName": "@sanity/cli",
|
|
7139
|
+
"pluginType": "core",
|
|
7140
|
+
"strict": true,
|
|
7141
|
+
"summary": "Create an instruction",
|
|
7142
|
+
"enableJsonFlag": true,
|
|
7143
|
+
"telemetry": {
|
|
7144
|
+
"redactedFlags": [
|
|
7145
|
+
{
|
|
7146
|
+
"canonical": "--statement",
|
|
7147
|
+
"flags": [
|
|
7148
|
+
"--statement"
|
|
7149
|
+
]
|
|
7150
|
+
},
|
|
7151
|
+
{
|
|
7152
|
+
"canonical": "--scope-document-ids",
|
|
7153
|
+
"flags": [
|
|
7154
|
+
"--scope-document-ids"
|
|
7155
|
+
]
|
|
7156
|
+
},
|
|
7157
|
+
{
|
|
7158
|
+
"canonical": "--rebuild-paths",
|
|
7159
|
+
"flags": [
|
|
7160
|
+
"--rebuild-paths"
|
|
7161
|
+
]
|
|
7162
|
+
}
|
|
7163
|
+
]
|
|
7164
|
+
},
|
|
7165
|
+
"isESM": true,
|
|
7166
|
+
"relativePath": [
|
|
7167
|
+
"dist",
|
|
7168
|
+
"commands",
|
|
7169
|
+
"context",
|
|
7170
|
+
"instructions",
|
|
7171
|
+
"create.js"
|
|
7172
|
+
]
|
|
7173
|
+
},
|
|
7174
|
+
"context:instructions:delete": {
|
|
7175
|
+
"aliases": [],
|
|
7176
|
+
"args": {
|
|
7177
|
+
"knowledgeBaseId": {
|
|
7178
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7179
|
+
"name": "knowledgeBaseId",
|
|
7180
|
+
"required": true
|
|
7181
|
+
},
|
|
7182
|
+
"instructionId": {
|
|
7183
|
+
"description": "The instruction's ID.",
|
|
7184
|
+
"name": "instructionId",
|
|
7185
|
+
"required": true
|
|
7186
|
+
}
|
|
7187
|
+
},
|
|
7188
|
+
"description": "Deletes the instruction. Builds stop applying it from the next run. Entries already written under it keep their text until they are rebuilt; pass `rebuild=true` to rebuild every entry built from its documents right away.",
|
|
7189
|
+
"examples": [
|
|
7190
|
+
{
|
|
7191
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7192
|
+
"description": "Delete an instruction"
|
|
7193
|
+
},
|
|
7194
|
+
{
|
|
7195
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7196
|
+
"description": "Delete an instruction, as JSON"
|
|
7197
|
+
}
|
|
7198
|
+
],
|
|
7199
|
+
"flags": {
|
|
7200
|
+
"json": {
|
|
7201
|
+
"description": "Format output as json.",
|
|
7202
|
+
"helpGroup": "GLOBAL",
|
|
7203
|
+
"name": "json",
|
|
7204
|
+
"allowNo": false,
|
|
7205
|
+
"type": "boolean"
|
|
7206
|
+
},
|
|
7207
|
+
"rebuild": {
|
|
7208
|
+
"description": "Set to `true` to rebuild every entry built from the instruction's documents once it is deleted, so pages written under the instruction reflect their documents again. The response returns the rebuild job ID in `rebuildJobId`.",
|
|
7209
|
+
"name": "rebuild",
|
|
7210
|
+
"allowNo": true,
|
|
7211
|
+
"type": "boolean"
|
|
7212
|
+
},
|
|
7213
|
+
"yes": {
|
|
7214
|
+
"char": "y",
|
|
7215
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
7216
|
+
"name": "yes",
|
|
7217
|
+
"allowNo": false,
|
|
7218
|
+
"type": "boolean"
|
|
7219
|
+
}
|
|
7220
|
+
},
|
|
7221
|
+
"hasDynamicHelp": false,
|
|
7222
|
+
"hiddenAliases": [],
|
|
7223
|
+
"id": "context:instructions:delete",
|
|
7224
|
+
"pluginAlias": "@sanity/cli",
|
|
7225
|
+
"pluginName": "@sanity/cli",
|
|
7226
|
+
"pluginType": "core",
|
|
7227
|
+
"strict": true,
|
|
7228
|
+
"summary": "Delete an instruction",
|
|
7229
|
+
"enableJsonFlag": true,
|
|
7230
|
+
"telemetry": {
|
|
7231
|
+
"redactedFlags": []
|
|
7232
|
+
},
|
|
7233
|
+
"isESM": true,
|
|
7234
|
+
"relativePath": [
|
|
7235
|
+
"dist",
|
|
7236
|
+
"commands",
|
|
7237
|
+
"context",
|
|
7238
|
+
"instructions",
|
|
7239
|
+
"delete.js"
|
|
7240
|
+
]
|
|
7241
|
+
},
|
|
7242
|
+
"context:instructions:edit": {
|
|
7243
|
+
"aliases": [],
|
|
7244
|
+
"args": {
|
|
7245
|
+
"knowledgeBaseId": {
|
|
7246
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7247
|
+
"name": "knowledgeBaseId",
|
|
7248
|
+
"required": true
|
|
7249
|
+
},
|
|
7250
|
+
"instructionId": {
|
|
7251
|
+
"description": "The instruction's ID.",
|
|
7252
|
+
"name": "instructionId",
|
|
7253
|
+
"required": true
|
|
7254
|
+
}
|
|
7255
|
+
},
|
|
7256
|
+
"description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
|
|
7257
|
+
"examples": [
|
|
7258
|
+
{
|
|
7259
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7260
|
+
"description": "Update an instruction"
|
|
7261
|
+
},
|
|
7262
|
+
{
|
|
7263
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7264
|
+
"description": "Update an instruction, as JSON"
|
|
7265
|
+
}
|
|
7266
|
+
],
|
|
7267
|
+
"flags": {
|
|
7268
|
+
"json": {
|
|
7269
|
+
"description": "Format output as json.",
|
|
7270
|
+
"helpGroup": "GLOBAL",
|
|
7271
|
+
"name": "json",
|
|
7272
|
+
"allowNo": false,
|
|
7273
|
+
"type": "boolean"
|
|
7274
|
+
},
|
|
7275
|
+
"statement": {
|
|
7276
|
+
"description": "The new instruction text. Omit it to keep the current text.",
|
|
7277
|
+
"name": "statement",
|
|
7278
|
+
"hasDynamicHelp": false,
|
|
7279
|
+
"multiple": false,
|
|
7280
|
+
"type": "option"
|
|
7281
|
+
},
|
|
7282
|
+
"scope-document-ids": {
|
|
7283
|
+
"description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7284
|
+
"name": "scope-document-ids",
|
|
7285
|
+
"hasDynamicHelp": false,
|
|
7286
|
+
"multiple": true,
|
|
7287
|
+
"type": "option"
|
|
7288
|
+
}
|
|
7289
|
+
},
|
|
7290
|
+
"hasDynamicHelp": false,
|
|
7291
|
+
"hiddenAliases": [],
|
|
7292
|
+
"id": "context:instructions:edit",
|
|
7293
|
+
"pluginAlias": "@sanity/cli",
|
|
7294
|
+
"pluginName": "@sanity/cli",
|
|
7295
|
+
"pluginType": "core",
|
|
7296
|
+
"strict": true,
|
|
7297
|
+
"summary": "Update an instruction",
|
|
7298
|
+
"enableJsonFlag": true,
|
|
7299
|
+
"telemetry": {
|
|
7300
|
+
"redactedFlags": [
|
|
7301
|
+
{
|
|
7302
|
+
"canonical": "--statement",
|
|
7303
|
+
"flags": [
|
|
7304
|
+
"--statement"
|
|
7305
|
+
]
|
|
7306
|
+
},
|
|
7307
|
+
{
|
|
7308
|
+
"canonical": "--scope-document-ids",
|
|
7309
|
+
"flags": [
|
|
7310
|
+
"--scope-document-ids"
|
|
7311
|
+
]
|
|
7312
|
+
}
|
|
7313
|
+
]
|
|
7314
|
+
},
|
|
7315
|
+
"isESM": true,
|
|
7316
|
+
"relativePath": [
|
|
7317
|
+
"dist",
|
|
7318
|
+
"commands",
|
|
7319
|
+
"context",
|
|
7320
|
+
"instructions",
|
|
7321
|
+
"edit.js"
|
|
7322
|
+
]
|
|
7323
|
+
},
|
|
7324
|
+
"context:documents:content": {
|
|
7325
|
+
"aliases": [],
|
|
7326
|
+
"args": {
|
|
7327
|
+
"knowledgeBaseId": {
|
|
7328
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7329
|
+
"name": "knowledgeBaseId",
|
|
7330
|
+
"required": true
|
|
7331
|
+
},
|
|
7332
|
+
"documentId": {
|
|
7333
|
+
"description": "The document's ID.",
|
|
7334
|
+
"name": "documentId",
|
|
7335
|
+
"required": true
|
|
7336
|
+
}
|
|
7337
|
+
},
|
|
7338
|
+
"description": "Returns the markdown a document converted to: the text builds read, and the line numbers citations use. Set `chunk` or `lines` to get part of it, and `format` to `markdown` or `plain` to get the text alone instead of JSON. Until the document is converted, the request returns `409` with code `documentNotConverted`. With `format=raw` it returns the document as its source gave it, as an attachment, or `409` with code `documentNotStored` when the document was too large to keep.",
|
|
7339
|
+
"examples": [
|
|
7340
|
+
{
|
|
7341
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 document-def456",
|
|
7342
|
+
"description": "Print a document's markdown"
|
|
7343
|
+
},
|
|
7344
|
+
{
|
|
7345
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 document-def456 --lines 10-20 --line-numbers",
|
|
7346
|
+
"description": "Print lines 10 to 20, each with its line number"
|
|
7347
|
+
},
|
|
7348
|
+
{
|
|
7349
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 document-def456 --format raw --output handbook.pdf",
|
|
7350
|
+
"description": "Download the original file"
|
|
7351
|
+
}
|
|
7352
|
+
],
|
|
7353
|
+
"flags": {
|
|
7354
|
+
"json": {
|
|
7355
|
+
"description": "Format output as json.",
|
|
7356
|
+
"helpGroup": "GLOBAL",
|
|
7357
|
+
"name": "json",
|
|
7358
|
+
"allowNo": false,
|
|
7359
|
+
"type": "boolean"
|
|
7360
|
+
},
|
|
7361
|
+
"format": {
|
|
7362
|
+
"description": "Response format. `json` (default) returns the markdown with its line numbers. `markdown` and `plain` return the markdown alone, ready to pass to a model. `raw` returns the bytes the source gave, before conversion: the uploaded file, the crawled page, the dataset document as JSON.",
|
|
7363
|
+
"name": "format",
|
|
7364
|
+
"hasDynamicHelp": false,
|
|
7365
|
+
"multiple": false,
|
|
7366
|
+
"options": [
|
|
7367
|
+
"json",
|
|
7368
|
+
"markdown",
|
|
7369
|
+
"plain",
|
|
7370
|
+
"raw"
|
|
7371
|
+
],
|
|
7372
|
+
"type": "option"
|
|
7373
|
+
},
|
|
7374
|
+
"chunk": {
|
|
7375
|
+
"description": "Return only this chunk's lines. Citations name the chunk they quote.",
|
|
7376
|
+
"name": "chunk",
|
|
6971
7377
|
"hasDynamicHelp": false,
|
|
6972
7378
|
"multiple": false,
|
|
6973
7379
|
"type": "option"
|
|
@@ -7214,265 +7620,11 @@
|
|
|
7214
7620
|
"dist",
|
|
7215
7621
|
"commands",
|
|
7216
7622
|
"context",
|
|
7217
|
-
"documents",
|
|
7218
|
-
"get.js"
|
|
7219
|
-
]
|
|
7220
|
-
},
|
|
7221
|
-
"context:documents:list": {
|
|
7222
|
-
"aliases": [],
|
|
7223
|
-
"args": {
|
|
7224
|
-
"knowledgeBaseId": {
|
|
7225
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7226
|
-
"name": "knowledgeBaseId",
|
|
7227
|
-
"required": true
|
|
7228
|
-
}
|
|
7229
|
-
},
|
|
7230
|
-
"description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
|
|
7231
|
-
"examples": [
|
|
7232
|
-
{
|
|
7233
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7234
|
-
"description": "List documents"
|
|
7235
|
-
},
|
|
7236
|
-
{
|
|
7237
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7238
|
-
"description": "List documents, as JSON"
|
|
7239
|
-
}
|
|
7240
|
-
],
|
|
7241
|
-
"flags": {
|
|
7242
|
-
"json": {
|
|
7243
|
-
"description": "Format output as json.",
|
|
7244
|
-
"helpGroup": "GLOBAL",
|
|
7245
|
-
"name": "json",
|
|
7246
|
-
"allowNo": false,
|
|
7247
|
-
"type": "boolean"
|
|
7248
|
-
},
|
|
7249
|
-
"limit": {
|
|
7250
|
-
"description": "The maximum number of items to return.",
|
|
7251
|
-
"name": "limit",
|
|
7252
|
-
"hasDynamicHelp": false,
|
|
7253
|
-
"multiple": false,
|
|
7254
|
-
"type": "option"
|
|
7255
|
-
},
|
|
7256
|
-
"source": {
|
|
7257
|
-
"description": "Return only the documents of this source.",
|
|
7258
|
-
"name": "source",
|
|
7259
|
-
"hasDynamicHelp": false,
|
|
7260
|
-
"multiple": false,
|
|
7261
|
-
"type": "option"
|
|
7262
|
-
},
|
|
7263
|
-
"state": {
|
|
7264
|
-
"description": "Return only documents in this state. Without it, `deleted` documents are left out.",
|
|
7265
|
-
"name": "state",
|
|
7266
|
-
"hasDynamicHelp": false,
|
|
7267
|
-
"multiple": false,
|
|
7268
|
-
"options": [
|
|
7269
|
-
"active",
|
|
7270
|
-
"missing",
|
|
7271
|
-
"deleted"
|
|
7272
|
-
],
|
|
7273
|
-
"type": "option"
|
|
7274
|
-
},
|
|
7275
|
-
"ids": {
|
|
7276
|
-
"description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
|
|
7277
|
-
"name": "ids",
|
|
7278
|
-
"hasDynamicHelp": false,
|
|
7279
|
-
"multiple": false,
|
|
7280
|
-
"type": "option"
|
|
7281
|
-
}
|
|
7282
|
-
},
|
|
7283
|
-
"hasDynamicHelp": false,
|
|
7284
|
-
"hiddenAliases": [],
|
|
7285
|
-
"id": "context:documents:list",
|
|
7286
|
-
"pluginAlias": "@sanity/cli",
|
|
7287
|
-
"pluginName": "@sanity/cli",
|
|
7288
|
-
"pluginType": "core",
|
|
7289
|
-
"strict": true,
|
|
7290
|
-
"summary": "List documents",
|
|
7291
|
-
"enableJsonFlag": true,
|
|
7292
|
-
"telemetry": {
|
|
7293
|
-
"redactedFlags": [
|
|
7294
|
-
{
|
|
7295
|
-
"canonical": "--source",
|
|
7296
|
-
"flags": [
|
|
7297
|
-
"--source"
|
|
7298
|
-
]
|
|
7299
|
-
},
|
|
7300
|
-
{
|
|
7301
|
-
"canonical": "--ids",
|
|
7302
|
-
"flags": [
|
|
7303
|
-
"--ids"
|
|
7304
|
-
]
|
|
7305
|
-
}
|
|
7306
|
-
]
|
|
7307
|
-
},
|
|
7308
|
-
"isESM": true,
|
|
7309
|
-
"relativePath": [
|
|
7310
|
-
"dist",
|
|
7311
|
-
"commands",
|
|
7312
|
-
"context",
|
|
7313
|
-
"documents",
|
|
7314
|
-
"list.js"
|
|
7315
|
-
]
|
|
7316
|
-
},
|
|
7317
|
-
"context:entries:get": {
|
|
7318
|
-
"aliases": [],
|
|
7319
|
-
"args": {
|
|
7320
|
-
"knowledgeBaseId": {
|
|
7321
|
-
"description": "Knowledge base ID",
|
|
7322
|
-
"name": "knowledgeBaseId",
|
|
7323
|
-
"required": true
|
|
7324
|
-
},
|
|
7325
|
-
"path": {
|
|
7326
|
-
"description": "Entry path, as listed by `sanity context entries list`",
|
|
7327
|
-
"name": "path",
|
|
7328
|
-
"required": true
|
|
7329
|
-
}
|
|
7330
|
-
},
|
|
7331
|
-
"description": "Get an entry and its content",
|
|
7332
|
-
"examples": [
|
|
7333
|
-
{
|
|
7334
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
7335
|
-
"description": "Print an entry and its content"
|
|
7336
|
-
},
|
|
7337
|
-
{
|
|
7338
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
7339
|
-
"description": "Output the entry, including citations, as JSON"
|
|
7340
|
-
}
|
|
7341
|
-
],
|
|
7342
|
-
"flags": {
|
|
7343
|
-
"json": {
|
|
7344
|
-
"description": "Format output as json.",
|
|
7345
|
-
"helpGroup": "GLOBAL",
|
|
7346
|
-
"name": "json",
|
|
7347
|
-
"allowNo": false,
|
|
7348
|
-
"type": "boolean"
|
|
7349
|
-
}
|
|
7350
|
-
},
|
|
7351
|
-
"hasDynamicHelp": false,
|
|
7352
|
-
"hiddenAliases": [],
|
|
7353
|
-
"id": "context:entries:get",
|
|
7354
|
-
"pluginAlias": "@sanity/cli",
|
|
7355
|
-
"pluginName": "@sanity/cli",
|
|
7356
|
-
"pluginType": "core",
|
|
7357
|
-
"strict": true,
|
|
7358
|
-
"enableJsonFlag": true,
|
|
7359
|
-
"isESM": true,
|
|
7360
|
-
"relativePath": [
|
|
7361
|
-
"dist",
|
|
7362
|
-
"commands",
|
|
7363
|
-
"context",
|
|
7364
|
-
"entries",
|
|
7365
|
-
"get.js"
|
|
7366
|
-
]
|
|
7367
|
-
},
|
|
7368
|
-
"context:entries:list": {
|
|
7369
|
-
"aliases": [],
|
|
7370
|
-
"args": {
|
|
7371
|
-
"knowledgeBaseId": {
|
|
7372
|
-
"description": "Knowledge base ID",
|
|
7373
|
-
"name": "knowledgeBaseId",
|
|
7374
|
-
"required": true
|
|
7375
|
-
}
|
|
7376
|
-
},
|
|
7377
|
-
"description": "List the entries a knowledge base build produced",
|
|
7378
|
-
"examples": [
|
|
7379
|
-
{
|
|
7380
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7381
|
-
"description": "List all entries for a knowledge base"
|
|
7382
|
-
},
|
|
7383
|
-
{
|
|
7384
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7385
|
-
"description": "Output entries as JSON"
|
|
7386
|
-
}
|
|
7387
|
-
],
|
|
7388
|
-
"flags": {
|
|
7389
|
-
"json": {
|
|
7390
|
-
"description": "Format output as json.",
|
|
7391
|
-
"helpGroup": "GLOBAL",
|
|
7392
|
-
"name": "json",
|
|
7393
|
-
"allowNo": false,
|
|
7394
|
-
"type": "boolean"
|
|
7395
|
-
}
|
|
7396
|
-
},
|
|
7397
|
-
"hasDynamicHelp": false,
|
|
7398
|
-
"hiddenAliases": [],
|
|
7399
|
-
"id": "context:entries:list",
|
|
7400
|
-
"pluginAlias": "@sanity/cli",
|
|
7401
|
-
"pluginName": "@sanity/cli",
|
|
7402
|
-
"pluginType": "core",
|
|
7403
|
-
"strict": true,
|
|
7404
|
-
"enableJsonFlag": true,
|
|
7405
|
-
"isESM": true,
|
|
7406
|
-
"relativePath": [
|
|
7407
|
-
"dist",
|
|
7408
|
-
"commands",
|
|
7409
|
-
"context",
|
|
7410
|
-
"entries",
|
|
7411
|
-
"list.js"
|
|
7412
|
-
]
|
|
7413
|
-
},
|
|
7414
|
-
"context:entries:rebuild": {
|
|
7415
|
-
"aliases": [],
|
|
7416
|
-
"args": {
|
|
7417
|
-
"knowledgeBaseId": {
|
|
7418
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7419
|
-
"name": "knowledgeBaseId",
|
|
7420
|
-
"required": true
|
|
7421
|
-
},
|
|
7422
|
-
"entryPath": {
|
|
7423
|
-
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
7424
|
-
"name": "entryPath",
|
|
7425
|
-
"required": true
|
|
7426
|
-
}
|
|
7427
|
-
},
|
|
7428
|
-
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
7429
|
-
"examples": [
|
|
7430
|
-
{
|
|
7431
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
7432
|
-
"description": "Rebuild an entry from its sources"
|
|
7433
|
-
},
|
|
7434
|
-
{
|
|
7435
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
7436
|
-
"description": "Rebuild an entry from its sources, as JSON"
|
|
7437
|
-
}
|
|
7438
|
-
],
|
|
7439
|
-
"flags": {
|
|
7440
|
-
"json": {
|
|
7441
|
-
"description": "Format output as json.",
|
|
7442
|
-
"helpGroup": "GLOBAL",
|
|
7443
|
-
"name": "json",
|
|
7444
|
-
"allowNo": false,
|
|
7445
|
-
"type": "boolean"
|
|
7446
|
-
},
|
|
7447
|
-
"watch": {
|
|
7448
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7449
|
-
"name": "watch",
|
|
7450
|
-
"allowNo": false,
|
|
7451
|
-
"type": "boolean"
|
|
7452
|
-
}
|
|
7453
|
-
},
|
|
7454
|
-
"hasDynamicHelp": false,
|
|
7455
|
-
"hiddenAliases": [],
|
|
7456
|
-
"id": "context:entries:rebuild",
|
|
7457
|
-
"pluginAlias": "@sanity/cli",
|
|
7458
|
-
"pluginName": "@sanity/cli",
|
|
7459
|
-
"pluginType": "core",
|
|
7460
|
-
"strict": true,
|
|
7461
|
-
"summary": "Rebuild an entry from its sources",
|
|
7462
|
-
"enableJsonFlag": true,
|
|
7463
|
-
"telemetry": {
|
|
7464
|
-
"redactedFlags": []
|
|
7465
|
-
},
|
|
7466
|
-
"isESM": true,
|
|
7467
|
-
"relativePath": [
|
|
7468
|
-
"dist",
|
|
7469
|
-
"commands",
|
|
7470
|
-
"context",
|
|
7471
|
-
"entries",
|
|
7472
|
-
"rebuild.js"
|
|
7623
|
+
"documents",
|
|
7624
|
+
"get.js"
|
|
7473
7625
|
]
|
|
7474
7626
|
},
|
|
7475
|
-
"context:
|
|
7627
|
+
"context:documents:list": {
|
|
7476
7628
|
"aliases": [],
|
|
7477
7629
|
"args": {
|
|
7478
7630
|
"knowledgeBaseId": {
|
|
@@ -7481,15 +7633,15 @@
|
|
|
7481
7633
|
"required": true
|
|
7482
7634
|
}
|
|
7483
7635
|
},
|
|
7484
|
-
"description": "
|
|
7636
|
+
"description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
|
|
7485
7637
|
"examples": [
|
|
7486
7638
|
{
|
|
7487
7639
|
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7488
|
-
"description": "
|
|
7640
|
+
"description": "List documents"
|
|
7489
7641
|
},
|
|
7490
7642
|
{
|
|
7491
7643
|
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7492
|
-
"description": "
|
|
7644
|
+
"description": "List documents, as JSON"
|
|
7493
7645
|
}
|
|
7494
7646
|
],
|
|
7495
7647
|
"flags": {
|
|
@@ -7500,63 +7652,61 @@
|
|
|
7500
7652
|
"allowNo": false,
|
|
7501
7653
|
"type": "boolean"
|
|
7502
7654
|
},
|
|
7503
|
-
"
|
|
7504
|
-
"description": "The
|
|
7505
|
-
"name": "
|
|
7506
|
-
"required": true,
|
|
7655
|
+
"limit": {
|
|
7656
|
+
"description": "The maximum number of items to return.",
|
|
7657
|
+
"name": "limit",
|
|
7507
7658
|
"hasDynamicHelp": false,
|
|
7508
7659
|
"multiple": false,
|
|
7509
7660
|
"type": "option"
|
|
7510
7661
|
},
|
|
7511
|
-
"
|
|
7512
|
-
"description": "
|
|
7513
|
-
"name": "
|
|
7514
|
-
"required": true,
|
|
7662
|
+
"source": {
|
|
7663
|
+
"description": "Return only the documents of this source.",
|
|
7664
|
+
"name": "source",
|
|
7515
7665
|
"hasDynamicHelp": false,
|
|
7516
|
-
"multiple":
|
|
7666
|
+
"multiple": false,
|
|
7517
7667
|
"type": "option"
|
|
7518
7668
|
},
|
|
7519
|
-
"
|
|
7520
|
-
"description": "
|
|
7521
|
-
"name": "
|
|
7669
|
+
"state": {
|
|
7670
|
+
"description": "Return only documents in this state. Without it, `deleted` documents are left out.",
|
|
7671
|
+
"name": "state",
|
|
7522
7672
|
"hasDynamicHelp": false,
|
|
7523
|
-
"multiple":
|
|
7673
|
+
"multiple": false,
|
|
7674
|
+
"options": [
|
|
7675
|
+
"active",
|
|
7676
|
+
"missing",
|
|
7677
|
+
"deleted"
|
|
7678
|
+
],
|
|
7524
7679
|
"type": "option"
|
|
7525
7680
|
},
|
|
7526
|
-
"
|
|
7527
|
-
"description": "
|
|
7528
|
-
"name": "
|
|
7529
|
-
"
|
|
7530
|
-
"
|
|
7681
|
+
"ids": {
|
|
7682
|
+
"description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
|
|
7683
|
+
"name": "ids",
|
|
7684
|
+
"hasDynamicHelp": false,
|
|
7685
|
+
"multiple": false,
|
|
7686
|
+
"type": "option"
|
|
7531
7687
|
}
|
|
7532
7688
|
},
|
|
7533
7689
|
"hasDynamicHelp": false,
|
|
7534
7690
|
"hiddenAliases": [],
|
|
7535
|
-
"id": "context:
|
|
7691
|
+
"id": "context:documents:list",
|
|
7536
7692
|
"pluginAlias": "@sanity/cli",
|
|
7537
7693
|
"pluginName": "@sanity/cli",
|
|
7538
7694
|
"pluginType": "core",
|
|
7539
7695
|
"strict": true,
|
|
7540
|
-
"summary": "
|
|
7696
|
+
"summary": "List documents",
|
|
7541
7697
|
"enableJsonFlag": true,
|
|
7542
7698
|
"telemetry": {
|
|
7543
7699
|
"redactedFlags": [
|
|
7544
7700
|
{
|
|
7545
|
-
"canonical": "--
|
|
7546
|
-
"flags": [
|
|
7547
|
-
"--statement"
|
|
7548
|
-
]
|
|
7549
|
-
},
|
|
7550
|
-
{
|
|
7551
|
-
"canonical": "--scope-document-ids",
|
|
7701
|
+
"canonical": "--source",
|
|
7552
7702
|
"flags": [
|
|
7553
|
-
"--
|
|
7703
|
+
"--source"
|
|
7554
7704
|
]
|
|
7555
7705
|
},
|
|
7556
7706
|
{
|
|
7557
|
-
"canonical": "--
|
|
7707
|
+
"canonical": "--ids",
|
|
7558
7708
|
"flags": [
|
|
7559
|
-
"--
|
|
7709
|
+
"--ids"
|
|
7560
7710
|
]
|
|
7561
7711
|
}
|
|
7562
7712
|
]
|
|
@@ -7566,11 +7716,11 @@
|
|
|
7566
7716
|
"dist",
|
|
7567
7717
|
"commands",
|
|
7568
7718
|
"context",
|
|
7569
|
-
"
|
|
7570
|
-
"
|
|
7719
|
+
"documents",
|
|
7720
|
+
"list.js"
|
|
7571
7721
|
]
|
|
7572
7722
|
},
|
|
7573
|
-
"context:
|
|
7723
|
+
"context:jobs:get": {
|
|
7574
7724
|
"aliases": [],
|
|
7575
7725
|
"args": {
|
|
7576
7726
|
"knowledgeBaseId": {
|
|
@@ -7578,21 +7728,21 @@
|
|
|
7578
7728
|
"name": "knowledgeBaseId",
|
|
7579
7729
|
"required": true
|
|
7580
7730
|
},
|
|
7581
|
-
"
|
|
7582
|
-
"description": "The
|
|
7583
|
-
"name": "
|
|
7731
|
+
"jobId": {
|
|
7732
|
+
"description": "The job ID returned by the endpoint that started the work.",
|
|
7733
|
+
"name": "jobId",
|
|
7584
7734
|
"required": true
|
|
7585
7735
|
}
|
|
7586
7736
|
},
|
|
7587
|
-
"description": "
|
|
7737
|
+
"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.",
|
|
7588
7738
|
"examples": [
|
|
7589
7739
|
{
|
|
7590
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <
|
|
7591
|
-
"description": "
|
|
7740
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
7741
|
+
"description": "Get a job"
|
|
7592
7742
|
},
|
|
7593
7743
|
{
|
|
7594
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <
|
|
7595
|
-
"description": "
|
|
7744
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
7745
|
+
"description": "Get a job, as JSON"
|
|
7596
7746
|
}
|
|
7597
7747
|
],
|
|
7598
7748
|
"flags": {
|
|
@@ -7603,28 +7753,21 @@
|
|
|
7603
7753
|
"allowNo": false,
|
|
7604
7754
|
"type": "boolean"
|
|
7605
7755
|
},
|
|
7606
|
-
"
|
|
7607
|
-
"description": "
|
|
7608
|
-
"name": "
|
|
7609
|
-
"allowNo": true,
|
|
7610
|
-
"type": "boolean"
|
|
7611
|
-
},
|
|
7612
|
-
"yes": {
|
|
7613
|
-
"char": "y",
|
|
7614
|
-
"description": "Skip confirmation prompt (unattended mode)",
|
|
7615
|
-
"name": "yes",
|
|
7756
|
+
"watch": {
|
|
7757
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7758
|
+
"name": "watch",
|
|
7616
7759
|
"allowNo": false,
|
|
7617
7760
|
"type": "boolean"
|
|
7618
7761
|
}
|
|
7619
7762
|
},
|
|
7620
7763
|
"hasDynamicHelp": false,
|
|
7621
7764
|
"hiddenAliases": [],
|
|
7622
|
-
"id": "context:
|
|
7765
|
+
"id": "context:jobs:get",
|
|
7623
7766
|
"pluginAlias": "@sanity/cli",
|
|
7624
7767
|
"pluginName": "@sanity/cli",
|
|
7625
7768
|
"pluginType": "core",
|
|
7626
7769
|
"strict": true,
|
|
7627
|
-
"summary": "
|
|
7770
|
+
"summary": "Get a job",
|
|
7628
7771
|
"enableJsonFlag": true,
|
|
7629
7772
|
"telemetry": {
|
|
7630
7773
|
"redactedFlags": []
|
|
@@ -7634,90 +7777,8 @@
|
|
|
7634
7777
|
"dist",
|
|
7635
7778
|
"commands",
|
|
7636
7779
|
"context",
|
|
7637
|
-
"
|
|
7638
|
-
"
|
|
7639
|
-
]
|
|
7640
|
-
},
|
|
7641
|
-
"context:instructions:edit": {
|
|
7642
|
-
"aliases": [],
|
|
7643
|
-
"args": {
|
|
7644
|
-
"knowledgeBaseId": {
|
|
7645
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7646
|
-
"name": "knowledgeBaseId",
|
|
7647
|
-
"required": true
|
|
7648
|
-
},
|
|
7649
|
-
"instructionId": {
|
|
7650
|
-
"description": "The instruction's ID.",
|
|
7651
|
-
"name": "instructionId",
|
|
7652
|
-
"required": true
|
|
7653
|
-
}
|
|
7654
|
-
},
|
|
7655
|
-
"description": "Updates the instruction's statement or documents. The change applies from the next build. Any update also reactivates an archived instruction and ties it to the current content of its documents.",
|
|
7656
|
-
"examples": [
|
|
7657
|
-
{
|
|
7658
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId>",
|
|
7659
|
-
"description": "Update an instruction"
|
|
7660
|
-
},
|
|
7661
|
-
{
|
|
7662
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <instructionId> --json",
|
|
7663
|
-
"description": "Update an instruction, as JSON"
|
|
7664
|
-
}
|
|
7665
|
-
],
|
|
7666
|
-
"flags": {
|
|
7667
|
-
"json": {
|
|
7668
|
-
"description": "Format output as json.",
|
|
7669
|
-
"helpGroup": "GLOBAL",
|
|
7670
|
-
"name": "json",
|
|
7671
|
-
"allowNo": false,
|
|
7672
|
-
"type": "boolean"
|
|
7673
|
-
},
|
|
7674
|
-
"statement": {
|
|
7675
|
-
"description": "The new instruction text. Omit it to keep the current text.",
|
|
7676
|
-
"name": "statement",
|
|
7677
|
-
"hasDynamicHelp": false,
|
|
7678
|
-
"multiple": false,
|
|
7679
|
-
"type": "option"
|
|
7680
|
-
},
|
|
7681
|
-
"scope-document-ids": {
|
|
7682
|
-
"description": "IDs of the documents the instruction applies to. Replaces the current list. Omit it to keep the current documents. IDs of documents that no longer exist are dropped. If none exist, the request returns `422` with code `instructionScopeVanished`.",
|
|
7683
|
-
"name": "scope-document-ids",
|
|
7684
|
-
"hasDynamicHelp": false,
|
|
7685
|
-
"multiple": true,
|
|
7686
|
-
"type": "option"
|
|
7687
|
-
}
|
|
7688
|
-
},
|
|
7689
|
-
"hasDynamicHelp": false,
|
|
7690
|
-
"hiddenAliases": [],
|
|
7691
|
-
"id": "context:instructions:edit",
|
|
7692
|
-
"pluginAlias": "@sanity/cli",
|
|
7693
|
-
"pluginName": "@sanity/cli",
|
|
7694
|
-
"pluginType": "core",
|
|
7695
|
-
"strict": true,
|
|
7696
|
-
"summary": "Update an instruction",
|
|
7697
|
-
"enableJsonFlag": true,
|
|
7698
|
-
"telemetry": {
|
|
7699
|
-
"redactedFlags": [
|
|
7700
|
-
{
|
|
7701
|
-
"canonical": "--statement",
|
|
7702
|
-
"flags": [
|
|
7703
|
-
"--statement"
|
|
7704
|
-
]
|
|
7705
|
-
},
|
|
7706
|
-
{
|
|
7707
|
-
"canonical": "--scope-document-ids",
|
|
7708
|
-
"flags": [
|
|
7709
|
-
"--scope-document-ids"
|
|
7710
|
-
]
|
|
7711
|
-
}
|
|
7712
|
-
]
|
|
7713
|
-
},
|
|
7714
|
-
"isESM": true,
|
|
7715
|
-
"relativePath": [
|
|
7716
|
-
"dist",
|
|
7717
|
-
"commands",
|
|
7718
|
-
"context",
|
|
7719
|
-
"instructions",
|
|
7720
|
-
"edit.js"
|
|
7780
|
+
"jobs",
|
|
7781
|
+
"get.js"
|
|
7721
7782
|
]
|
|
7722
7783
|
},
|
|
7723
7784
|
"context:issues:apply": {
|
|
@@ -8110,67 +8171,6 @@
|
|
|
8110
8171
|
"resolve.js"
|
|
8111
8172
|
]
|
|
8112
8173
|
},
|
|
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
8174
|
"context:mcp:create": {
|
|
8175
8175
|
"aliases": [],
|
|
8176
8176
|
"args": {
|
|
@@ -10351,5 +10351,5 @@
|
|
|
10351
10351
|
]
|
|
10352
10352
|
}
|
|
10353
10353
|
},
|
|
10354
|
-
"version": "8.
|
|
10354
|
+
"version": "8.31.0"
|
|
10355
10355
|
}
|