@sanity/cli 8.37.2 → 8.38.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/oclif.manifest.json +1502 -1502
- package/package.json +2 -2
package/oclif.manifest.json
CHANGED
|
@@ -1987,179 +1987,6 @@
|
|
|
1987
1987
|
"list.js"
|
|
1988
1988
|
]
|
|
1989
1989
|
},
|
|
1990
|
-
"cors:add": {
|
|
1991
|
-
"aliases": [],
|
|
1992
|
-
"args": {
|
|
1993
|
-
"origin": {
|
|
1994
|
-
"description": "Origin to allow (e.g., https://example.com)",
|
|
1995
|
-
"name": "origin",
|
|
1996
|
-
"required": true
|
|
1997
|
-
}
|
|
1998
|
-
},
|
|
1999
|
-
"description": "Add a CORS origin to the project",
|
|
2000
|
-
"examples": [
|
|
2001
|
-
{
|
|
2002
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2003
|
-
"description": "Interactively add a CORS origin"
|
|
2004
|
-
},
|
|
2005
|
-
{
|
|
2006
|
-
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
2007
|
-
"description": "Add a localhost origin without credentials"
|
|
2008
|
-
},
|
|
2009
|
-
{
|
|
2010
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
2011
|
-
"description": "Add a production origin with credentials allowed"
|
|
2012
|
-
},
|
|
2013
|
-
{
|
|
2014
|
-
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
2015
|
-
"description": "Add a CORS origin for a specific project"
|
|
2016
|
-
}
|
|
2017
|
-
],
|
|
2018
|
-
"flags": {
|
|
2019
|
-
"project": {
|
|
2020
|
-
"aliases": [
|
|
2021
|
-
"project-id"
|
|
2022
|
-
],
|
|
2023
|
-
"char": "p",
|
|
2024
|
-
"deprecateAliases": true,
|
|
2025
|
-
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
2026
|
-
"helpGroup": "OVERRIDE",
|
|
2027
|
-
"name": "project",
|
|
2028
|
-
"hasDynamicHelp": false,
|
|
2029
|
-
"helpValue": "<id>",
|
|
2030
|
-
"multiple": false,
|
|
2031
|
-
"type": "option"
|
|
2032
|
-
},
|
|
2033
|
-
"credentials": {
|
|
2034
|
-
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
2035
|
-
"name": "credentials",
|
|
2036
|
-
"required": false,
|
|
2037
|
-
"allowNo": true,
|
|
2038
|
-
"type": "boolean"
|
|
2039
|
-
},
|
|
2040
|
-
"yes": {
|
|
2041
|
-
"char": "y",
|
|
2042
|
-
"description": "Confirm risky wildcard origins without prompting",
|
|
2043
|
-
"name": "yes",
|
|
2044
|
-
"allowNo": false,
|
|
2045
|
-
"type": "boolean"
|
|
2046
|
-
}
|
|
2047
|
-
},
|
|
2048
|
-
"hasDynamicHelp": false,
|
|
2049
|
-
"hiddenAliases": [],
|
|
2050
|
-
"id": "cors:add",
|
|
2051
|
-
"pluginAlias": "@sanity/cli",
|
|
2052
|
-
"pluginName": "@sanity/cli",
|
|
2053
|
-
"pluginType": "core",
|
|
2054
|
-
"strict": true,
|
|
2055
|
-
"isESM": true,
|
|
2056
|
-
"relativePath": [
|
|
2057
|
-
"dist",
|
|
2058
|
-
"commands",
|
|
2059
|
-
"cors",
|
|
2060
|
-
"add.js"
|
|
2061
|
-
]
|
|
2062
|
-
},
|
|
2063
|
-
"cors:delete": {
|
|
2064
|
-
"aliases": [],
|
|
2065
|
-
"args": {
|
|
2066
|
-
"origin": {
|
|
2067
|
-
"description": "Origin to delete (will prompt if not provided)",
|
|
2068
|
-
"name": "origin",
|
|
2069
|
-
"required": false
|
|
2070
|
-
}
|
|
2071
|
-
},
|
|
2072
|
-
"description": "Delete a CORS origin from the project",
|
|
2073
|
-
"examples": [
|
|
2074
|
-
{
|
|
2075
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2076
|
-
"description": "Interactively select and delete a CORS origin"
|
|
2077
|
-
},
|
|
2078
|
-
{
|
|
2079
|
-
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
2080
|
-
"description": "Delete a specific CORS origin"
|
|
2081
|
-
},
|
|
2082
|
-
{
|
|
2083
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2084
|
-
"description": "Delete a CORS origin from a specific project"
|
|
2085
|
-
}
|
|
2086
|
-
],
|
|
2087
|
-
"flags": {
|
|
2088
|
-
"project": {
|
|
2089
|
-
"aliases": [
|
|
2090
|
-
"project-id"
|
|
2091
|
-
],
|
|
2092
|
-
"char": "p",
|
|
2093
|
-
"deprecateAliases": true,
|
|
2094
|
-
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
2095
|
-
"helpGroup": "OVERRIDE",
|
|
2096
|
-
"name": "project",
|
|
2097
|
-
"hasDynamicHelp": false,
|
|
2098
|
-
"helpValue": "<id>",
|
|
2099
|
-
"multiple": false,
|
|
2100
|
-
"type": "option"
|
|
2101
|
-
}
|
|
2102
|
-
},
|
|
2103
|
-
"hasDynamicHelp": false,
|
|
2104
|
-
"hiddenAliases": [],
|
|
2105
|
-
"id": "cors:delete",
|
|
2106
|
-
"pluginAlias": "@sanity/cli",
|
|
2107
|
-
"pluginName": "@sanity/cli",
|
|
2108
|
-
"pluginType": "core",
|
|
2109
|
-
"strict": true,
|
|
2110
|
-
"isESM": true,
|
|
2111
|
-
"relativePath": [
|
|
2112
|
-
"dist",
|
|
2113
|
-
"commands",
|
|
2114
|
-
"cors",
|
|
2115
|
-
"delete.js"
|
|
2116
|
-
]
|
|
2117
|
-
},
|
|
2118
|
-
"cors:list": {
|
|
2119
|
-
"aliases": [],
|
|
2120
|
-
"args": {},
|
|
2121
|
-
"description": "List CORS origins for the project",
|
|
2122
|
-
"examples": [
|
|
2123
|
-
{
|
|
2124
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
2125
|
-
"description": "List CORS origins for the project"
|
|
2126
|
-
},
|
|
2127
|
-
{
|
|
2128
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
2129
|
-
"description": "List CORS origins for a specific project"
|
|
2130
|
-
}
|
|
2131
|
-
],
|
|
2132
|
-
"flags": {
|
|
2133
|
-
"project": {
|
|
2134
|
-
"aliases": [
|
|
2135
|
-
"project-id"
|
|
2136
|
-
],
|
|
2137
|
-
"char": "p",
|
|
2138
|
-
"deprecateAliases": true,
|
|
2139
|
-
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
2140
|
-
"helpGroup": "OVERRIDE",
|
|
2141
|
-
"name": "project",
|
|
2142
|
-
"hasDynamicHelp": false,
|
|
2143
|
-
"helpValue": "<id>",
|
|
2144
|
-
"multiple": false,
|
|
2145
|
-
"type": "option"
|
|
2146
|
-
}
|
|
2147
|
-
},
|
|
2148
|
-
"hasDynamicHelp": false,
|
|
2149
|
-
"hiddenAliases": [],
|
|
2150
|
-
"id": "cors:list",
|
|
2151
|
-
"pluginAlias": "@sanity/cli",
|
|
2152
|
-
"pluginName": "@sanity/cli",
|
|
2153
|
-
"pluginType": "core",
|
|
2154
|
-
"strict": true,
|
|
2155
|
-
"isESM": true,
|
|
2156
|
-
"relativePath": [
|
|
2157
|
-
"dist",
|
|
2158
|
-
"commands",
|
|
2159
|
-
"cors",
|
|
2160
|
-
"list.js"
|
|
2161
|
-
]
|
|
2162
|
-
},
|
|
2163
1990
|
"context:build": {
|
|
2164
1991
|
"aliases": [],
|
|
2165
1992
|
"args": {
|
|
@@ -2685,118 +2512,160 @@
|
|
|
2685
2512
|
"update.js"
|
|
2686
2513
|
]
|
|
2687
2514
|
},
|
|
2688
|
-
"
|
|
2689
|
-
"aliases": [],
|
|
2690
|
-
"args": {},
|
|
2691
|
-
"description": "Open Sanity docs in your browser",
|
|
2692
|
-
"flags": {},
|
|
2693
|
-
"hasDynamicHelp": false,
|
|
2694
|
-
"hiddenAliases": [],
|
|
2695
|
-
"id": "docs:browse",
|
|
2696
|
-
"pluginAlias": "@sanity/cli",
|
|
2697
|
-
"pluginName": "@sanity/cli",
|
|
2698
|
-
"pluginType": "core",
|
|
2699
|
-
"strict": true,
|
|
2700
|
-
"enableJsonFlag": false,
|
|
2701
|
-
"isESM": true,
|
|
2702
|
-
"relativePath": [
|
|
2703
|
-
"dist",
|
|
2704
|
-
"commands",
|
|
2705
|
-
"docs",
|
|
2706
|
-
"browse.js"
|
|
2707
|
-
]
|
|
2708
|
-
},
|
|
2709
|
-
"docs:read": {
|
|
2515
|
+
"datasets:copy": {
|
|
2710
2516
|
"aliases": [],
|
|
2711
2517
|
"args": {
|
|
2712
|
-
"
|
|
2713
|
-
"description": "
|
|
2714
|
-
"name": "
|
|
2715
|
-
"required":
|
|
2518
|
+
"source": {
|
|
2519
|
+
"description": "Name of the dataset to copy from",
|
|
2520
|
+
"name": "source",
|
|
2521
|
+
"required": false
|
|
2522
|
+
},
|
|
2523
|
+
"target": {
|
|
2524
|
+
"description": "Name of the dataset to copy to",
|
|
2525
|
+
"name": "target",
|
|
2526
|
+
"required": false
|
|
2716
2527
|
}
|
|
2717
2528
|
},
|
|
2718
|
-
"description": "
|
|
2529
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2719
2530
|
"examples": [
|
|
2720
2531
|
{
|
|
2721
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2722
|
-
"description": "
|
|
2532
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2533
|
+
"description": "Interactively copy a dataset"
|
|
2723
2534
|
},
|
|
2724
2535
|
{
|
|
2725
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2726
|
-
"description": "
|
|
2536
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2537
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2727
2538
|
},
|
|
2728
2539
|
{
|
|
2729
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2730
|
-
"description": "
|
|
2540
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2541
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2731
2542
|
},
|
|
2732
2543
|
{
|
|
2733
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2734
|
-
"description": "
|
|
2544
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2545
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2549
|
+
"description": "Copy without content release documents"
|
|
2550
|
+
},
|
|
2551
|
+
{
|
|
2552
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2553
|
+
"description": "Start copy job without waiting for completion"
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2557
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2561
|
+
"description": "List all dataset copy jobs"
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2565
|
+
"description": "List copy jobs with pagination"
|
|
2735
2566
|
}
|
|
2736
2567
|
],
|
|
2737
2568
|
"flags": {
|
|
2738
|
-
"
|
|
2569
|
+
"project": {
|
|
2739
2570
|
"aliases": [
|
|
2740
|
-
"
|
|
2571
|
+
"project-id"
|
|
2741
2572
|
],
|
|
2742
|
-
"
|
|
2743
|
-
"
|
|
2744
|
-
"
|
|
2745
|
-
"
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
"pluginAlias": "@sanity/cli",
|
|
2752
|
-
"pluginName": "@sanity/cli",
|
|
2753
|
-
"pluginType": "core",
|
|
2754
|
-
"strict": true,
|
|
2755
|
-
"isESM": true,
|
|
2756
|
-
"relativePath": [
|
|
2757
|
-
"dist",
|
|
2758
|
-
"commands",
|
|
2759
|
-
"docs",
|
|
2760
|
-
"read.js"
|
|
2761
|
-
]
|
|
2762
|
-
},
|
|
2763
|
-
"docs:search": {
|
|
2764
|
-
"aliases": [],
|
|
2765
|
-
"args": {
|
|
2766
|
-
"query": {
|
|
2767
|
-
"description": "Search query for documentation",
|
|
2768
|
-
"name": "query",
|
|
2769
|
-
"required": true
|
|
2770
|
-
}
|
|
2771
|
-
},
|
|
2772
|
-
"description": "Search Sanity docs",
|
|
2773
|
-
"examples": [
|
|
2774
|
-
{
|
|
2775
|
-
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
2776
|
-
"description": "Search for documentation about schemas"
|
|
2573
|
+
"char": "p",
|
|
2574
|
+
"deprecateAliases": true,
|
|
2575
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2576
|
+
"helpGroup": "OVERRIDE",
|
|
2577
|
+
"name": "project",
|
|
2578
|
+
"hasDynamicHelp": false,
|
|
2579
|
+
"helpValue": "<id>",
|
|
2580
|
+
"multiple": false,
|
|
2581
|
+
"type": "option"
|
|
2777
2582
|
},
|
|
2778
|
-
{
|
|
2779
|
-
"
|
|
2780
|
-
"
|
|
2583
|
+
"attach": {
|
|
2584
|
+
"description": "Attach to the running copy process to show progress",
|
|
2585
|
+
"exclusive": [
|
|
2586
|
+
"list",
|
|
2587
|
+
"detach",
|
|
2588
|
+
"skip-history"
|
|
2589
|
+
],
|
|
2590
|
+
"name": "attach",
|
|
2591
|
+
"required": false,
|
|
2592
|
+
"hasDynamicHelp": false,
|
|
2593
|
+
"multiple": false,
|
|
2594
|
+
"type": "option"
|
|
2595
|
+
},
|
|
2596
|
+
"detach": {
|
|
2597
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2598
|
+
"exclusive": [
|
|
2599
|
+
"list",
|
|
2600
|
+
"attach"
|
|
2601
|
+
],
|
|
2602
|
+
"name": "detach",
|
|
2603
|
+
"required": false,
|
|
2604
|
+
"allowNo": false,
|
|
2605
|
+
"type": "boolean"
|
|
2781
2606
|
},
|
|
2782
|
-
{
|
|
2783
|
-
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
2784
|
-
"description": "Limit search results"
|
|
2785
|
-
}
|
|
2786
|
-
],
|
|
2787
|
-
"flags": {
|
|
2788
2607
|
"limit": {
|
|
2789
|
-
"
|
|
2608
|
+
"dependsOn": [
|
|
2609
|
+
"list"
|
|
2610
|
+
],
|
|
2611
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2790
2612
|
"name": "limit",
|
|
2791
|
-
"
|
|
2613
|
+
"required": false,
|
|
2614
|
+
"hasDynamicHelp": false,
|
|
2615
|
+
"multiple": false,
|
|
2616
|
+
"type": "option"
|
|
2617
|
+
},
|
|
2618
|
+
"list": {
|
|
2619
|
+
"description": "Lists all dataset copy jobs",
|
|
2620
|
+
"exclusive": [
|
|
2621
|
+
"attach",
|
|
2622
|
+
"detach",
|
|
2623
|
+
"skip-history"
|
|
2624
|
+
],
|
|
2625
|
+
"name": "list",
|
|
2626
|
+
"required": false,
|
|
2627
|
+
"allowNo": false,
|
|
2628
|
+
"type": "boolean"
|
|
2629
|
+
},
|
|
2630
|
+
"offset": {
|
|
2631
|
+
"dependsOn": [
|
|
2632
|
+
"list"
|
|
2633
|
+
],
|
|
2634
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2635
|
+
"name": "offset",
|
|
2636
|
+
"required": false,
|
|
2792
2637
|
"hasDynamicHelp": false,
|
|
2793
2638
|
"multiple": false,
|
|
2794
2639
|
"type": "option"
|
|
2640
|
+
},
|
|
2641
|
+
"skip-content-releases": {
|
|
2642
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2643
|
+
"exclusive": [
|
|
2644
|
+
"list",
|
|
2645
|
+
"attach"
|
|
2646
|
+
],
|
|
2647
|
+
"name": "skip-content-releases",
|
|
2648
|
+
"required": false,
|
|
2649
|
+
"allowNo": false,
|
|
2650
|
+
"type": "boolean"
|
|
2651
|
+
},
|
|
2652
|
+
"skip-history": {
|
|
2653
|
+
"description": "Don't preserve document history on copy",
|
|
2654
|
+
"exclusive": [
|
|
2655
|
+
"list",
|
|
2656
|
+
"attach"
|
|
2657
|
+
],
|
|
2658
|
+
"name": "skip-history",
|
|
2659
|
+
"required": false,
|
|
2660
|
+
"allowNo": false,
|
|
2661
|
+
"type": "boolean"
|
|
2795
2662
|
}
|
|
2796
2663
|
},
|
|
2797
2664
|
"hasDynamicHelp": false,
|
|
2798
|
-
"hiddenAliases": [
|
|
2799
|
-
|
|
2665
|
+
"hiddenAliases": [
|
|
2666
|
+
"dataset:copy"
|
|
2667
|
+
],
|
|
2668
|
+
"id": "datasets:copy",
|
|
2800
2669
|
"pluginAlias": "@sanity/cli",
|
|
2801
2670
|
"pluginName": "@sanity/cli",
|
|
2802
2671
|
"pluginType": "core",
|
|
@@ -2805,50 +2674,49 @@
|
|
|
2805
2674
|
"relativePath": [
|
|
2806
2675
|
"dist",
|
|
2807
2676
|
"commands",
|
|
2808
|
-
"
|
|
2809
|
-
"
|
|
2677
|
+
"datasets",
|
|
2678
|
+
"copy.js"
|
|
2810
2679
|
]
|
|
2811
2680
|
},
|
|
2812
|
-
"
|
|
2681
|
+
"datasets:create": {
|
|
2813
2682
|
"aliases": [],
|
|
2814
2683
|
"args": {
|
|
2815
|
-
"
|
|
2816
|
-
"description": "
|
|
2817
|
-
"name": "
|
|
2684
|
+
"name": {
|
|
2685
|
+
"description": "Name of the dataset to create",
|
|
2686
|
+
"name": "name",
|
|
2818
2687
|
"required": false
|
|
2819
2688
|
}
|
|
2820
2689
|
},
|
|
2821
|
-
"description": "Create
|
|
2690
|
+
"description": "Create a new dataset for the project",
|
|
2822
2691
|
"examples": [
|
|
2823
|
-
{
|
|
2824
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
2825
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
2826
|
-
},
|
|
2827
2692
|
{
|
|
2828
2693
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2829
|
-
"description": "
|
|
2830
|
-
},
|
|
2831
|
-
{
|
|
2832
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
2833
|
-
"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"
|
|
2694
|
+
"description": "Interactively create a dataset"
|
|
2834
2695
|
},
|
|
2835
2696
|
{
|
|
2836
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2837
|
-
"description": "
|
|
2697
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2698
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2838
2699
|
},
|
|
2839
2700
|
{
|
|
2840
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2841
|
-
"description": "Create
|
|
2701
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2702
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2842
2703
|
}
|
|
2843
2704
|
],
|
|
2844
2705
|
"flags": {
|
|
2706
|
+
"with-blueprints": {
|
|
2707
|
+
"description": "Use Blueprint-aware behavior",
|
|
2708
|
+
"hidden": true,
|
|
2709
|
+
"name": "with-blueprints",
|
|
2710
|
+
"allowNo": false,
|
|
2711
|
+
"type": "boolean"
|
|
2712
|
+
},
|
|
2845
2713
|
"project": {
|
|
2846
2714
|
"aliases": [
|
|
2847
2715
|
"project-id"
|
|
2848
2716
|
],
|
|
2849
2717
|
"char": "p",
|
|
2850
2718
|
"deprecateAliases": true,
|
|
2851
|
-
"description": "Project ID to create
|
|
2719
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2852
2720
|
"helpGroup": "OVERRIDE",
|
|
2853
2721
|
"name": "project",
|
|
2854
2722
|
"hasDynamicHelp": false,
|
|
@@ -2856,110 +2724,97 @@
|
|
|
2856
2724
|
"multiple": false,
|
|
2857
2725
|
"type": "option"
|
|
2858
2726
|
},
|
|
2859
|
-
"
|
|
2860
|
-
"
|
|
2861
|
-
"
|
|
2862
|
-
"
|
|
2863
|
-
"
|
|
2727
|
+
"embeddings": {
|
|
2728
|
+
"description": "Enable embeddings for this dataset",
|
|
2729
|
+
"name": "embeddings",
|
|
2730
|
+
"allowNo": false,
|
|
2731
|
+
"type": "boolean"
|
|
2732
|
+
},
|
|
2733
|
+
"embeddings-projection": {
|
|
2734
|
+
"dependsOn": [
|
|
2735
|
+
"embeddings"
|
|
2736
|
+
],
|
|
2737
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2738
|
+
"name": "embeddings-projection",
|
|
2864
2739
|
"hasDynamicHelp": false,
|
|
2865
|
-
"helpValue": "<name>",
|
|
2866
2740
|
"multiple": false,
|
|
2867
2741
|
"type": "option"
|
|
2868
2742
|
},
|
|
2869
|
-
"
|
|
2870
|
-
"description": "
|
|
2871
|
-
"name": "
|
|
2743
|
+
"visibility": {
|
|
2744
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2745
|
+
"name": "visibility",
|
|
2872
2746
|
"hasDynamicHelp": false,
|
|
2873
2747
|
"multiple": false,
|
|
2748
|
+
"options": [
|
|
2749
|
+
"custom",
|
|
2750
|
+
"private",
|
|
2751
|
+
"public"
|
|
2752
|
+
],
|
|
2874
2753
|
"type": "option"
|
|
2875
|
-
},
|
|
2876
|
-
"json5": {
|
|
2877
|
-
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
2878
|
-
"name": "json5",
|
|
2879
|
-
"allowNo": false,
|
|
2880
|
-
"type": "boolean"
|
|
2881
|
-
},
|
|
2882
|
-
"missing": {
|
|
2883
|
-
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
2884
|
-
"name": "missing",
|
|
2885
|
-
"allowNo": false,
|
|
2886
|
-
"type": "boolean"
|
|
2887
|
-
},
|
|
2888
|
-
"replace": {
|
|
2889
|
-
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
2890
|
-
"name": "replace",
|
|
2891
|
-
"allowNo": false,
|
|
2892
|
-
"type": "boolean"
|
|
2893
|
-
},
|
|
2894
|
-
"watch": {
|
|
2895
|
-
"description": "Write the documents whenever the target file or buffer changes",
|
|
2896
|
-
"name": "watch",
|
|
2897
|
-
"allowNo": false,
|
|
2898
|
-
"type": "boolean"
|
|
2899
2754
|
}
|
|
2900
2755
|
},
|
|
2901
2756
|
"hasDynamicHelp": false,
|
|
2902
2757
|
"hiddenAliases": [
|
|
2903
|
-
"
|
|
2758
|
+
"dataset:create"
|
|
2904
2759
|
],
|
|
2905
|
-
"id": "
|
|
2760
|
+
"id": "datasets:create",
|
|
2906
2761
|
"pluginAlias": "@sanity/cli",
|
|
2907
2762
|
"pluginName": "@sanity/cli",
|
|
2908
2763
|
"pluginType": "core",
|
|
2909
2764
|
"strict": true,
|
|
2765
|
+
"telemetry": {
|
|
2766
|
+
"redactedFlags": [
|
|
2767
|
+
{
|
|
2768
|
+
"canonical": "--embeddings-projection",
|
|
2769
|
+
"flags": [
|
|
2770
|
+
"--embeddings-projection"
|
|
2771
|
+
]
|
|
2772
|
+
}
|
|
2773
|
+
]
|
|
2774
|
+
},
|
|
2910
2775
|
"isESM": true,
|
|
2911
2776
|
"relativePath": [
|
|
2912
2777
|
"dist",
|
|
2913
2778
|
"commands",
|
|
2914
|
-
"
|
|
2779
|
+
"datasets",
|
|
2915
2780
|
"create.js"
|
|
2916
2781
|
]
|
|
2917
2782
|
},
|
|
2918
|
-
"
|
|
2783
|
+
"datasets:delete": {
|
|
2919
2784
|
"aliases": [],
|
|
2920
2785
|
"args": {
|
|
2921
|
-
"
|
|
2922
|
-
"description": "
|
|
2923
|
-
"name": "
|
|
2786
|
+
"datasetName": {
|
|
2787
|
+
"description": "Dataset name to delete",
|
|
2788
|
+
"name": "datasetName",
|
|
2924
2789
|
"required": true
|
|
2925
|
-
},
|
|
2926
|
-
"ids": {
|
|
2927
|
-
"description": "Additional document IDs to delete",
|
|
2928
|
-
"name": "ids",
|
|
2929
|
-
"required": false
|
|
2930
2790
|
}
|
|
2931
2791
|
},
|
|
2932
|
-
"description": "Delete
|
|
2792
|
+
"description": "Delete a dataset from the project",
|
|
2933
2793
|
"examples": [
|
|
2934
2794
|
{
|
|
2935
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2936
|
-
"description": "Delete
|
|
2937
|
-
},
|
|
2938
|
-
{
|
|
2939
|
-
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
2940
|
-
"description": "ID wrapped in double or single quote works equally well"
|
|
2941
|
-
},
|
|
2942
|
-
{
|
|
2943
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
2944
|
-
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
2945
|
-
},
|
|
2946
|
-
{
|
|
2947
|
-
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
2948
|
-
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
2795
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2796
|
+
"description": "Delete a specific dataset"
|
|
2949
2797
|
},
|
|
2950
2798
|
{
|
|
2951
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2952
|
-
"description": "Delete a
|
|
2799
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
2800
|
+
"description": "Delete a specific dataset without confirmation"
|
|
2953
2801
|
}
|
|
2954
2802
|
],
|
|
2955
2803
|
"flags": {
|
|
2804
|
+
"with-blueprints": {
|
|
2805
|
+
"description": "Use Blueprint-aware behavior",
|
|
2806
|
+
"hidden": true,
|
|
2807
|
+
"name": "with-blueprints",
|
|
2808
|
+
"allowNo": false,
|
|
2809
|
+
"type": "boolean"
|
|
2810
|
+
},
|
|
2956
2811
|
"project": {
|
|
2957
2812
|
"aliases": [
|
|
2958
2813
|
"project-id"
|
|
2959
2814
|
],
|
|
2960
2815
|
"char": "p",
|
|
2961
2816
|
"deprecateAliases": true,
|
|
2962
|
-
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
2817
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
2963
2818
|
"helpGroup": "OVERRIDE",
|
|
2964
2819
|
"name": "project",
|
|
2965
2820
|
"hasDynamicHelp": false,
|
|
@@ -2967,60 +2822,63 @@
|
|
|
2967
2822
|
"multiple": false,
|
|
2968
2823
|
"type": "option"
|
|
2969
2824
|
},
|
|
2970
|
-
"
|
|
2971
|
-
"
|
|
2972
|
-
"
|
|
2973
|
-
"
|
|
2974
|
-
"
|
|
2975
|
-
"hasDynamicHelp": false,
|
|
2976
|
-
"helpValue": "<name>",
|
|
2977
|
-
"multiple": false,
|
|
2978
|
-
"type": "option"
|
|
2825
|
+
"force": {
|
|
2826
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2827
|
+
"name": "force",
|
|
2828
|
+
"allowNo": false,
|
|
2829
|
+
"type": "boolean"
|
|
2979
2830
|
}
|
|
2980
2831
|
},
|
|
2981
2832
|
"hasDynamicHelp": false,
|
|
2982
2833
|
"hiddenAliases": [
|
|
2983
|
-
"
|
|
2834
|
+
"dataset:delete"
|
|
2984
2835
|
],
|
|
2985
|
-
"id": "
|
|
2836
|
+
"id": "datasets:delete",
|
|
2986
2837
|
"pluginAlias": "@sanity/cli",
|
|
2987
2838
|
"pluginName": "@sanity/cli",
|
|
2988
2839
|
"pluginType": "core",
|
|
2989
|
-
"strict":
|
|
2840
|
+
"strict": true,
|
|
2990
2841
|
"isESM": true,
|
|
2991
2842
|
"relativePath": [
|
|
2992
2843
|
"dist",
|
|
2993
2844
|
"commands",
|
|
2994
|
-
"
|
|
2845
|
+
"datasets",
|
|
2995
2846
|
"delete.js"
|
|
2996
2847
|
]
|
|
2997
2848
|
},
|
|
2998
|
-
"
|
|
2849
|
+
"datasets:export": {
|
|
2999
2850
|
"aliases": [],
|
|
3000
2851
|
"args": {
|
|
3001
|
-
"
|
|
3002
|
-
"description": "
|
|
3003
|
-
"name": "
|
|
3004
|
-
|
|
2852
|
+
"name": {
|
|
2853
|
+
"description": "Name of the dataset to export",
|
|
2854
|
+
"name": "name"
|
|
2855
|
+
},
|
|
2856
|
+
"destination": {
|
|
2857
|
+
"description": "Output destination file path",
|
|
2858
|
+
"name": "destination"
|
|
3005
2859
|
}
|
|
3006
2860
|
},
|
|
3007
|
-
"description": "
|
|
2861
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
3008
2862
|
"examples": [
|
|
3009
2863
|
{
|
|
3010
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3011
|
-
"description": "
|
|
2864
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
2865
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
3012
2866
|
},
|
|
3013
2867
|
{
|
|
3014
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3015
|
-
"description": "
|
|
2868
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
2869
|
+
"description": "Export dataset without assets"
|
|
3016
2870
|
},
|
|
3017
2871
|
{
|
|
3018
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3019
|
-
"description": "
|
|
2872
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
2873
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
3020
2874
|
},
|
|
3021
2875
|
{
|
|
3022
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3023
|
-
"description": "
|
|
2876
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
2877
|
+
"description": "Export specific document types"
|
|
2878
|
+
},
|
|
2879
|
+
{
|
|
2880
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
2881
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
3024
2882
|
}
|
|
3025
2883
|
],
|
|
3026
2884
|
"flags": {
|
|
@@ -3030,7 +2888,7 @@
|
|
|
3030
2888
|
],
|
|
3031
2889
|
"char": "p",
|
|
3032
2890
|
"deprecateAliases": true,
|
|
3033
|
-
"description": "Project ID to
|
|
2891
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
3034
2892
|
"helpGroup": "OVERRIDE",
|
|
3035
2893
|
"name": "project",
|
|
3036
2894
|
"hasDynamicHelp": false,
|
|
@@ -3038,28 +2896,75 @@
|
|
|
3038
2896
|
"multiple": false,
|
|
3039
2897
|
"type": "option"
|
|
3040
2898
|
},
|
|
3041
|
-
"
|
|
3042
|
-
"
|
|
3043
|
-
"
|
|
3044
|
-
"
|
|
3045
|
-
"name": "dataset",
|
|
2899
|
+
"asset-concurrency": {
|
|
2900
|
+
"description": "Concurrent number of asset downloads",
|
|
2901
|
+
"name": "asset-concurrency",
|
|
2902
|
+
"default": 8,
|
|
3046
2903
|
"hasDynamicHelp": false,
|
|
3047
|
-
"helpValue": "<name>",
|
|
3048
2904
|
"multiple": false,
|
|
3049
2905
|
"type": "option"
|
|
3050
2906
|
},
|
|
3051
|
-
"
|
|
3052
|
-
"description": "
|
|
3053
|
-
"name": "
|
|
2907
|
+
"mode": {
|
|
2908
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
2909
|
+
"name": "mode",
|
|
2910
|
+
"default": "stream",
|
|
2911
|
+
"hasDynamicHelp": false,
|
|
2912
|
+
"multiple": false,
|
|
2913
|
+
"options": [
|
|
2914
|
+
"stream",
|
|
2915
|
+
"cursor"
|
|
2916
|
+
],
|
|
2917
|
+
"type": "option"
|
|
2918
|
+
},
|
|
2919
|
+
"no-assets": {
|
|
2920
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
2921
|
+
"name": "no-assets",
|
|
2922
|
+
"allowNo": false,
|
|
2923
|
+
"type": "boolean"
|
|
2924
|
+
},
|
|
2925
|
+
"no-compress": {
|
|
2926
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
2927
|
+
"name": "no-compress",
|
|
2928
|
+
"allowNo": false,
|
|
2929
|
+
"type": "boolean"
|
|
2930
|
+
},
|
|
2931
|
+
"no-drafts": {
|
|
2932
|
+
"description": "Export only published versions of documents",
|
|
2933
|
+
"name": "no-drafts",
|
|
2934
|
+
"allowNo": false,
|
|
2935
|
+
"type": "boolean"
|
|
2936
|
+
},
|
|
2937
|
+
"no-strict-asset-verification": {
|
|
2938
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
2939
|
+
"name": "no-strict-asset-verification",
|
|
2940
|
+
"allowNo": false,
|
|
2941
|
+
"type": "boolean"
|
|
2942
|
+
},
|
|
2943
|
+
"overwrite": {
|
|
2944
|
+
"description": "Overwrite any file with the same name",
|
|
2945
|
+
"name": "overwrite",
|
|
2946
|
+
"allowNo": false,
|
|
2947
|
+
"type": "boolean"
|
|
2948
|
+
},
|
|
2949
|
+
"raw": {
|
|
2950
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
2951
|
+
"name": "raw",
|
|
3054
2952
|
"allowNo": false,
|
|
3055
2953
|
"type": "boolean"
|
|
2954
|
+
},
|
|
2955
|
+
"types": {
|
|
2956
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
2957
|
+
"name": "types",
|
|
2958
|
+
"hasDynamicHelp": false,
|
|
2959
|
+
"multiple": false,
|
|
2960
|
+
"type": "option"
|
|
3056
2961
|
}
|
|
3057
2962
|
},
|
|
3058
2963
|
"hasDynamicHelp": false,
|
|
3059
2964
|
"hiddenAliases": [
|
|
3060
|
-
"
|
|
2965
|
+
"dataset:export"
|
|
3061
2966
|
],
|
|
3062
|
-
"id": "
|
|
2967
|
+
"id": "datasets:export",
|
|
3063
2968
|
"pluginAlias": "@sanity/cli",
|
|
3064
2969
|
"pluginName": "@sanity/cli",
|
|
3065
2970
|
"pluginType": "core",
|
|
@@ -3068,297 +2973,316 @@
|
|
|
3068
2973
|
"relativePath": [
|
|
3069
2974
|
"dist",
|
|
3070
2975
|
"commands",
|
|
3071
|
-
"
|
|
3072
|
-
"
|
|
2976
|
+
"datasets",
|
|
2977
|
+
"export.js"
|
|
3073
2978
|
]
|
|
3074
2979
|
},
|
|
3075
|
-
"
|
|
2980
|
+
"datasets:import": {
|
|
3076
2981
|
"aliases": [],
|
|
3077
2982
|
"args": {
|
|
3078
|
-
"
|
|
3079
|
-
"description": "
|
|
3080
|
-
"name": "
|
|
2983
|
+
"source": {
|
|
2984
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
2985
|
+
"name": "source",
|
|
3081
2986
|
"required": true
|
|
2987
|
+
},
|
|
2988
|
+
"targetDataset": {
|
|
2989
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
2990
|
+
"name": "targetDataset",
|
|
2991
|
+
"required": false
|
|
3082
2992
|
}
|
|
3083
2993
|
},
|
|
3084
|
-
"description": "
|
|
2994
|
+
"description": "Import documents to a Sanity dataset",
|
|
3085
2995
|
"examples": [
|
|
3086
2996
|
{
|
|
3087
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3088
|
-
"description": "
|
|
2997
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
2998
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
3089
2999
|
},
|
|
3090
3000
|
{
|
|
3091
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3092
|
-
"description": "
|
|
3001
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
3002
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
3093
3003
|
},
|
|
3094
3004
|
{
|
|
3095
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3096
|
-
"description": "
|
|
3005
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
3006
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
3097
3007
|
},
|
|
3098
3008
|
{
|
|
3099
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3100
|
-
"description": "
|
|
3009
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
3010
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
3101
3011
|
}
|
|
3102
3012
|
],
|
|
3103
3013
|
"flags": {
|
|
3104
|
-
"
|
|
3105
|
-
"
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
"
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
"
|
|
3112
|
-
"name": "
|
|
3014
|
+
"allow-assets-in-different-dataset": {
|
|
3015
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
3016
|
+
"name": "allow-assets-in-different-dataset",
|
|
3017
|
+
"allowNo": false,
|
|
3018
|
+
"type": "boolean"
|
|
3019
|
+
},
|
|
3020
|
+
"allow-failing-assets": {
|
|
3021
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
3022
|
+
"name": "allow-failing-assets",
|
|
3023
|
+
"allowNo": false,
|
|
3024
|
+
"type": "boolean"
|
|
3025
|
+
},
|
|
3026
|
+
"allow-replacement-characters": {
|
|
3027
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
3028
|
+
"name": "allow-replacement-characters",
|
|
3029
|
+
"allowNo": false,
|
|
3030
|
+
"type": "boolean"
|
|
3031
|
+
},
|
|
3032
|
+
"allow-system-documents": {
|
|
3033
|
+
"description": "Imports system documents",
|
|
3034
|
+
"name": "allow-system-documents",
|
|
3035
|
+
"allowNo": false,
|
|
3036
|
+
"type": "boolean"
|
|
3037
|
+
},
|
|
3038
|
+
"asset-concurrency": {
|
|
3039
|
+
"description": "Number of parallel asset imports",
|
|
3040
|
+
"name": "asset-concurrency",
|
|
3113
3041
|
"hasDynamicHelp": false,
|
|
3114
|
-
"helpValue": "<id>",
|
|
3115
3042
|
"multiple": false,
|
|
3116
3043
|
"type": "option"
|
|
3117
3044
|
},
|
|
3118
3045
|
"dataset": {
|
|
3119
3046
|
"char": "d",
|
|
3120
|
-
"description": "Dataset to
|
|
3121
|
-
"helpGroup": "OVERRIDE",
|
|
3047
|
+
"description": "Dataset to import to",
|
|
3122
3048
|
"name": "dataset",
|
|
3123
3049
|
"hasDynamicHelp": false,
|
|
3124
3050
|
"helpValue": "<name>",
|
|
3125
3051
|
"multiple": false,
|
|
3126
3052
|
"type": "option"
|
|
3127
3053
|
},
|
|
3128
|
-
"
|
|
3129
|
-
"description": "
|
|
3130
|
-
"
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
"
|
|
3134
|
-
},
|
|
3135
|
-
"anonymous": {
|
|
3136
|
-
"description": "Send the query without any authorization token",
|
|
3137
|
-
"name": "anonymous",
|
|
3054
|
+
"missing": {
|
|
3055
|
+
"description": "Skip documents that already exist",
|
|
3056
|
+
"exclusive": [
|
|
3057
|
+
"replace"
|
|
3058
|
+
],
|
|
3059
|
+
"name": "missing",
|
|
3138
3060
|
"allowNo": false,
|
|
3139
3061
|
"type": "boolean"
|
|
3140
3062
|
},
|
|
3141
|
-
"
|
|
3142
|
-
"
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
"
|
|
3146
|
-
"
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
"
|
|
3150
|
-
"
|
|
3063
|
+
"project": {
|
|
3064
|
+
"aliases": [
|
|
3065
|
+
"project-id"
|
|
3066
|
+
],
|
|
3067
|
+
"char": "p",
|
|
3068
|
+
"deprecateAliases": true,
|
|
3069
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
3070
|
+
"helpGroup": "OVERRIDE",
|
|
3071
|
+
"name": "project",
|
|
3072
|
+
"hasDynamicHelp": false,
|
|
3073
|
+
"helpValue": "<id>",
|
|
3074
|
+
"multiple": false,
|
|
3075
|
+
"type": "option"
|
|
3076
|
+
},
|
|
3077
|
+
"replace": {
|
|
3078
|
+
"description": "Replace documents with the same IDs",
|
|
3079
|
+
"exclusive": [
|
|
3080
|
+
"missing"
|
|
3081
|
+
],
|
|
3082
|
+
"name": "replace",
|
|
3083
|
+
"allowNo": false,
|
|
3084
|
+
"type": "boolean"
|
|
3085
|
+
},
|
|
3086
|
+
"replace-assets": {
|
|
3087
|
+
"description": "Skip reuse of existing assets",
|
|
3088
|
+
"name": "replace-assets",
|
|
3089
|
+
"allowNo": false,
|
|
3090
|
+
"type": "boolean"
|
|
3091
|
+
},
|
|
3092
|
+
"skip-cross-dataset-references": {
|
|
3093
|
+
"description": "Skips references to other datasets",
|
|
3094
|
+
"name": "skip-cross-dataset-references",
|
|
3151
3095
|
"allowNo": false,
|
|
3152
3096
|
"type": "boolean"
|
|
3097
|
+
},
|
|
3098
|
+
"token": {
|
|
3099
|
+
"char": "t",
|
|
3100
|
+
"description": "Token to authenticate with",
|
|
3101
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
3102
|
+
"name": "token",
|
|
3103
|
+
"required": false,
|
|
3104
|
+
"hasDynamicHelp": false,
|
|
3105
|
+
"multiple": false,
|
|
3106
|
+
"type": "option"
|
|
3153
3107
|
}
|
|
3154
3108
|
},
|
|
3155
3109
|
"hasDynamicHelp": false,
|
|
3156
3110
|
"hiddenAliases": [
|
|
3157
|
-
"
|
|
3111
|
+
"dataset:import"
|
|
3158
3112
|
],
|
|
3159
|
-
"id": "
|
|
3113
|
+
"id": "datasets:import",
|
|
3160
3114
|
"pluginAlias": "@sanity/cli",
|
|
3161
3115
|
"pluginName": "@sanity/cli",
|
|
3162
3116
|
"pluginType": "core",
|
|
3163
3117
|
"strict": true,
|
|
3118
|
+
"telemetry": {
|
|
3119
|
+
"redactedFlags": [
|
|
3120
|
+
{
|
|
3121
|
+
"canonical": "--token",
|
|
3122
|
+
"flags": [
|
|
3123
|
+
"--token",
|
|
3124
|
+
"-t"
|
|
3125
|
+
]
|
|
3126
|
+
}
|
|
3127
|
+
]
|
|
3128
|
+
},
|
|
3164
3129
|
"isESM": true,
|
|
3165
3130
|
"relativePath": [
|
|
3166
3131
|
"dist",
|
|
3167
3132
|
"commands",
|
|
3168
|
-
"
|
|
3169
|
-
"
|
|
3133
|
+
"datasets",
|
|
3134
|
+
"import.js"
|
|
3170
3135
|
]
|
|
3171
3136
|
},
|
|
3172
|
-
"
|
|
3137
|
+
"datasets:list": {
|
|
3173
3138
|
"aliases": [],
|
|
3174
3139
|
"args": {},
|
|
3175
|
-
"description": "
|
|
3140
|
+
"description": "List datasets for the project",
|
|
3176
3141
|
"examples": [
|
|
3177
3142
|
{
|
|
3178
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3179
|
-
"description": "
|
|
3180
|
-
},
|
|
3181
|
-
{
|
|
3182
|
-
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
3183
|
-
"description": "Override the dataset specified in the workspace"
|
|
3184
|
-
},
|
|
3185
|
-
{
|
|
3186
|
-
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
3187
|
-
"description": "Save the results of the report into a file"
|
|
3188
|
-
},
|
|
3189
|
-
{
|
|
3190
|
-
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
3191
|
-
"description": "Report out info level validation markers too"
|
|
3143
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3144
|
+
"description": "List datasets for the project"
|
|
3192
3145
|
},
|
|
3193
3146
|
{
|
|
3194
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123
|
|
3195
|
-
"description": "
|
|
3147
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
3148
|
+
"description": "List datasets for a specific project"
|
|
3196
3149
|
}
|
|
3197
3150
|
],
|
|
3198
3151
|
"flags": {
|
|
3152
|
+
"with-blueprints": {
|
|
3153
|
+
"description": "Use Blueprint-aware behavior",
|
|
3154
|
+
"hidden": true,
|
|
3155
|
+
"name": "with-blueprints",
|
|
3156
|
+
"allowNo": false,
|
|
3157
|
+
"type": "boolean"
|
|
3158
|
+
},
|
|
3199
3159
|
"project": {
|
|
3200
3160
|
"aliases": [
|
|
3201
3161
|
"project-id"
|
|
3202
3162
|
],
|
|
3203
3163
|
"char": "p",
|
|
3204
3164
|
"deprecateAliases": true,
|
|
3205
|
-
"description": "
|
|
3165
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
3166
|
+
"helpGroup": "OVERRIDE",
|
|
3206
3167
|
"name": "project",
|
|
3207
3168
|
"hasDynamicHelp": false,
|
|
3208
3169
|
"helpValue": "<id>",
|
|
3209
3170
|
"multiple": false,
|
|
3210
3171
|
"type": "option"
|
|
3172
|
+
}
|
|
3173
|
+
},
|
|
3174
|
+
"hasDynamicHelp": false,
|
|
3175
|
+
"hiddenAliases": [
|
|
3176
|
+
"dataset:list"
|
|
3177
|
+
],
|
|
3178
|
+
"id": "datasets:list",
|
|
3179
|
+
"pluginAlias": "@sanity/cli",
|
|
3180
|
+
"pluginName": "@sanity/cli",
|
|
3181
|
+
"pluginType": "core",
|
|
3182
|
+
"strict": true,
|
|
3183
|
+
"isESM": true,
|
|
3184
|
+
"relativePath": [
|
|
3185
|
+
"dist",
|
|
3186
|
+
"commands",
|
|
3187
|
+
"datasets",
|
|
3188
|
+
"list.js"
|
|
3189
|
+
]
|
|
3190
|
+
},
|
|
3191
|
+
"cors:add": {
|
|
3192
|
+
"aliases": [],
|
|
3193
|
+
"args": {
|
|
3194
|
+
"origin": {
|
|
3195
|
+
"description": "Origin to allow (e.g., https://example.com)",
|
|
3196
|
+
"name": "origin",
|
|
3197
|
+
"required": true
|
|
3198
|
+
}
|
|
3199
|
+
},
|
|
3200
|
+
"description": "Add a CORS origin to the project",
|
|
3201
|
+
"examples": [
|
|
3202
|
+
{
|
|
3203
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3204
|
+
"description": "Interactively add a CORS origin"
|
|
3211
3205
|
},
|
|
3212
|
-
|
|
3213
|
-
"
|
|
3214
|
-
"description": "
|
|
3215
|
-
"name": "dataset",
|
|
3216
|
-
"hasDynamicHelp": false,
|
|
3217
|
-
"helpValue": "<name>",
|
|
3218
|
-
"multiple": false,
|
|
3219
|
-
"type": "option"
|
|
3220
|
-
},
|
|
3221
|
-
"file": {
|
|
3222
|
-
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3223
|
-
"name": "file",
|
|
3224
|
-
"hasDynamicHelp": false,
|
|
3225
|
-
"multiple": false,
|
|
3226
|
-
"type": "option"
|
|
3206
|
+
{
|
|
3207
|
+
"command": "<%= config.bin %> <%= command.id %> http://localhost:3000 --no-credentials",
|
|
3208
|
+
"description": "Add a localhost origin without credentials"
|
|
3227
3209
|
},
|
|
3228
|
-
|
|
3229
|
-
"
|
|
3230
|
-
"
|
|
3231
|
-
"hasDynamicHelp": false,
|
|
3232
|
-
"multiple": false,
|
|
3233
|
-
"options": [
|
|
3234
|
-
"json",
|
|
3235
|
-
"ndjson",
|
|
3236
|
-
"pretty"
|
|
3237
|
-
],
|
|
3238
|
-
"type": "option"
|
|
3210
|
+
{
|
|
3211
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --credentials",
|
|
3212
|
+
"description": "Add a production origin with credentials allowed"
|
|
3239
3213
|
},
|
|
3240
|
-
|
|
3241
|
-
"
|
|
3242
|
-
"
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
"
|
|
3249
|
-
"info"
|
|
3214
|
+
{
|
|
3215
|
+
"command": "<%= config.bin %> <%= command.id %> https://myapp.com --project abc123",
|
|
3216
|
+
"description": "Add a CORS origin for a specific project"
|
|
3217
|
+
}
|
|
3218
|
+
],
|
|
3219
|
+
"flags": {
|
|
3220
|
+
"project": {
|
|
3221
|
+
"aliases": [
|
|
3222
|
+
"project-id"
|
|
3250
3223
|
],
|
|
3251
|
-
"
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
"
|
|
3255
|
-
"name": "
|
|
3256
|
-
"default": 5,
|
|
3257
|
-
"hasDynamicHelp": false,
|
|
3258
|
-
"multiple": false,
|
|
3259
|
-
"type": "option"
|
|
3260
|
-
},
|
|
3261
|
-
"max-fetch-concurrency": {
|
|
3262
|
-
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3263
|
-
"name": "max-fetch-concurrency",
|
|
3264
|
-
"default": 25,
|
|
3224
|
+
"char": "p",
|
|
3225
|
+
"deprecateAliases": true,
|
|
3226
|
+
"description": "Project ID to add CORS origin to (overrides CLI configuration)",
|
|
3227
|
+
"helpGroup": "OVERRIDE",
|
|
3228
|
+
"name": "project",
|
|
3265
3229
|
"hasDynamicHelp": false,
|
|
3230
|
+
"helpValue": "<id>",
|
|
3266
3231
|
"multiple": false,
|
|
3267
3232
|
"type": "option"
|
|
3268
3233
|
},
|
|
3269
|
-
"
|
|
3270
|
-
"description": "
|
|
3271
|
-
"name": "
|
|
3272
|
-
"
|
|
3273
|
-
"
|
|
3274
|
-
"type": "
|
|
3234
|
+
"credentials": {
|
|
3235
|
+
"description": "Allow credentials (token/cookie) to be sent from this origin",
|
|
3236
|
+
"name": "credentials",
|
|
3237
|
+
"required": false,
|
|
3238
|
+
"allowNo": true,
|
|
3239
|
+
"type": "boolean"
|
|
3275
3240
|
},
|
|
3276
3241
|
"yes": {
|
|
3277
3242
|
"char": "y",
|
|
3278
|
-
"description": "
|
|
3243
|
+
"description": "Confirm risky wildcard origins without prompting",
|
|
3279
3244
|
"name": "yes",
|
|
3280
3245
|
"allowNo": false,
|
|
3281
3246
|
"type": "boolean"
|
|
3282
3247
|
}
|
|
3283
3248
|
},
|
|
3284
3249
|
"hasDynamicHelp": false,
|
|
3285
|
-
"hiddenAliases": [
|
|
3286
|
-
|
|
3287
|
-
],
|
|
3288
|
-
"id": "documents:validate",
|
|
3250
|
+
"hiddenAliases": [],
|
|
3251
|
+
"id": "cors:add",
|
|
3289
3252
|
"pluginAlias": "@sanity/cli",
|
|
3290
3253
|
"pluginName": "@sanity/cli",
|
|
3291
3254
|
"pluginType": "core",
|
|
3292
3255
|
"strict": true,
|
|
3293
|
-
"telemetry": {
|
|
3294
|
-
"redactedFlags": [
|
|
3295
|
-
{
|
|
3296
|
-
"canonical": "--file",
|
|
3297
|
-
"flags": [
|
|
3298
|
-
"--file"
|
|
3299
|
-
]
|
|
3300
|
-
}
|
|
3301
|
-
]
|
|
3302
|
-
},
|
|
3303
3256
|
"isESM": true,
|
|
3304
3257
|
"relativePath": [
|
|
3305
3258
|
"dist",
|
|
3306
3259
|
"commands",
|
|
3307
|
-
"
|
|
3308
|
-
"
|
|
3260
|
+
"cors",
|
|
3261
|
+
"add.js"
|
|
3309
3262
|
]
|
|
3310
3263
|
},
|
|
3311
|
-
"
|
|
3264
|
+
"cors:delete": {
|
|
3312
3265
|
"aliases": [],
|
|
3313
3266
|
"args": {
|
|
3314
|
-
"
|
|
3315
|
-
"description": "
|
|
3316
|
-
"name": "
|
|
3317
|
-
"required": false
|
|
3318
|
-
},
|
|
3319
|
-
"target": {
|
|
3320
|
-
"description": "Name of the dataset to copy to",
|
|
3321
|
-
"name": "target",
|
|
3267
|
+
"origin": {
|
|
3268
|
+
"description": "Origin to delete (will prompt if not provided)",
|
|
3269
|
+
"name": "origin",
|
|
3322
3270
|
"required": false
|
|
3323
3271
|
}
|
|
3324
3272
|
},
|
|
3325
|
-
"description": "
|
|
3273
|
+
"description": "Delete a CORS origin from the project",
|
|
3326
3274
|
"examples": [
|
|
3327
3275
|
{
|
|
3328
3276
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3329
|
-
"description": "Interactively
|
|
3330
|
-
},
|
|
3331
|
-
{
|
|
3332
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
3333
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
3334
|
-
},
|
|
3335
|
-
{
|
|
3336
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
3337
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
3338
|
-
},
|
|
3339
|
-
{
|
|
3340
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
3341
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
3342
|
-
},
|
|
3343
|
-
{
|
|
3344
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
3345
|
-
"description": "Copy without content release documents"
|
|
3346
|
-
},
|
|
3347
|
-
{
|
|
3348
|
-
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
3349
|
-
"description": "Start copy job without waiting for completion"
|
|
3350
|
-
},
|
|
3351
|
-
{
|
|
3352
|
-
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
3353
|
-
"description": "Attach to a running copy job to follow progress"
|
|
3277
|
+
"description": "Interactively select and delete a CORS origin"
|
|
3354
3278
|
},
|
|
3355
3279
|
{
|
|
3356
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3357
|
-
"description": "
|
|
3280
|
+
"command": "<%= config.bin %> <%= command.id %> https://example.com",
|
|
3281
|
+
"description": "Delete a specific CORS origin"
|
|
3358
3282
|
},
|
|
3359
3283
|
{
|
|
3360
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3361
|
-
"description": "
|
|
3284
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
3285
|
+
"description": "Delete a CORS origin from a specific project"
|
|
3362
3286
|
}
|
|
3363
3287
|
],
|
|
3364
3288
|
"flags": {
|
|
@@ -3368,100 +3292,187 @@
|
|
|
3368
3292
|
],
|
|
3369
3293
|
"char": "p",
|
|
3370
3294
|
"deprecateAliases": true,
|
|
3371
|
-
"description": "Project ID to
|
|
3295
|
+
"description": "Project ID to delete CORS origin from (overrides CLI configuration)",
|
|
3372
3296
|
"helpGroup": "OVERRIDE",
|
|
3373
3297
|
"name": "project",
|
|
3374
3298
|
"hasDynamicHelp": false,
|
|
3375
3299
|
"helpValue": "<id>",
|
|
3376
3300
|
"multiple": false,
|
|
3377
3301
|
"type": "option"
|
|
3302
|
+
}
|
|
3303
|
+
},
|
|
3304
|
+
"hasDynamicHelp": false,
|
|
3305
|
+
"hiddenAliases": [],
|
|
3306
|
+
"id": "cors:delete",
|
|
3307
|
+
"pluginAlias": "@sanity/cli",
|
|
3308
|
+
"pluginName": "@sanity/cli",
|
|
3309
|
+
"pluginType": "core",
|
|
3310
|
+
"strict": true,
|
|
3311
|
+
"isESM": true,
|
|
3312
|
+
"relativePath": [
|
|
3313
|
+
"dist",
|
|
3314
|
+
"commands",
|
|
3315
|
+
"cors",
|
|
3316
|
+
"delete.js"
|
|
3317
|
+
]
|
|
3318
|
+
},
|
|
3319
|
+
"cors:list": {
|
|
3320
|
+
"aliases": [],
|
|
3321
|
+
"args": {},
|
|
3322
|
+
"description": "List CORS origins for the project",
|
|
3323
|
+
"examples": [
|
|
3324
|
+
{
|
|
3325
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3326
|
+
"description": "List CORS origins for the project"
|
|
3378
3327
|
},
|
|
3379
|
-
|
|
3380
|
-
"
|
|
3381
|
-
"
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3328
|
+
{
|
|
3329
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
3330
|
+
"description": "List CORS origins for a specific project"
|
|
3331
|
+
}
|
|
3332
|
+
],
|
|
3333
|
+
"flags": {
|
|
3334
|
+
"project": {
|
|
3335
|
+
"aliases": [
|
|
3336
|
+
"project-id"
|
|
3385
3337
|
],
|
|
3386
|
-
"
|
|
3387
|
-
"
|
|
3338
|
+
"char": "p",
|
|
3339
|
+
"deprecateAliases": true,
|
|
3340
|
+
"description": "Project ID to list CORS origins for (overrides CLI configuration)",
|
|
3341
|
+
"helpGroup": "OVERRIDE",
|
|
3342
|
+
"name": "project",
|
|
3388
3343
|
"hasDynamicHelp": false,
|
|
3344
|
+
"helpValue": "<id>",
|
|
3389
3345
|
"multiple": false,
|
|
3390
3346
|
"type": "option"
|
|
3347
|
+
}
|
|
3348
|
+
},
|
|
3349
|
+
"hasDynamicHelp": false,
|
|
3350
|
+
"hiddenAliases": [],
|
|
3351
|
+
"id": "cors:list",
|
|
3352
|
+
"pluginAlias": "@sanity/cli",
|
|
3353
|
+
"pluginName": "@sanity/cli",
|
|
3354
|
+
"pluginType": "core",
|
|
3355
|
+
"strict": true,
|
|
3356
|
+
"isESM": true,
|
|
3357
|
+
"relativePath": [
|
|
3358
|
+
"dist",
|
|
3359
|
+
"commands",
|
|
3360
|
+
"cors",
|
|
3361
|
+
"list.js"
|
|
3362
|
+
]
|
|
3363
|
+
},
|
|
3364
|
+
"docs:browse": {
|
|
3365
|
+
"aliases": [],
|
|
3366
|
+
"args": {},
|
|
3367
|
+
"description": "Open Sanity docs in your browser",
|
|
3368
|
+
"flags": {},
|
|
3369
|
+
"hasDynamicHelp": false,
|
|
3370
|
+
"hiddenAliases": [],
|
|
3371
|
+
"id": "docs:browse",
|
|
3372
|
+
"pluginAlias": "@sanity/cli",
|
|
3373
|
+
"pluginName": "@sanity/cli",
|
|
3374
|
+
"pluginType": "core",
|
|
3375
|
+
"strict": true,
|
|
3376
|
+
"enableJsonFlag": false,
|
|
3377
|
+
"isESM": true,
|
|
3378
|
+
"relativePath": [
|
|
3379
|
+
"dist",
|
|
3380
|
+
"commands",
|
|
3381
|
+
"docs",
|
|
3382
|
+
"browse.js"
|
|
3383
|
+
]
|
|
3384
|
+
},
|
|
3385
|
+
"docs:read": {
|
|
3386
|
+
"aliases": [],
|
|
3387
|
+
"args": {
|
|
3388
|
+
"path": {
|
|
3389
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3390
|
+
"name": "path",
|
|
3391
|
+
"required": true
|
|
3392
|
+
}
|
|
3393
|
+
},
|
|
3394
|
+
"description": "Read an article in terminal",
|
|
3395
|
+
"examples": [
|
|
3396
|
+
{
|
|
3397
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
3398
|
+
"description": "Read as markdown in terminal"
|
|
3391
3399
|
},
|
|
3392
|
-
|
|
3393
|
-
"
|
|
3394
|
-
"
|
|
3395
|
-
|
|
3396
|
-
|
|
3400
|
+
{
|
|
3401
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3402
|
+
"description": "Read using full URL"
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3406
|
+
"description": "Open in web browser"
|
|
3407
|
+
},
|
|
3408
|
+
{
|
|
3409
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3410
|
+
"description": "Open using full URL in web browser"
|
|
3411
|
+
}
|
|
3412
|
+
],
|
|
3413
|
+
"flags": {
|
|
3414
|
+
"web": {
|
|
3415
|
+
"aliases": [
|
|
3416
|
+
"w"
|
|
3397
3417
|
],
|
|
3398
|
-
"
|
|
3399
|
-
"
|
|
3418
|
+
"description": "Open in a web browser",
|
|
3419
|
+
"name": "web",
|
|
3400
3420
|
"allowNo": false,
|
|
3401
3421
|
"type": "boolean"
|
|
3422
|
+
}
|
|
3423
|
+
},
|
|
3424
|
+
"hasDynamicHelp": false,
|
|
3425
|
+
"hiddenAliases": [],
|
|
3426
|
+
"id": "docs:read",
|
|
3427
|
+
"pluginAlias": "@sanity/cli",
|
|
3428
|
+
"pluginName": "@sanity/cli",
|
|
3429
|
+
"pluginType": "core",
|
|
3430
|
+
"strict": true,
|
|
3431
|
+
"isESM": true,
|
|
3432
|
+
"relativePath": [
|
|
3433
|
+
"dist",
|
|
3434
|
+
"commands",
|
|
3435
|
+
"docs",
|
|
3436
|
+
"read.js"
|
|
3437
|
+
]
|
|
3438
|
+
},
|
|
3439
|
+
"docs:search": {
|
|
3440
|
+
"aliases": [],
|
|
3441
|
+
"args": {
|
|
3442
|
+
"query": {
|
|
3443
|
+
"description": "Search query for documentation",
|
|
3444
|
+
"name": "query",
|
|
3445
|
+
"required": true
|
|
3446
|
+
}
|
|
3447
|
+
},
|
|
3448
|
+
"description": "Search Sanity docs",
|
|
3449
|
+
"examples": [
|
|
3450
|
+
{
|
|
3451
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3452
|
+
"description": "Search for documentation about schemas"
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3456
|
+
"description": "Search with phrase"
|
|
3402
3457
|
},
|
|
3458
|
+
{
|
|
3459
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3460
|
+
"description": "Limit search results"
|
|
3461
|
+
}
|
|
3462
|
+
],
|
|
3463
|
+
"flags": {
|
|
3403
3464
|
"limit": {
|
|
3404
|
-
"
|
|
3405
|
-
"list"
|
|
3406
|
-
],
|
|
3407
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
3465
|
+
"description": "Maximum number of results to return",
|
|
3408
3466
|
"name": "limit",
|
|
3409
|
-
"
|
|
3410
|
-
"hasDynamicHelp": false,
|
|
3411
|
-
"multiple": false,
|
|
3412
|
-
"type": "option"
|
|
3413
|
-
},
|
|
3414
|
-
"list": {
|
|
3415
|
-
"description": "Lists all dataset copy jobs",
|
|
3416
|
-
"exclusive": [
|
|
3417
|
-
"attach",
|
|
3418
|
-
"detach",
|
|
3419
|
-
"skip-history"
|
|
3420
|
-
],
|
|
3421
|
-
"name": "list",
|
|
3422
|
-
"required": false,
|
|
3423
|
-
"allowNo": false,
|
|
3424
|
-
"type": "boolean"
|
|
3425
|
-
},
|
|
3426
|
-
"offset": {
|
|
3427
|
-
"dependsOn": [
|
|
3428
|
-
"list"
|
|
3429
|
-
],
|
|
3430
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
3431
|
-
"name": "offset",
|
|
3432
|
-
"required": false,
|
|
3467
|
+
"default": 10,
|
|
3433
3468
|
"hasDynamicHelp": false,
|
|
3434
3469
|
"multiple": false,
|
|
3435
3470
|
"type": "option"
|
|
3436
|
-
},
|
|
3437
|
-
"skip-content-releases": {
|
|
3438
|
-
"description": "Don't copy content release documents to the target dataset",
|
|
3439
|
-
"exclusive": [
|
|
3440
|
-
"list",
|
|
3441
|
-
"attach"
|
|
3442
|
-
],
|
|
3443
|
-
"name": "skip-content-releases",
|
|
3444
|
-
"required": false,
|
|
3445
|
-
"allowNo": false,
|
|
3446
|
-
"type": "boolean"
|
|
3447
|
-
},
|
|
3448
|
-
"skip-history": {
|
|
3449
|
-
"description": "Don't preserve document history on copy",
|
|
3450
|
-
"exclusive": [
|
|
3451
|
-
"list",
|
|
3452
|
-
"attach"
|
|
3453
|
-
],
|
|
3454
|
-
"name": "skip-history",
|
|
3455
|
-
"required": false,
|
|
3456
|
-
"allowNo": false,
|
|
3457
|
-
"type": "boolean"
|
|
3458
3471
|
}
|
|
3459
3472
|
},
|
|
3460
3473
|
"hasDynamicHelp": false,
|
|
3461
|
-
"hiddenAliases": [
|
|
3462
|
-
|
|
3463
|
-
],
|
|
3464
|
-
"id": "datasets:copy",
|
|
3474
|
+
"hiddenAliases": [],
|
|
3475
|
+
"id": "docs:search",
|
|
3465
3476
|
"pluginAlias": "@sanity/cli",
|
|
3466
3477
|
"pluginName": "@sanity/cli",
|
|
3467
3478
|
"pluginType": "core",
|
|
@@ -3470,49 +3481,50 @@
|
|
|
3470
3481
|
"relativePath": [
|
|
3471
3482
|
"dist",
|
|
3472
3483
|
"commands",
|
|
3473
|
-
"
|
|
3474
|
-
"
|
|
3484
|
+
"docs",
|
|
3485
|
+
"search.js"
|
|
3475
3486
|
]
|
|
3476
3487
|
},
|
|
3477
|
-
"
|
|
3488
|
+
"documents:create": {
|
|
3478
3489
|
"aliases": [],
|
|
3479
3490
|
"args": {
|
|
3480
|
-
"
|
|
3481
|
-
"description": "
|
|
3482
|
-
"name": "
|
|
3491
|
+
"file": {
|
|
3492
|
+
"description": "JSON file to create document(s) from",
|
|
3493
|
+
"name": "file",
|
|
3483
3494
|
"required": false
|
|
3484
3495
|
}
|
|
3485
3496
|
},
|
|
3486
|
-
"description": "Create
|
|
3497
|
+
"description": "Create one or more documents",
|
|
3487
3498
|
"examples": [
|
|
3499
|
+
{
|
|
3500
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3501
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
3502
|
+
},
|
|
3488
3503
|
{
|
|
3489
3504
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3490
|
-
"description": "
|
|
3505
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3491
3506
|
},
|
|
3492
3507
|
{
|
|
3493
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3494
|
-
"description": "
|
|
3508
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3509
|
+
"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"
|
|
3495
3510
|
},
|
|
3496
3511
|
{
|
|
3497
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3498
|
-
"description": "
|
|
3512
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
3513
|
+
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project abc123",
|
|
3517
|
+
"description": "Create documents in a specific project"
|
|
3499
3518
|
}
|
|
3500
3519
|
],
|
|
3501
3520
|
"flags": {
|
|
3502
|
-
"with-blueprints": {
|
|
3503
|
-
"description": "Use Blueprint-aware behavior",
|
|
3504
|
-
"hidden": true,
|
|
3505
|
-
"name": "with-blueprints",
|
|
3506
|
-
"allowNo": false,
|
|
3507
|
-
"type": "boolean"
|
|
3508
|
-
},
|
|
3509
3521
|
"project": {
|
|
3510
3522
|
"aliases": [
|
|
3511
3523
|
"project-id"
|
|
3512
3524
|
],
|
|
3513
3525
|
"char": "p",
|
|
3514
3526
|
"deprecateAliases": true,
|
|
3515
|
-
"description": "Project ID to create
|
|
3527
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
3516
3528
|
"helpGroup": "OVERRIDE",
|
|
3517
3529
|
"name": "project",
|
|
3518
3530
|
"hasDynamicHelp": false,
|
|
@@ -3520,97 +3532,110 @@
|
|
|
3520
3532
|
"multiple": false,
|
|
3521
3533
|
"type": "option"
|
|
3522
3534
|
},
|
|
3523
|
-
"
|
|
3524
|
-
"
|
|
3525
|
-
"
|
|
3526
|
-
"
|
|
3527
|
-
"
|
|
3528
|
-
},
|
|
3529
|
-
"embeddings-projection": {
|
|
3530
|
-
"dependsOn": [
|
|
3531
|
-
"embeddings"
|
|
3532
|
-
],
|
|
3533
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
3534
|
-
"name": "embeddings-projection",
|
|
3535
|
+
"dataset": {
|
|
3536
|
+
"char": "d",
|
|
3537
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
3538
|
+
"helpGroup": "OVERRIDE",
|
|
3539
|
+
"name": "dataset",
|
|
3535
3540
|
"hasDynamicHelp": false,
|
|
3541
|
+
"helpValue": "<name>",
|
|
3536
3542
|
"multiple": false,
|
|
3537
3543
|
"type": "option"
|
|
3538
3544
|
},
|
|
3539
|
-
"
|
|
3540
|
-
"description": "
|
|
3541
|
-
"name": "
|
|
3545
|
+
"id": {
|
|
3546
|
+
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
3547
|
+
"name": "id",
|
|
3542
3548
|
"hasDynamicHelp": false,
|
|
3543
3549
|
"multiple": false,
|
|
3544
|
-
"options": [
|
|
3545
|
-
"custom",
|
|
3546
|
-
"private",
|
|
3547
|
-
"public"
|
|
3548
|
-
],
|
|
3549
3550
|
"type": "option"
|
|
3551
|
+
},
|
|
3552
|
+
"json5": {
|
|
3553
|
+
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
3554
|
+
"name": "json5",
|
|
3555
|
+
"allowNo": false,
|
|
3556
|
+
"type": "boolean"
|
|
3557
|
+
},
|
|
3558
|
+
"missing": {
|
|
3559
|
+
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
3560
|
+
"name": "missing",
|
|
3561
|
+
"allowNo": false,
|
|
3562
|
+
"type": "boolean"
|
|
3563
|
+
},
|
|
3564
|
+
"replace": {
|
|
3565
|
+
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
3566
|
+
"name": "replace",
|
|
3567
|
+
"allowNo": false,
|
|
3568
|
+
"type": "boolean"
|
|
3569
|
+
},
|
|
3570
|
+
"watch": {
|
|
3571
|
+
"description": "Write the documents whenever the target file or buffer changes",
|
|
3572
|
+
"name": "watch",
|
|
3573
|
+
"allowNo": false,
|
|
3574
|
+
"type": "boolean"
|
|
3550
3575
|
}
|
|
3551
3576
|
},
|
|
3552
3577
|
"hasDynamicHelp": false,
|
|
3553
3578
|
"hiddenAliases": [
|
|
3554
|
-
"
|
|
3579
|
+
"document:create"
|
|
3555
3580
|
],
|
|
3556
|
-
"id": "
|
|
3581
|
+
"id": "documents:create",
|
|
3557
3582
|
"pluginAlias": "@sanity/cli",
|
|
3558
3583
|
"pluginName": "@sanity/cli",
|
|
3559
3584
|
"pluginType": "core",
|
|
3560
3585
|
"strict": true,
|
|
3561
|
-
"telemetry": {
|
|
3562
|
-
"redactedFlags": [
|
|
3563
|
-
{
|
|
3564
|
-
"canonical": "--embeddings-projection",
|
|
3565
|
-
"flags": [
|
|
3566
|
-
"--embeddings-projection"
|
|
3567
|
-
]
|
|
3568
|
-
}
|
|
3569
|
-
]
|
|
3570
|
-
},
|
|
3571
3586
|
"isESM": true,
|
|
3572
3587
|
"relativePath": [
|
|
3573
3588
|
"dist",
|
|
3574
3589
|
"commands",
|
|
3575
|
-
"
|
|
3590
|
+
"documents",
|
|
3576
3591
|
"create.js"
|
|
3577
3592
|
]
|
|
3578
3593
|
},
|
|
3579
|
-
"
|
|
3594
|
+
"documents:delete": {
|
|
3580
3595
|
"aliases": [],
|
|
3581
3596
|
"args": {
|
|
3582
|
-
"
|
|
3583
|
-
"description": "
|
|
3584
|
-
"name": "
|
|
3597
|
+
"id": {
|
|
3598
|
+
"description": "Document ID to delete",
|
|
3599
|
+
"name": "id",
|
|
3585
3600
|
"required": true
|
|
3601
|
+
},
|
|
3602
|
+
"ids": {
|
|
3603
|
+
"description": "Additional document IDs to delete",
|
|
3604
|
+
"name": "ids",
|
|
3605
|
+
"required": false
|
|
3586
3606
|
}
|
|
3587
3607
|
},
|
|
3588
|
-
"description": "Delete
|
|
3608
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
3589
3609
|
"examples": [
|
|
3590
3610
|
{
|
|
3591
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3592
|
-
"description": "Delete
|
|
3611
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3612
|
+
"description": "Delete the document with the ID \"myDocId\""
|
|
3593
3613
|
},
|
|
3594
3614
|
{
|
|
3595
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3596
|
-
"description": "
|
|
3615
|
+
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
3616
|
+
"description": "ID wrapped in double or single quote works equally well"
|
|
3617
|
+
},
|
|
3618
|
+
{
|
|
3619
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
3620
|
+
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
3624
|
+
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
|
|
3628
|
+
"description": "Delete a document from a specific project"
|
|
3597
3629
|
}
|
|
3598
3630
|
],
|
|
3599
3631
|
"flags": {
|
|
3600
|
-
"with-blueprints": {
|
|
3601
|
-
"description": "Use Blueprint-aware behavior",
|
|
3602
|
-
"hidden": true,
|
|
3603
|
-
"name": "with-blueprints",
|
|
3604
|
-
"allowNo": false,
|
|
3605
|
-
"type": "boolean"
|
|
3606
|
-
},
|
|
3607
3632
|
"project": {
|
|
3608
3633
|
"aliases": [
|
|
3609
3634
|
"project-id"
|
|
3610
3635
|
],
|
|
3611
3636
|
"char": "p",
|
|
3612
3637
|
"deprecateAliases": true,
|
|
3613
|
-
"description": "Project ID to delete
|
|
3638
|
+
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
3614
3639
|
"helpGroup": "OVERRIDE",
|
|
3615
3640
|
"name": "project",
|
|
3616
3641
|
"hasDynamicHelp": false,
|
|
@@ -3618,63 +3643,60 @@
|
|
|
3618
3643
|
"multiple": false,
|
|
3619
3644
|
"type": "option"
|
|
3620
3645
|
},
|
|
3621
|
-
"
|
|
3622
|
-
"
|
|
3623
|
-
"
|
|
3624
|
-
"
|
|
3625
|
-
"
|
|
3646
|
+
"dataset": {
|
|
3647
|
+
"char": "d",
|
|
3648
|
+
"description": "Dataset to delete from (overrides CLI configuration)",
|
|
3649
|
+
"helpGroup": "OVERRIDE",
|
|
3650
|
+
"name": "dataset",
|
|
3651
|
+
"hasDynamicHelp": false,
|
|
3652
|
+
"helpValue": "<name>",
|
|
3653
|
+
"multiple": false,
|
|
3654
|
+
"type": "option"
|
|
3626
3655
|
}
|
|
3627
3656
|
},
|
|
3628
3657
|
"hasDynamicHelp": false,
|
|
3629
3658
|
"hiddenAliases": [
|
|
3630
|
-
"
|
|
3659
|
+
"document:delete"
|
|
3631
3660
|
],
|
|
3632
|
-
"id": "
|
|
3661
|
+
"id": "documents:delete",
|
|
3633
3662
|
"pluginAlias": "@sanity/cli",
|
|
3634
3663
|
"pluginName": "@sanity/cli",
|
|
3635
3664
|
"pluginType": "core",
|
|
3636
|
-
"strict":
|
|
3665
|
+
"strict": false,
|
|
3637
3666
|
"isESM": true,
|
|
3638
3667
|
"relativePath": [
|
|
3639
3668
|
"dist",
|
|
3640
3669
|
"commands",
|
|
3641
|
-
"
|
|
3670
|
+
"documents",
|
|
3642
3671
|
"delete.js"
|
|
3643
3672
|
]
|
|
3644
3673
|
},
|
|
3645
|
-
"
|
|
3674
|
+
"documents:get": {
|
|
3646
3675
|
"aliases": [],
|
|
3647
3676
|
"args": {
|
|
3648
|
-
"
|
|
3649
|
-
"description": "
|
|
3650
|
-
"name": "
|
|
3651
|
-
|
|
3652
|
-
"destination": {
|
|
3653
|
-
"description": "Output destination file path",
|
|
3654
|
-
"name": "destination"
|
|
3677
|
+
"documentId": {
|
|
3678
|
+
"description": "Document ID to retrieve",
|
|
3679
|
+
"name": "documentId",
|
|
3680
|
+
"required": true
|
|
3655
3681
|
}
|
|
3656
3682
|
},
|
|
3657
|
-
"description": "
|
|
3683
|
+
"description": "Get and print a document by ID",
|
|
3658
3684
|
"examples": [
|
|
3659
3685
|
{
|
|
3660
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3661
|
-
"description": "
|
|
3662
|
-
},
|
|
3663
|
-
{
|
|
3664
|
-
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
3665
|
-
"description": "Export dataset without assets"
|
|
3686
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3687
|
+
"description": "Get the document with ID \"myDocId\""
|
|
3666
3688
|
},
|
|
3667
3689
|
{
|
|
3668
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3669
|
-
"description": "
|
|
3690
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
|
|
3691
|
+
"description": "Get document with colorized JSON output"
|
|
3670
3692
|
},
|
|
3671
3693
|
{
|
|
3672
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3673
|
-
"description": "
|
|
3694
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
3695
|
+
"description": "Get document from a specific dataset"
|
|
3674
3696
|
},
|
|
3675
3697
|
{
|
|
3676
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3677
|
-
"description": "
|
|
3698
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
|
|
3699
|
+
"description": "Get a document from a specific project"
|
|
3678
3700
|
}
|
|
3679
3701
|
],
|
|
3680
3702
|
"flags": {
|
|
@@ -3684,7 +3706,7 @@
|
|
|
3684
3706
|
],
|
|
3685
3707
|
"char": "p",
|
|
3686
3708
|
"deprecateAliases": true,
|
|
3687
|
-
"description": "Project ID to
|
|
3709
|
+
"description": "Project ID to get document from (overrides CLI configuration)",
|
|
3688
3710
|
"helpGroup": "OVERRIDE",
|
|
3689
3711
|
"name": "project",
|
|
3690
3712
|
"hasDynamicHelp": false,
|
|
@@ -3692,75 +3714,28 @@
|
|
|
3692
3714
|
"multiple": false,
|
|
3693
3715
|
"type": "option"
|
|
3694
3716
|
},
|
|
3695
|
-
"
|
|
3696
|
-
"
|
|
3697
|
-
"
|
|
3698
|
-
"
|
|
3699
|
-
"
|
|
3700
|
-
"multiple": false,
|
|
3701
|
-
"type": "option"
|
|
3702
|
-
},
|
|
3703
|
-
"mode": {
|
|
3704
|
-
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
3705
|
-
"name": "mode",
|
|
3706
|
-
"default": "stream",
|
|
3717
|
+
"dataset": {
|
|
3718
|
+
"char": "d",
|
|
3719
|
+
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
3720
|
+
"helpGroup": "OVERRIDE",
|
|
3721
|
+
"name": "dataset",
|
|
3707
3722
|
"hasDynamicHelp": false,
|
|
3723
|
+
"helpValue": "<name>",
|
|
3708
3724
|
"multiple": false,
|
|
3709
|
-
"options": [
|
|
3710
|
-
"stream",
|
|
3711
|
-
"cursor"
|
|
3712
|
-
],
|
|
3713
3725
|
"type": "option"
|
|
3714
3726
|
},
|
|
3715
|
-
"
|
|
3716
|
-
"description": "
|
|
3717
|
-
"name": "
|
|
3718
|
-
"allowNo": false,
|
|
3719
|
-
"type": "boolean"
|
|
3720
|
-
},
|
|
3721
|
-
"no-compress": {
|
|
3722
|
-
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
3723
|
-
"name": "no-compress",
|
|
3724
|
-
"allowNo": false,
|
|
3725
|
-
"type": "boolean"
|
|
3726
|
-
},
|
|
3727
|
-
"no-drafts": {
|
|
3728
|
-
"description": "Export only published versions of documents",
|
|
3729
|
-
"name": "no-drafts",
|
|
3730
|
-
"allowNo": false,
|
|
3731
|
-
"type": "boolean"
|
|
3732
|
-
},
|
|
3733
|
-
"no-strict-asset-verification": {
|
|
3734
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
3735
|
-
"name": "no-strict-asset-verification",
|
|
3736
|
-
"allowNo": false,
|
|
3737
|
-
"type": "boolean"
|
|
3738
|
-
},
|
|
3739
|
-
"overwrite": {
|
|
3740
|
-
"description": "Overwrite any file with the same name",
|
|
3741
|
-
"name": "overwrite",
|
|
3742
|
-
"allowNo": false,
|
|
3743
|
-
"type": "boolean"
|
|
3744
|
-
},
|
|
3745
|
-
"raw": {
|
|
3746
|
-
"description": "Extract only documents, without rewriting asset references",
|
|
3747
|
-
"name": "raw",
|
|
3727
|
+
"pretty": {
|
|
3728
|
+
"description": "Colorize JSON output",
|
|
3729
|
+
"name": "pretty",
|
|
3748
3730
|
"allowNo": false,
|
|
3749
3731
|
"type": "boolean"
|
|
3750
|
-
},
|
|
3751
|
-
"types": {
|
|
3752
|
-
"description": "Defines which document types to export (comma-separated)",
|
|
3753
|
-
"name": "types",
|
|
3754
|
-
"hasDynamicHelp": false,
|
|
3755
|
-
"multiple": false,
|
|
3756
|
-
"type": "option"
|
|
3757
3732
|
}
|
|
3758
3733
|
},
|
|
3759
3734
|
"hasDynamicHelp": false,
|
|
3760
3735
|
"hiddenAliases": [
|
|
3761
|
-
"
|
|
3736
|
+
"document:get"
|
|
3762
3737
|
],
|
|
3763
|
-
"id": "
|
|
3738
|
+
"id": "documents:get",
|
|
3764
3739
|
"pluginAlias": "@sanity/cli",
|
|
3765
3740
|
"pluginName": "@sanity/cli",
|
|
3766
3741
|
"pluginType": "core",
|
|
@@ -3769,100 +3744,46 @@
|
|
|
3769
3744
|
"relativePath": [
|
|
3770
3745
|
"dist",
|
|
3771
3746
|
"commands",
|
|
3772
|
-
"
|
|
3773
|
-
"
|
|
3747
|
+
"documents",
|
|
3748
|
+
"get.js"
|
|
3774
3749
|
]
|
|
3775
3750
|
},
|
|
3776
|
-
"
|
|
3751
|
+
"documents:query": {
|
|
3777
3752
|
"aliases": [],
|
|
3778
3753
|
"args": {
|
|
3779
|
-
"
|
|
3780
|
-
"description": "
|
|
3781
|
-
"name": "
|
|
3754
|
+
"query": {
|
|
3755
|
+
"description": "GROQ query to run against the dataset",
|
|
3756
|
+
"name": "query",
|
|
3782
3757
|
"required": true
|
|
3783
|
-
},
|
|
3784
|
-
"targetDataset": {
|
|
3785
|
-
"description": "Target dataset (prefer --dataset flag instead)",
|
|
3786
|
-
"name": "targetDataset",
|
|
3787
|
-
"required": false
|
|
3788
3758
|
}
|
|
3789
3759
|
},
|
|
3790
|
-
"description": "
|
|
3760
|
+
"description": "Query for documents",
|
|
3791
3761
|
"examples": [
|
|
3792
3762
|
{
|
|
3793
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3794
|
-
"description": "
|
|
3763
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
|
|
3764
|
+
"description": "Fetch 5 documents of type \"movie\""
|
|
3795
3765
|
},
|
|
3796
3766
|
{
|
|
3797
|
-
"command": "
|
|
3798
|
-
"description": "
|
|
3767
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
|
|
3768
|
+
"description": "Fetch title of the oldest movie in the dataset named \"staging\""
|
|
3799
3769
|
},
|
|
3800
3770
|
{
|
|
3801
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3802
|
-
"description": "
|
|
3771
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
|
|
3772
|
+
"description": "Use API version v2021-06-07 and do a query"
|
|
3803
3773
|
},
|
|
3804
3774
|
{
|
|
3805
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3806
|
-
"description": "
|
|
3775
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project abc123 --dataset production",
|
|
3776
|
+
"description": "Query documents in a specific project and dataset"
|
|
3807
3777
|
}
|
|
3808
3778
|
],
|
|
3809
3779
|
"flags": {
|
|
3810
|
-
"allow-assets-in-different-dataset": {
|
|
3811
|
-
"description": "Allow asset documents to reference different project/dataset",
|
|
3812
|
-
"name": "allow-assets-in-different-dataset",
|
|
3813
|
-
"allowNo": false,
|
|
3814
|
-
"type": "boolean"
|
|
3815
|
-
},
|
|
3816
|
-
"allow-failing-assets": {
|
|
3817
|
-
"description": "Skip assets that cannot be fetched/uploaded",
|
|
3818
|
-
"name": "allow-failing-assets",
|
|
3819
|
-
"allowNo": false,
|
|
3820
|
-
"type": "boolean"
|
|
3821
|
-
},
|
|
3822
|
-
"allow-replacement-characters": {
|
|
3823
|
-
"description": "Allow unicode replacement characters in imported documents",
|
|
3824
|
-
"name": "allow-replacement-characters",
|
|
3825
|
-
"allowNo": false,
|
|
3826
|
-
"type": "boolean"
|
|
3827
|
-
},
|
|
3828
|
-
"allow-system-documents": {
|
|
3829
|
-
"description": "Imports system documents",
|
|
3830
|
-
"name": "allow-system-documents",
|
|
3831
|
-
"allowNo": false,
|
|
3832
|
-
"type": "boolean"
|
|
3833
|
-
},
|
|
3834
|
-
"asset-concurrency": {
|
|
3835
|
-
"description": "Number of parallel asset imports",
|
|
3836
|
-
"name": "asset-concurrency",
|
|
3837
|
-
"hasDynamicHelp": false,
|
|
3838
|
-
"multiple": false,
|
|
3839
|
-
"type": "option"
|
|
3840
|
-
},
|
|
3841
|
-
"dataset": {
|
|
3842
|
-
"char": "d",
|
|
3843
|
-
"description": "Dataset to import to",
|
|
3844
|
-
"name": "dataset",
|
|
3845
|
-
"hasDynamicHelp": false,
|
|
3846
|
-
"helpValue": "<name>",
|
|
3847
|
-
"multiple": false,
|
|
3848
|
-
"type": "option"
|
|
3849
|
-
},
|
|
3850
|
-
"missing": {
|
|
3851
|
-
"description": "Skip documents that already exist",
|
|
3852
|
-
"exclusive": [
|
|
3853
|
-
"replace"
|
|
3854
|
-
],
|
|
3855
|
-
"name": "missing",
|
|
3856
|
-
"allowNo": false,
|
|
3857
|
-
"type": "boolean"
|
|
3858
|
-
},
|
|
3859
3780
|
"project": {
|
|
3860
3781
|
"aliases": [
|
|
3861
3782
|
"project-id"
|
|
3862
3783
|
],
|
|
3863
3784
|
"char": "p",
|
|
3864
3785
|
"deprecateAliases": true,
|
|
3865
|
-
"description": "Project ID to
|
|
3786
|
+
"description": "Project ID to query (overrides CLI configuration)",
|
|
3866
3787
|
"helpGroup": "OVERRIDE",
|
|
3867
3788
|
"name": "project",
|
|
3868
3789
|
"hasDynamicHelp": false,
|
|
@@ -3870,118 +3791,197 @@
|
|
|
3870
3791
|
"multiple": false,
|
|
3871
3792
|
"type": "option"
|
|
3872
3793
|
},
|
|
3873
|
-
"
|
|
3874
|
-
"
|
|
3875
|
-
"
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
"
|
|
3879
|
-
"
|
|
3880
|
-
"
|
|
3794
|
+
"dataset": {
|
|
3795
|
+
"char": "d",
|
|
3796
|
+
"description": "Dataset to query (overrides CLI configuration)",
|
|
3797
|
+
"helpGroup": "OVERRIDE",
|
|
3798
|
+
"name": "dataset",
|
|
3799
|
+
"hasDynamicHelp": false,
|
|
3800
|
+
"helpValue": "<name>",
|
|
3801
|
+
"multiple": false,
|
|
3802
|
+
"type": "option"
|
|
3881
3803
|
},
|
|
3882
|
-
"
|
|
3883
|
-
"description": "
|
|
3884
|
-
"
|
|
3804
|
+
"with-blueprints": {
|
|
3805
|
+
"description": "Use Blueprint-aware behavior",
|
|
3806
|
+
"hidden": true,
|
|
3807
|
+
"name": "with-blueprints",
|
|
3885
3808
|
"allowNo": false,
|
|
3886
3809
|
"type": "boolean"
|
|
3887
3810
|
},
|
|
3888
|
-
"
|
|
3889
|
-
"description": "
|
|
3890
|
-
"name": "
|
|
3811
|
+
"anonymous": {
|
|
3812
|
+
"description": "Send the query without any authorization token",
|
|
3813
|
+
"name": "anonymous",
|
|
3891
3814
|
"allowNo": false,
|
|
3892
3815
|
"type": "boolean"
|
|
3893
3816
|
},
|
|
3894
|
-
"
|
|
3895
|
-
"
|
|
3896
|
-
"
|
|
3897
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
3898
|
-
"name": "token",
|
|
3899
|
-
"required": false,
|
|
3817
|
+
"api-version": {
|
|
3818
|
+
"description": "API version to use (defaults to 2025-08-15)",
|
|
3819
|
+
"name": "api-version",
|
|
3900
3820
|
"hasDynamicHelp": false,
|
|
3901
3821
|
"multiple": false,
|
|
3902
3822
|
"type": "option"
|
|
3823
|
+
},
|
|
3824
|
+
"pretty": {
|
|
3825
|
+
"description": "Colorize JSON output",
|
|
3826
|
+
"name": "pretty",
|
|
3827
|
+
"allowNo": false,
|
|
3828
|
+
"type": "boolean"
|
|
3903
3829
|
}
|
|
3904
3830
|
},
|
|
3905
3831
|
"hasDynamicHelp": false,
|
|
3906
3832
|
"hiddenAliases": [
|
|
3907
|
-
"
|
|
3833
|
+
"document:query"
|
|
3908
3834
|
],
|
|
3909
|
-
"id": "
|
|
3835
|
+
"id": "documents:query",
|
|
3910
3836
|
"pluginAlias": "@sanity/cli",
|
|
3911
3837
|
"pluginName": "@sanity/cli",
|
|
3912
3838
|
"pluginType": "core",
|
|
3913
3839
|
"strict": true,
|
|
3914
|
-
"telemetry": {
|
|
3915
|
-
"redactedFlags": [
|
|
3916
|
-
{
|
|
3917
|
-
"canonical": "--token",
|
|
3918
|
-
"flags": [
|
|
3919
|
-
"--token",
|
|
3920
|
-
"-t"
|
|
3921
|
-
]
|
|
3922
|
-
}
|
|
3923
|
-
]
|
|
3924
|
-
},
|
|
3925
3840
|
"isESM": true,
|
|
3926
3841
|
"relativePath": [
|
|
3927
3842
|
"dist",
|
|
3928
3843
|
"commands",
|
|
3929
|
-
"
|
|
3930
|
-
"
|
|
3844
|
+
"documents",
|
|
3845
|
+
"query.js"
|
|
3931
3846
|
]
|
|
3932
3847
|
},
|
|
3933
|
-
"
|
|
3848
|
+
"documents:validate": {
|
|
3934
3849
|
"aliases": [],
|
|
3935
3850
|
"args": {},
|
|
3936
|
-
"description": "
|
|
3851
|
+
"description": "Validate documents in a dataset against the studio schema",
|
|
3937
3852
|
"examples": [
|
|
3938
3853
|
{
|
|
3939
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3940
|
-
"description": "
|
|
3854
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3855
|
+
"description": "Validates all documents in a Sanity project with more than one workspace"
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
3859
|
+
"description": "Override the dataset specified in the workspace"
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
3863
|
+
"description": "Save the results of the report into a file"
|
|
3864
|
+
},
|
|
3865
|
+
{
|
|
3866
|
+
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
3867
|
+
"description": "Report out info level validation markers too"
|
|
3941
3868
|
},
|
|
3942
3869
|
{
|
|
3943
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
3944
|
-
"description": "
|
|
3870
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
|
|
3871
|
+
"description": "Validate documents in a specific project and dataset"
|
|
3945
3872
|
}
|
|
3946
3873
|
],
|
|
3947
3874
|
"flags": {
|
|
3948
|
-
"with-blueprints": {
|
|
3949
|
-
"description": "Use Blueprint-aware behavior",
|
|
3950
|
-
"hidden": true,
|
|
3951
|
-
"name": "with-blueprints",
|
|
3952
|
-
"allowNo": false,
|
|
3953
|
-
"type": "boolean"
|
|
3954
|
-
},
|
|
3955
3875
|
"project": {
|
|
3956
3876
|
"aliases": [
|
|
3957
3877
|
"project-id"
|
|
3958
3878
|
],
|
|
3959
3879
|
"char": "p",
|
|
3960
3880
|
"deprecateAliases": true,
|
|
3961
|
-
"description": "
|
|
3962
|
-
"helpGroup": "OVERRIDE",
|
|
3881
|
+
"description": "Override the project ID used. By default, this is derived from the given workspace",
|
|
3963
3882
|
"name": "project",
|
|
3964
3883
|
"hasDynamicHelp": false,
|
|
3965
3884
|
"helpValue": "<id>",
|
|
3966
3885
|
"multiple": false,
|
|
3967
3886
|
"type": "option"
|
|
3887
|
+
},
|
|
3888
|
+
"dataset": {
|
|
3889
|
+
"char": "d",
|
|
3890
|
+
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
3891
|
+
"name": "dataset",
|
|
3892
|
+
"hasDynamicHelp": false,
|
|
3893
|
+
"helpValue": "<name>",
|
|
3894
|
+
"multiple": false,
|
|
3895
|
+
"type": "option"
|
|
3896
|
+
},
|
|
3897
|
+
"file": {
|
|
3898
|
+
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3899
|
+
"name": "file",
|
|
3900
|
+
"hasDynamicHelp": false,
|
|
3901
|
+
"multiple": false,
|
|
3902
|
+
"type": "option"
|
|
3903
|
+
},
|
|
3904
|
+
"format": {
|
|
3905
|
+
"description": "The output format used to print the found validation markers and report progress",
|
|
3906
|
+
"name": "format",
|
|
3907
|
+
"hasDynamicHelp": false,
|
|
3908
|
+
"multiple": false,
|
|
3909
|
+
"options": [
|
|
3910
|
+
"json",
|
|
3911
|
+
"ndjson",
|
|
3912
|
+
"pretty"
|
|
3913
|
+
],
|
|
3914
|
+
"type": "option"
|
|
3915
|
+
},
|
|
3916
|
+
"level": {
|
|
3917
|
+
"description": "The minimum level reported. Defaults to warning",
|
|
3918
|
+
"name": "level",
|
|
3919
|
+
"default": "warning",
|
|
3920
|
+
"hasDynamicHelp": false,
|
|
3921
|
+
"multiple": false,
|
|
3922
|
+
"options": [
|
|
3923
|
+
"error",
|
|
3924
|
+
"warning",
|
|
3925
|
+
"info"
|
|
3926
|
+
],
|
|
3927
|
+
"type": "option"
|
|
3928
|
+
},
|
|
3929
|
+
"max-custom-validation-concurrency": {
|
|
3930
|
+
"description": "Specify how many custom validators can run concurrently",
|
|
3931
|
+
"name": "max-custom-validation-concurrency",
|
|
3932
|
+
"default": 5,
|
|
3933
|
+
"hasDynamicHelp": false,
|
|
3934
|
+
"multiple": false,
|
|
3935
|
+
"type": "option"
|
|
3936
|
+
},
|
|
3937
|
+
"max-fetch-concurrency": {
|
|
3938
|
+
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3939
|
+
"name": "max-fetch-concurrency",
|
|
3940
|
+
"default": 25,
|
|
3941
|
+
"hasDynamicHelp": false,
|
|
3942
|
+
"multiple": false,
|
|
3943
|
+
"type": "option"
|
|
3944
|
+
},
|
|
3945
|
+
"workspace": {
|
|
3946
|
+
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
3947
|
+
"name": "workspace",
|
|
3948
|
+
"hasDynamicHelp": false,
|
|
3949
|
+
"multiple": false,
|
|
3950
|
+
"type": "option"
|
|
3951
|
+
},
|
|
3952
|
+
"yes": {
|
|
3953
|
+
"char": "y",
|
|
3954
|
+
"description": "Skips the first confirmation prompt",
|
|
3955
|
+
"name": "yes",
|
|
3956
|
+
"allowNo": false,
|
|
3957
|
+
"type": "boolean"
|
|
3968
3958
|
}
|
|
3969
3959
|
},
|
|
3970
3960
|
"hasDynamicHelp": false,
|
|
3971
3961
|
"hiddenAliases": [
|
|
3972
|
-
"
|
|
3962
|
+
"document:validate"
|
|
3973
3963
|
],
|
|
3974
|
-
"id": "
|
|
3964
|
+
"id": "documents:validate",
|
|
3975
3965
|
"pluginAlias": "@sanity/cli",
|
|
3976
3966
|
"pluginName": "@sanity/cli",
|
|
3977
3967
|
"pluginType": "core",
|
|
3978
3968
|
"strict": true,
|
|
3969
|
+
"telemetry": {
|
|
3970
|
+
"redactedFlags": [
|
|
3971
|
+
{
|
|
3972
|
+
"canonical": "--file",
|
|
3973
|
+
"flags": [
|
|
3974
|
+
"--file"
|
|
3975
|
+
]
|
|
3976
|
+
}
|
|
3977
|
+
]
|
|
3978
|
+
},
|
|
3979
3979
|
"isESM": true,
|
|
3980
3980
|
"relativePath": [
|
|
3981
3981
|
"dist",
|
|
3982
3982
|
"commands",
|
|
3983
|
-
"
|
|
3984
|
-
"
|
|
3983
|
+
"documents",
|
|
3984
|
+
"validate.js"
|
|
3985
3985
|
]
|
|
3986
3986
|
},
|
|
3987
3987
|
"graphql:deploy": {
|
|
@@ -4453,178 +4453,39 @@
|
|
|
4453
4453
|
"command": "<%= config.bin %> <%= command.id %> [NAME]",
|
|
4454
4454
|
"description": "Show log entries for a specific webhook by name"
|
|
4455
4455
|
},
|
|
4456
|
-
{
|
|
4457
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
4458
|
-
"description": "Show log entries for a specific project"
|
|
4459
|
-
}
|
|
4460
|
-
],
|
|
4461
|
-
"flags": {
|
|
4462
|
-
"project": {
|
|
4463
|
-
"aliases": [
|
|
4464
|
-
"project-id"
|
|
4465
|
-
],
|
|
4466
|
-
"char": "p",
|
|
4467
|
-
"deprecateAliases": true,
|
|
4468
|
-
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
4469
|
-
"helpGroup": "OVERRIDE",
|
|
4470
|
-
"name": "project",
|
|
4471
|
-
"hasDynamicHelp": false,
|
|
4472
|
-
"helpValue": "<id>",
|
|
4473
|
-
"multiple": false,
|
|
4474
|
-
"type": "option"
|
|
4475
|
-
},
|
|
4476
|
-
"detailed": {
|
|
4477
|
-
"description": "Include detailed payload and attempts",
|
|
4478
|
-
"name": "detailed",
|
|
4479
|
-
"required": false,
|
|
4480
|
-
"allowNo": false,
|
|
4481
|
-
"type": "boolean"
|
|
4482
|
-
}
|
|
4483
|
-
},
|
|
4484
|
-
"hasDynamicHelp": false,
|
|
4485
|
-
"hiddenAliases": [
|
|
4486
|
-
"hook:logs"
|
|
4487
|
-
],
|
|
4488
|
-
"id": "hooks:logs",
|
|
4489
|
-
"pluginAlias": "@sanity/cli",
|
|
4490
|
-
"pluginName": "@sanity/cli",
|
|
4491
|
-
"pluginType": "core",
|
|
4492
|
-
"strict": true,
|
|
4493
|
-
"isESM": true,
|
|
4494
|
-
"relativePath": [
|
|
4495
|
-
"dist",
|
|
4496
|
-
"commands",
|
|
4497
|
-
"hooks",
|
|
4498
|
-
"logs.js"
|
|
4499
|
-
]
|
|
4500
|
-
},
|
|
4501
|
-
"manifest:extract": {
|
|
4502
|
-
"aliases": [],
|
|
4503
|
-
"args": {},
|
|
4504
|
-
"description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
|
|
4505
|
-
"examples": [
|
|
4506
|
-
{
|
|
4507
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4508
|
-
"description": "Extracts manifests"
|
|
4509
|
-
},
|
|
4510
|
-
{
|
|
4511
|
-
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
4512
|
-
"description": "Extracts manifests into /public/static"
|
|
4513
|
-
}
|
|
4514
|
-
],
|
|
4515
|
-
"flags": {
|
|
4516
|
-
"path": {
|
|
4517
|
-
"description": "Optional path to specify destination directory of the manifest files",
|
|
4518
|
-
"name": "path",
|
|
4519
|
-
"default": "dist/static",
|
|
4520
|
-
"hasDynamicHelp": false,
|
|
4521
|
-
"multiple": false,
|
|
4522
|
-
"type": "option"
|
|
4523
|
-
}
|
|
4524
|
-
},
|
|
4525
|
-
"hasDynamicHelp": false,
|
|
4526
|
-
"hiddenAliases": [],
|
|
4527
|
-
"id": "manifest:extract",
|
|
4528
|
-
"pluginAlias": "@sanity/cli",
|
|
4529
|
-
"pluginName": "@sanity/cli",
|
|
4530
|
-
"pluginType": "core",
|
|
4531
|
-
"strict": true,
|
|
4532
|
-
"telemetry": {
|
|
4533
|
-
"redactedFlags": [
|
|
4534
|
-
{
|
|
4535
|
-
"canonical": "--path",
|
|
4536
|
-
"flags": [
|
|
4537
|
-
"--path"
|
|
4538
|
-
]
|
|
4539
|
-
}
|
|
4540
|
-
]
|
|
4541
|
-
},
|
|
4542
|
-
"isESM": true,
|
|
4543
|
-
"relativePath": [
|
|
4544
|
-
"dist",
|
|
4545
|
-
"commands",
|
|
4546
|
-
"manifest",
|
|
4547
|
-
"extract.js"
|
|
4548
|
-
]
|
|
4549
|
-
},
|
|
4550
|
-
"mcp:configure": {
|
|
4551
|
-
"aliases": [],
|
|
4552
|
-
"args": {},
|
|
4553
|
-
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
|
|
4554
|
-
"examples": [
|
|
4555
|
-
{
|
|
4556
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4557
|
-
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4558
|
-
}
|
|
4559
|
-
],
|
|
4560
|
-
"flags": {},
|
|
4561
|
-
"hasDynamicHelp": false,
|
|
4562
|
-
"hiddenAliases": [],
|
|
4563
|
-
"id": "mcp:configure",
|
|
4564
|
-
"pluginAlias": "@sanity/cli",
|
|
4565
|
-
"pluginName": "@sanity/cli",
|
|
4566
|
-
"pluginType": "core",
|
|
4567
|
-
"strict": true,
|
|
4568
|
-
"isESM": true,
|
|
4569
|
-
"relativePath": [
|
|
4570
|
-
"dist",
|
|
4571
|
-
"commands",
|
|
4572
|
-
"mcp",
|
|
4573
|
-
"configure.js"
|
|
4574
|
-
]
|
|
4575
|
-
},
|
|
4576
|
-
"openapi:get": {
|
|
4577
|
-
"aliases": [],
|
|
4578
|
-
"args": {
|
|
4579
|
-
"slug": {
|
|
4580
|
-
"description": "Slug of the OpenAPI specification to retrieve",
|
|
4581
|
-
"name": "slug",
|
|
4582
|
-
"required": true
|
|
4583
|
-
}
|
|
4584
|
-
},
|
|
4585
|
-
"description": "Get an OpenAPI specification by slug",
|
|
4586
|
-
"examples": [
|
|
4587
|
-
{
|
|
4588
|
-
"command": "<%= config.bin %> <%= command.id %> query",
|
|
4589
|
-
"description": "Get a specification (YAML format, default)"
|
|
4590
|
-
},
|
|
4591
|
-
{
|
|
4592
|
-
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
4593
|
-
"description": "Get specification in JSON format"
|
|
4594
|
-
},
|
|
4595
|
-
{
|
|
4596
|
-
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
4597
|
-
"description": "Open specification in browser"
|
|
4598
|
-
},
|
|
4599
|
-
{
|
|
4600
|
-
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
4601
|
-
"description": "Pipe to file"
|
|
4456
|
+
{
|
|
4457
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
4458
|
+
"description": "Show log entries for a specific project"
|
|
4602
4459
|
}
|
|
4603
4460
|
],
|
|
4604
4461
|
"flags": {
|
|
4605
|
-
"
|
|
4606
|
-
"
|
|
4607
|
-
|
|
4608
|
-
|
|
4462
|
+
"project": {
|
|
4463
|
+
"aliases": [
|
|
4464
|
+
"project-id"
|
|
4465
|
+
],
|
|
4466
|
+
"char": "p",
|
|
4467
|
+
"deprecateAliases": true,
|
|
4468
|
+
"description": "Project ID to view webhook logs for (overrides CLI configuration)",
|
|
4469
|
+
"helpGroup": "OVERRIDE",
|
|
4470
|
+
"name": "project",
|
|
4609
4471
|
"hasDynamicHelp": false,
|
|
4472
|
+
"helpValue": "<id>",
|
|
4610
4473
|
"multiple": false,
|
|
4611
|
-
"options": [
|
|
4612
|
-
"yaml",
|
|
4613
|
-
"json"
|
|
4614
|
-
],
|
|
4615
4474
|
"type": "option"
|
|
4616
4475
|
},
|
|
4617
|
-
"
|
|
4618
|
-
"
|
|
4619
|
-
"
|
|
4620
|
-
"
|
|
4476
|
+
"detailed": {
|
|
4477
|
+
"description": "Include detailed payload and attempts",
|
|
4478
|
+
"name": "detailed",
|
|
4479
|
+
"required": false,
|
|
4621
4480
|
"allowNo": false,
|
|
4622
4481
|
"type": "boolean"
|
|
4623
4482
|
}
|
|
4624
4483
|
},
|
|
4625
4484
|
"hasDynamicHelp": false,
|
|
4626
|
-
"hiddenAliases": [
|
|
4627
|
-
|
|
4485
|
+
"hiddenAliases": [
|
|
4486
|
+
"hook:logs"
|
|
4487
|
+
],
|
|
4488
|
+
"id": "hooks:logs",
|
|
4628
4489
|
"pluginAlias": "@sanity/cli",
|
|
4629
4490
|
"pluginName": "@sanity/cli",
|
|
4630
4491
|
"pluginType": "core",
|
|
@@ -4633,58 +4494,34 @@
|
|
|
4633
4494
|
"relativePath": [
|
|
4634
4495
|
"dist",
|
|
4635
4496
|
"commands",
|
|
4636
|
-
"
|
|
4637
|
-
"
|
|
4497
|
+
"hooks",
|
|
4498
|
+
"logs.js"
|
|
4638
4499
|
]
|
|
4639
4500
|
},
|
|
4640
|
-
"
|
|
4501
|
+
"mcp:configure": {
|
|
4641
4502
|
"aliases": [],
|
|
4642
4503
|
"args": {},
|
|
4643
|
-
"description": "
|
|
4504
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, Pi, VS Code, VS Code Insiders, Zed)",
|
|
4644
4505
|
"examples": [
|
|
4645
4506
|
{
|
|
4646
4507
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4647
|
-
"description": "
|
|
4648
|
-
},
|
|
4649
|
-
{
|
|
4650
|
-
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4651
|
-
"description": "List with JSON output"
|
|
4652
|
-
},
|
|
4653
|
-
{
|
|
4654
|
-
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
4655
|
-
"description": "Open HTTP Reference in browser"
|
|
4508
|
+
"description": "Configure Sanity MCP server for detected AI editors"
|
|
4656
4509
|
}
|
|
4657
4510
|
],
|
|
4658
|
-
"flags": {
|
|
4659
|
-
"json": {
|
|
4660
|
-
"description": "Format output as json.",
|
|
4661
|
-
"helpGroup": "GLOBAL",
|
|
4662
|
-
"name": "json",
|
|
4663
|
-
"allowNo": false,
|
|
4664
|
-
"type": "boolean"
|
|
4665
|
-
},
|
|
4666
|
-
"web": {
|
|
4667
|
-
"char": "w",
|
|
4668
|
-
"description": "Open HTTP Reference in web browser",
|
|
4669
|
-
"name": "web",
|
|
4670
|
-
"allowNo": false,
|
|
4671
|
-
"type": "boolean"
|
|
4672
|
-
}
|
|
4673
|
-
},
|
|
4511
|
+
"flags": {},
|
|
4674
4512
|
"hasDynamicHelp": false,
|
|
4675
4513
|
"hiddenAliases": [],
|
|
4676
|
-
"id": "
|
|
4514
|
+
"id": "mcp:configure",
|
|
4677
4515
|
"pluginAlias": "@sanity/cli",
|
|
4678
4516
|
"pluginName": "@sanity/cli",
|
|
4679
4517
|
"pluginType": "core",
|
|
4680
4518
|
"strict": true,
|
|
4681
|
-
"enableJsonFlag": true,
|
|
4682
4519
|
"isESM": true,
|
|
4683
4520
|
"relativePath": [
|
|
4684
4521
|
"dist",
|
|
4685
4522
|
"commands",
|
|
4686
|
-
"
|
|
4687
|
-
"
|
|
4523
|
+
"mcp",
|
|
4524
|
+
"configure.js"
|
|
4688
4525
|
]
|
|
4689
4526
|
},
|
|
4690
4527
|
"migrations:create": {
|
|
@@ -5276,68 +5113,231 @@
|
|
|
5276
5113
|
}
|
|
5277
5114
|
},
|
|
5278
5115
|
"hasDynamicHelp": false,
|
|
5279
|
-
"hidden": true,
|
|
5116
|
+
"hidden": true,
|
|
5117
|
+
"hiddenAliases": [],
|
|
5118
|
+
"id": "media:prune-aspect-data",
|
|
5119
|
+
"pluginAlias": "@sanity/cli",
|
|
5120
|
+
"pluginName": "@sanity/cli",
|
|
5121
|
+
"pluginType": "core",
|
|
5122
|
+
"strict": true,
|
|
5123
|
+
"isESM": true,
|
|
5124
|
+
"relativePath": [
|
|
5125
|
+
"dist",
|
|
5126
|
+
"commands",
|
|
5127
|
+
"media",
|
|
5128
|
+
"prune-aspect-data.js"
|
|
5129
|
+
]
|
|
5130
|
+
},
|
|
5131
|
+
"media:pull-aspects": {
|
|
5132
|
+
"aliases": [],
|
|
5133
|
+
"args": {},
|
|
5134
|
+
"description": "Generate field modules from a media library's stored aspect documents",
|
|
5135
|
+
"examples": [
|
|
5136
|
+
{
|
|
5137
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5138
|
+
"description": "Generate src/fields/<name>.tsx modules from the stored aspects"
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
"command": "<%= config.bin %> <%= command.id %> --media-library-id ml123 --overwrite",
|
|
5142
|
+
"description": "Pull from a specific media library, overwriting existing modules"
|
|
5143
|
+
}
|
|
5144
|
+
],
|
|
5145
|
+
"flags": {
|
|
5146
|
+
"media-library-id": {
|
|
5147
|
+
"description": "The id of the media library to pull from (defaults to the single active library of the configured organization)",
|
|
5148
|
+
"name": "media-library-id",
|
|
5149
|
+
"hasDynamicHelp": false,
|
|
5150
|
+
"multiple": false,
|
|
5151
|
+
"type": "option"
|
|
5152
|
+
},
|
|
5153
|
+
"out-dir": {
|
|
5154
|
+
"description": "Directory to write the generated field modules to, relative to the project root",
|
|
5155
|
+
"name": "out-dir",
|
|
5156
|
+
"default": "src/fields",
|
|
5157
|
+
"hasDynamicHelp": false,
|
|
5158
|
+
"multiple": false,
|
|
5159
|
+
"type": "option"
|
|
5160
|
+
},
|
|
5161
|
+
"overwrite": {
|
|
5162
|
+
"description": "Overwrite existing field modules and re-generate fields already declared in the config",
|
|
5163
|
+
"name": "overwrite",
|
|
5164
|
+
"allowNo": false,
|
|
5165
|
+
"type": "boolean"
|
|
5166
|
+
},
|
|
5167
|
+
"update-config": {
|
|
5168
|
+
"description": "Declare the generated fields in sanity.cli.ts (--no-update-config to skip). Prompted when omitted; unattended runs only print the entries",
|
|
5169
|
+
"name": "update-config",
|
|
5170
|
+
"allowNo": true,
|
|
5171
|
+
"type": "boolean"
|
|
5172
|
+
}
|
|
5173
|
+
},
|
|
5174
|
+
"hasDynamicHelp": false,
|
|
5175
|
+
"hidden": true,
|
|
5176
|
+
"hiddenAliases": [],
|
|
5177
|
+
"id": "media:pull-aspects",
|
|
5178
|
+
"pluginAlias": "@sanity/cli",
|
|
5179
|
+
"pluginName": "@sanity/cli",
|
|
5180
|
+
"pluginType": "core",
|
|
5181
|
+
"strict": true,
|
|
5182
|
+
"telemetry": {
|
|
5183
|
+
"redactedFlags": [
|
|
5184
|
+
{
|
|
5185
|
+
"canonical": "--out-dir",
|
|
5186
|
+
"flags": [
|
|
5187
|
+
"--out-dir"
|
|
5188
|
+
]
|
|
5189
|
+
}
|
|
5190
|
+
]
|
|
5191
|
+
},
|
|
5192
|
+
"isESM": true,
|
|
5193
|
+
"relativePath": [
|
|
5194
|
+
"dist",
|
|
5195
|
+
"commands",
|
|
5196
|
+
"media",
|
|
5197
|
+
"pull-aspects.js"
|
|
5198
|
+
]
|
|
5199
|
+
},
|
|
5200
|
+
"openapi:get": {
|
|
5201
|
+
"aliases": [],
|
|
5202
|
+
"args": {
|
|
5203
|
+
"slug": {
|
|
5204
|
+
"description": "Slug of the OpenAPI specification to retrieve",
|
|
5205
|
+
"name": "slug",
|
|
5206
|
+
"required": true
|
|
5207
|
+
}
|
|
5208
|
+
},
|
|
5209
|
+
"description": "Get an OpenAPI specification by slug",
|
|
5210
|
+
"examples": [
|
|
5211
|
+
{
|
|
5212
|
+
"command": "<%= config.bin %> <%= command.id %> query",
|
|
5213
|
+
"description": "Get a specification (YAML format, default)"
|
|
5214
|
+
},
|
|
5215
|
+
{
|
|
5216
|
+
"command": "<%= config.bin %> <%= command.id %> query --format=json",
|
|
5217
|
+
"description": "Get specification in JSON format"
|
|
5218
|
+
},
|
|
5219
|
+
{
|
|
5220
|
+
"command": "<%= config.bin %> <%= command.id %> query --web",
|
|
5221
|
+
"description": "Open specification in browser"
|
|
5222
|
+
},
|
|
5223
|
+
{
|
|
5224
|
+
"command": "<%= config.bin %> <%= command.id %> query > query-api.yaml",
|
|
5225
|
+
"description": "Pipe to file"
|
|
5226
|
+
}
|
|
5227
|
+
],
|
|
5228
|
+
"flags": {
|
|
5229
|
+
"format": {
|
|
5230
|
+
"description": "Output format: yaml (default), json",
|
|
5231
|
+
"name": "format",
|
|
5232
|
+
"default": "yaml",
|
|
5233
|
+
"hasDynamicHelp": false,
|
|
5234
|
+
"multiple": false,
|
|
5235
|
+
"options": [
|
|
5236
|
+
"yaml",
|
|
5237
|
+
"json"
|
|
5238
|
+
],
|
|
5239
|
+
"type": "option"
|
|
5240
|
+
},
|
|
5241
|
+
"web": {
|
|
5242
|
+
"char": "w",
|
|
5243
|
+
"description": "Open in web browser",
|
|
5244
|
+
"name": "web",
|
|
5245
|
+
"allowNo": false,
|
|
5246
|
+
"type": "boolean"
|
|
5247
|
+
}
|
|
5248
|
+
},
|
|
5249
|
+
"hasDynamicHelp": false,
|
|
5250
|
+
"hiddenAliases": [],
|
|
5251
|
+
"id": "openapi:get",
|
|
5252
|
+
"pluginAlias": "@sanity/cli",
|
|
5253
|
+
"pluginName": "@sanity/cli",
|
|
5254
|
+
"pluginType": "core",
|
|
5255
|
+
"strict": true,
|
|
5256
|
+
"isESM": true,
|
|
5257
|
+
"relativePath": [
|
|
5258
|
+
"dist",
|
|
5259
|
+
"commands",
|
|
5260
|
+
"openapi",
|
|
5261
|
+
"get.js"
|
|
5262
|
+
]
|
|
5263
|
+
},
|
|
5264
|
+
"openapi:list": {
|
|
5265
|
+
"aliases": [],
|
|
5266
|
+
"args": {},
|
|
5267
|
+
"description": "List all available OpenAPI specifications",
|
|
5268
|
+
"examples": [
|
|
5269
|
+
{
|
|
5270
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5271
|
+
"description": "List all available OpenAPI specs"
|
|
5272
|
+
},
|
|
5273
|
+
{
|
|
5274
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
5275
|
+
"description": "List with JSON output"
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"command": "<%= config.bin %> <%= command.id %> --web",
|
|
5279
|
+
"description": "Open HTTP Reference in browser"
|
|
5280
|
+
}
|
|
5281
|
+
],
|
|
5282
|
+
"flags": {
|
|
5283
|
+
"json": {
|
|
5284
|
+
"description": "Format output as json.",
|
|
5285
|
+
"helpGroup": "GLOBAL",
|
|
5286
|
+
"name": "json",
|
|
5287
|
+
"allowNo": false,
|
|
5288
|
+
"type": "boolean"
|
|
5289
|
+
},
|
|
5290
|
+
"web": {
|
|
5291
|
+
"char": "w",
|
|
5292
|
+
"description": "Open HTTP Reference in web browser",
|
|
5293
|
+
"name": "web",
|
|
5294
|
+
"allowNo": false,
|
|
5295
|
+
"type": "boolean"
|
|
5296
|
+
}
|
|
5297
|
+
},
|
|
5298
|
+
"hasDynamicHelp": false,
|
|
5280
5299
|
"hiddenAliases": [],
|
|
5281
|
-
"id": "
|
|
5300
|
+
"id": "openapi:list",
|
|
5282
5301
|
"pluginAlias": "@sanity/cli",
|
|
5283
5302
|
"pluginName": "@sanity/cli",
|
|
5284
5303
|
"pluginType": "core",
|
|
5285
5304
|
"strict": true,
|
|
5305
|
+
"enableJsonFlag": true,
|
|
5286
5306
|
"isESM": true,
|
|
5287
5307
|
"relativePath": [
|
|
5288
5308
|
"dist",
|
|
5289
5309
|
"commands",
|
|
5290
|
-
"
|
|
5291
|
-
"
|
|
5310
|
+
"openapi",
|
|
5311
|
+
"list.js"
|
|
5292
5312
|
]
|
|
5293
5313
|
},
|
|
5294
|
-
"
|
|
5314
|
+
"manifest:extract": {
|
|
5295
5315
|
"aliases": [],
|
|
5296
5316
|
"args": {},
|
|
5297
|
-
"description": "
|
|
5317
|
+
"description": "Extract studio configuration as JSON manifest files.\n\nNote: This command is experimental and subject to change. It is currently intended for use with Create only.",
|
|
5298
5318
|
"examples": [
|
|
5299
5319
|
{
|
|
5300
5320
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5301
|
-
"description": "
|
|
5321
|
+
"description": "Extracts manifests"
|
|
5302
5322
|
},
|
|
5303
5323
|
{
|
|
5304
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5305
|
-
"description": "
|
|
5324
|
+
"command": "<%= config.bin %> <%= command.id %> --path /public/static",
|
|
5325
|
+
"description": "Extracts manifests into /public/static"
|
|
5306
5326
|
}
|
|
5307
5327
|
],
|
|
5308
5328
|
"flags": {
|
|
5309
|
-
"
|
|
5310
|
-
"description": "
|
|
5311
|
-
"name": "
|
|
5312
|
-
"
|
|
5313
|
-
"multiple": false,
|
|
5314
|
-
"type": "option"
|
|
5315
|
-
},
|
|
5316
|
-
"out-dir": {
|
|
5317
|
-
"description": "Directory to write the generated field modules to, relative to the project root",
|
|
5318
|
-
"name": "out-dir",
|
|
5319
|
-
"default": "src/fields",
|
|
5329
|
+
"path": {
|
|
5330
|
+
"description": "Optional path to specify destination directory of the manifest files",
|
|
5331
|
+
"name": "path",
|
|
5332
|
+
"default": "dist/static",
|
|
5320
5333
|
"hasDynamicHelp": false,
|
|
5321
5334
|
"multiple": false,
|
|
5322
5335
|
"type": "option"
|
|
5323
|
-
},
|
|
5324
|
-
"overwrite": {
|
|
5325
|
-
"description": "Overwrite existing field modules and re-generate fields already declared in the config",
|
|
5326
|
-
"name": "overwrite",
|
|
5327
|
-
"allowNo": false,
|
|
5328
|
-
"type": "boolean"
|
|
5329
|
-
},
|
|
5330
|
-
"update-config": {
|
|
5331
|
-
"description": "Declare the generated fields in sanity.cli.ts (--no-update-config to skip). Prompted when omitted; unattended runs only print the entries",
|
|
5332
|
-
"name": "update-config",
|
|
5333
|
-
"allowNo": true,
|
|
5334
|
-
"type": "boolean"
|
|
5335
5336
|
}
|
|
5336
5337
|
},
|
|
5337
5338
|
"hasDynamicHelp": false,
|
|
5338
|
-
"hidden": true,
|
|
5339
5339
|
"hiddenAliases": [],
|
|
5340
|
-
"id": "
|
|
5340
|
+
"id": "manifest:extract",
|
|
5341
5341
|
"pluginAlias": "@sanity/cli",
|
|
5342
5342
|
"pluginName": "@sanity/cli",
|
|
5343
5343
|
"pluginType": "core",
|
|
@@ -5345,9 +5345,9 @@
|
|
|
5345
5345
|
"telemetry": {
|
|
5346
5346
|
"redactedFlags": [
|
|
5347
5347
|
{
|
|
5348
|
-
"canonical": "--
|
|
5348
|
+
"canonical": "--path",
|
|
5349
5349
|
"flags": [
|
|
5350
|
-
"--
|
|
5350
|
+
"--path"
|
|
5351
5351
|
]
|
|
5352
5352
|
}
|
|
5353
5353
|
]
|
|
@@ -5356,106 +5356,71 @@
|
|
|
5356
5356
|
"relativePath": [
|
|
5357
5357
|
"dist",
|
|
5358
5358
|
"commands",
|
|
5359
|
-
"
|
|
5360
|
-
"
|
|
5359
|
+
"manifest",
|
|
5360
|
+
"extract.js"
|
|
5361
5361
|
]
|
|
5362
5362
|
},
|
|
5363
|
-
"
|
|
5363
|
+
"organizations:create": {
|
|
5364
5364
|
"aliases": [],
|
|
5365
|
-
"args": {
|
|
5366
|
-
|
|
5367
|
-
"description": "Name of the project to create",
|
|
5368
|
-
"name": "projectName",
|
|
5369
|
-
"required": false
|
|
5370
|
-
}
|
|
5371
|
-
},
|
|
5372
|
-
"description": "Create a new Sanity project",
|
|
5365
|
+
"args": {},
|
|
5366
|
+
"description": "Create a new organization",
|
|
5373
5367
|
"examples": [
|
|
5374
5368
|
{
|
|
5375
5369
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5376
|
-
"description": "Interactively create
|
|
5377
|
-
},
|
|
5378
|
-
{
|
|
5379
|
-
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
5380
|
-
"description": "Create a project named \"My New Project\""
|
|
5381
|
-
},
|
|
5382
|
-
{
|
|
5383
|
-
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
5384
|
-
"description": "Create a project in a specific organization"
|
|
5370
|
+
"description": "Interactively create an organization"
|
|
5385
5371
|
},
|
|
5386
5372
|
{
|
|
5387
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5388
|
-
"description": "Create
|
|
5373
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\"",
|
|
5374
|
+
"description": "Create an organization named \"Acme Corp\""
|
|
5389
5375
|
},
|
|
5390
5376
|
{
|
|
5391
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5392
|
-
"description": "Create
|
|
5377
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --default-role member",
|
|
5378
|
+
"description": "Create an organization with a default member role"
|
|
5393
5379
|
},
|
|
5394
5380
|
{
|
|
5395
|
-
"command": "<%= config.bin %> <%= command.id %> \"
|
|
5396
|
-
"description": "Create
|
|
5381
|
+
"command": "<%= config.bin %> <%= command.id %> --name \"Acme Corp\" --logo ./logo.png",
|
|
5382
|
+
"description": "Create an organization with a logo"
|
|
5397
5383
|
}
|
|
5398
5384
|
],
|
|
5399
5385
|
"flags": {
|
|
5400
|
-
"
|
|
5401
|
-
"description": "
|
|
5402
|
-
"
|
|
5403
|
-
"
|
|
5404
|
-
"allowNo": false,
|
|
5405
|
-
"type": "boolean"
|
|
5406
|
-
},
|
|
5407
|
-
"dataset": {
|
|
5408
|
-
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
5409
|
-
"name": "dataset",
|
|
5410
|
-
"hasDynamicHelp": false,
|
|
5411
|
-
"multiple": false,
|
|
5412
|
-
"type": "option"
|
|
5413
|
-
},
|
|
5414
|
-
"dataset-visibility": {
|
|
5415
|
-
"description": "Dataset visibility: public or private",
|
|
5416
|
-
"name": "dataset-visibility",
|
|
5386
|
+
"default-role": {
|
|
5387
|
+
"description": "Default role assigned to new members",
|
|
5388
|
+
"name": "default-role",
|
|
5389
|
+
"required": false,
|
|
5417
5390
|
"hasDynamicHelp": false,
|
|
5418
5391
|
"multiple": false,
|
|
5419
|
-
"options": [
|
|
5420
|
-
"private",
|
|
5421
|
-
"public"
|
|
5422
|
-
],
|
|
5423
5392
|
"type": "option"
|
|
5424
5393
|
},
|
|
5425
5394
|
"logo": {
|
|
5426
5395
|
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB",
|
|
5427
5396
|
"name": "logo",
|
|
5397
|
+
"required": false,
|
|
5428
5398
|
"hasDynamicHelp": false,
|
|
5429
5399
|
"helpValue": "<path>",
|
|
5430
5400
|
"multiple": false,
|
|
5431
5401
|
"type": "option"
|
|
5432
5402
|
},
|
|
5433
|
-
"
|
|
5434
|
-
"description": "Organization
|
|
5435
|
-
"name": "
|
|
5403
|
+
"name": {
|
|
5404
|
+
"description": "Organization name",
|
|
5405
|
+
"name": "name",
|
|
5436
5406
|
"hasDynamicHelp": false,
|
|
5437
|
-
"helpValue": "<slug|id>",
|
|
5438
5407
|
"multiple": false,
|
|
5439
5408
|
"type": "option"
|
|
5440
|
-
},
|
|
5441
|
-
"yes": {
|
|
5442
|
-
"char": "y",
|
|
5443
|
-
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
5444
|
-
"name": "yes",
|
|
5445
|
-
"allowNo": false,
|
|
5446
|
-
"type": "boolean"
|
|
5447
5409
|
}
|
|
5448
5410
|
},
|
|
5449
5411
|
"hasDynamicHelp": false,
|
|
5450
5412
|
"hiddenAliases": [
|
|
5451
|
-
"
|
|
5413
|
+
"organization:create",
|
|
5414
|
+
"organisations:create",
|
|
5415
|
+
"organisation:create",
|
|
5416
|
+
"org:create",
|
|
5417
|
+
"orgs:create"
|
|
5452
5418
|
],
|
|
5453
|
-
"id": "
|
|
5419
|
+
"id": "organizations:create",
|
|
5454
5420
|
"pluginAlias": "@sanity/cli",
|
|
5455
5421
|
"pluginName": "@sanity/cli",
|
|
5456
5422
|
"pluginType": "core",
|
|
5457
5423
|
"strict": true,
|
|
5458
|
-
"enableJsonFlag": true,
|
|
5459
5424
|
"telemetry": {
|
|
5460
5425
|
"redactedFlags": [
|
|
5461
5426
|
{
|
|
@@ -5463,6 +5428,12 @@
|
|
|
5463
5428
|
"flags": [
|
|
5464
5429
|
"--logo"
|
|
5465
5430
|
]
|
|
5431
|
+
},
|
|
5432
|
+
{
|
|
5433
|
+
"canonical": "--name",
|
|
5434
|
+
"flags": [
|
|
5435
|
+
"--name"
|
|
5436
|
+
]
|
|
5466
5437
|
}
|
|
5467
5438
|
]
|
|
5468
5439
|
},
|
|
@@ -5470,58 +5441,48 @@
|
|
|
5470
5441
|
"relativePath": [
|
|
5471
5442
|
"dist",
|
|
5472
5443
|
"commands",
|
|
5473
|
-
"
|
|
5444
|
+
"organizations",
|
|
5474
5445
|
"create.js"
|
|
5475
5446
|
]
|
|
5476
5447
|
},
|
|
5477
|
-
"
|
|
5448
|
+
"organizations:delete": {
|
|
5478
5449
|
"aliases": [],
|
|
5479
|
-
"args": {
|
|
5480
|
-
|
|
5450
|
+
"args": {
|
|
5451
|
+
"organizationId": {
|
|
5452
|
+
"description": "Organization ID to delete",
|
|
5453
|
+
"name": "organizationId",
|
|
5454
|
+
"required": true
|
|
5455
|
+
}
|
|
5456
|
+
},
|
|
5457
|
+
"description": "Delete an organization",
|
|
5481
5458
|
"examples": [
|
|
5482
5459
|
{
|
|
5483
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5484
|
-
"description": "
|
|
5460
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
5461
|
+
"description": "Delete an organization (prompts for confirmation)"
|
|
5485
5462
|
},
|
|
5486
5463
|
{
|
|
5487
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5488
|
-
"description": "
|
|
5464
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --force",
|
|
5465
|
+
"description": "Delete an organization without confirmation"
|
|
5489
5466
|
}
|
|
5490
5467
|
],
|
|
5491
5468
|
"flags": {
|
|
5492
|
-
"
|
|
5493
|
-
"description": "
|
|
5494
|
-
"name": "
|
|
5495
|
-
"
|
|
5496
|
-
"
|
|
5497
|
-
"
|
|
5498
|
-
"options": [
|
|
5499
|
-
"asc",
|
|
5500
|
-
"desc"
|
|
5501
|
-
],
|
|
5502
|
-
"type": "option"
|
|
5503
|
-
},
|
|
5504
|
-
"sort": {
|
|
5505
|
-
"description": "Sort field",
|
|
5506
|
-
"name": "sort",
|
|
5507
|
-
"default": "created",
|
|
5508
|
-
"hasDynamicHelp": false,
|
|
5509
|
-
"multiple": false,
|
|
5510
|
-
"options": [
|
|
5511
|
-
"id",
|
|
5512
|
-
"members",
|
|
5513
|
-
"name",
|
|
5514
|
-
"url",
|
|
5515
|
-
"created"
|
|
5516
|
-
],
|
|
5517
|
-
"type": "option"
|
|
5469
|
+
"force": {
|
|
5470
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
5471
|
+
"name": "force",
|
|
5472
|
+
"required": false,
|
|
5473
|
+
"allowNo": false,
|
|
5474
|
+
"type": "boolean"
|
|
5518
5475
|
}
|
|
5519
5476
|
},
|
|
5520
5477
|
"hasDynamicHelp": false,
|
|
5521
5478
|
"hiddenAliases": [
|
|
5522
|
-
"
|
|
5479
|
+
"organization:delete",
|
|
5480
|
+
"organisations:delete",
|
|
5481
|
+
"organisation:delete",
|
|
5482
|
+
"org:delete",
|
|
5483
|
+
"orgs:delete"
|
|
5523
5484
|
],
|
|
5524
|
-
"id": "
|
|
5485
|
+
"id": "organizations:delete",
|
|
5525
5486
|
"pluginAlias": "@sanity/cli",
|
|
5526
5487
|
"pluginName": "@sanity/cli",
|
|
5527
5488
|
"pluginType": "core",
|
|
@@ -5530,44 +5491,68 @@
|
|
|
5530
5491
|
"relativePath": [
|
|
5531
5492
|
"dist",
|
|
5532
5493
|
"commands",
|
|
5533
|
-
"
|
|
5534
|
-
"
|
|
5494
|
+
"organizations",
|
|
5495
|
+
"delete.js"
|
|
5535
5496
|
]
|
|
5536
5497
|
},
|
|
5537
|
-
"
|
|
5498
|
+
"organizations:get": {
|
|
5499
|
+
"aliases": [],
|
|
5500
|
+
"args": {
|
|
5501
|
+
"organizationId": {
|
|
5502
|
+
"description": "Organization ID",
|
|
5503
|
+
"name": "organizationId",
|
|
5504
|
+
"required": true
|
|
5505
|
+
}
|
|
5506
|
+
},
|
|
5507
|
+
"description": "Get details of an organization",
|
|
5508
|
+
"examples": [
|
|
5509
|
+
{
|
|
5510
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
5511
|
+
"description": "Get details of a specific organization"
|
|
5512
|
+
}
|
|
5513
|
+
],
|
|
5514
|
+
"flags": {},
|
|
5515
|
+
"hasDynamicHelp": false,
|
|
5516
|
+
"hiddenAliases": [
|
|
5517
|
+
"organization:get",
|
|
5518
|
+
"organisations:get",
|
|
5519
|
+
"organisation:get",
|
|
5520
|
+
"org:get",
|
|
5521
|
+
"orgs:get"
|
|
5522
|
+
],
|
|
5523
|
+
"id": "organizations:get",
|
|
5524
|
+
"pluginAlias": "@sanity/cli",
|
|
5525
|
+
"pluginName": "@sanity/cli",
|
|
5526
|
+
"pluginType": "core",
|
|
5527
|
+
"strict": true,
|
|
5528
|
+
"isESM": true,
|
|
5529
|
+
"relativePath": [
|
|
5530
|
+
"dist",
|
|
5531
|
+
"commands",
|
|
5532
|
+
"organizations",
|
|
5533
|
+
"get.js"
|
|
5534
|
+
]
|
|
5535
|
+
},
|
|
5536
|
+
"organizations:list": {
|
|
5538
5537
|
"aliases": [],
|
|
5539
5538
|
"args": {},
|
|
5540
|
-
"description": "
|
|
5539
|
+
"description": "List organizations you are a member of",
|
|
5541
5540
|
"examples": [
|
|
5542
5541
|
{
|
|
5543
5542
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5544
|
-
"description": "List
|
|
5545
|
-
},
|
|
5546
|
-
{
|
|
5547
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
5548
|
-
"description": "Show recovery details for one project"
|
|
5543
|
+
"description": "List all your organizations"
|
|
5549
5544
|
}
|
|
5550
5545
|
],
|
|
5551
|
-
"flags": {
|
|
5552
|
-
"project": {
|
|
5553
|
-
"aliases": [
|
|
5554
|
-
"project-id"
|
|
5555
|
-
],
|
|
5556
|
-
"char": "p",
|
|
5557
|
-
"deprecateAliases": true,
|
|
5558
|
-
"description": "Project ID to recover",
|
|
5559
|
-
"name": "project",
|
|
5560
|
-
"hasDynamicHelp": false,
|
|
5561
|
-
"helpValue": "<id>",
|
|
5562
|
-
"multiple": false,
|
|
5563
|
-
"type": "option"
|
|
5564
|
-
}
|
|
5565
|
-
},
|
|
5546
|
+
"flags": {},
|
|
5566
5547
|
"hasDynamicHelp": false,
|
|
5567
5548
|
"hiddenAliases": [
|
|
5568
|
-
"
|
|
5549
|
+
"organization:list",
|
|
5550
|
+
"organisations:list",
|
|
5551
|
+
"organisation:list",
|
|
5552
|
+
"org:list",
|
|
5553
|
+
"orgs:list"
|
|
5569
5554
|
],
|
|
5570
|
-
"id": "
|
|
5555
|
+
"id": "organizations:list",
|
|
5571
5556
|
"pluginAlias": "@sanity/cli",
|
|
5572
5557
|
"pluginName": "@sanity/cli",
|
|
5573
5558
|
"pluginType": "core",
|
|
@@ -5576,35 +5561,45 @@
|
|
|
5576
5561
|
"relativePath": [
|
|
5577
5562
|
"dist",
|
|
5578
5563
|
"commands",
|
|
5579
|
-
"
|
|
5580
|
-
"
|
|
5564
|
+
"organizations",
|
|
5565
|
+
"list.js"
|
|
5581
5566
|
]
|
|
5582
5567
|
},
|
|
5583
|
-
"organizations:
|
|
5568
|
+
"organizations:update": {
|
|
5584
5569
|
"aliases": [],
|
|
5585
|
-
"args": {
|
|
5586
|
-
|
|
5570
|
+
"args": {
|
|
5571
|
+
"organizationId": {
|
|
5572
|
+
"description": "Organization ID",
|
|
5573
|
+
"name": "organizationId",
|
|
5574
|
+
"required": true
|
|
5575
|
+
}
|
|
5576
|
+
},
|
|
5577
|
+
"description": "Update an organization",
|
|
5587
5578
|
"examples": [
|
|
5588
5579
|
{
|
|
5589
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5590
|
-
"description": "
|
|
5580
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --name \"New Name\"",
|
|
5581
|
+
"description": "Rename an organization"
|
|
5591
5582
|
},
|
|
5592
5583
|
{
|
|
5593
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
5594
|
-
"description": "
|
|
5584
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
|
|
5585
|
+
"description": "Set the organization slug (requires authSAML feature)"
|
|
5595
5586
|
},
|
|
5596
5587
|
{
|
|
5597
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5598
|
-
"description": "
|
|
5588
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
5589
|
+
"description": "Change the default member role"
|
|
5599
5590
|
},
|
|
5600
5591
|
{
|
|
5601
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5602
|
-
"description": "
|
|
5592
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --logo ./logo.png",
|
|
5593
|
+
"description": "Set or replace the organization logo"
|
|
5594
|
+
},
|
|
5595
|
+
{
|
|
5596
|
+
"command": "<%= config.bin %> <%= command.id %> org-abc123 --logo \"\"",
|
|
5597
|
+
"description": "Remove the organization logo"
|
|
5603
5598
|
}
|
|
5604
5599
|
],
|
|
5605
5600
|
"flags": {
|
|
5606
5601
|
"default-role": {
|
|
5607
|
-
"description": "
|
|
5602
|
+
"description": "New default role for new members",
|
|
5608
5603
|
"name": "default-role",
|
|
5609
5604
|
"required": false,
|
|
5610
5605
|
"hasDynamicHelp": false,
|
|
@@ -5612,7 +5607,7 @@
|
|
|
5612
5607
|
"type": "option"
|
|
5613
5608
|
},
|
|
5614
5609
|
"logo": {
|
|
5615
|
-
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB",
|
|
5610
|
+
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB (\"\" removes it)",
|
|
5616
5611
|
"name": "logo",
|
|
5617
5612
|
"required": false,
|
|
5618
5613
|
"hasDynamicHelp": false,
|
|
@@ -5621,8 +5616,17 @@
|
|
|
5621
5616
|
"type": "option"
|
|
5622
5617
|
},
|
|
5623
5618
|
"name": {
|
|
5624
|
-
"description": "
|
|
5619
|
+
"description": "New organization name",
|
|
5625
5620
|
"name": "name",
|
|
5621
|
+
"required": false,
|
|
5622
|
+
"hasDynamicHelp": false,
|
|
5623
|
+
"multiple": false,
|
|
5624
|
+
"type": "option"
|
|
5625
|
+
},
|
|
5626
|
+
"slug": {
|
|
5627
|
+
"description": "New URL slug (requires authSAML feature on the organization)",
|
|
5628
|
+
"name": "slug",
|
|
5629
|
+
"required": false,
|
|
5626
5630
|
"hasDynamicHelp": false,
|
|
5627
5631
|
"multiple": false,
|
|
5628
5632
|
"type": "option"
|
|
@@ -5630,13 +5634,13 @@
|
|
|
5630
5634
|
},
|
|
5631
5635
|
"hasDynamicHelp": false,
|
|
5632
5636
|
"hiddenAliases": [
|
|
5633
|
-
"organization:
|
|
5634
|
-
"organisations:
|
|
5635
|
-
"organisation:
|
|
5636
|
-
"org:
|
|
5637
|
-
"orgs:
|
|
5637
|
+
"organization:update",
|
|
5638
|
+
"organisations:update",
|
|
5639
|
+
"organisation:update",
|
|
5640
|
+
"org:update",
|
|
5641
|
+
"orgs:update"
|
|
5638
5642
|
],
|
|
5639
|
-
"id": "organizations:
|
|
5643
|
+
"id": "organizations:update",
|
|
5640
5644
|
"pluginAlias": "@sanity/cli",
|
|
5641
5645
|
"pluginName": "@sanity/cli",
|
|
5642
5646
|
"pluginType": "core",
|
|
@@ -5662,117 +5666,171 @@
|
|
|
5662
5666
|
"dist",
|
|
5663
5667
|
"commands",
|
|
5664
5668
|
"organizations",
|
|
5665
|
-
"
|
|
5669
|
+
"update.js"
|
|
5666
5670
|
]
|
|
5667
5671
|
},
|
|
5668
|
-
"
|
|
5672
|
+
"projects:create": {
|
|
5669
5673
|
"aliases": [],
|
|
5670
5674
|
"args": {
|
|
5671
|
-
"
|
|
5672
|
-
"description": "
|
|
5673
|
-
"name": "
|
|
5674
|
-
"required":
|
|
5675
|
+
"projectName": {
|
|
5676
|
+
"description": "Name of the project to create",
|
|
5677
|
+
"name": "projectName",
|
|
5678
|
+
"required": false
|
|
5675
5679
|
}
|
|
5676
5680
|
},
|
|
5677
|
-
"description": "
|
|
5681
|
+
"description": "Create a new Sanity project",
|
|
5678
5682
|
"examples": [
|
|
5679
5683
|
{
|
|
5680
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5681
|
-
"description": "
|
|
5684
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5685
|
+
"description": "Interactively create a project"
|
|
5682
5686
|
},
|
|
5683
5687
|
{
|
|
5684
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5685
|
-
"description": "
|
|
5688
|
+
"command": "<%= config.bin %> <%= command.id %> \"My New Project\"",
|
|
5689
|
+
"description": "Create a project named \"My New Project\""
|
|
5690
|
+
},
|
|
5691
|
+
{
|
|
5692
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --organization=my-org",
|
|
5693
|
+
"description": "Create a project in a specific organization"
|
|
5694
|
+
},
|
|
5695
|
+
{
|
|
5696
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --dataset=staging --dataset-visibility=private",
|
|
5697
|
+
"description": "Create a project with a private dataset named \"staging\""
|
|
5698
|
+
},
|
|
5699
|
+
{
|
|
5700
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Project\" --logo ./logo.png",
|
|
5701
|
+
"description": "Create a project with a logo"
|
|
5702
|
+
},
|
|
5703
|
+
{
|
|
5704
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Project\" --yes --json",
|
|
5705
|
+
"description": "Create a project non-interactively with JSON output"
|
|
5686
5706
|
}
|
|
5687
5707
|
],
|
|
5688
5708
|
"flags": {
|
|
5689
|
-
"
|
|
5690
|
-
"description": "
|
|
5691
|
-
"
|
|
5692
|
-
"
|
|
5709
|
+
"json": {
|
|
5710
|
+
"description": "Format output as json.",
|
|
5711
|
+
"helpGroup": "GLOBAL",
|
|
5712
|
+
"name": "json",
|
|
5713
|
+
"allowNo": false,
|
|
5714
|
+
"type": "boolean"
|
|
5715
|
+
},
|
|
5716
|
+
"dataset": {
|
|
5717
|
+
"description": "Create a dataset. Prompts for visibility unless specified or --yes used",
|
|
5718
|
+
"name": "dataset",
|
|
5719
|
+
"hasDynamicHelp": false,
|
|
5720
|
+
"multiple": false,
|
|
5721
|
+
"type": "option"
|
|
5722
|
+
},
|
|
5723
|
+
"dataset-visibility": {
|
|
5724
|
+
"description": "Dataset visibility: public or private",
|
|
5725
|
+
"name": "dataset-visibility",
|
|
5726
|
+
"hasDynamicHelp": false,
|
|
5727
|
+
"multiple": false,
|
|
5728
|
+
"options": [
|
|
5729
|
+
"private",
|
|
5730
|
+
"public"
|
|
5731
|
+
],
|
|
5732
|
+
"type": "option"
|
|
5733
|
+
},
|
|
5734
|
+
"logo": {
|
|
5735
|
+
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB",
|
|
5736
|
+
"name": "logo",
|
|
5737
|
+
"hasDynamicHelp": false,
|
|
5738
|
+
"helpValue": "<path>",
|
|
5739
|
+
"multiple": false,
|
|
5740
|
+
"type": "option"
|
|
5741
|
+
},
|
|
5742
|
+
"organization": {
|
|
5743
|
+
"description": "Organization to create the project in",
|
|
5744
|
+
"name": "organization",
|
|
5745
|
+
"hasDynamicHelp": false,
|
|
5746
|
+
"helpValue": "<slug|id>",
|
|
5747
|
+
"multiple": false,
|
|
5748
|
+
"type": "option"
|
|
5749
|
+
},
|
|
5750
|
+
"yes": {
|
|
5751
|
+
"char": "y",
|
|
5752
|
+
"description": "Skip prompts and use defaults (project: \"My Sanity Project\", dataset: production, visibility: public)",
|
|
5753
|
+
"name": "yes",
|
|
5693
5754
|
"allowNo": false,
|
|
5694
5755
|
"type": "boolean"
|
|
5695
5756
|
}
|
|
5696
5757
|
},
|
|
5697
5758
|
"hasDynamicHelp": false,
|
|
5698
5759
|
"hiddenAliases": [
|
|
5699
|
-
"
|
|
5700
|
-
"organisations:delete",
|
|
5701
|
-
"organisation:delete",
|
|
5702
|
-
"org:delete",
|
|
5703
|
-
"orgs:delete"
|
|
5760
|
+
"project:create"
|
|
5704
5761
|
],
|
|
5705
|
-
"id": "
|
|
5762
|
+
"id": "projects:create",
|
|
5706
5763
|
"pluginAlias": "@sanity/cli",
|
|
5707
5764
|
"pluginName": "@sanity/cli",
|
|
5708
5765
|
"pluginType": "core",
|
|
5709
5766
|
"strict": true,
|
|
5710
|
-
"
|
|
5711
|
-
"
|
|
5712
|
-
"
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
"args": {
|
|
5721
|
-
"organizationId": {
|
|
5722
|
-
"description": "Organization ID",
|
|
5723
|
-
"name": "organizationId",
|
|
5724
|
-
"required": true
|
|
5725
|
-
}
|
|
5767
|
+
"enableJsonFlag": true,
|
|
5768
|
+
"telemetry": {
|
|
5769
|
+
"redactedFlags": [
|
|
5770
|
+
{
|
|
5771
|
+
"canonical": "--logo",
|
|
5772
|
+
"flags": [
|
|
5773
|
+
"--logo"
|
|
5774
|
+
]
|
|
5775
|
+
}
|
|
5776
|
+
]
|
|
5726
5777
|
},
|
|
5727
|
-
"description": "Get details of an organization",
|
|
5728
|
-
"examples": [
|
|
5729
|
-
{
|
|
5730
|
-
"command": "<%= config.bin %> <%= command.id %> org-abc123",
|
|
5731
|
-
"description": "Get details of a specific organization"
|
|
5732
|
-
}
|
|
5733
|
-
],
|
|
5734
|
-
"flags": {},
|
|
5735
|
-
"hasDynamicHelp": false,
|
|
5736
|
-
"hiddenAliases": [
|
|
5737
|
-
"organization:get",
|
|
5738
|
-
"organisations:get",
|
|
5739
|
-
"organisation:get",
|
|
5740
|
-
"org:get",
|
|
5741
|
-
"orgs:get"
|
|
5742
|
-
],
|
|
5743
|
-
"id": "organizations:get",
|
|
5744
|
-
"pluginAlias": "@sanity/cli",
|
|
5745
|
-
"pluginName": "@sanity/cli",
|
|
5746
|
-
"pluginType": "core",
|
|
5747
|
-
"strict": true,
|
|
5748
5778
|
"isESM": true,
|
|
5749
5779
|
"relativePath": [
|
|
5750
5780
|
"dist",
|
|
5751
5781
|
"commands",
|
|
5752
|
-
"
|
|
5753
|
-
"
|
|
5782
|
+
"projects",
|
|
5783
|
+
"create.js"
|
|
5754
5784
|
]
|
|
5755
5785
|
},
|
|
5756
|
-
"
|
|
5786
|
+
"projects:list": {
|
|
5757
5787
|
"aliases": [],
|
|
5758
5788
|
"args": {},
|
|
5759
|
-
"description": "List
|
|
5789
|
+
"description": "List your projects",
|
|
5760
5790
|
"examples": [
|
|
5761
5791
|
{
|
|
5762
5792
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
5763
|
-
"description": "List
|
|
5793
|
+
"description": "List projects"
|
|
5794
|
+
},
|
|
5795
|
+
{
|
|
5796
|
+
"command": "<%= config.bin %> <%= command.id %> --sort=members --order=asc",
|
|
5797
|
+
"description": "List projects sorted by member count, ascending"
|
|
5798
|
+
}
|
|
5799
|
+
],
|
|
5800
|
+
"flags": {
|
|
5801
|
+
"order": {
|
|
5802
|
+
"description": "Sort direction",
|
|
5803
|
+
"name": "order",
|
|
5804
|
+
"default": "desc",
|
|
5805
|
+
"hasDynamicHelp": false,
|
|
5806
|
+
"multiple": false,
|
|
5807
|
+
"options": [
|
|
5808
|
+
"asc",
|
|
5809
|
+
"desc"
|
|
5810
|
+
],
|
|
5811
|
+
"type": "option"
|
|
5812
|
+
},
|
|
5813
|
+
"sort": {
|
|
5814
|
+
"description": "Sort field",
|
|
5815
|
+
"name": "sort",
|
|
5816
|
+
"default": "created",
|
|
5817
|
+
"hasDynamicHelp": false,
|
|
5818
|
+
"multiple": false,
|
|
5819
|
+
"options": [
|
|
5820
|
+
"id",
|
|
5821
|
+
"members",
|
|
5822
|
+
"name",
|
|
5823
|
+
"url",
|
|
5824
|
+
"created"
|
|
5825
|
+
],
|
|
5826
|
+
"type": "option"
|
|
5764
5827
|
}
|
|
5765
|
-
|
|
5766
|
-
"flags": {},
|
|
5828
|
+
},
|
|
5767
5829
|
"hasDynamicHelp": false,
|
|
5768
5830
|
"hiddenAliases": [
|
|
5769
|
-
"
|
|
5770
|
-
"organisations:list",
|
|
5771
|
-
"organisation:list",
|
|
5772
|
-
"org:list",
|
|
5773
|
-
"orgs:list"
|
|
5831
|
+
"project:list"
|
|
5774
5832
|
],
|
|
5775
|
-
"id": "
|
|
5833
|
+
"id": "projects:list",
|
|
5776
5834
|
"pluginAlias": "@sanity/cli",
|
|
5777
5835
|
"pluginName": "@sanity/cli",
|
|
5778
5836
|
"pluginType": "core",
|
|
@@ -5781,112 +5839,54 @@
|
|
|
5781
5839
|
"relativePath": [
|
|
5782
5840
|
"dist",
|
|
5783
5841
|
"commands",
|
|
5784
|
-
"
|
|
5842
|
+
"projects",
|
|
5785
5843
|
"list.js"
|
|
5786
5844
|
]
|
|
5787
5845
|
},
|
|
5788
|
-
"
|
|
5846
|
+
"projects:unclaimed": {
|
|
5789
5847
|
"aliases": [],
|
|
5790
|
-
"args": {
|
|
5791
|
-
|
|
5792
|
-
"description": "Organization ID",
|
|
5793
|
-
"name": "organizationId",
|
|
5794
|
-
"required": true
|
|
5795
|
-
}
|
|
5796
|
-
},
|
|
5797
|
-
"description": "Update an organization",
|
|
5848
|
+
"args": {},
|
|
5849
|
+
"description": "Recover details for unclaimed projects created on this machine",
|
|
5798
5850
|
"examples": [
|
|
5799
5851
|
{
|
|
5800
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5801
|
-
"description": "
|
|
5802
|
-
},
|
|
5803
|
-
{
|
|
5804
|
-
"command": "<%= config.bin %> <%= command.id %> org-abc123 --slug new-slug",
|
|
5805
|
-
"description": "Set the organization slug (requires authSAML feature)"
|
|
5806
|
-
},
|
|
5807
|
-
{
|
|
5808
|
-
"command": "<%= config.bin %> <%= command.id %> org-abc123 --default-role viewer",
|
|
5809
|
-
"description": "Change the default member role"
|
|
5810
|
-
},
|
|
5811
|
-
{
|
|
5812
|
-
"command": "<%= config.bin %> <%= command.id %> org-abc123 --logo ./logo.png",
|
|
5813
|
-
"description": "Set or replace the organization logo"
|
|
5852
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
5853
|
+
"description": "List locally recorded unclaimed projects"
|
|
5814
5854
|
},
|
|
5815
5855
|
{
|
|
5816
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
5817
|
-
"description": "
|
|
5856
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
5857
|
+
"description": "Show recovery details for one project"
|
|
5818
5858
|
}
|
|
5819
5859
|
],
|
|
5820
5860
|
"flags": {
|
|
5821
|
-
"
|
|
5822
|
-
"
|
|
5823
|
-
|
|
5824
|
-
|
|
5825
|
-
"
|
|
5826
|
-
"
|
|
5827
|
-
"
|
|
5828
|
-
|
|
5829
|
-
"logo": {
|
|
5830
|
-
"description": "Image file to use as the logo: PNG, JPEG, GIF, WebP, SVG, BMP, TIFF, HEIF or AVIF, at most 5 MB (\"\" removes it)",
|
|
5831
|
-
"name": "logo",
|
|
5832
|
-
"required": false,
|
|
5833
|
-
"hasDynamicHelp": false,
|
|
5834
|
-
"helpValue": "<path>",
|
|
5835
|
-
"multiple": false,
|
|
5836
|
-
"type": "option"
|
|
5837
|
-
},
|
|
5838
|
-
"name": {
|
|
5839
|
-
"description": "New organization name",
|
|
5840
|
-
"name": "name",
|
|
5841
|
-
"required": false,
|
|
5842
|
-
"hasDynamicHelp": false,
|
|
5843
|
-
"multiple": false,
|
|
5844
|
-
"type": "option"
|
|
5845
|
-
},
|
|
5846
|
-
"slug": {
|
|
5847
|
-
"description": "New URL slug (requires authSAML feature on the organization)",
|
|
5848
|
-
"name": "slug",
|
|
5849
|
-
"required": false,
|
|
5861
|
+
"project": {
|
|
5862
|
+
"aliases": [
|
|
5863
|
+
"project-id"
|
|
5864
|
+
],
|
|
5865
|
+
"char": "p",
|
|
5866
|
+
"deprecateAliases": true,
|
|
5867
|
+
"description": "Project ID to recover",
|
|
5868
|
+
"name": "project",
|
|
5850
5869
|
"hasDynamicHelp": false,
|
|
5870
|
+
"helpValue": "<id>",
|
|
5851
5871
|
"multiple": false,
|
|
5852
5872
|
"type": "option"
|
|
5853
5873
|
}
|
|
5854
5874
|
},
|
|
5855
5875
|
"hasDynamicHelp": false,
|
|
5856
5876
|
"hiddenAliases": [
|
|
5857
|
-
"
|
|
5858
|
-
"organisations:update",
|
|
5859
|
-
"organisation:update",
|
|
5860
|
-
"org:update",
|
|
5861
|
-
"orgs:update"
|
|
5877
|
+
"project:unclaimed"
|
|
5862
5878
|
],
|
|
5863
|
-
"id": "
|
|
5879
|
+
"id": "projects:unclaimed",
|
|
5864
5880
|
"pluginAlias": "@sanity/cli",
|
|
5865
5881
|
"pluginName": "@sanity/cli",
|
|
5866
5882
|
"pluginType": "core",
|
|
5867
5883
|
"strict": true,
|
|
5868
|
-
"telemetry": {
|
|
5869
|
-
"redactedFlags": [
|
|
5870
|
-
{
|
|
5871
|
-
"canonical": "--logo",
|
|
5872
|
-
"flags": [
|
|
5873
|
-
"--logo"
|
|
5874
|
-
]
|
|
5875
|
-
},
|
|
5876
|
-
{
|
|
5877
|
-
"canonical": "--name",
|
|
5878
|
-
"flags": [
|
|
5879
|
-
"--name"
|
|
5880
|
-
]
|
|
5881
|
-
}
|
|
5882
|
-
]
|
|
5883
|
-
},
|
|
5884
5884
|
"isESM": true,
|
|
5885
5885
|
"relativePath": [
|
|
5886
5886
|
"dist",
|
|
5887
5887
|
"commands",
|
|
5888
|
-
"
|
|
5889
|
-
"
|
|
5888
|
+
"projects",
|
|
5889
|
+
"unclaimed.js"
|
|
5890
5890
|
]
|
|
5891
5891
|
},
|
|
5892
5892
|
"schemas:delete": {
|
|
@@ -7831,67 +7831,6 @@
|
|
|
7831
7831
|
"edit.js"
|
|
7832
7832
|
]
|
|
7833
7833
|
},
|
|
7834
|
-
"context:jobs:get": {
|
|
7835
|
-
"aliases": [],
|
|
7836
|
-
"args": {
|
|
7837
|
-
"knowledgeBaseId": {
|
|
7838
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7839
|
-
"name": "knowledgeBaseId",
|
|
7840
|
-
"required": true
|
|
7841
|
-
},
|
|
7842
|
-
"jobId": {
|
|
7843
|
-
"description": "The job ID returned by the endpoint that started the work.",
|
|
7844
|
-
"name": "jobId",
|
|
7845
|
-
"required": true
|
|
7846
|
-
}
|
|
7847
|
-
},
|
|
7848
|
-
"description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
|
|
7849
|
-
"examples": [
|
|
7850
|
-
{
|
|
7851
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
7852
|
-
"description": "Get a job"
|
|
7853
|
-
},
|
|
7854
|
-
{
|
|
7855
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
7856
|
-
"description": "Get a job, as JSON"
|
|
7857
|
-
}
|
|
7858
|
-
],
|
|
7859
|
-
"flags": {
|
|
7860
|
-
"json": {
|
|
7861
|
-
"description": "Format output as json.",
|
|
7862
|
-
"helpGroup": "GLOBAL",
|
|
7863
|
-
"name": "json",
|
|
7864
|
-
"allowNo": false,
|
|
7865
|
-
"type": "boolean"
|
|
7866
|
-
},
|
|
7867
|
-
"watch": {
|
|
7868
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7869
|
-
"name": "watch",
|
|
7870
|
-
"allowNo": false,
|
|
7871
|
-
"type": "boolean"
|
|
7872
|
-
}
|
|
7873
|
-
},
|
|
7874
|
-
"hasDynamicHelp": false,
|
|
7875
|
-
"hiddenAliases": [],
|
|
7876
|
-
"id": "context:jobs:get",
|
|
7877
|
-
"pluginAlias": "@sanity/cli",
|
|
7878
|
-
"pluginName": "@sanity/cli",
|
|
7879
|
-
"pluginType": "core",
|
|
7880
|
-
"strict": true,
|
|
7881
|
-
"summary": "Get a job",
|
|
7882
|
-
"enableJsonFlag": true,
|
|
7883
|
-
"telemetry": {
|
|
7884
|
-
"redactedFlags": []
|
|
7885
|
-
},
|
|
7886
|
-
"isESM": true,
|
|
7887
|
-
"relativePath": [
|
|
7888
|
-
"dist",
|
|
7889
|
-
"commands",
|
|
7890
|
-
"context",
|
|
7891
|
-
"jobs",
|
|
7892
|
-
"get.js"
|
|
7893
|
-
]
|
|
7894
|
-
},
|
|
7895
7834
|
"context:issues:apply": {
|
|
7896
7835
|
"aliases": [],
|
|
7897
7836
|
"args": {
|
|
@@ -8282,6 +8221,67 @@
|
|
|
8282
8221
|
"resolve.js"
|
|
8283
8222
|
]
|
|
8284
8223
|
},
|
|
8224
|
+
"context:jobs:get": {
|
|
8225
|
+
"aliases": [],
|
|
8226
|
+
"args": {
|
|
8227
|
+
"knowledgeBaseId": {
|
|
8228
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
8229
|
+
"name": "knowledgeBaseId",
|
|
8230
|
+
"required": true
|
|
8231
|
+
},
|
|
8232
|
+
"jobId": {
|
|
8233
|
+
"description": "The job ID returned by the endpoint that started the work.",
|
|
8234
|
+
"name": "jobId",
|
|
8235
|
+
"required": true
|
|
8236
|
+
}
|
|
8237
|
+
},
|
|
8238
|
+
"description": "Returns the status of a background job, such as a build, sync, or refresh. The endpoint that starts the work returns the job ID. A job cancelled before it started never ran, so it returns 404.",
|
|
8239
|
+
"examples": [
|
|
8240
|
+
{
|
|
8241
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId>",
|
|
8242
|
+
"description": "Get a job"
|
|
8243
|
+
},
|
|
8244
|
+
{
|
|
8245
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <jobId> --json",
|
|
8246
|
+
"description": "Get a job, as JSON"
|
|
8247
|
+
}
|
|
8248
|
+
],
|
|
8249
|
+
"flags": {
|
|
8250
|
+
"json": {
|
|
8251
|
+
"description": "Format output as json.",
|
|
8252
|
+
"helpGroup": "GLOBAL",
|
|
8253
|
+
"name": "json",
|
|
8254
|
+
"allowNo": false,
|
|
8255
|
+
"type": "boolean"
|
|
8256
|
+
},
|
|
8257
|
+
"watch": {
|
|
8258
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
8259
|
+
"name": "watch",
|
|
8260
|
+
"allowNo": false,
|
|
8261
|
+
"type": "boolean"
|
|
8262
|
+
}
|
|
8263
|
+
},
|
|
8264
|
+
"hasDynamicHelp": false,
|
|
8265
|
+
"hiddenAliases": [],
|
|
8266
|
+
"id": "context:jobs:get",
|
|
8267
|
+
"pluginAlias": "@sanity/cli",
|
|
8268
|
+
"pluginName": "@sanity/cli",
|
|
8269
|
+
"pluginType": "core",
|
|
8270
|
+
"strict": true,
|
|
8271
|
+
"summary": "Get a job",
|
|
8272
|
+
"enableJsonFlag": true,
|
|
8273
|
+
"telemetry": {
|
|
8274
|
+
"redactedFlags": []
|
|
8275
|
+
},
|
|
8276
|
+
"isESM": true,
|
|
8277
|
+
"relativePath": [
|
|
8278
|
+
"dist",
|
|
8279
|
+
"commands",
|
|
8280
|
+
"context",
|
|
8281
|
+
"jobs",
|
|
8282
|
+
"get.js"
|
|
8283
|
+
]
|
|
8284
|
+
},
|
|
8285
8285
|
"context:mcp:create": {
|
|
8286
8286
|
"aliases": [],
|
|
8287
8287
|
"args": {
|
|
@@ -10462,5 +10462,5 @@
|
|
|
10462
10462
|
]
|
|
10463
10463
|
}
|
|
10464
10464
|
},
|
|
10465
|
-
"version": "8.
|
|
10465
|
+
"version": "8.38.0"
|
|
10466
10466
|
}
|