@sanity/cli 8.29.0 → 8.30.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/README.md +6 -6
- package/dist/actions/dev/servers/getDashboardAppUrl.js +2 -2
- package/dist/actions/dev/servers/getDashboardAppUrl.js.map +1 -1
- package/dist/actions/dev/servers/startAppDevServer.js +3 -2
- package/dist/actions/dev/servers/startAppDevServer.js.map +1 -1
- package/dist/actions/dev/servers/startStudioDevServer.js +4 -2
- package/dist/actions/dev/servers/startStudioDevServer.js.map +1 -1
- package/dist/actions/documents/validateDocuments.worker.js +11 -7
- package/dist/actions/documents/validateDocuments.worker.js.map +1 -1
- package/dist/actions/mcp/detectAvailableEditors.js +5 -13
- package/dist/actions/mcp/detectAvailableEditors.js.map +1 -1
- package/dist/actions/mcp/editorConfigs.js +43 -89
- package/dist/actions/mcp/editorConfigs.js.map +1 -1
- package/dist/actions/mcp/promptForMCPSetup.js +2 -5
- package/dist/actions/mcp/promptForMCPSetup.js.map +1 -1
- package/dist/actions/mcp/setupMCP.js +37 -50
- package/dist/actions/mcp/setupMCP.js.map +1 -1
- package/dist/actions/mcp/types.js.map +1 -1
- package/dist/actions/mcp/writeMCPConfig.js +3 -3
- package/dist/actions/mcp/writeMCPConfig.js.map +1 -1
- package/dist/commands/mcp/configure.js +2 -22
- package/dist/commands/mcp/configure.js.map +1 -1
- package/dist/commands/skills/install.js +1 -1
- package/dist/commands/skills/install.js.map +1 -1
- package/dist/exports/invokeSanityCli/index.d.ts +4 -2
- package/dist/services/mcp.js +1 -73
- package/dist/services/mcp.js.map +1 -1
- package/oclif.manifest.json +1392 -1392
- package/package.json +13 -13
- package/dist/actions/mcp/validateEditorTokens.js +0 -56
- package/dist/actions/mcp/validateEditorTokens.js.map +0 -1
package/oclif.manifest.json
CHANGED
|
@@ -2665,118 +2665,160 @@
|
|
|
2665
2665
|
"list.js"
|
|
2666
2666
|
]
|
|
2667
2667
|
},
|
|
2668
|
-
"
|
|
2669
|
-
"aliases": [],
|
|
2670
|
-
"args": {},
|
|
2671
|
-
"description": "Open Sanity docs in your browser",
|
|
2672
|
-
"flags": {},
|
|
2673
|
-
"hasDynamicHelp": false,
|
|
2674
|
-
"hiddenAliases": [],
|
|
2675
|
-
"id": "docs:browse",
|
|
2676
|
-
"pluginAlias": "@sanity/cli",
|
|
2677
|
-
"pluginName": "@sanity/cli",
|
|
2678
|
-
"pluginType": "core",
|
|
2679
|
-
"strict": true,
|
|
2680
|
-
"enableJsonFlag": false,
|
|
2681
|
-
"isESM": true,
|
|
2682
|
-
"relativePath": [
|
|
2683
|
-
"dist",
|
|
2684
|
-
"commands",
|
|
2685
|
-
"docs",
|
|
2686
|
-
"browse.js"
|
|
2687
|
-
]
|
|
2688
|
-
},
|
|
2689
|
-
"docs:read": {
|
|
2668
|
+
"datasets:copy": {
|
|
2690
2669
|
"aliases": [],
|
|
2691
2670
|
"args": {
|
|
2692
|
-
"
|
|
2693
|
-
"description": "
|
|
2694
|
-
"name": "
|
|
2695
|
-
"required":
|
|
2671
|
+
"source": {
|
|
2672
|
+
"description": "Name of the dataset to copy from",
|
|
2673
|
+
"name": "source",
|
|
2674
|
+
"required": false
|
|
2675
|
+
},
|
|
2676
|
+
"target": {
|
|
2677
|
+
"description": "Name of the dataset to copy to",
|
|
2678
|
+
"name": "target",
|
|
2679
|
+
"required": false
|
|
2696
2680
|
}
|
|
2697
2681
|
},
|
|
2698
|
-
"description": "
|
|
2682
|
+
"description": "Copy a dataset or manage copy jobs",
|
|
2699
2683
|
"examples": [
|
|
2700
2684
|
{
|
|
2701
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2702
|
-
"description": "
|
|
2685
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
2686
|
+
"description": "Interactively copy a dataset"
|
|
2703
2687
|
},
|
|
2704
2688
|
{
|
|
2705
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2706
|
-
"description": "
|
|
2689
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
2690
|
+
"description": "Copy from source-dataset (prompts for target)"
|
|
2707
2691
|
},
|
|
2708
2692
|
{
|
|
2709
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2710
|
-
"description": "
|
|
2693
|
+
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
2694
|
+
"description": "Copy from source-dataset to target-dataset"
|
|
2711
2695
|
},
|
|
2712
2696
|
{
|
|
2713
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2714
|
-
"description": "
|
|
2715
|
-
}
|
|
2716
|
-
],
|
|
2717
|
-
"flags": {
|
|
2718
|
-
"web": {
|
|
2719
|
-
"aliases": [
|
|
2720
|
-
"w"
|
|
2721
|
-
],
|
|
2722
|
-
"description": "Open in a web browser",
|
|
2723
|
-
"name": "web",
|
|
2724
|
-
"allowNo": false,
|
|
2725
|
-
"type": "boolean"
|
|
2726
|
-
}
|
|
2727
|
-
},
|
|
2728
|
-
"hasDynamicHelp": false,
|
|
2729
|
-
"hiddenAliases": [],
|
|
2730
|
-
"id": "docs:read",
|
|
2731
|
-
"pluginAlias": "@sanity/cli",
|
|
2732
|
-
"pluginName": "@sanity/cli",
|
|
2733
|
-
"pluginType": "core",
|
|
2734
|
-
"strict": true,
|
|
2735
|
-
"isESM": true,
|
|
2736
|
-
"relativePath": [
|
|
2737
|
-
"dist",
|
|
2738
|
-
"commands",
|
|
2739
|
-
"docs",
|
|
2740
|
-
"read.js"
|
|
2741
|
-
]
|
|
2742
|
-
},
|
|
2743
|
-
"docs:search": {
|
|
2744
|
-
"aliases": [],
|
|
2745
|
-
"args": {
|
|
2746
|
-
"query": {
|
|
2747
|
-
"description": "Search query for documentation",
|
|
2748
|
-
"name": "query",
|
|
2749
|
-
"required": true
|
|
2750
|
-
}
|
|
2751
|
-
},
|
|
2752
|
-
"description": "Search Sanity docs",
|
|
2753
|
-
"examples": [
|
|
2697
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
2698
|
+
"description": "Copy without preserving document history (faster for large datasets)"
|
|
2699
|
+
},
|
|
2754
2700
|
{
|
|
2755
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2756
|
-
"description": "
|
|
2701
|
+
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
2702
|
+
"description": "Copy without content release documents"
|
|
2757
2703
|
},
|
|
2758
2704
|
{
|
|
2759
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2760
|
-
"description": "
|
|
2705
|
+
"command": "<%= config.bin %> <%= command.id %> --detach source target",
|
|
2706
|
+
"description": "Start copy job without waiting for completion"
|
|
2761
2707
|
},
|
|
2762
2708
|
{
|
|
2763
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2764
|
-
"description": "
|
|
2709
|
+
"command": "<%= config.bin %> <%= command.id %> --attach <job-id>",
|
|
2710
|
+
"description": "Attach to a running copy job to follow progress"
|
|
2711
|
+
},
|
|
2712
|
+
{
|
|
2713
|
+
"command": "<%= config.bin %> <%= command.id %> --list",
|
|
2714
|
+
"description": "List all dataset copy jobs"
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
"command": "<%= config.bin %> <%= command.id %> --list --offset 2 --limit 10",
|
|
2718
|
+
"description": "List copy jobs with pagination"
|
|
2765
2719
|
}
|
|
2766
2720
|
],
|
|
2767
2721
|
"flags": {
|
|
2722
|
+
"project": {
|
|
2723
|
+
"aliases": [
|
|
2724
|
+
"project-id"
|
|
2725
|
+
],
|
|
2726
|
+
"char": "p",
|
|
2727
|
+
"deprecateAliases": true,
|
|
2728
|
+
"description": "Project ID to copy dataset in (overrides CLI configuration)",
|
|
2729
|
+
"helpGroup": "OVERRIDE",
|
|
2730
|
+
"name": "project",
|
|
2731
|
+
"hasDynamicHelp": false,
|
|
2732
|
+
"helpValue": "<id>",
|
|
2733
|
+
"multiple": false,
|
|
2734
|
+
"type": "option"
|
|
2735
|
+
},
|
|
2736
|
+
"attach": {
|
|
2737
|
+
"description": "Attach to the running copy process to show progress",
|
|
2738
|
+
"exclusive": [
|
|
2739
|
+
"list",
|
|
2740
|
+
"detach",
|
|
2741
|
+
"skip-history"
|
|
2742
|
+
],
|
|
2743
|
+
"name": "attach",
|
|
2744
|
+
"required": false,
|
|
2745
|
+
"hasDynamicHelp": false,
|
|
2746
|
+
"multiple": false,
|
|
2747
|
+
"type": "option"
|
|
2748
|
+
},
|
|
2749
|
+
"detach": {
|
|
2750
|
+
"description": "Start the copy without waiting for it to finish",
|
|
2751
|
+
"exclusive": [
|
|
2752
|
+
"list",
|
|
2753
|
+
"attach"
|
|
2754
|
+
],
|
|
2755
|
+
"name": "detach",
|
|
2756
|
+
"required": false,
|
|
2757
|
+
"allowNo": false,
|
|
2758
|
+
"type": "boolean"
|
|
2759
|
+
},
|
|
2768
2760
|
"limit": {
|
|
2769
|
-
"
|
|
2761
|
+
"dependsOn": [
|
|
2762
|
+
"list"
|
|
2763
|
+
],
|
|
2764
|
+
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
2770
2765
|
"name": "limit",
|
|
2771
|
-
"
|
|
2766
|
+
"required": false,
|
|
2767
|
+
"hasDynamicHelp": false,
|
|
2768
|
+
"multiple": false,
|
|
2769
|
+
"type": "option"
|
|
2770
|
+
},
|
|
2771
|
+
"list": {
|
|
2772
|
+
"description": "Lists all dataset copy jobs",
|
|
2773
|
+
"exclusive": [
|
|
2774
|
+
"attach",
|
|
2775
|
+
"detach",
|
|
2776
|
+
"skip-history"
|
|
2777
|
+
],
|
|
2778
|
+
"name": "list",
|
|
2779
|
+
"required": false,
|
|
2780
|
+
"allowNo": false,
|
|
2781
|
+
"type": "boolean"
|
|
2782
|
+
},
|
|
2783
|
+
"offset": {
|
|
2784
|
+
"dependsOn": [
|
|
2785
|
+
"list"
|
|
2786
|
+
],
|
|
2787
|
+
"description": "Start position in the list of jobs (default 0)",
|
|
2788
|
+
"name": "offset",
|
|
2789
|
+
"required": false,
|
|
2772
2790
|
"hasDynamicHelp": false,
|
|
2773
2791
|
"multiple": false,
|
|
2774
2792
|
"type": "option"
|
|
2793
|
+
},
|
|
2794
|
+
"skip-content-releases": {
|
|
2795
|
+
"description": "Don't copy content release documents to the target dataset",
|
|
2796
|
+
"exclusive": [
|
|
2797
|
+
"list",
|
|
2798
|
+
"attach"
|
|
2799
|
+
],
|
|
2800
|
+
"name": "skip-content-releases",
|
|
2801
|
+
"required": false,
|
|
2802
|
+
"allowNo": false,
|
|
2803
|
+
"type": "boolean"
|
|
2804
|
+
},
|
|
2805
|
+
"skip-history": {
|
|
2806
|
+
"description": "Don't preserve document history on copy",
|
|
2807
|
+
"exclusive": [
|
|
2808
|
+
"list",
|
|
2809
|
+
"attach"
|
|
2810
|
+
],
|
|
2811
|
+
"name": "skip-history",
|
|
2812
|
+
"required": false,
|
|
2813
|
+
"allowNo": false,
|
|
2814
|
+
"type": "boolean"
|
|
2775
2815
|
}
|
|
2776
2816
|
},
|
|
2777
2817
|
"hasDynamicHelp": false,
|
|
2778
|
-
"hiddenAliases": [
|
|
2779
|
-
|
|
2818
|
+
"hiddenAliases": [
|
|
2819
|
+
"dataset:copy"
|
|
2820
|
+
],
|
|
2821
|
+
"id": "datasets:copy",
|
|
2780
2822
|
"pluginAlias": "@sanity/cli",
|
|
2781
2823
|
"pluginName": "@sanity/cli",
|
|
2782
2824
|
"pluginType": "core",
|
|
@@ -2785,40 +2827,32 @@
|
|
|
2785
2827
|
"relativePath": [
|
|
2786
2828
|
"dist",
|
|
2787
2829
|
"commands",
|
|
2788
|
-
"
|
|
2789
|
-
"
|
|
2830
|
+
"datasets",
|
|
2831
|
+
"copy.js"
|
|
2790
2832
|
]
|
|
2791
2833
|
},
|
|
2792
|
-
"
|
|
2834
|
+
"datasets:create": {
|
|
2793
2835
|
"aliases": [],
|
|
2794
2836
|
"args": {
|
|
2795
|
-
"
|
|
2796
|
-
"description": "
|
|
2797
|
-
"name": "
|
|
2837
|
+
"name": {
|
|
2838
|
+
"description": "Name of the dataset to create",
|
|
2839
|
+
"name": "name",
|
|
2798
2840
|
"required": false
|
|
2799
2841
|
}
|
|
2800
2842
|
},
|
|
2801
|
-
"description": "Create
|
|
2843
|
+
"description": "Create a new dataset for the project",
|
|
2802
2844
|
"examples": [
|
|
2803
|
-
{
|
|
2804
|
-
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
2805
|
-
"description": "Create the document specified in \"myDocument.json\""
|
|
2806
|
-
},
|
|
2807
2845
|
{
|
|
2808
2846
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
2809
|
-
"description": "
|
|
2810
|
-
},
|
|
2811
|
-
{
|
|
2812
|
-
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
2813
|
-
"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"
|
|
2847
|
+
"description": "Interactively create a dataset"
|
|
2814
2848
|
},
|
|
2815
2849
|
{
|
|
2816
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2817
|
-
"description": "
|
|
2850
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2851
|
+
"description": "Create a dataset named \"my-dataset\""
|
|
2818
2852
|
},
|
|
2819
2853
|
{
|
|
2820
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2821
|
-
"description": "Create
|
|
2854
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --visibility private",
|
|
2855
|
+
"description": "Create a private dataset named \"my-dataset\""
|
|
2822
2856
|
}
|
|
2823
2857
|
],
|
|
2824
2858
|
"flags": {
|
|
@@ -2828,7 +2862,7 @@
|
|
|
2828
2862
|
],
|
|
2829
2863
|
"char": "p",
|
|
2830
2864
|
"deprecateAliases": true,
|
|
2831
|
-
"description": "Project ID to create
|
|
2865
|
+
"description": "Project ID to create dataset in (overrides CLI configuration)",
|
|
2832
2866
|
"helpGroup": "OVERRIDE",
|
|
2833
2867
|
"name": "project",
|
|
2834
2868
|
"hasDynamicHelp": false,
|
|
@@ -2836,100 +2870,81 @@
|
|
|
2836
2870
|
"multiple": false,
|
|
2837
2871
|
"type": "option"
|
|
2838
2872
|
},
|
|
2839
|
-
"
|
|
2840
|
-
"
|
|
2841
|
-
"
|
|
2842
|
-
"
|
|
2843
|
-
"
|
|
2873
|
+
"embeddings": {
|
|
2874
|
+
"description": "Enable embeddings for this dataset",
|
|
2875
|
+
"name": "embeddings",
|
|
2876
|
+
"allowNo": false,
|
|
2877
|
+
"type": "boolean"
|
|
2878
|
+
},
|
|
2879
|
+
"embeddings-projection": {
|
|
2880
|
+
"dependsOn": [
|
|
2881
|
+
"embeddings"
|
|
2882
|
+
],
|
|
2883
|
+
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
2884
|
+
"name": "embeddings-projection",
|
|
2844
2885
|
"hasDynamicHelp": false,
|
|
2845
|
-
"helpValue": "<name>",
|
|
2846
2886
|
"multiple": false,
|
|
2847
2887
|
"type": "option"
|
|
2848
2888
|
},
|
|
2849
|
-
"
|
|
2850
|
-
"description": "
|
|
2851
|
-
"name": "
|
|
2889
|
+
"visibility": {
|
|
2890
|
+
"description": "Set visibility for this dataset (custom/private/public)",
|
|
2891
|
+
"name": "visibility",
|
|
2892
|
+
"required": false,
|
|
2852
2893
|
"hasDynamicHelp": false,
|
|
2853
2894
|
"multiple": false,
|
|
2895
|
+
"options": [
|
|
2896
|
+
"custom",
|
|
2897
|
+
"private",
|
|
2898
|
+
"public"
|
|
2899
|
+
],
|
|
2854
2900
|
"type": "option"
|
|
2855
|
-
},
|
|
2856
|
-
"json5": {
|
|
2857
|
-
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
2858
|
-
"name": "json5",
|
|
2859
|
-
"allowNo": false,
|
|
2860
|
-
"type": "boolean"
|
|
2861
|
-
},
|
|
2862
|
-
"missing": {
|
|
2863
|
-
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
2864
|
-
"name": "missing",
|
|
2865
|
-
"allowNo": false,
|
|
2866
|
-
"type": "boolean"
|
|
2867
|
-
},
|
|
2868
|
-
"replace": {
|
|
2869
|
-
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
2870
|
-
"name": "replace",
|
|
2871
|
-
"allowNo": false,
|
|
2872
|
-
"type": "boolean"
|
|
2873
|
-
},
|
|
2874
|
-
"watch": {
|
|
2875
|
-
"description": "Write the documents whenever the target file or buffer changes",
|
|
2876
|
-
"name": "watch",
|
|
2877
|
-
"allowNo": false,
|
|
2878
|
-
"type": "boolean"
|
|
2879
2901
|
}
|
|
2880
2902
|
},
|
|
2881
2903
|
"hasDynamicHelp": false,
|
|
2882
2904
|
"hiddenAliases": [
|
|
2883
|
-
"
|
|
2905
|
+
"dataset:create"
|
|
2884
2906
|
],
|
|
2885
|
-
"id": "
|
|
2907
|
+
"id": "datasets:create",
|
|
2886
2908
|
"pluginAlias": "@sanity/cli",
|
|
2887
2909
|
"pluginName": "@sanity/cli",
|
|
2888
2910
|
"pluginType": "core",
|
|
2889
2911
|
"strict": true,
|
|
2912
|
+
"telemetry": {
|
|
2913
|
+
"redactedFlags": [
|
|
2914
|
+
{
|
|
2915
|
+
"canonical": "--embeddings-projection",
|
|
2916
|
+
"flags": [
|
|
2917
|
+
"--embeddings-projection"
|
|
2918
|
+
]
|
|
2919
|
+
}
|
|
2920
|
+
]
|
|
2921
|
+
},
|
|
2890
2922
|
"isESM": true,
|
|
2891
2923
|
"relativePath": [
|
|
2892
2924
|
"dist",
|
|
2893
2925
|
"commands",
|
|
2894
|
-
"
|
|
2926
|
+
"datasets",
|
|
2895
2927
|
"create.js"
|
|
2896
2928
|
]
|
|
2897
2929
|
},
|
|
2898
|
-
"
|
|
2930
|
+
"datasets:delete": {
|
|
2899
2931
|
"aliases": [],
|
|
2900
2932
|
"args": {
|
|
2901
|
-
"
|
|
2902
|
-
"description": "
|
|
2903
|
-
"name": "
|
|
2933
|
+
"datasetName": {
|
|
2934
|
+
"description": "Dataset name to delete",
|
|
2935
|
+
"name": "datasetName",
|
|
2904
2936
|
"required": true
|
|
2905
|
-
},
|
|
2906
|
-
"ids": {
|
|
2907
|
-
"description": "Additional document IDs to delete",
|
|
2908
|
-
"name": "ids",
|
|
2909
|
-
"required": false
|
|
2910
2937
|
}
|
|
2911
2938
|
},
|
|
2912
|
-
"description": "Delete
|
|
2939
|
+
"description": "Delete a dataset from the project",
|
|
2913
2940
|
"examples": [
|
|
2914
2941
|
{
|
|
2915
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2916
|
-
"description": "Delete
|
|
2917
|
-
},
|
|
2918
|
-
{
|
|
2919
|
-
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
2920
|
-
"description": "ID wrapped in double or single quote works equally well"
|
|
2921
|
-
},
|
|
2922
|
-
{
|
|
2923
|
-
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
2924
|
-
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
2925
|
-
},
|
|
2926
|
-
{
|
|
2927
|
-
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
2928
|
-
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
2942
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
2943
|
+
"description": "Delete a specific dataset"
|
|
2929
2944
|
},
|
|
2930
2945
|
{
|
|
2931
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2932
|
-
"description": "Delete a
|
|
2946
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset --force",
|
|
2947
|
+
"description": "Delete a specific dataset without confirmation"
|
|
2933
2948
|
}
|
|
2934
2949
|
],
|
|
2935
2950
|
"flags": {
|
|
@@ -2939,7 +2954,7 @@
|
|
|
2939
2954
|
],
|
|
2940
2955
|
"char": "p",
|
|
2941
2956
|
"deprecateAliases": true,
|
|
2942
|
-
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
2957
|
+
"description": "Project ID to delete dataset from (overrides CLI configuration)",
|
|
2943
2958
|
"helpGroup": "OVERRIDE",
|
|
2944
2959
|
"name": "project",
|
|
2945
2960
|
"hasDynamicHelp": false,
|
|
@@ -2947,60 +2962,63 @@
|
|
|
2947
2962
|
"multiple": false,
|
|
2948
2963
|
"type": "option"
|
|
2949
2964
|
},
|
|
2950
|
-
"
|
|
2951
|
-
"
|
|
2952
|
-
"
|
|
2953
|
-
"
|
|
2954
|
-
"
|
|
2955
|
-
"hasDynamicHelp": false,
|
|
2956
|
-
"helpValue": "<name>",
|
|
2957
|
-
"multiple": false,
|
|
2958
|
-
"type": "option"
|
|
2965
|
+
"force": {
|
|
2966
|
+
"description": "Do not prompt for delete confirmation - forcefully delete",
|
|
2967
|
+
"name": "force",
|
|
2968
|
+
"allowNo": false,
|
|
2969
|
+
"type": "boolean"
|
|
2959
2970
|
}
|
|
2960
2971
|
},
|
|
2961
2972
|
"hasDynamicHelp": false,
|
|
2962
2973
|
"hiddenAliases": [
|
|
2963
|
-
"
|
|
2974
|
+
"dataset:delete"
|
|
2964
2975
|
],
|
|
2965
|
-
"id": "
|
|
2976
|
+
"id": "datasets:delete",
|
|
2966
2977
|
"pluginAlias": "@sanity/cli",
|
|
2967
2978
|
"pluginName": "@sanity/cli",
|
|
2968
2979
|
"pluginType": "core",
|
|
2969
|
-
"strict":
|
|
2980
|
+
"strict": true,
|
|
2970
2981
|
"isESM": true,
|
|
2971
2982
|
"relativePath": [
|
|
2972
2983
|
"dist",
|
|
2973
2984
|
"commands",
|
|
2974
|
-
"
|
|
2985
|
+
"datasets",
|
|
2975
2986
|
"delete.js"
|
|
2976
2987
|
]
|
|
2977
2988
|
},
|
|
2978
|
-
"
|
|
2989
|
+
"datasets:export": {
|
|
2979
2990
|
"aliases": [],
|
|
2980
2991
|
"args": {
|
|
2981
|
-
"
|
|
2982
|
-
"description": "
|
|
2983
|
-
"name": "
|
|
2984
|
-
|
|
2992
|
+
"name": {
|
|
2993
|
+
"description": "Name of the dataset to export",
|
|
2994
|
+
"name": "name"
|
|
2995
|
+
},
|
|
2996
|
+
"destination": {
|
|
2997
|
+
"description": "Output destination file path",
|
|
2998
|
+
"name": "destination"
|
|
2985
2999
|
}
|
|
2986
3000
|
},
|
|
2987
|
-
"description": "
|
|
3001
|
+
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
2988
3002
|
"examples": [
|
|
2989
3003
|
{
|
|
2990
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2991
|
-
"description": "
|
|
3004
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb localPath.tar.gz",
|
|
3005
|
+
"description": "Export dataset \"moviedb\" to localPath.tar.gz"
|
|
2992
3006
|
},
|
|
2993
3007
|
{
|
|
2994
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2995
|
-
"description": "
|
|
3008
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb assetless.tar.gz --no-assets",
|
|
3009
|
+
"description": "Export dataset without assets"
|
|
2996
3010
|
},
|
|
2997
3011
|
{
|
|
2998
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
2999
|
-
"description": "
|
|
3012
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --raw",
|
|
3013
|
+
"description": "Export raw documents without asset reference rewriting"
|
|
3000
3014
|
},
|
|
3001
3015
|
{
|
|
3002
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3003
|
-
"description": "
|
|
3016
|
+
"command": "<%= config.bin %> <%= command.id %> staging staging.tar.gz --types products,shops",
|
|
3017
|
+
"description": "Export specific document types"
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
"command": "<%= config.bin %> <%= command.id %> moviedb moviedb.tar.gz --no-strict-asset-verification",
|
|
3021
|
+
"description": "Export dataset without aborting on asset verification failures"
|
|
3004
3022
|
}
|
|
3005
3023
|
],
|
|
3006
3024
|
"flags": {
|
|
@@ -3010,7 +3028,7 @@
|
|
|
3010
3028
|
],
|
|
3011
3029
|
"char": "p",
|
|
3012
3030
|
"deprecateAliases": true,
|
|
3013
|
-
"description": "Project ID to
|
|
3031
|
+
"description": "Project ID to export dataset from (overrides CLI configuration)",
|
|
3014
3032
|
"helpGroup": "OVERRIDE",
|
|
3015
3033
|
"name": "project",
|
|
3016
3034
|
"hasDynamicHelp": false,
|
|
@@ -3018,28 +3036,75 @@
|
|
|
3018
3036
|
"multiple": false,
|
|
3019
3037
|
"type": "option"
|
|
3020
3038
|
},
|
|
3021
|
-
"
|
|
3022
|
-
"
|
|
3023
|
-
"
|
|
3024
|
-
"
|
|
3025
|
-
"
|
|
3039
|
+
"asset-concurrency": {
|
|
3040
|
+
"description": "Concurrent number of asset downloads",
|
|
3041
|
+
"name": "asset-concurrency",
|
|
3042
|
+
"default": 8,
|
|
3043
|
+
"hasDynamicHelp": false,
|
|
3044
|
+
"multiple": false,
|
|
3045
|
+
"type": "option"
|
|
3046
|
+
},
|
|
3047
|
+
"mode": {
|
|
3048
|
+
"description": "Export mode ('cursor' is faster for large datasets but may miss concurrent changes)",
|
|
3049
|
+
"name": "mode",
|
|
3050
|
+
"default": "stream",
|
|
3051
|
+
"hasDynamicHelp": false,
|
|
3052
|
+
"multiple": false,
|
|
3053
|
+
"options": [
|
|
3054
|
+
"stream",
|
|
3055
|
+
"cursor"
|
|
3056
|
+
],
|
|
3057
|
+
"type": "option"
|
|
3058
|
+
},
|
|
3059
|
+
"no-assets": {
|
|
3060
|
+
"description": "Export only non-asset documents and remove references to image assets",
|
|
3061
|
+
"name": "no-assets",
|
|
3062
|
+
"allowNo": false,
|
|
3063
|
+
"type": "boolean"
|
|
3064
|
+
},
|
|
3065
|
+
"no-compress": {
|
|
3066
|
+
"description": "Skips compressing tarball entries (still generates a gzip file)",
|
|
3067
|
+
"name": "no-compress",
|
|
3068
|
+
"allowNo": false,
|
|
3069
|
+
"type": "boolean"
|
|
3070
|
+
},
|
|
3071
|
+
"no-drafts": {
|
|
3072
|
+
"description": "Export only published versions of documents",
|
|
3073
|
+
"name": "no-drafts",
|
|
3074
|
+
"allowNo": false,
|
|
3075
|
+
"type": "boolean"
|
|
3076
|
+
},
|
|
3077
|
+
"no-strict-asset-verification": {
|
|
3078
|
+
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
3079
|
+
"name": "no-strict-asset-verification",
|
|
3080
|
+
"allowNo": false,
|
|
3081
|
+
"type": "boolean"
|
|
3082
|
+
},
|
|
3083
|
+
"overwrite": {
|
|
3084
|
+
"description": "Overwrite any file with the same name",
|
|
3085
|
+
"name": "overwrite",
|
|
3086
|
+
"allowNo": false,
|
|
3087
|
+
"type": "boolean"
|
|
3088
|
+
},
|
|
3089
|
+
"raw": {
|
|
3090
|
+
"description": "Extract only documents, without rewriting asset references",
|
|
3091
|
+
"name": "raw",
|
|
3092
|
+
"allowNo": false,
|
|
3093
|
+
"type": "boolean"
|
|
3094
|
+
},
|
|
3095
|
+
"types": {
|
|
3096
|
+
"description": "Defines which document types to export (comma-separated)",
|
|
3097
|
+
"name": "types",
|
|
3026
3098
|
"hasDynamicHelp": false,
|
|
3027
|
-
"helpValue": "<name>",
|
|
3028
3099
|
"multiple": false,
|
|
3029
3100
|
"type": "option"
|
|
3030
|
-
},
|
|
3031
|
-
"pretty": {
|
|
3032
|
-
"description": "Colorize JSON output",
|
|
3033
|
-
"name": "pretty",
|
|
3034
|
-
"allowNo": false,
|
|
3035
|
-
"type": "boolean"
|
|
3036
3101
|
}
|
|
3037
3102
|
},
|
|
3038
3103
|
"hasDynamicHelp": false,
|
|
3039
3104
|
"hiddenAliases": [
|
|
3040
|
-
"
|
|
3105
|
+
"dataset:export"
|
|
3041
3106
|
],
|
|
3042
|
-
"id": "
|
|
3107
|
+
"id": "datasets:export",
|
|
3043
3108
|
"pluginAlias": "@sanity/cli",
|
|
3044
3109
|
"pluginName": "@sanity/cli",
|
|
3045
3110
|
"pluginType": "core",
|
|
@@ -3048,331 +3113,277 @@
|
|
|
3048
3113
|
"relativePath": [
|
|
3049
3114
|
"dist",
|
|
3050
3115
|
"commands",
|
|
3051
|
-
"
|
|
3052
|
-
"
|
|
3116
|
+
"datasets",
|
|
3117
|
+
"export.js"
|
|
3053
3118
|
]
|
|
3054
3119
|
},
|
|
3055
|
-
"
|
|
3120
|
+
"datasets:import": {
|
|
3056
3121
|
"aliases": [],
|
|
3057
3122
|
"args": {
|
|
3058
|
-
"
|
|
3059
|
-
"description": "
|
|
3060
|
-
"name": "
|
|
3123
|
+
"source": {
|
|
3124
|
+
"description": "Source file (use \"-\" for stdin)",
|
|
3125
|
+
"name": "source",
|
|
3061
3126
|
"required": true
|
|
3127
|
+
},
|
|
3128
|
+
"targetDataset": {
|
|
3129
|
+
"description": "Target dataset (prefer --dataset flag instead)",
|
|
3130
|
+
"name": "targetDataset",
|
|
3131
|
+
"required": false
|
|
3062
3132
|
}
|
|
3063
3133
|
},
|
|
3064
|
-
"description": "
|
|
3134
|
+
"description": "Import documents to a Sanity dataset",
|
|
3065
3135
|
"examples": [
|
|
3066
3136
|
{
|
|
3067
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3068
|
-
"description": "
|
|
3137
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging my-dataset.ndjson",
|
|
3138
|
+
"description": "Import \"./my-dataset.ndjson\" into dataset \"staging\""
|
|
3069
3139
|
},
|
|
3070
3140
|
{
|
|
3071
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3072
|
-
"description": "
|
|
3141
|
+
"command": "cat my-dataset.ndjson | <%= config.bin %> <%= command.id %> -d test -",
|
|
3142
|
+
"description": "Import into dataset \"test\" from stdin"
|
|
3073
3143
|
},
|
|
3074
3144
|
{
|
|
3075
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3076
|
-
"description": "
|
|
3145
|
+
"command": "<%= config.bin %> <%= command.id %> -p projectId -d staging my-dataset.ndjson",
|
|
3146
|
+
"description": "Import with explicit project ID (overrides CLI configuration)"
|
|
3077
3147
|
},
|
|
3078
3148
|
{
|
|
3079
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3080
|
-
"description": "
|
|
3149
|
+
"command": "<%= config.bin %> <%= command.id %> -d staging -t someSecretToken my-dataset.ndjson",
|
|
3150
|
+
"description": "Import with an explicit token (e.g. for CI/CD)"
|
|
3081
3151
|
}
|
|
3082
3152
|
],
|
|
3083
3153
|
"flags": {
|
|
3084
|
-
"
|
|
3085
|
-
"
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
"
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
"
|
|
3092
|
-
"name": "
|
|
3154
|
+
"allow-assets-in-different-dataset": {
|
|
3155
|
+
"description": "Allow asset documents to reference different project/dataset",
|
|
3156
|
+
"name": "allow-assets-in-different-dataset",
|
|
3157
|
+
"allowNo": false,
|
|
3158
|
+
"type": "boolean"
|
|
3159
|
+
},
|
|
3160
|
+
"allow-failing-assets": {
|
|
3161
|
+
"description": "Skip assets that cannot be fetched/uploaded",
|
|
3162
|
+
"name": "allow-failing-assets",
|
|
3163
|
+
"allowNo": false,
|
|
3164
|
+
"type": "boolean"
|
|
3165
|
+
},
|
|
3166
|
+
"allow-replacement-characters": {
|
|
3167
|
+
"description": "Allow unicode replacement characters in imported documents",
|
|
3168
|
+
"name": "allow-replacement-characters",
|
|
3169
|
+
"allowNo": false,
|
|
3170
|
+
"type": "boolean"
|
|
3171
|
+
},
|
|
3172
|
+
"allow-system-documents": {
|
|
3173
|
+
"description": "Imports system documents",
|
|
3174
|
+
"name": "allow-system-documents",
|
|
3175
|
+
"allowNo": false,
|
|
3176
|
+
"type": "boolean"
|
|
3177
|
+
},
|
|
3178
|
+
"asset-concurrency": {
|
|
3179
|
+
"description": "Number of parallel asset imports",
|
|
3180
|
+
"name": "asset-concurrency",
|
|
3093
3181
|
"hasDynamicHelp": false,
|
|
3094
|
-
"helpValue": "<id>",
|
|
3095
3182
|
"multiple": false,
|
|
3096
3183
|
"type": "option"
|
|
3097
3184
|
},
|
|
3098
3185
|
"dataset": {
|
|
3099
3186
|
"char": "d",
|
|
3100
|
-
"description": "Dataset to
|
|
3101
|
-
"helpGroup": "OVERRIDE",
|
|
3187
|
+
"description": "Dataset to import to",
|
|
3102
3188
|
"name": "dataset",
|
|
3103
3189
|
"hasDynamicHelp": false,
|
|
3104
3190
|
"helpValue": "<name>",
|
|
3105
3191
|
"multiple": false,
|
|
3106
3192
|
"type": "option"
|
|
3107
3193
|
},
|
|
3108
|
-
"
|
|
3109
|
-
"description": "
|
|
3110
|
-
"
|
|
3194
|
+
"missing": {
|
|
3195
|
+
"description": "Skip documents that already exist",
|
|
3196
|
+
"exclusive": [
|
|
3197
|
+
"replace"
|
|
3198
|
+
],
|
|
3199
|
+
"name": "missing",
|
|
3111
3200
|
"allowNo": false,
|
|
3112
3201
|
"type": "boolean"
|
|
3113
3202
|
},
|
|
3114
|
-
"
|
|
3115
|
-
"
|
|
3116
|
-
|
|
3203
|
+
"project": {
|
|
3204
|
+
"aliases": [
|
|
3205
|
+
"project-id"
|
|
3206
|
+
],
|
|
3207
|
+
"char": "p",
|
|
3208
|
+
"deprecateAliases": true,
|
|
3209
|
+
"description": "Project ID to import to (overrides CLI configuration)",
|
|
3210
|
+
"helpGroup": "OVERRIDE",
|
|
3211
|
+
"name": "project",
|
|
3117
3212
|
"hasDynamicHelp": false,
|
|
3213
|
+
"helpValue": "<id>",
|
|
3118
3214
|
"multiple": false,
|
|
3119
3215
|
"type": "option"
|
|
3120
3216
|
},
|
|
3121
|
-
"
|
|
3122
|
-
"description": "
|
|
3123
|
-
"
|
|
3217
|
+
"replace": {
|
|
3218
|
+
"description": "Replace documents with the same IDs",
|
|
3219
|
+
"exclusive": [
|
|
3220
|
+
"missing"
|
|
3221
|
+
],
|
|
3222
|
+
"name": "replace",
|
|
3223
|
+
"allowNo": false,
|
|
3224
|
+
"type": "boolean"
|
|
3225
|
+
},
|
|
3226
|
+
"replace-assets": {
|
|
3227
|
+
"description": "Skip reuse of existing assets",
|
|
3228
|
+
"name": "replace-assets",
|
|
3229
|
+
"allowNo": false,
|
|
3230
|
+
"type": "boolean"
|
|
3231
|
+
},
|
|
3232
|
+
"skip-cross-dataset-references": {
|
|
3233
|
+
"description": "Skips references to other datasets",
|
|
3234
|
+
"name": "skip-cross-dataset-references",
|
|
3124
3235
|
"allowNo": false,
|
|
3125
3236
|
"type": "boolean"
|
|
3237
|
+
},
|
|
3238
|
+
"token": {
|
|
3239
|
+
"char": "t",
|
|
3240
|
+
"description": "Token to authenticate with",
|
|
3241
|
+
"env": "SANITY_IMPORT_TOKEN",
|
|
3242
|
+
"name": "token",
|
|
3243
|
+
"required": false,
|
|
3244
|
+
"hasDynamicHelp": false,
|
|
3245
|
+
"multiple": false,
|
|
3246
|
+
"type": "option"
|
|
3126
3247
|
}
|
|
3127
3248
|
},
|
|
3128
3249
|
"hasDynamicHelp": false,
|
|
3129
3250
|
"hiddenAliases": [
|
|
3130
|
-
"
|
|
3251
|
+
"dataset:import"
|
|
3131
3252
|
],
|
|
3132
|
-
"id": "
|
|
3253
|
+
"id": "datasets:import",
|
|
3133
3254
|
"pluginAlias": "@sanity/cli",
|
|
3134
3255
|
"pluginName": "@sanity/cli",
|
|
3135
3256
|
"pluginType": "core",
|
|
3136
3257
|
"strict": true,
|
|
3258
|
+
"telemetry": {
|
|
3259
|
+
"redactedFlags": [
|
|
3260
|
+
{
|
|
3261
|
+
"canonical": "--token",
|
|
3262
|
+
"flags": [
|
|
3263
|
+
"--token",
|
|
3264
|
+
"-t"
|
|
3265
|
+
]
|
|
3266
|
+
}
|
|
3267
|
+
]
|
|
3268
|
+
},
|
|
3137
3269
|
"isESM": true,
|
|
3138
3270
|
"relativePath": [
|
|
3139
3271
|
"dist",
|
|
3140
3272
|
"commands",
|
|
3141
|
-
"
|
|
3142
|
-
"
|
|
3273
|
+
"datasets",
|
|
3274
|
+
"import.js"
|
|
3143
3275
|
]
|
|
3144
3276
|
},
|
|
3145
|
-
"
|
|
3277
|
+
"datasets:list": {
|
|
3146
3278
|
"aliases": [],
|
|
3147
3279
|
"args": {},
|
|
3148
|
-
"description": "
|
|
3280
|
+
"description": "List datasets for the project",
|
|
3149
3281
|
"examples": [
|
|
3150
3282
|
{
|
|
3151
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3152
|
-
"description": "
|
|
3153
|
-
},
|
|
3154
|
-
{
|
|
3155
|
-
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
3156
|
-
"description": "Override the dataset specified in the workspace"
|
|
3157
|
-
},
|
|
3158
|
-
{
|
|
3159
|
-
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
3160
|
-
"description": "Save the results of the report into a file"
|
|
3161
|
-
},
|
|
3162
|
-
{
|
|
3163
|
-
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
3164
|
-
"description": "Report out info level validation markers too"
|
|
3283
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3284
|
+
"description": "List datasets for the project"
|
|
3165
3285
|
},
|
|
3166
3286
|
{
|
|
3167
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123
|
|
3168
|
-
"description": "
|
|
3287
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
3288
|
+
"description": "List datasets for a specific project"
|
|
3169
3289
|
}
|
|
3170
3290
|
],
|
|
3171
|
-
"flags": {
|
|
3172
|
-
"project": {
|
|
3173
|
-
"aliases": [
|
|
3174
|
-
"project-id"
|
|
3175
|
-
],
|
|
3176
|
-
"char": "p",
|
|
3177
|
-
"deprecateAliases": true,
|
|
3178
|
-
"description": "
|
|
3179
|
-
"
|
|
3180
|
-
"
|
|
3181
|
-
"helpValue": "<id>",
|
|
3182
|
-
"multiple": false,
|
|
3183
|
-
"type": "option"
|
|
3184
|
-
},
|
|
3185
|
-
"dataset": {
|
|
3186
|
-
"char": "d",
|
|
3187
|
-
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
3188
|
-
"name": "dataset",
|
|
3189
|
-
"hasDynamicHelp": false,
|
|
3190
|
-
"helpValue": "<name>",
|
|
3191
|
-
"multiple": false,
|
|
3192
|
-
"type": "option"
|
|
3193
|
-
},
|
|
3194
|
-
"file": {
|
|
3195
|
-
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3196
|
-
"name": "file",
|
|
3197
|
-
"hasDynamicHelp": false,
|
|
3198
|
-
"multiple": false,
|
|
3199
|
-
"type": "option"
|
|
3200
|
-
},
|
|
3201
|
-
"format": {
|
|
3202
|
-
"description": "The output format used to print the found validation markers and report progress",
|
|
3203
|
-
"name": "format",
|
|
3204
|
-
"hasDynamicHelp": false,
|
|
3205
|
-
"multiple": false,
|
|
3206
|
-
"options": [
|
|
3207
|
-
"json",
|
|
3208
|
-
"ndjson",
|
|
3209
|
-
"pretty"
|
|
3210
|
-
],
|
|
3211
|
-
"type": "option"
|
|
3212
|
-
},
|
|
3213
|
-
"level": {
|
|
3214
|
-
"description": "The minimum level reported. Defaults to warning",
|
|
3215
|
-
"name": "level",
|
|
3216
|
-
"default": "warning",
|
|
3217
|
-
"hasDynamicHelp": false,
|
|
3218
|
-
"multiple": false,
|
|
3219
|
-
"options": [
|
|
3220
|
-
"error",
|
|
3221
|
-
"warning",
|
|
3222
|
-
"info"
|
|
3223
|
-
],
|
|
3224
|
-
"type": "option"
|
|
3225
|
-
},
|
|
3226
|
-
"max-custom-validation-concurrency": {
|
|
3227
|
-
"description": "Specify how many custom validators can run concurrently",
|
|
3228
|
-
"name": "max-custom-validation-concurrency",
|
|
3229
|
-
"default": 5,
|
|
3230
|
-
"hasDynamicHelp": false,
|
|
3231
|
-
"multiple": false,
|
|
3232
|
-
"type": "option"
|
|
3233
|
-
},
|
|
3234
|
-
"max-fetch-concurrency": {
|
|
3235
|
-
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3236
|
-
"name": "max-fetch-concurrency",
|
|
3237
|
-
"default": 25,
|
|
3238
|
-
"hasDynamicHelp": false,
|
|
3239
|
-
"multiple": false,
|
|
3240
|
-
"type": "option"
|
|
3241
|
-
},
|
|
3242
|
-
"workspace": {
|
|
3243
|
-
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
3244
|
-
"name": "workspace",
|
|
3291
|
+
"flags": {
|
|
3292
|
+
"project": {
|
|
3293
|
+
"aliases": [
|
|
3294
|
+
"project-id"
|
|
3295
|
+
],
|
|
3296
|
+
"char": "p",
|
|
3297
|
+
"deprecateAliases": true,
|
|
3298
|
+
"description": "Project ID to list datasets for (overrides CLI configuration)",
|
|
3299
|
+
"helpGroup": "OVERRIDE",
|
|
3300
|
+
"name": "project",
|
|
3245
3301
|
"hasDynamicHelp": false,
|
|
3302
|
+
"helpValue": "<id>",
|
|
3246
3303
|
"multiple": false,
|
|
3247
3304
|
"type": "option"
|
|
3248
|
-
},
|
|
3249
|
-
"yes": {
|
|
3250
|
-
"char": "y",
|
|
3251
|
-
"description": "Skips the first confirmation prompt",
|
|
3252
|
-
"name": "yes",
|
|
3253
|
-
"allowNo": false,
|
|
3254
|
-
"type": "boolean"
|
|
3255
3305
|
}
|
|
3256
3306
|
},
|
|
3257
3307
|
"hasDynamicHelp": false,
|
|
3258
3308
|
"hiddenAliases": [
|
|
3259
|
-
"
|
|
3309
|
+
"dataset:list"
|
|
3260
3310
|
],
|
|
3261
|
-
"id": "
|
|
3311
|
+
"id": "datasets:list",
|
|
3262
3312
|
"pluginAlias": "@sanity/cli",
|
|
3263
3313
|
"pluginName": "@sanity/cli",
|
|
3264
3314
|
"pluginType": "core",
|
|
3265
3315
|
"strict": true,
|
|
3266
|
-
"telemetry": {
|
|
3267
|
-
"redactedFlags": [
|
|
3268
|
-
{
|
|
3269
|
-
"canonical": "--file",
|
|
3270
|
-
"flags": [
|
|
3271
|
-
"--file"
|
|
3272
|
-
]
|
|
3273
|
-
}
|
|
3274
|
-
]
|
|
3275
|
-
},
|
|
3276
3316
|
"isESM": true,
|
|
3277
3317
|
"relativePath": [
|
|
3278
3318
|
"dist",
|
|
3279
3319
|
"commands",
|
|
3280
|
-
"
|
|
3281
|
-
"
|
|
3320
|
+
"datasets",
|
|
3321
|
+
"list.js"
|
|
3282
3322
|
]
|
|
3283
3323
|
},
|
|
3284
|
-
"
|
|
3324
|
+
"docs:browse": {
|
|
3285
3325
|
"aliases": [],
|
|
3286
3326
|
"args": {},
|
|
3287
|
-
"description": "
|
|
3327
|
+
"description": "Open Sanity docs in your browser",
|
|
3328
|
+
"flags": {},
|
|
3329
|
+
"hasDynamicHelp": false,
|
|
3330
|
+
"hiddenAliases": [],
|
|
3331
|
+
"id": "docs:browse",
|
|
3332
|
+
"pluginAlias": "@sanity/cli",
|
|
3333
|
+
"pluginName": "@sanity/cli",
|
|
3334
|
+
"pluginType": "core",
|
|
3335
|
+
"strict": true,
|
|
3336
|
+
"enableJsonFlag": false,
|
|
3337
|
+
"isESM": true,
|
|
3338
|
+
"relativePath": [
|
|
3339
|
+
"dist",
|
|
3340
|
+
"commands",
|
|
3341
|
+
"docs",
|
|
3342
|
+
"browse.js"
|
|
3343
|
+
]
|
|
3344
|
+
},
|
|
3345
|
+
"docs:read": {
|
|
3346
|
+
"aliases": [],
|
|
3347
|
+
"args": {
|
|
3348
|
+
"path": {
|
|
3349
|
+
"description": "Path or URL to article, found in search results and docs content as links",
|
|
3350
|
+
"name": "path",
|
|
3351
|
+
"required": true
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
"description": "Read an article in terminal",
|
|
3288
3355
|
"examples": [
|
|
3289
3356
|
{
|
|
3290
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3291
|
-
"description": "
|
|
3357
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation",
|
|
3358
|
+
"description": "Read as markdown in terminal"
|
|
3292
3359
|
},
|
|
3293
3360
|
{
|
|
3294
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3295
|
-
"description": "
|
|
3361
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation",
|
|
3362
|
+
"description": "Read using full URL"
|
|
3296
3363
|
},
|
|
3297
3364
|
{
|
|
3298
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3299
|
-
"description": "
|
|
3365
|
+
"command": "<%= config.bin %> <%= command.id %> /docs/studio/installation --web",
|
|
3366
|
+
"description": "Open in web browser"
|
|
3300
3367
|
},
|
|
3301
3368
|
{
|
|
3302
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3303
|
-
"description": "
|
|
3369
|
+
"command": "<%= config.bin %> <%= command.id %> https://www.sanity.io/docs/studio/installation -w",
|
|
3370
|
+
"description": "Open using full URL in web browser"
|
|
3304
3371
|
}
|
|
3305
3372
|
],
|
|
3306
3373
|
"flags": {
|
|
3307
|
-
"
|
|
3308
|
-
"
|
|
3309
|
-
|
|
3310
|
-
"hasDynamicHelp": false,
|
|
3311
|
-
"multiple": true,
|
|
3312
|
-
"type": "option"
|
|
3313
|
-
},
|
|
3314
|
-
"dataset": {
|
|
3315
|
-
"char": "d",
|
|
3316
|
-
"description": "Deploy API for the given dataset",
|
|
3317
|
-
"name": "dataset",
|
|
3318
|
-
"hasDynamicHelp": false,
|
|
3319
|
-
"helpValue": "<name>",
|
|
3320
|
-
"multiple": false,
|
|
3321
|
-
"type": "option"
|
|
3322
|
-
},
|
|
3323
|
-
"dry-run": {
|
|
3324
|
-
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
3325
|
-
"name": "dry-run",
|
|
3326
|
-
"allowNo": false,
|
|
3327
|
-
"type": "boolean"
|
|
3328
|
-
},
|
|
3329
|
-
"force": {
|
|
3330
|
-
"description": "Deploy API without confirming breaking changes",
|
|
3331
|
-
"name": "force",
|
|
3332
|
-
"allowNo": false,
|
|
3333
|
-
"type": "boolean"
|
|
3334
|
-
},
|
|
3335
|
-
"generation": {
|
|
3336
|
-
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
3337
|
-
"name": "generation",
|
|
3338
|
-
"hasDynamicHelp": false,
|
|
3339
|
-
"multiple": false,
|
|
3340
|
-
"options": [
|
|
3341
|
-
"gen1",
|
|
3342
|
-
"gen2",
|
|
3343
|
-
"gen3"
|
|
3374
|
+
"web": {
|
|
3375
|
+
"aliases": [
|
|
3376
|
+
"w"
|
|
3344
3377
|
],
|
|
3345
|
-
"
|
|
3346
|
-
|
|
3347
|
-
"non-null-document-fields": {
|
|
3348
|
-
"description": "Use non-null document fields (_id, _type etc)",
|
|
3349
|
-
"name": "non-null-document-fields",
|
|
3350
|
-
"allowNo": false,
|
|
3351
|
-
"type": "boolean"
|
|
3352
|
-
},
|
|
3353
|
-
"playground": {
|
|
3354
|
-
"description": "Enable GraphQL playground for easier debugging",
|
|
3355
|
-
"name": "playground",
|
|
3356
|
-
"allowNo": true,
|
|
3357
|
-
"type": "boolean"
|
|
3358
|
-
},
|
|
3359
|
-
"tag": {
|
|
3360
|
-
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
3361
|
-
"name": "tag",
|
|
3362
|
-
"hasDynamicHelp": false,
|
|
3363
|
-
"multiple": false,
|
|
3364
|
-
"type": "option"
|
|
3365
|
-
},
|
|
3366
|
-
"with-union-cache": {
|
|
3367
|
-
"description": "Cache union types (faster for schemas with many self-references)",
|
|
3368
|
-
"name": "with-union-cache",
|
|
3378
|
+
"description": "Open in a web browser",
|
|
3379
|
+
"name": "web",
|
|
3369
3380
|
"allowNo": false,
|
|
3370
3381
|
"type": "boolean"
|
|
3371
3382
|
}
|
|
3372
3383
|
},
|
|
3373
3384
|
"hasDynamicHelp": false,
|
|
3374
3385
|
"hiddenAliases": [],
|
|
3375
|
-
"id": "
|
|
3386
|
+
"id": "docs:read",
|
|
3376
3387
|
"pluginAlias": "@sanity/cli",
|
|
3377
3388
|
"pluginName": "@sanity/cli",
|
|
3378
3389
|
"pluginType": "core",
|
|
@@ -3381,43 +3392,47 @@
|
|
|
3381
3392
|
"relativePath": [
|
|
3382
3393
|
"dist",
|
|
3383
3394
|
"commands",
|
|
3384
|
-
"
|
|
3385
|
-
"
|
|
3395
|
+
"docs",
|
|
3396
|
+
"read.js"
|
|
3386
3397
|
]
|
|
3387
3398
|
},
|
|
3388
|
-
"
|
|
3399
|
+
"docs:search": {
|
|
3389
3400
|
"aliases": [],
|
|
3390
|
-
"args": {
|
|
3391
|
-
|
|
3401
|
+
"args": {
|
|
3402
|
+
"query": {
|
|
3403
|
+
"description": "Search query for documentation",
|
|
3404
|
+
"name": "query",
|
|
3405
|
+
"required": true
|
|
3406
|
+
}
|
|
3407
|
+
},
|
|
3408
|
+
"description": "Search Sanity docs",
|
|
3392
3409
|
"examples": [
|
|
3393
3410
|
{
|
|
3394
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3395
|
-
"description": "
|
|
3411
|
+
"command": "<%= config.bin %> <%= command.id %> schema",
|
|
3412
|
+
"description": "Search for documentation about schemas"
|
|
3396
3413
|
},
|
|
3397
3414
|
{
|
|
3398
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3399
|
-
"description": "
|
|
3415
|
+
"command": "<%= config.bin %> <%= command.id %> \"groq functions\"",
|
|
3416
|
+
"description": "Search with phrase"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
"command": "<%= config.bin %> <%= command.id %> \"deployment\" --limit=5",
|
|
3420
|
+
"description": "Limit search results"
|
|
3400
3421
|
}
|
|
3401
3422
|
],
|
|
3402
3423
|
"flags": {
|
|
3403
|
-
"
|
|
3404
|
-
"
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
"char": "p",
|
|
3408
|
-
"deprecateAliases": true,
|
|
3409
|
-
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
3410
|
-
"helpGroup": "OVERRIDE",
|
|
3411
|
-
"name": "project",
|
|
3424
|
+
"limit": {
|
|
3425
|
+
"description": "Maximum number of results to return",
|
|
3426
|
+
"name": "limit",
|
|
3427
|
+
"default": 10,
|
|
3412
3428
|
"hasDynamicHelp": false,
|
|
3413
|
-
"helpValue": "<id>",
|
|
3414
3429
|
"multiple": false,
|
|
3415
3430
|
"type": "option"
|
|
3416
3431
|
}
|
|
3417
3432
|
},
|
|
3418
3433
|
"hasDynamicHelp": false,
|
|
3419
3434
|
"hiddenAliases": [],
|
|
3420
|
-
"id": "
|
|
3435
|
+
"id": "docs:search",
|
|
3421
3436
|
"pluginAlias": "@sanity/cli",
|
|
3422
3437
|
"pluginName": "@sanity/cli",
|
|
3423
3438
|
"pluginType": "core",
|
|
@@ -3426,38 +3441,40 @@
|
|
|
3426
3441
|
"relativePath": [
|
|
3427
3442
|
"dist",
|
|
3428
3443
|
"commands",
|
|
3429
|
-
"
|
|
3430
|
-
"
|
|
3444
|
+
"docs",
|
|
3445
|
+
"search.js"
|
|
3431
3446
|
]
|
|
3432
3447
|
},
|
|
3433
|
-
"
|
|
3448
|
+
"documents:create": {
|
|
3434
3449
|
"aliases": [],
|
|
3435
|
-
"args": {
|
|
3436
|
-
|
|
3450
|
+
"args": {
|
|
3451
|
+
"file": {
|
|
3452
|
+
"description": "JSON file to create document(s) from",
|
|
3453
|
+
"name": "file",
|
|
3454
|
+
"required": false
|
|
3455
|
+
}
|
|
3456
|
+
},
|
|
3457
|
+
"description": "Create one or more documents",
|
|
3437
3458
|
"examples": [
|
|
3438
3459
|
{
|
|
3439
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3440
|
-
"description": "
|
|
3441
|
-
},
|
|
3442
|
-
{
|
|
3443
|
-
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
3444
|
-
"description": "Undeploy API with ID \"ios\""
|
|
3460
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json",
|
|
3461
|
+
"description": "Create the document specified in \"myDocument.json\""
|
|
3445
3462
|
},
|
|
3446
3463
|
{
|
|
3447
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3448
|
-
"description": "
|
|
3464
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3465
|
+
"description": "Open configured $EDITOR and create the specified document(s)"
|
|
3449
3466
|
},
|
|
3450
3467
|
{
|
|
3451
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3452
|
-
"description": "
|
|
3468
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --replace",
|
|
3469
|
+
"description": "Fetch document with the ID \"myDocId\" and open configured $EDITOR with the current document content (if any). Replace document with the edited version when the editor closes"
|
|
3453
3470
|
},
|
|
3454
3471
|
{
|
|
3455
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3456
|
-
"description": "
|
|
3472
|
+
"command": "<%= config.bin %> <%= command.id %> --id myDocId --watch --replace --json5",
|
|
3473
|
+
"description": "Open configured $EDITOR and replace the document with the given content on each save. Use JSON5 file extension and parser for simplified syntax."
|
|
3457
3474
|
},
|
|
3458
3475
|
{
|
|
3459
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123
|
|
3460
|
-
"description": "
|
|
3476
|
+
"command": "<%= config.bin %> <%= command.id %> myDocument.json --project abc123",
|
|
3477
|
+
"description": "Create documents in a specific project"
|
|
3461
3478
|
}
|
|
3462
3479
|
],
|
|
3463
3480
|
"flags": {
|
|
@@ -3467,7 +3484,7 @@
|
|
|
3467
3484
|
],
|
|
3468
3485
|
"char": "p",
|
|
3469
3486
|
"deprecateAliases": true,
|
|
3470
|
-
"description": "Project ID to
|
|
3487
|
+
"description": "Project ID to create document(s) in (overrides CLI configuration)",
|
|
3471
3488
|
"helpGroup": "OVERRIDE",
|
|
3472
3489
|
"name": "project",
|
|
3473
3490
|
"hasDynamicHelp": false,
|
|
@@ -3475,46 +3492,53 @@
|
|
|
3475
3492
|
"multiple": false,
|
|
3476
3493
|
"type": "option"
|
|
3477
3494
|
},
|
|
3478
|
-
"api": {
|
|
3479
|
-
"description": "Undeploy API with this ID",
|
|
3480
|
-
"exclusive": [
|
|
3481
|
-
"project"
|
|
3482
|
-
],
|
|
3483
|
-
"name": "api",
|
|
3484
|
-
"required": false,
|
|
3485
|
-
"hasDynamicHelp": false,
|
|
3486
|
-
"multiple": false,
|
|
3487
|
-
"type": "option"
|
|
3488
|
-
},
|
|
3489
3495
|
"dataset": {
|
|
3490
3496
|
"char": "d",
|
|
3491
|
-
"description": "Dataset to
|
|
3497
|
+
"description": "Dataset to create document(s) in (overrides CLI configuration)",
|
|
3492
3498
|
"helpGroup": "OVERRIDE",
|
|
3493
3499
|
"name": "dataset",
|
|
3494
3500
|
"hasDynamicHelp": false,
|
|
3495
|
-
"helpValue": "<name>",
|
|
3501
|
+
"helpValue": "<name>",
|
|
3502
|
+
"multiple": false,
|
|
3503
|
+
"type": "option"
|
|
3504
|
+
},
|
|
3505
|
+
"id": {
|
|
3506
|
+
"description": "Specify a document ID to use. Will fetch remote document ID and populate editor.",
|
|
3507
|
+
"name": "id",
|
|
3508
|
+
"hasDynamicHelp": false,
|
|
3496
3509
|
"multiple": false,
|
|
3497
3510
|
"type": "option"
|
|
3498
3511
|
},
|
|
3499
|
-
"
|
|
3500
|
-
"description": "
|
|
3501
|
-
"name": "
|
|
3512
|
+
"json5": {
|
|
3513
|
+
"description": "Use JSON5 file type to allow a \"simplified\" version of JSON",
|
|
3514
|
+
"name": "json5",
|
|
3502
3515
|
"allowNo": false,
|
|
3503
3516
|
"type": "boolean"
|
|
3504
3517
|
},
|
|
3505
|
-
"
|
|
3506
|
-
"description": "
|
|
3507
|
-
"name": "
|
|
3508
|
-
"
|
|
3509
|
-
"
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
"
|
|
3518
|
+
"missing": {
|
|
3519
|
+
"description": "On duplicate document IDs, don't modify the target document(s)",
|
|
3520
|
+
"name": "missing",
|
|
3521
|
+
"allowNo": false,
|
|
3522
|
+
"type": "boolean"
|
|
3523
|
+
},
|
|
3524
|
+
"replace": {
|
|
3525
|
+
"description": "On duplicate document IDs, replace existing document with specified document(s)",
|
|
3526
|
+
"name": "replace",
|
|
3527
|
+
"allowNo": false,
|
|
3528
|
+
"type": "boolean"
|
|
3529
|
+
},
|
|
3530
|
+
"watch": {
|
|
3531
|
+
"description": "Write the documents whenever the target file or buffer changes",
|
|
3532
|
+
"name": "watch",
|
|
3533
|
+
"allowNo": false,
|
|
3534
|
+
"type": "boolean"
|
|
3513
3535
|
}
|
|
3514
3536
|
},
|
|
3515
3537
|
"hasDynamicHelp": false,
|
|
3516
|
-
"hiddenAliases": [
|
|
3517
|
-
|
|
3538
|
+
"hiddenAliases": [
|
|
3539
|
+
"document:create"
|
|
3540
|
+
],
|
|
3541
|
+
"id": "documents:create",
|
|
3518
3542
|
"pluginAlias": "@sanity/cli",
|
|
3519
3543
|
"pluginName": "@sanity/cli",
|
|
3520
3544
|
"pluginType": "core",
|
|
@@ -3523,61 +3547,45 @@
|
|
|
3523
3547
|
"relativePath": [
|
|
3524
3548
|
"dist",
|
|
3525
3549
|
"commands",
|
|
3526
|
-
"
|
|
3527
|
-
"
|
|
3550
|
+
"documents",
|
|
3551
|
+
"create.js"
|
|
3528
3552
|
]
|
|
3529
3553
|
},
|
|
3530
|
-
"
|
|
3554
|
+
"documents:delete": {
|
|
3531
3555
|
"aliases": [],
|
|
3532
3556
|
"args": {
|
|
3533
|
-
"
|
|
3534
|
-
"description": "
|
|
3535
|
-
"name": "
|
|
3536
|
-
"required":
|
|
3557
|
+
"id": {
|
|
3558
|
+
"description": "Document ID to delete",
|
|
3559
|
+
"name": "id",
|
|
3560
|
+
"required": true
|
|
3537
3561
|
},
|
|
3538
|
-
"
|
|
3539
|
-
"description": "
|
|
3540
|
-
"name": "
|
|
3562
|
+
"ids": {
|
|
3563
|
+
"description": "Additional document IDs to delete",
|
|
3564
|
+
"name": "ids",
|
|
3541
3565
|
"required": false
|
|
3542
3566
|
}
|
|
3543
3567
|
},
|
|
3544
|
-
"description": "
|
|
3568
|
+
"description": "Delete one or more documents from the project's configured dataset",
|
|
3545
3569
|
"examples": [
|
|
3546
3570
|
{
|
|
3547
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3548
|
-
"description": "
|
|
3549
|
-
},
|
|
3550
|
-
{
|
|
3551
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset",
|
|
3552
|
-
"description": "Copy from source-dataset (prompts for target)"
|
|
3553
|
-
},
|
|
3554
|
-
{
|
|
3555
|
-
"command": "<%= config.bin %> <%= command.id %> source-dataset target-dataset",
|
|
3556
|
-
"description": "Copy from source-dataset to target-dataset"
|
|
3557
|
-
},
|
|
3558
|
-
{
|
|
3559
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-history source target",
|
|
3560
|
-
"description": "Copy without preserving document history (faster for large datasets)"
|
|
3561
|
-
},
|
|
3562
|
-
{
|
|
3563
|
-
"command": "<%= config.bin %> <%= command.id %> --skip-content-releases source target",
|
|
3564
|
-
"description": "Copy without content release documents"
|
|
3571
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3572
|
+
"description": "Delete the document with the ID \"myDocId\""
|
|
3565
3573
|
},
|
|
3566
3574
|
{
|
|
3567
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3568
|
-
"description": "
|
|
3575
|
+
"command": "<%= config.bin %> <%= command.id %> 'myDocId'",
|
|
3576
|
+
"description": "ID wrapped in double or single quote works equally well"
|
|
3569
3577
|
},
|
|
3570
3578
|
{
|
|
3571
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3572
|
-
"description": "
|
|
3579
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset=blog someDocId",
|
|
3580
|
+
"description": "Delete document with ID \"someDocId\" from dataset \"blog\""
|
|
3573
3581
|
},
|
|
3574
3582
|
{
|
|
3575
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3576
|
-
"description": "
|
|
3583
|
+
"command": "<%= config.bin %> <%= command.id %> doc1 doc2",
|
|
3584
|
+
"description": "Delete the document with ID \"doc1\" and \"doc2\""
|
|
3577
3585
|
},
|
|
3578
3586
|
{
|
|
3579
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3580
|
-
"description": "
|
|
3587
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
|
|
3588
|
+
"description": "Delete a document from a specific project"
|
|
3581
3589
|
}
|
|
3582
3590
|
],
|
|
3583
3591
|
"flags": {
|
|
@@ -3587,7 +3595,7 @@
|
|
|
3587
3595
|
],
|
|
3588
3596
|
"char": "p",
|
|
3589
3597
|
"deprecateAliases": true,
|
|
3590
|
-
"description": "Project ID to
|
|
3598
|
+
"description": "Project ID to delete from (overrides CLI configuration)",
|
|
3591
3599
|
"helpGroup": "OVERRIDE",
|
|
3592
3600
|
"name": "project",
|
|
3593
3601
|
"hasDynamicHelp": false,
|
|
@@ -3595,126 +3603,60 @@
|
|
|
3595
3603
|
"multiple": false,
|
|
3596
3604
|
"type": "option"
|
|
3597
3605
|
},
|
|
3598
|
-
"
|
|
3599
|
-
"
|
|
3600
|
-
"
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
"skip-history"
|
|
3604
|
-
],
|
|
3605
|
-
"name": "attach",
|
|
3606
|
-
"required": false,
|
|
3607
|
-
"hasDynamicHelp": false,
|
|
3608
|
-
"multiple": false,
|
|
3609
|
-
"type": "option"
|
|
3610
|
-
},
|
|
3611
|
-
"detach": {
|
|
3612
|
-
"description": "Start the copy without waiting for it to finish",
|
|
3613
|
-
"exclusive": [
|
|
3614
|
-
"list",
|
|
3615
|
-
"attach"
|
|
3616
|
-
],
|
|
3617
|
-
"name": "detach",
|
|
3618
|
-
"required": false,
|
|
3619
|
-
"allowNo": false,
|
|
3620
|
-
"type": "boolean"
|
|
3621
|
-
},
|
|
3622
|
-
"limit": {
|
|
3623
|
-
"dependsOn": [
|
|
3624
|
-
"list"
|
|
3625
|
-
],
|
|
3626
|
-
"description": "Maximum number of jobs returned (default 10, max 1000)",
|
|
3627
|
-
"name": "limit",
|
|
3628
|
-
"required": false,
|
|
3629
|
-
"hasDynamicHelp": false,
|
|
3630
|
-
"multiple": false,
|
|
3631
|
-
"type": "option"
|
|
3632
|
-
},
|
|
3633
|
-
"list": {
|
|
3634
|
-
"description": "Lists all dataset copy jobs",
|
|
3635
|
-
"exclusive": [
|
|
3636
|
-
"attach",
|
|
3637
|
-
"detach",
|
|
3638
|
-
"skip-history"
|
|
3639
|
-
],
|
|
3640
|
-
"name": "list",
|
|
3641
|
-
"required": false,
|
|
3642
|
-
"allowNo": false,
|
|
3643
|
-
"type": "boolean"
|
|
3644
|
-
},
|
|
3645
|
-
"offset": {
|
|
3646
|
-
"dependsOn": [
|
|
3647
|
-
"list"
|
|
3648
|
-
],
|
|
3649
|
-
"description": "Start position in the list of jobs (default 0)",
|
|
3650
|
-
"name": "offset",
|
|
3651
|
-
"required": false,
|
|
3606
|
+
"dataset": {
|
|
3607
|
+
"char": "d",
|
|
3608
|
+
"description": "Dataset to delete from (overrides CLI configuration)",
|
|
3609
|
+
"helpGroup": "OVERRIDE",
|
|
3610
|
+
"name": "dataset",
|
|
3652
3611
|
"hasDynamicHelp": false,
|
|
3612
|
+
"helpValue": "<name>",
|
|
3653
3613
|
"multiple": false,
|
|
3654
3614
|
"type": "option"
|
|
3655
|
-
},
|
|
3656
|
-
"skip-content-releases": {
|
|
3657
|
-
"description": "Don't copy content release documents to the target dataset",
|
|
3658
|
-
"exclusive": [
|
|
3659
|
-
"list",
|
|
3660
|
-
"attach"
|
|
3661
|
-
],
|
|
3662
|
-
"name": "skip-content-releases",
|
|
3663
|
-
"required": false,
|
|
3664
|
-
"allowNo": false,
|
|
3665
|
-
"type": "boolean"
|
|
3666
|
-
},
|
|
3667
|
-
"skip-history": {
|
|
3668
|
-
"description": "Don't preserve document history on copy",
|
|
3669
|
-
"exclusive": [
|
|
3670
|
-
"list",
|
|
3671
|
-
"attach"
|
|
3672
|
-
],
|
|
3673
|
-
"name": "skip-history",
|
|
3674
|
-
"required": false,
|
|
3675
|
-
"allowNo": false,
|
|
3676
|
-
"type": "boolean"
|
|
3677
3615
|
}
|
|
3678
3616
|
},
|
|
3679
3617
|
"hasDynamicHelp": false,
|
|
3680
3618
|
"hiddenAliases": [
|
|
3681
|
-
"
|
|
3619
|
+
"document:delete"
|
|
3682
3620
|
],
|
|
3683
|
-
"id": "
|
|
3621
|
+
"id": "documents:delete",
|
|
3684
3622
|
"pluginAlias": "@sanity/cli",
|
|
3685
3623
|
"pluginName": "@sanity/cli",
|
|
3686
3624
|
"pluginType": "core",
|
|
3687
|
-
"strict":
|
|
3625
|
+
"strict": false,
|
|
3688
3626
|
"isESM": true,
|
|
3689
3627
|
"relativePath": [
|
|
3690
3628
|
"dist",
|
|
3691
3629
|
"commands",
|
|
3692
|
-
"
|
|
3693
|
-
"
|
|
3630
|
+
"documents",
|
|
3631
|
+
"delete.js"
|
|
3694
3632
|
]
|
|
3695
3633
|
},
|
|
3696
|
-
"
|
|
3634
|
+
"documents:get": {
|
|
3697
3635
|
"aliases": [],
|
|
3698
3636
|
"args": {
|
|
3699
|
-
"
|
|
3700
|
-
"description": "
|
|
3701
|
-
"name": "
|
|
3702
|
-
"required":
|
|
3637
|
+
"documentId": {
|
|
3638
|
+
"description": "Document ID to retrieve",
|
|
3639
|
+
"name": "documentId",
|
|
3640
|
+
"required": true
|
|
3703
3641
|
}
|
|
3704
3642
|
},
|
|
3705
|
-
"description": "
|
|
3643
|
+
"description": "Get and print a document by ID",
|
|
3706
3644
|
"examples": [
|
|
3707
3645
|
{
|
|
3708
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3709
|
-
"description": "
|
|
3646
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId",
|
|
3647
|
+
"description": "Get the document with ID \"myDocId\""
|
|
3710
3648
|
},
|
|
3711
3649
|
{
|
|
3712
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3713
|
-
"description": "
|
|
3650
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --pretty",
|
|
3651
|
+
"description": "Get document with colorized JSON output"
|
|
3714
3652
|
},
|
|
3715
3653
|
{
|
|
3716
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3717
|
-
"description": "
|
|
3654
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --dataset production",
|
|
3655
|
+
"description": "Get document from a specific dataset"
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
"command": "<%= config.bin %> <%= command.id %> myDocId --project abc123",
|
|
3659
|
+
"description": "Get a document from a specific project"
|
|
3718
3660
|
}
|
|
3719
3661
|
],
|
|
3720
3662
|
"flags": {
|
|
@@ -3724,7 +3666,7 @@
|
|
|
3724
3666
|
],
|
|
3725
3667
|
"char": "p",
|
|
3726
3668
|
"deprecateAliases": true,
|
|
3727
|
-
"description": "Project ID to
|
|
3669
|
+
"description": "Project ID to get document from (overrides CLI configuration)",
|
|
3728
3670
|
"helpGroup": "OVERRIDE",
|
|
3729
3671
|
"name": "project",
|
|
3730
3672
|
"hasDynamicHelp": false,
|
|
@@ -3732,81 +3674,66 @@
|
|
|
3732
3674
|
"multiple": false,
|
|
3733
3675
|
"type": "option"
|
|
3734
3676
|
},
|
|
3735
|
-
"
|
|
3736
|
-
"
|
|
3737
|
-
"
|
|
3738
|
-
"
|
|
3739
|
-
"
|
|
3740
|
-
},
|
|
3741
|
-
"embeddings-projection": {
|
|
3742
|
-
"dependsOn": [
|
|
3743
|
-
"embeddings"
|
|
3744
|
-
],
|
|
3745
|
-
"description": "GROQ projection for embeddings indexing (e.g. \"{ title, body }\")",
|
|
3746
|
-
"name": "embeddings-projection",
|
|
3677
|
+
"dataset": {
|
|
3678
|
+
"char": "d",
|
|
3679
|
+
"description": "Dataset to get document from (overrides CLI configuration)",
|
|
3680
|
+
"helpGroup": "OVERRIDE",
|
|
3681
|
+
"name": "dataset",
|
|
3747
3682
|
"hasDynamicHelp": false,
|
|
3683
|
+
"helpValue": "<name>",
|
|
3748
3684
|
"multiple": false,
|
|
3749
3685
|
"type": "option"
|
|
3750
3686
|
},
|
|
3751
|
-
"
|
|
3752
|
-
"description": "
|
|
3753
|
-
"name": "
|
|
3754
|
-
"
|
|
3755
|
-
"
|
|
3756
|
-
"multiple": false,
|
|
3757
|
-
"options": [
|
|
3758
|
-
"custom",
|
|
3759
|
-
"private",
|
|
3760
|
-
"public"
|
|
3761
|
-
],
|
|
3762
|
-
"type": "option"
|
|
3687
|
+
"pretty": {
|
|
3688
|
+
"description": "Colorize JSON output",
|
|
3689
|
+
"name": "pretty",
|
|
3690
|
+
"allowNo": false,
|
|
3691
|
+
"type": "boolean"
|
|
3763
3692
|
}
|
|
3764
3693
|
},
|
|
3765
3694
|
"hasDynamicHelp": false,
|
|
3766
3695
|
"hiddenAliases": [
|
|
3767
|
-
"
|
|
3696
|
+
"document:get"
|
|
3768
3697
|
],
|
|
3769
|
-
"id": "
|
|
3698
|
+
"id": "documents:get",
|
|
3770
3699
|
"pluginAlias": "@sanity/cli",
|
|
3771
3700
|
"pluginName": "@sanity/cli",
|
|
3772
3701
|
"pluginType": "core",
|
|
3773
3702
|
"strict": true,
|
|
3774
|
-
"telemetry": {
|
|
3775
|
-
"redactedFlags": [
|
|
3776
|
-
{
|
|
3777
|
-
"canonical": "--embeddings-projection",
|
|
3778
|
-
"flags": [
|
|
3779
|
-
"--embeddings-projection"
|
|
3780
|
-
]
|
|
3781
|
-
}
|
|
3782
|
-
]
|
|
3783
|
-
},
|
|
3784
3703
|
"isESM": true,
|
|
3785
3704
|
"relativePath": [
|
|
3786
3705
|
"dist",
|
|
3787
3706
|
"commands",
|
|
3788
|
-
"
|
|
3789
|
-
"
|
|
3707
|
+
"documents",
|
|
3708
|
+
"get.js"
|
|
3790
3709
|
]
|
|
3791
3710
|
},
|
|
3792
|
-
"
|
|
3711
|
+
"documents:query": {
|
|
3793
3712
|
"aliases": [],
|
|
3794
3713
|
"args": {
|
|
3795
|
-
"
|
|
3796
|
-
"description": "
|
|
3797
|
-
"name": "
|
|
3714
|
+
"query": {
|
|
3715
|
+
"description": "GROQ query to run against the dataset",
|
|
3716
|
+
"name": "query",
|
|
3798
3717
|
"required": true
|
|
3799
3718
|
}
|
|
3800
3719
|
},
|
|
3801
|
-
"description": "
|
|
3720
|
+
"description": "Query for documents",
|
|
3802
3721
|
"examples": [
|
|
3803
3722
|
{
|
|
3804
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3805
|
-
"description": "
|
|
3723
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"][0..4]'",
|
|
3724
|
+
"description": "Fetch 5 documents of type \"movie\""
|
|
3806
3725
|
},
|
|
3807
3726
|
{
|
|
3808
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3809
|
-
"description": "
|
|
3727
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"movie\"]|order(releaseDate asc)[0]{title}' --dataset staging",
|
|
3728
|
+
"description": "Fetch title of the oldest movie in the dataset named \"staging\""
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_id == \"header\"] { \"headerText\": pt::text(body) }' --api-version v2021-06-07",
|
|
3732
|
+
"description": "Use API version v2021-06-07 and do a query"
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
"command": "<%= config.bin %> <%= command.id %> '*[_type == \"post\"]' --project abc123 --dataset production",
|
|
3736
|
+
"description": "Query documents in a specific project and dataset"
|
|
3810
3737
|
}
|
|
3811
3738
|
],
|
|
3812
3739
|
"flags": {
|
|
@@ -3816,7 +3743,7 @@
|
|
|
3816
3743
|
],
|
|
3817
3744
|
"char": "p",
|
|
3818
3745
|
"deprecateAliases": true,
|
|
3819
|
-
"description": "Project ID to
|
|
3746
|
+
"description": "Project ID to query (overrides CLI configuration)",
|
|
3820
3747
|
"helpGroup": "OVERRIDE",
|
|
3821
3748
|
"name": "project",
|
|
3822
3749
|
"hasDynamicHelp": false,
|
|
@@ -3824,18 +3751,41 @@
|
|
|
3824
3751
|
"multiple": false,
|
|
3825
3752
|
"type": "option"
|
|
3826
3753
|
},
|
|
3827
|
-
"
|
|
3828
|
-
"
|
|
3829
|
-
"
|
|
3754
|
+
"dataset": {
|
|
3755
|
+
"char": "d",
|
|
3756
|
+
"description": "Dataset to query (overrides CLI configuration)",
|
|
3757
|
+
"helpGroup": "OVERRIDE",
|
|
3758
|
+
"name": "dataset",
|
|
3759
|
+
"hasDynamicHelp": false,
|
|
3760
|
+
"helpValue": "<name>",
|
|
3761
|
+
"multiple": false,
|
|
3762
|
+
"type": "option"
|
|
3763
|
+
},
|
|
3764
|
+
"anonymous": {
|
|
3765
|
+
"description": "Send the query without any authorization token",
|
|
3766
|
+
"name": "anonymous",
|
|
3767
|
+
"allowNo": false,
|
|
3768
|
+
"type": "boolean"
|
|
3769
|
+
},
|
|
3770
|
+
"api-version": {
|
|
3771
|
+
"description": "API version to use (defaults to 2025-08-15)",
|
|
3772
|
+
"name": "api-version",
|
|
3773
|
+
"hasDynamicHelp": false,
|
|
3774
|
+
"multiple": false,
|
|
3775
|
+
"type": "option"
|
|
3776
|
+
},
|
|
3777
|
+
"pretty": {
|
|
3778
|
+
"description": "Colorize JSON output",
|
|
3779
|
+
"name": "pretty",
|
|
3830
3780
|
"allowNo": false,
|
|
3831
3781
|
"type": "boolean"
|
|
3832
3782
|
}
|
|
3833
3783
|
},
|
|
3834
3784
|
"hasDynamicHelp": false,
|
|
3835
3785
|
"hiddenAliases": [
|
|
3836
|
-
"
|
|
3786
|
+
"document:query"
|
|
3837
3787
|
],
|
|
3838
|
-
"id": "
|
|
3788
|
+
"id": "documents:query",
|
|
3839
3789
|
"pluginAlias": "@sanity/cli",
|
|
3840
3790
|
"pluginName": "@sanity/cli",
|
|
3841
3791
|
"pluginType": "core",
|
|
@@ -3844,43 +3794,34 @@
|
|
|
3844
3794
|
"relativePath": [
|
|
3845
3795
|
"dist",
|
|
3846
3796
|
"commands",
|
|
3847
|
-
"
|
|
3848
|
-
"
|
|
3797
|
+
"documents",
|
|
3798
|
+
"query.js"
|
|
3849
3799
|
]
|
|
3850
3800
|
},
|
|
3851
|
-
"
|
|
3801
|
+
"documents:validate": {
|
|
3852
3802
|
"aliases": [],
|
|
3853
|
-
"args": {
|
|
3854
|
-
|
|
3855
|
-
"description": "Name of the dataset to export",
|
|
3856
|
-
"name": "name"
|
|
3857
|
-
},
|
|
3858
|
-
"destination": {
|
|
3859
|
-
"description": "Output destination file path",
|
|
3860
|
-
"name": "destination"
|
|
3861
|
-
}
|
|
3862
|
-
},
|
|
3863
|
-
"description": "Export a dataset to a local gzipped tarball. Assets returning 401, 403, or 404 are excluded from the export.",
|
|
3803
|
+
"args": {},
|
|
3804
|
+
"description": "Validate documents in a dataset against the studio schema",
|
|
3864
3805
|
"examples": [
|
|
3865
3806
|
{
|
|
3866
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3867
|
-
"description": "
|
|
3807
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3808
|
+
"description": "Validates all documents in a Sanity project with more than one workspace"
|
|
3868
3809
|
},
|
|
3869
3810
|
{
|
|
3870
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3871
|
-
"description": "
|
|
3811
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default --dataset staging",
|
|
3812
|
+
"description": "Override the dataset specified in the workspace"
|
|
3872
3813
|
},
|
|
3873
3814
|
{
|
|
3874
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3875
|
-
"description": "
|
|
3815
|
+
"command": "<%= config.bin %> <%= command.id %> --yes > report.txt",
|
|
3816
|
+
"description": "Save the results of the report into a file"
|
|
3876
3817
|
},
|
|
3877
3818
|
{
|
|
3878
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3879
|
-
"description": "
|
|
3819
|
+
"command": "<%= config.bin %> <%= command.id %> --level info",
|
|
3820
|
+
"description": "Report out info level validation markers too"
|
|
3880
3821
|
},
|
|
3881
3822
|
{
|
|
3882
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3883
|
-
"description": "
|
|
3823
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
|
|
3824
|
+
"description": "Validate documents in a specific project and dataset"
|
|
3884
3825
|
}
|
|
3885
3826
|
],
|
|
3886
3827
|
"flags": {
|
|
@@ -3890,264 +3831,289 @@
|
|
|
3890
3831
|
],
|
|
3891
3832
|
"char": "p",
|
|
3892
3833
|
"deprecateAliases": true,
|
|
3893
|
-
"description": "
|
|
3894
|
-
"helpGroup": "OVERRIDE",
|
|
3834
|
+
"description": "Override the project ID used. By default, this is derived from the given workspace",
|
|
3895
3835
|
"name": "project",
|
|
3896
3836
|
"hasDynamicHelp": false,
|
|
3897
3837
|
"helpValue": "<id>",
|
|
3898
3838
|
"multiple": false,
|
|
3899
3839
|
"type": "option"
|
|
3900
3840
|
},
|
|
3901
|
-
"
|
|
3902
|
-
"
|
|
3903
|
-
"
|
|
3904
|
-
"
|
|
3841
|
+
"dataset": {
|
|
3842
|
+
"char": "d",
|
|
3843
|
+
"description": "Override the dataset used. By default, this is derived from the given workspace",
|
|
3844
|
+
"name": "dataset",
|
|
3905
3845
|
"hasDynamicHelp": false,
|
|
3846
|
+
"helpValue": "<name>",
|
|
3906
3847
|
"multiple": false,
|
|
3907
3848
|
"type": "option"
|
|
3908
3849
|
},
|
|
3909
|
-
"
|
|
3910
|
-
"description": "
|
|
3911
|
-
"name": "
|
|
3912
|
-
"
|
|
3850
|
+
"file": {
|
|
3851
|
+
"description": "Path to an NDJSON file or tar archive containing an NDJSON file (optionally gzip-compressed)",
|
|
3852
|
+
"name": "file",
|
|
3853
|
+
"hasDynamicHelp": false,
|
|
3854
|
+
"multiple": false,
|
|
3855
|
+
"type": "option"
|
|
3856
|
+
},
|
|
3857
|
+
"format": {
|
|
3858
|
+
"description": "The output format used to print the found validation markers and report progress",
|
|
3859
|
+
"name": "format",
|
|
3913
3860
|
"hasDynamicHelp": false,
|
|
3914
3861
|
"multiple": false,
|
|
3915
3862
|
"options": [
|
|
3916
|
-
"
|
|
3917
|
-
"
|
|
3863
|
+
"json",
|
|
3864
|
+
"ndjson",
|
|
3865
|
+
"pretty"
|
|
3918
3866
|
],
|
|
3919
3867
|
"type": "option"
|
|
3920
3868
|
},
|
|
3921
|
-
"
|
|
3922
|
-
"description": "
|
|
3923
|
-
"name": "
|
|
3924
|
-
"
|
|
3925
|
-
"
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
"no-drafts": {
|
|
3934
|
-
"description": "Export only published versions of documents",
|
|
3935
|
-
"name": "no-drafts",
|
|
3936
|
-
"allowNo": false,
|
|
3937
|
-
"type": "boolean"
|
|
3938
|
-
},
|
|
3939
|
-
"no-strict-asset-verification": {
|
|
3940
|
-
"description": "Do not abort the export when an asset fails hash or content-length verification",
|
|
3941
|
-
"name": "no-strict-asset-verification",
|
|
3942
|
-
"allowNo": false,
|
|
3943
|
-
"type": "boolean"
|
|
3869
|
+
"level": {
|
|
3870
|
+
"description": "The minimum level reported. Defaults to warning",
|
|
3871
|
+
"name": "level",
|
|
3872
|
+
"default": "warning",
|
|
3873
|
+
"hasDynamicHelp": false,
|
|
3874
|
+
"multiple": false,
|
|
3875
|
+
"options": [
|
|
3876
|
+
"error",
|
|
3877
|
+
"warning",
|
|
3878
|
+
"info"
|
|
3879
|
+
],
|
|
3880
|
+
"type": "option"
|
|
3944
3881
|
},
|
|
3945
|
-
"
|
|
3946
|
-
"description": "
|
|
3947
|
-
"name": "
|
|
3948
|
-
"
|
|
3949
|
-
"
|
|
3882
|
+
"max-custom-validation-concurrency": {
|
|
3883
|
+
"description": "Specify how many custom validators can run concurrently",
|
|
3884
|
+
"name": "max-custom-validation-concurrency",
|
|
3885
|
+
"default": 5,
|
|
3886
|
+
"hasDynamicHelp": false,
|
|
3887
|
+
"multiple": false,
|
|
3888
|
+
"type": "option"
|
|
3950
3889
|
},
|
|
3951
|
-
"
|
|
3952
|
-
"description": "
|
|
3953
|
-
"name": "
|
|
3954
|
-
"
|
|
3955
|
-
"
|
|
3890
|
+
"max-fetch-concurrency": {
|
|
3891
|
+
"description": "Specify how many `client.fetch` requests are allowed to run concurrently",
|
|
3892
|
+
"name": "max-fetch-concurrency",
|
|
3893
|
+
"default": 25,
|
|
3894
|
+
"hasDynamicHelp": false,
|
|
3895
|
+
"multiple": false,
|
|
3896
|
+
"type": "option"
|
|
3956
3897
|
},
|
|
3957
|
-
"
|
|
3958
|
-
"description": "
|
|
3959
|
-
"name": "
|
|
3898
|
+
"workspace": {
|
|
3899
|
+
"description": "The name of the workspace to use when downloading and validating all documents",
|
|
3900
|
+
"name": "workspace",
|
|
3960
3901
|
"hasDynamicHelp": false,
|
|
3961
3902
|
"multiple": false,
|
|
3962
3903
|
"type": "option"
|
|
3904
|
+
},
|
|
3905
|
+
"yes": {
|
|
3906
|
+
"char": "y",
|
|
3907
|
+
"description": "Skips the first confirmation prompt",
|
|
3908
|
+
"name": "yes",
|
|
3909
|
+
"allowNo": false,
|
|
3910
|
+
"type": "boolean"
|
|
3963
3911
|
}
|
|
3964
3912
|
},
|
|
3965
3913
|
"hasDynamicHelp": false,
|
|
3966
3914
|
"hiddenAliases": [
|
|
3967
|
-
"
|
|
3915
|
+
"document:validate"
|
|
3968
3916
|
],
|
|
3969
|
-
"id": "
|
|
3917
|
+
"id": "documents:validate",
|
|
3970
3918
|
"pluginAlias": "@sanity/cli",
|
|
3971
3919
|
"pluginName": "@sanity/cli",
|
|
3972
3920
|
"pluginType": "core",
|
|
3973
3921
|
"strict": true,
|
|
3922
|
+
"telemetry": {
|
|
3923
|
+
"redactedFlags": [
|
|
3924
|
+
{
|
|
3925
|
+
"canonical": "--file",
|
|
3926
|
+
"flags": [
|
|
3927
|
+
"--file"
|
|
3928
|
+
]
|
|
3929
|
+
}
|
|
3930
|
+
]
|
|
3931
|
+
},
|
|
3974
3932
|
"isESM": true,
|
|
3975
3933
|
"relativePath": [
|
|
3976
3934
|
"dist",
|
|
3977
3935
|
"commands",
|
|
3978
|
-
"
|
|
3979
|
-
"
|
|
3936
|
+
"documents",
|
|
3937
|
+
"validate.js"
|
|
3980
3938
|
]
|
|
3981
|
-
},
|
|
3982
|
-
"
|
|
3983
|
-
"aliases": [],
|
|
3984
|
-
"args": {
|
|
3985
|
-
|
|
3986
|
-
"description": "Source file (use \"-\" for stdin)",
|
|
3987
|
-
"name": "source",
|
|
3988
|
-
"required": true
|
|
3989
|
-
},
|
|
3990
|
-
"targetDataset": {
|
|
3991
|
-
"description": "Target dataset (prefer --dataset flag instead)",
|
|
3992
|
-
"name": "targetDataset",
|
|
3993
|
-
"required": false
|
|
3994
|
-
}
|
|
3995
|
-
},
|
|
3996
|
-
"description": "Import documents to a Sanity dataset",
|
|
3939
|
+
},
|
|
3940
|
+
"graphql:deploy": {
|
|
3941
|
+
"aliases": [],
|
|
3942
|
+
"args": {},
|
|
3943
|
+
"description": "Deploy a GraphQL API from the current Sanity schema",
|
|
3997
3944
|
"examples": [
|
|
3998
3945
|
{
|
|
3999
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4000
|
-
"description": "
|
|
3946
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
3947
|
+
"description": "Deploy all defined GraphQL APIs"
|
|
4001
3948
|
},
|
|
4002
3949
|
{
|
|
4003
|
-
"command": "
|
|
4004
|
-
"description": "
|
|
3950
|
+
"command": "<%= config.bin %> <%= command.id %> --dry-run",
|
|
3951
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
|
|
4005
3952
|
},
|
|
4006
3953
|
{
|
|
4007
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4008
|
-
"description": "
|
|
3954
|
+
"command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
|
|
3955
|
+
"description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
|
|
4009
3956
|
},
|
|
4010
3957
|
{
|
|
4011
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4012
|
-
"description": "
|
|
3958
|
+
"command": "<%= config.bin %> <%= command.id %> --playground",
|
|
3959
|
+
"description": "Deploy all defined GraphQL APIs, overriding any playground setting"
|
|
4013
3960
|
}
|
|
4014
3961
|
],
|
|
4015
3962
|
"flags": {
|
|
4016
|
-
"
|
|
4017
|
-
"description": "
|
|
4018
|
-
"name": "
|
|
4019
|
-
"
|
|
4020
|
-
"
|
|
3963
|
+
"api": {
|
|
3964
|
+
"description": "Only deploy API with this ID (can be specified multiple times)",
|
|
3965
|
+
"name": "api",
|
|
3966
|
+
"hasDynamicHelp": false,
|
|
3967
|
+
"multiple": true,
|
|
3968
|
+
"type": "option"
|
|
4021
3969
|
},
|
|
4022
|
-
"
|
|
4023
|
-
"
|
|
4024
|
-
"
|
|
4025
|
-
"
|
|
4026
|
-
"
|
|
3970
|
+
"dataset": {
|
|
3971
|
+
"char": "d",
|
|
3972
|
+
"description": "Deploy API for the given dataset",
|
|
3973
|
+
"name": "dataset",
|
|
3974
|
+
"hasDynamicHelp": false,
|
|
3975
|
+
"helpValue": "<name>",
|
|
3976
|
+
"multiple": false,
|
|
3977
|
+
"type": "option"
|
|
4027
3978
|
},
|
|
4028
|
-
"
|
|
4029
|
-
"description": "
|
|
4030
|
-
"name": "
|
|
3979
|
+
"dry-run": {
|
|
3980
|
+
"description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
|
|
3981
|
+
"name": "dry-run",
|
|
4031
3982
|
"allowNo": false,
|
|
4032
3983
|
"type": "boolean"
|
|
4033
3984
|
},
|
|
4034
|
-
"
|
|
4035
|
-
"description": "
|
|
4036
|
-
"name": "
|
|
3985
|
+
"force": {
|
|
3986
|
+
"description": "Deploy API without confirming breaking changes",
|
|
3987
|
+
"name": "force",
|
|
4037
3988
|
"allowNo": false,
|
|
4038
3989
|
"type": "boolean"
|
|
4039
3990
|
},
|
|
4040
|
-
"
|
|
4041
|
-
"description": "
|
|
4042
|
-
"name": "
|
|
3991
|
+
"generation": {
|
|
3992
|
+
"description": "API generation to deploy (defaults to \"gen3\")",
|
|
3993
|
+
"name": "generation",
|
|
4043
3994
|
"hasDynamicHelp": false,
|
|
4044
3995
|
"multiple": false,
|
|
3996
|
+
"options": [
|
|
3997
|
+
"gen1",
|
|
3998
|
+
"gen2",
|
|
3999
|
+
"gen3"
|
|
4000
|
+
],
|
|
4045
4001
|
"type": "option"
|
|
4046
4002
|
},
|
|
4047
|
-
"
|
|
4048
|
-
"
|
|
4049
|
-
"
|
|
4050
|
-
"
|
|
4003
|
+
"non-null-document-fields": {
|
|
4004
|
+
"description": "Use non-null document fields (_id, _type etc)",
|
|
4005
|
+
"name": "non-null-document-fields",
|
|
4006
|
+
"allowNo": false,
|
|
4007
|
+
"type": "boolean"
|
|
4008
|
+
},
|
|
4009
|
+
"playground": {
|
|
4010
|
+
"description": "Enable GraphQL playground for easier debugging",
|
|
4011
|
+
"name": "playground",
|
|
4012
|
+
"allowNo": true,
|
|
4013
|
+
"type": "boolean"
|
|
4014
|
+
},
|
|
4015
|
+
"tag": {
|
|
4016
|
+
"description": "Deploy API(s) to given tag (defaults to \"default\")",
|
|
4017
|
+
"name": "tag",
|
|
4051
4018
|
"hasDynamicHelp": false,
|
|
4052
|
-
"helpValue": "<name>",
|
|
4053
4019
|
"multiple": false,
|
|
4054
4020
|
"type": "option"
|
|
4055
4021
|
},
|
|
4056
|
-
"
|
|
4057
|
-
"description": "
|
|
4058
|
-
"
|
|
4059
|
-
"replace"
|
|
4060
|
-
],
|
|
4061
|
-
"name": "missing",
|
|
4022
|
+
"with-union-cache": {
|
|
4023
|
+
"description": "Cache union types (faster for schemas with many self-references)",
|
|
4024
|
+
"name": "with-union-cache",
|
|
4062
4025
|
"allowNo": false,
|
|
4063
4026
|
"type": "boolean"
|
|
4027
|
+
}
|
|
4028
|
+
},
|
|
4029
|
+
"hasDynamicHelp": false,
|
|
4030
|
+
"hiddenAliases": [],
|
|
4031
|
+
"id": "graphql:deploy",
|
|
4032
|
+
"pluginAlias": "@sanity/cli",
|
|
4033
|
+
"pluginName": "@sanity/cli",
|
|
4034
|
+
"pluginType": "core",
|
|
4035
|
+
"strict": true,
|
|
4036
|
+
"isESM": true,
|
|
4037
|
+
"relativePath": [
|
|
4038
|
+
"dist",
|
|
4039
|
+
"commands",
|
|
4040
|
+
"graphql",
|
|
4041
|
+
"deploy.js"
|
|
4042
|
+
]
|
|
4043
|
+
},
|
|
4044
|
+
"graphql:list": {
|
|
4045
|
+
"aliases": [],
|
|
4046
|
+
"args": {},
|
|
4047
|
+
"description": "List deployed GraphQL endpoints for the project",
|
|
4048
|
+
"examples": [
|
|
4049
|
+
{
|
|
4050
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4051
|
+
"description": "List GraphQL endpoints for the project"
|
|
4064
4052
|
},
|
|
4053
|
+
{
|
|
4054
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
4055
|
+
"description": "List GraphQL endpoints for a specific project"
|
|
4056
|
+
}
|
|
4057
|
+
],
|
|
4058
|
+
"flags": {
|
|
4065
4059
|
"project": {
|
|
4066
4060
|
"aliases": [
|
|
4067
4061
|
"project-id"
|
|
4068
4062
|
],
|
|
4069
4063
|
"char": "p",
|
|
4070
4064
|
"deprecateAliases": true,
|
|
4071
|
-
"description": "Project ID to
|
|
4065
|
+
"description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
|
|
4072
4066
|
"helpGroup": "OVERRIDE",
|
|
4073
4067
|
"name": "project",
|
|
4074
4068
|
"hasDynamicHelp": false,
|
|
4075
4069
|
"helpValue": "<id>",
|
|
4076
4070
|
"multiple": false,
|
|
4077
4071
|
"type": "option"
|
|
4078
|
-
},
|
|
4079
|
-
"replace": {
|
|
4080
|
-
"description": "Replace documents with the same IDs",
|
|
4081
|
-
"exclusive": [
|
|
4082
|
-
"missing"
|
|
4083
|
-
],
|
|
4084
|
-
"name": "replace",
|
|
4085
|
-
"allowNo": false,
|
|
4086
|
-
"type": "boolean"
|
|
4087
|
-
},
|
|
4088
|
-
"replace-assets": {
|
|
4089
|
-
"description": "Skip reuse of existing assets",
|
|
4090
|
-
"name": "replace-assets",
|
|
4091
|
-
"allowNo": false,
|
|
4092
|
-
"type": "boolean"
|
|
4093
|
-
},
|
|
4094
|
-
"skip-cross-dataset-references": {
|
|
4095
|
-
"description": "Skips references to other datasets",
|
|
4096
|
-
"name": "skip-cross-dataset-references",
|
|
4097
|
-
"allowNo": false,
|
|
4098
|
-
"type": "boolean"
|
|
4099
|
-
},
|
|
4100
|
-
"token": {
|
|
4101
|
-
"char": "t",
|
|
4102
|
-
"description": "Token to authenticate with",
|
|
4103
|
-
"env": "SANITY_IMPORT_TOKEN",
|
|
4104
|
-
"name": "token",
|
|
4105
|
-
"required": false,
|
|
4106
|
-
"hasDynamicHelp": false,
|
|
4107
|
-
"multiple": false,
|
|
4108
|
-
"type": "option"
|
|
4109
4072
|
}
|
|
4110
4073
|
},
|
|
4111
4074
|
"hasDynamicHelp": false,
|
|
4112
|
-
"hiddenAliases": [
|
|
4113
|
-
|
|
4114
|
-
],
|
|
4115
|
-
"id": "datasets:import",
|
|
4075
|
+
"hiddenAliases": [],
|
|
4076
|
+
"id": "graphql:list",
|
|
4116
4077
|
"pluginAlias": "@sanity/cli",
|
|
4117
4078
|
"pluginName": "@sanity/cli",
|
|
4118
4079
|
"pluginType": "core",
|
|
4119
4080
|
"strict": true,
|
|
4120
|
-
"telemetry": {
|
|
4121
|
-
"redactedFlags": [
|
|
4122
|
-
{
|
|
4123
|
-
"canonical": "--token",
|
|
4124
|
-
"flags": [
|
|
4125
|
-
"--token",
|
|
4126
|
-
"-t"
|
|
4127
|
-
]
|
|
4128
|
-
}
|
|
4129
|
-
]
|
|
4130
|
-
},
|
|
4131
4081
|
"isESM": true,
|
|
4132
4082
|
"relativePath": [
|
|
4133
4083
|
"dist",
|
|
4134
4084
|
"commands",
|
|
4135
|
-
"
|
|
4136
|
-
"
|
|
4085
|
+
"graphql",
|
|
4086
|
+
"list.js"
|
|
4137
4087
|
]
|
|
4138
4088
|
},
|
|
4139
|
-
"
|
|
4089
|
+
"graphql:undeploy": {
|
|
4140
4090
|
"aliases": [],
|
|
4141
4091
|
"args": {},
|
|
4142
|
-
"description": "
|
|
4092
|
+
"description": "Remove a deployed GraphQL API",
|
|
4143
4093
|
"examples": [
|
|
4144
4094
|
{
|
|
4145
4095
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4146
|
-
"description": "
|
|
4096
|
+
"description": "Undeploy GraphQL API for current project and dataset"
|
|
4147
4097
|
},
|
|
4148
4098
|
{
|
|
4149
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4150
|
-
"description": "
|
|
4099
|
+
"command": "<%= config.bin %> <%= command.id %> --api ios",
|
|
4100
|
+
"description": "Undeploy API with ID \"ios\""
|
|
4101
|
+
},
|
|
4102
|
+
{
|
|
4103
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging",
|
|
4104
|
+
"description": "Undeploy GraphQL API for staging dataset"
|
|
4105
|
+
},
|
|
4106
|
+
{
|
|
4107
|
+
"command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
|
|
4108
|
+
"description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
"command": "<%= config.bin %> <%= command.id %> --force",
|
|
4112
|
+
"description": "Undeploy GraphQL API without confirmation prompt"
|
|
4113
|
+
},
|
|
4114
|
+
{
|
|
4115
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123 --dataset production",
|
|
4116
|
+
"description": "Undeploy GraphQL API for a specific project and dataset"
|
|
4151
4117
|
}
|
|
4152
4118
|
],
|
|
4153
4119
|
"flags": {
|
|
@@ -4157,20 +4123,54 @@
|
|
|
4157
4123
|
],
|
|
4158
4124
|
"char": "p",
|
|
4159
4125
|
"deprecateAliases": true,
|
|
4160
|
-
"description": "Project ID to
|
|
4126
|
+
"description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
|
|
4161
4127
|
"helpGroup": "OVERRIDE",
|
|
4162
4128
|
"name": "project",
|
|
4163
4129
|
"hasDynamicHelp": false,
|
|
4164
4130
|
"helpValue": "<id>",
|
|
4165
4131
|
"multiple": false,
|
|
4166
4132
|
"type": "option"
|
|
4133
|
+
},
|
|
4134
|
+
"api": {
|
|
4135
|
+
"description": "Undeploy API with this ID",
|
|
4136
|
+
"exclusive": [
|
|
4137
|
+
"project"
|
|
4138
|
+
],
|
|
4139
|
+
"name": "api",
|
|
4140
|
+
"required": false,
|
|
4141
|
+
"hasDynamicHelp": false,
|
|
4142
|
+
"multiple": false,
|
|
4143
|
+
"type": "option"
|
|
4144
|
+
},
|
|
4145
|
+
"dataset": {
|
|
4146
|
+
"char": "d",
|
|
4147
|
+
"description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
|
|
4148
|
+
"helpGroup": "OVERRIDE",
|
|
4149
|
+
"name": "dataset",
|
|
4150
|
+
"hasDynamicHelp": false,
|
|
4151
|
+
"helpValue": "<name>",
|
|
4152
|
+
"multiple": false,
|
|
4153
|
+
"type": "option"
|
|
4154
|
+
},
|
|
4155
|
+
"force": {
|
|
4156
|
+
"description": "Skip confirmation prompt",
|
|
4157
|
+
"name": "force",
|
|
4158
|
+
"allowNo": false,
|
|
4159
|
+
"type": "boolean"
|
|
4160
|
+
},
|
|
4161
|
+
"tag": {
|
|
4162
|
+
"description": "Tag to undeploy GraphQL API from",
|
|
4163
|
+
"name": "tag",
|
|
4164
|
+
"required": false,
|
|
4165
|
+
"default": "default",
|
|
4166
|
+
"hasDynamicHelp": false,
|
|
4167
|
+
"multiple": false,
|
|
4168
|
+
"type": "option"
|
|
4167
4169
|
}
|
|
4168
4170
|
},
|
|
4169
4171
|
"hasDynamicHelp": false,
|
|
4170
|
-
"hiddenAliases": [
|
|
4171
|
-
|
|
4172
|
-
],
|
|
4173
|
-
"id": "datasets:list",
|
|
4172
|
+
"hiddenAliases": [],
|
|
4173
|
+
"id": "graphql:undeploy",
|
|
4174
4174
|
"pluginAlias": "@sanity/cli",
|
|
4175
4175
|
"pluginName": "@sanity/cli",
|
|
4176
4176
|
"pluginType": "core",
|
|
@@ -4179,8 +4179,8 @@
|
|
|
4179
4179
|
"relativePath": [
|
|
4180
4180
|
"dist",
|
|
4181
4181
|
"commands",
|
|
4182
|
-
"
|
|
4183
|
-
"
|
|
4182
|
+
"graphql",
|
|
4183
|
+
"undeploy.js"
|
|
4184
4184
|
]
|
|
4185
4185
|
},
|
|
4186
4186
|
"hooks:attempt": {
|
|
@@ -4503,7 +4503,7 @@
|
|
|
4503
4503
|
"mcp:configure": {
|
|
4504
4504
|
"aliases": [],
|
|
4505
4505
|
"args": {},
|
|
4506
|
-
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline,
|
|
4506
|
+
"description": "Configure Sanity MCP server for AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, MCPorter, OpenCode, VS Code, VS Code Insiders, Zed)",
|
|
4507
4507
|
"examples": [
|
|
4508
4508
|
{
|
|
4509
4509
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
@@ -5778,32 +5778,6 @@
|
|
|
5778
5778
|
"unclaimed.js"
|
|
5779
5779
|
]
|
|
5780
5780
|
},
|
|
5781
|
-
"skills:install": {
|
|
5782
|
-
"aliases": [],
|
|
5783
|
-
"args": {},
|
|
5784
|
-
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Cline CLI, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
5785
|
-
"examples": [
|
|
5786
|
-
{
|
|
5787
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
5788
|
-
"description": "Install Sanity agent skills for detected AI editors"
|
|
5789
|
-
}
|
|
5790
|
-
],
|
|
5791
|
-
"flags": {},
|
|
5792
|
-
"hasDynamicHelp": false,
|
|
5793
|
-
"hiddenAliases": [],
|
|
5794
|
-
"id": "skills:install",
|
|
5795
|
-
"pluginAlias": "@sanity/cli",
|
|
5796
|
-
"pluginName": "@sanity/cli",
|
|
5797
|
-
"pluginType": "core",
|
|
5798
|
-
"strict": true,
|
|
5799
|
-
"isESM": true,
|
|
5800
|
-
"relativePath": [
|
|
5801
|
-
"dist",
|
|
5802
|
-
"commands",
|
|
5803
|
-
"skills",
|
|
5804
|
-
"install.js"
|
|
5805
|
-
]
|
|
5806
|
-
},
|
|
5807
5781
|
"schemas:delete": {
|
|
5808
5782
|
"aliases": [],
|
|
5809
5783
|
"args": {},
|
|
@@ -6279,6 +6253,32 @@
|
|
|
6279
6253
|
"validate.js"
|
|
6280
6254
|
]
|
|
6281
6255
|
},
|
|
6256
|
+
"skills:install": {
|
|
6257
|
+
"aliases": [],
|
|
6258
|
+
"args": {},
|
|
6259
|
+
"description": "Install Sanity agent skills for detected AI editors (Antigravity, Claude Code, Cline, Codex CLI, Cursor, Gemini CLI, GitHub Copilot CLI, OpenCode, VS Code, VS Code Insiders)",
|
|
6260
|
+
"examples": [
|
|
6261
|
+
{
|
|
6262
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6263
|
+
"description": "Install Sanity agent skills for detected AI editors"
|
|
6264
|
+
}
|
|
6265
|
+
],
|
|
6266
|
+
"flags": {},
|
|
6267
|
+
"hasDynamicHelp": false,
|
|
6268
|
+
"hiddenAliases": [],
|
|
6269
|
+
"id": "skills:install",
|
|
6270
|
+
"pluginAlias": "@sanity/cli",
|
|
6271
|
+
"pluginName": "@sanity/cli",
|
|
6272
|
+
"pluginType": "core",
|
|
6273
|
+
"strict": true,
|
|
6274
|
+
"isESM": true,
|
|
6275
|
+
"relativePath": [
|
|
6276
|
+
"dist",
|
|
6277
|
+
"commands",
|
|
6278
|
+
"skills",
|
|
6279
|
+
"install.js"
|
|
6280
|
+
]
|
|
6281
|
+
},
|
|
6282
6282
|
"telemetry:disable": {
|
|
6283
6283
|
"aliases": [],
|
|
6284
6284
|
"args": {},
|
|
@@ -6340,11 +6340,224 @@
|
|
|
6340
6340
|
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
6341
6341
|
"description": "Check telemetry status for your account"
|
|
6342
6342
|
}
|
|
6343
|
-
],
|
|
6344
|
-
"flags": {},
|
|
6343
|
+
],
|
|
6344
|
+
"flags": {},
|
|
6345
|
+
"hasDynamicHelp": false,
|
|
6346
|
+
"hiddenAliases": [],
|
|
6347
|
+
"id": "telemetry:status",
|
|
6348
|
+
"pluginAlias": "@sanity/cli",
|
|
6349
|
+
"pluginName": "@sanity/cli",
|
|
6350
|
+
"pluginType": "core",
|
|
6351
|
+
"strict": true,
|
|
6352
|
+
"isESM": true,
|
|
6353
|
+
"relativePath": [
|
|
6354
|
+
"dist",
|
|
6355
|
+
"commands",
|
|
6356
|
+
"telemetry",
|
|
6357
|
+
"status.js"
|
|
6358
|
+
]
|
|
6359
|
+
},
|
|
6360
|
+
"typegen:generate": {
|
|
6361
|
+
"aliases": [],
|
|
6362
|
+
"args": {},
|
|
6363
|
+
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
6364
|
+
"examples": [
|
|
6365
|
+
{
|
|
6366
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6367
|
+
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6368
|
+
}
|
|
6369
|
+
],
|
|
6370
|
+
"flags": {
|
|
6371
|
+
"config-path": {
|
|
6372
|
+
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
6373
|
+
"name": "config-path",
|
|
6374
|
+
"hasDynamicHelp": false,
|
|
6375
|
+
"multiple": false,
|
|
6376
|
+
"type": "option"
|
|
6377
|
+
},
|
|
6378
|
+
"watch": {
|
|
6379
|
+
"description": "[Default: false] Run the typegen in watch mode",
|
|
6380
|
+
"name": "watch",
|
|
6381
|
+
"allowNo": false,
|
|
6382
|
+
"type": "boolean"
|
|
6383
|
+
}
|
|
6384
|
+
},
|
|
6385
|
+
"hasDynamicHelp": false,
|
|
6386
|
+
"hiddenAliases": [
|
|
6387
|
+
"typegen:generate"
|
|
6388
|
+
],
|
|
6389
|
+
"id": "typegen:generate",
|
|
6390
|
+
"pluginAlias": "@sanity/cli",
|
|
6391
|
+
"pluginName": "@sanity/cli",
|
|
6392
|
+
"pluginType": "core",
|
|
6393
|
+
"strict": true,
|
|
6394
|
+
"telemetry": {
|
|
6395
|
+
"redactedFlags": [
|
|
6396
|
+
{
|
|
6397
|
+
"canonical": "--config-path",
|
|
6398
|
+
"flags": [
|
|
6399
|
+
"--config-path"
|
|
6400
|
+
]
|
|
6401
|
+
}
|
|
6402
|
+
]
|
|
6403
|
+
},
|
|
6404
|
+
"isESM": true,
|
|
6405
|
+
"relativePath": [
|
|
6406
|
+
"dist",
|
|
6407
|
+
"commands",
|
|
6408
|
+
"typegen",
|
|
6409
|
+
"generate.js"
|
|
6410
|
+
]
|
|
6411
|
+
},
|
|
6412
|
+
"users:invite": {
|
|
6413
|
+
"aliases": [],
|
|
6414
|
+
"args": {
|
|
6415
|
+
"email": {
|
|
6416
|
+
"description": "Email address to invite",
|
|
6417
|
+
"name": "email",
|
|
6418
|
+
"required": false
|
|
6419
|
+
}
|
|
6420
|
+
},
|
|
6421
|
+
"description": "Invite a new user to the project",
|
|
6422
|
+
"examples": [
|
|
6423
|
+
{
|
|
6424
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6425
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
6426
|
+
},
|
|
6427
|
+
{
|
|
6428
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6429
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
6430
|
+
},
|
|
6431
|
+
{
|
|
6432
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
6433
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
6434
|
+
},
|
|
6435
|
+
{
|
|
6436
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project abc123",
|
|
6437
|
+
"description": "Invite a user to a specific project"
|
|
6438
|
+
}
|
|
6439
|
+
],
|
|
6440
|
+
"flags": {
|
|
6441
|
+
"project": {
|
|
6442
|
+
"aliases": [
|
|
6443
|
+
"project-id"
|
|
6444
|
+
],
|
|
6445
|
+
"char": "p",
|
|
6446
|
+
"deprecateAliases": true,
|
|
6447
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6448
|
+
"helpGroup": "OVERRIDE",
|
|
6449
|
+
"name": "project",
|
|
6450
|
+
"hasDynamicHelp": false,
|
|
6451
|
+
"helpValue": "<id>",
|
|
6452
|
+
"multiple": false,
|
|
6453
|
+
"type": "option"
|
|
6454
|
+
},
|
|
6455
|
+
"role": {
|
|
6456
|
+
"description": "Role to invite the user as",
|
|
6457
|
+
"name": "role",
|
|
6458
|
+
"hasDynamicHelp": false,
|
|
6459
|
+
"multiple": false,
|
|
6460
|
+
"type": "option"
|
|
6461
|
+
}
|
|
6462
|
+
},
|
|
6463
|
+
"hasDynamicHelp": false,
|
|
6464
|
+
"hiddenAliases": [
|
|
6465
|
+
"user:invite"
|
|
6466
|
+
],
|
|
6467
|
+
"id": "users:invite",
|
|
6468
|
+
"pluginAlias": "@sanity/cli",
|
|
6469
|
+
"pluginName": "@sanity/cli",
|
|
6470
|
+
"pluginType": "core",
|
|
6471
|
+
"strict": true,
|
|
6472
|
+
"isESM": true,
|
|
6473
|
+
"relativePath": [
|
|
6474
|
+
"dist",
|
|
6475
|
+
"commands",
|
|
6476
|
+
"users",
|
|
6477
|
+
"invite.js"
|
|
6478
|
+
]
|
|
6479
|
+
},
|
|
6480
|
+
"users:list": {
|
|
6481
|
+
"aliases": [],
|
|
6482
|
+
"args": {},
|
|
6483
|
+
"description": "List project members",
|
|
6484
|
+
"examples": [
|
|
6485
|
+
{
|
|
6486
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
6487
|
+
"description": "List all users of the project"
|
|
6488
|
+
},
|
|
6489
|
+
{
|
|
6490
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6491
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6492
|
+
},
|
|
6493
|
+
{
|
|
6494
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
6495
|
+
"description": "List all users, sorted by role"
|
|
6496
|
+
},
|
|
6497
|
+
{
|
|
6498
|
+
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6499
|
+
"description": "List users for a specific project"
|
|
6500
|
+
}
|
|
6501
|
+
],
|
|
6502
|
+
"flags": {
|
|
6503
|
+
"project": {
|
|
6504
|
+
"aliases": [
|
|
6505
|
+
"project-id"
|
|
6506
|
+
],
|
|
6507
|
+
"char": "p",
|
|
6508
|
+
"deprecateAliases": true,
|
|
6509
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6510
|
+
"helpGroup": "OVERRIDE",
|
|
6511
|
+
"name": "project",
|
|
6512
|
+
"hasDynamicHelp": false,
|
|
6513
|
+
"helpValue": "<id>",
|
|
6514
|
+
"multiple": false,
|
|
6515
|
+
"type": "option"
|
|
6516
|
+
},
|
|
6517
|
+
"invitations": {
|
|
6518
|
+
"description": "Includes or excludes pending invitations",
|
|
6519
|
+
"name": "invitations",
|
|
6520
|
+
"allowNo": true,
|
|
6521
|
+
"type": "boolean"
|
|
6522
|
+
},
|
|
6523
|
+
"order": {
|
|
6524
|
+
"description": "Sort output ascending/descending",
|
|
6525
|
+
"name": "order",
|
|
6526
|
+
"default": "asc",
|
|
6527
|
+
"hasDynamicHelp": false,
|
|
6528
|
+
"multiple": false,
|
|
6529
|
+
"options": [
|
|
6530
|
+
"asc",
|
|
6531
|
+
"desc"
|
|
6532
|
+
],
|
|
6533
|
+
"type": "option"
|
|
6534
|
+
},
|
|
6535
|
+
"robots": {
|
|
6536
|
+
"description": "Includes or excludes robots (token users)",
|
|
6537
|
+
"name": "robots",
|
|
6538
|
+
"allowNo": true,
|
|
6539
|
+
"type": "boolean"
|
|
6540
|
+
},
|
|
6541
|
+
"sort": {
|
|
6542
|
+
"description": "Sort users by specified column",
|
|
6543
|
+
"name": "sort",
|
|
6544
|
+
"default": "date",
|
|
6545
|
+
"hasDynamicHelp": false,
|
|
6546
|
+
"multiple": false,
|
|
6547
|
+
"options": [
|
|
6548
|
+
"id",
|
|
6549
|
+
"name",
|
|
6550
|
+
"role",
|
|
6551
|
+
"date"
|
|
6552
|
+
],
|
|
6553
|
+
"type": "option"
|
|
6554
|
+
}
|
|
6555
|
+
},
|
|
6345
6556
|
"hasDynamicHelp": false,
|
|
6346
|
-
"hiddenAliases": [
|
|
6347
|
-
|
|
6557
|
+
"hiddenAliases": [
|
|
6558
|
+
"user:list"
|
|
6559
|
+
],
|
|
6560
|
+
"id": "users:list",
|
|
6348
6561
|
"pluginAlias": "@sanity/cli",
|
|
6349
6562
|
"pluginName": "@sanity/cli",
|
|
6350
6563
|
"pluginType": "core",
|
|
@@ -6353,8 +6566,8 @@
|
|
|
6353
6566
|
"relativePath": [
|
|
6354
6567
|
"dist",
|
|
6355
6568
|
"commands",
|
|
6356
|
-
"
|
|
6357
|
-
"
|
|
6569
|
+
"users",
|
|
6570
|
+
"list.js"
|
|
6358
6571
|
]
|
|
6359
6572
|
},
|
|
6360
6573
|
"tokens:create": {
|
|
@@ -6639,280 +6852,67 @@
|
|
|
6639
6852
|
},
|
|
6640
6853
|
"tokens:rotate": {
|
|
6641
6854
|
"aliases": [],
|
|
6642
|
-
"args": {},
|
|
6643
|
-
"description": "Rotate an API token, replacing its secret with a new one",
|
|
6644
|
-
"examples": [
|
|
6645
|
-
{
|
|
6646
|
-
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
|
|
6647
|
-
"description": "Rotate the token piped on standard input"
|
|
6648
|
-
},
|
|
6649
|
-
{
|
|
6650
|
-
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
6651
|
-
"description": "Rotate a token read from a file"
|
|
6652
|
-
},
|
|
6653
|
-
{
|
|
6654
|
-
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
|
|
6655
|
-
"description": "Output the rotated token as JSON"
|
|
6656
|
-
}
|
|
6657
|
-
],
|
|
6658
|
-
"flags": {
|
|
6659
|
-
"json": {
|
|
6660
|
-
"description": "Format output as json.",
|
|
6661
|
-
"helpGroup": "GLOBAL",
|
|
6662
|
-
"name": "json",
|
|
6663
|
-
"allowNo": false,
|
|
6664
|
-
"type": "boolean"
|
|
6665
|
-
},
|
|
6666
|
-
"token": {
|
|
6667
|
-
"char": "t",
|
|
6668
|
-
"description": "Token to rotate (prefer standard input to keep it out of shell history)",
|
|
6669
|
-
"name": "token",
|
|
6670
|
-
"hasDynamicHelp": false,
|
|
6671
|
-
"helpValue": "<token>",
|
|
6672
|
-
"multiple": false,
|
|
6673
|
-
"type": "option"
|
|
6674
|
-
}
|
|
6675
|
-
},
|
|
6676
|
-
"hasDynamicHelp": false,
|
|
6677
|
-
"hiddenAliases": [
|
|
6678
|
-
"token:rotate"
|
|
6679
|
-
],
|
|
6680
|
-
"id": "tokens:rotate",
|
|
6681
|
-
"pluginAlias": "@sanity/cli",
|
|
6682
|
-
"pluginName": "@sanity/cli",
|
|
6683
|
-
"pluginType": "core",
|
|
6684
|
-
"strict": true,
|
|
6685
|
-
"enableJsonFlag": true,
|
|
6686
|
-
"telemetry": {
|
|
6687
|
-
"redactedFlags": [
|
|
6688
|
-
{
|
|
6689
|
-
"canonical": "--token",
|
|
6690
|
-
"flags": [
|
|
6691
|
-
"--token",
|
|
6692
|
-
"-t"
|
|
6693
|
-
]
|
|
6694
|
-
}
|
|
6695
|
-
]
|
|
6696
|
-
},
|
|
6697
|
-
"isESM": true,
|
|
6698
|
-
"relativePath": [
|
|
6699
|
-
"dist",
|
|
6700
|
-
"commands",
|
|
6701
|
-
"tokens",
|
|
6702
|
-
"rotate.js"
|
|
6703
|
-
]
|
|
6704
|
-
},
|
|
6705
|
-
"typegen:generate": {
|
|
6706
|
-
"aliases": [],
|
|
6707
|
-
"args": {},
|
|
6708
|
-
"description": "Sanity TypeGen\n\nConfiguration:\nThis command can utilize configuration settings defined in a `sanity-typegen.json` file. These settings include:\n\n- \"path\": Specifies a glob pattern to locate your TypeScript or JavaScript files.\n Default: \"./src/**/*.{ts,tsx,js,jsx}\"\n\n- \"schema\": Defines the path to your Sanity schema file. This file should be generated using the `sanity schema extract` command.\n Default: \"schema.json\"\n\n- \"generates\": Indicates the path where the generated TypeScript type definitions will be saved.\n Default: \"./sanity.types.ts\"\n\nThe default configuration values listed above are used if not overridden in your `sanity-typegen.json` configuration file. To customize the behavior of the type generation, adjust these properties in the configuration file according to your project's needs.\n\nNote:\n- The `sanity schema extract` command is a prerequisite for extracting your Sanity Studio schema into a `schema.json` file, which is then used by the `sanity typegen generate` command to generate type definitions.\n- To generate types for several datasets, list them in `typegen.resources` in `sanity.cli.ts` (beta). Each resource uses its own `schema` file, or the schema bound to its dataset when `schema` is omitted. With `--watch`, a schema bound to a dataset is fetched once, when the watcher starts. Restart it after deploying a schema.",
|
|
6709
|
-
"examples": [
|
|
6710
|
-
{
|
|
6711
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6712
|
-
"description": "Generate TypeScript type definitions from a Sanity Studio schema extracted using the `sanity schema extract` command."
|
|
6713
|
-
}
|
|
6714
|
-
],
|
|
6715
|
-
"flags": {
|
|
6716
|
-
"config-path": {
|
|
6717
|
-
"description": "[Default: sanity-typegen.json] Specifies the path to the typegen configuration file. This file should be a JSON file that contains settings for the type generation process.",
|
|
6718
|
-
"name": "config-path",
|
|
6719
|
-
"hasDynamicHelp": false,
|
|
6720
|
-
"multiple": false,
|
|
6721
|
-
"type": "option"
|
|
6722
|
-
},
|
|
6723
|
-
"watch": {
|
|
6724
|
-
"description": "[Default: false] Run the typegen in watch mode",
|
|
6725
|
-
"name": "watch",
|
|
6726
|
-
"allowNo": false,
|
|
6727
|
-
"type": "boolean"
|
|
6728
|
-
}
|
|
6729
|
-
},
|
|
6730
|
-
"hasDynamicHelp": false,
|
|
6731
|
-
"hiddenAliases": [
|
|
6732
|
-
"typegen:generate"
|
|
6733
|
-
],
|
|
6734
|
-
"id": "typegen:generate",
|
|
6735
|
-
"pluginAlias": "@sanity/cli",
|
|
6736
|
-
"pluginName": "@sanity/cli",
|
|
6737
|
-
"pluginType": "core",
|
|
6738
|
-
"strict": true,
|
|
6739
|
-
"telemetry": {
|
|
6740
|
-
"redactedFlags": [
|
|
6741
|
-
{
|
|
6742
|
-
"canonical": "--config-path",
|
|
6743
|
-
"flags": [
|
|
6744
|
-
"--config-path"
|
|
6745
|
-
]
|
|
6746
|
-
}
|
|
6747
|
-
]
|
|
6748
|
-
},
|
|
6749
|
-
"isESM": true,
|
|
6750
|
-
"relativePath": [
|
|
6751
|
-
"dist",
|
|
6752
|
-
"commands",
|
|
6753
|
-
"typegen",
|
|
6754
|
-
"generate.js"
|
|
6755
|
-
]
|
|
6756
|
-
},
|
|
6757
|
-
"users:invite": {
|
|
6758
|
-
"aliases": [],
|
|
6759
|
-
"args": {
|
|
6760
|
-
"email": {
|
|
6761
|
-
"description": "Email address to invite",
|
|
6762
|
-
"name": "email",
|
|
6763
|
-
"required": false
|
|
6764
|
-
}
|
|
6765
|
-
},
|
|
6766
|
-
"description": "Invite a new user to the project",
|
|
6767
|
-
"examples": [
|
|
6768
|
-
{
|
|
6769
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6770
|
-
"description": "Invite a new user to the project (prompt for details)"
|
|
6771
|
-
},
|
|
6772
|
-
{
|
|
6773
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
6774
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
6775
|
-
},
|
|
6776
|
-
{
|
|
6777
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
6778
|
-
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
6779
|
-
},
|
|
6780
|
-
{
|
|
6781
|
-
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project abc123",
|
|
6782
|
-
"description": "Invite a user to a specific project"
|
|
6783
|
-
}
|
|
6784
|
-
],
|
|
6785
|
-
"flags": {
|
|
6786
|
-
"project": {
|
|
6787
|
-
"aliases": [
|
|
6788
|
-
"project-id"
|
|
6789
|
-
],
|
|
6790
|
-
"char": "p",
|
|
6791
|
-
"deprecateAliases": true,
|
|
6792
|
-
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
6793
|
-
"helpGroup": "OVERRIDE",
|
|
6794
|
-
"name": "project",
|
|
6795
|
-
"hasDynamicHelp": false,
|
|
6796
|
-
"helpValue": "<id>",
|
|
6797
|
-
"multiple": false,
|
|
6798
|
-
"type": "option"
|
|
6799
|
-
},
|
|
6800
|
-
"role": {
|
|
6801
|
-
"description": "Role to invite the user as",
|
|
6802
|
-
"name": "role",
|
|
6803
|
-
"hasDynamicHelp": false,
|
|
6804
|
-
"multiple": false,
|
|
6805
|
-
"type": "option"
|
|
6806
|
-
}
|
|
6807
|
-
},
|
|
6808
|
-
"hasDynamicHelp": false,
|
|
6809
|
-
"hiddenAliases": [
|
|
6810
|
-
"user:invite"
|
|
6811
|
-
],
|
|
6812
|
-
"id": "users:invite",
|
|
6813
|
-
"pluginAlias": "@sanity/cli",
|
|
6814
|
-
"pluginName": "@sanity/cli",
|
|
6815
|
-
"pluginType": "core",
|
|
6816
|
-
"strict": true,
|
|
6817
|
-
"isESM": true,
|
|
6818
|
-
"relativePath": [
|
|
6819
|
-
"dist",
|
|
6820
|
-
"commands",
|
|
6821
|
-
"users",
|
|
6822
|
-
"invite.js"
|
|
6823
|
-
]
|
|
6824
|
-
},
|
|
6825
|
-
"users:list": {
|
|
6826
|
-
"aliases": [],
|
|
6827
|
-
"args": {},
|
|
6828
|
-
"description": "List project members",
|
|
6829
|
-
"examples": [
|
|
6830
|
-
{
|
|
6831
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
6832
|
-
"description": "List all users of the project"
|
|
6833
|
-
},
|
|
6834
|
-
{
|
|
6835
|
-
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
6836
|
-
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
6837
|
-
},
|
|
6838
|
-
{
|
|
6839
|
-
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
6840
|
-
"description": "List all users, sorted by role"
|
|
6841
|
-
},
|
|
6842
|
-
{
|
|
6843
|
-
"command": "<%= config.bin %> <%= command.id %> --project abc123",
|
|
6844
|
-
"description": "List users for a specific project"
|
|
6845
|
-
}
|
|
6846
|
-
],
|
|
6847
|
-
"flags": {
|
|
6848
|
-
"project": {
|
|
6849
|
-
"aliases": [
|
|
6850
|
-
"project-id"
|
|
6851
|
-
],
|
|
6852
|
-
"char": "p",
|
|
6853
|
-
"deprecateAliases": true,
|
|
6854
|
-
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
6855
|
-
"helpGroup": "OVERRIDE",
|
|
6856
|
-
"name": "project",
|
|
6857
|
-
"hasDynamicHelp": false,
|
|
6858
|
-
"helpValue": "<id>",
|
|
6859
|
-
"multiple": false,
|
|
6860
|
-
"type": "option"
|
|
6861
|
-
},
|
|
6862
|
-
"invitations": {
|
|
6863
|
-
"description": "Includes or excludes pending invitations",
|
|
6864
|
-
"name": "invitations",
|
|
6865
|
-
"allowNo": true,
|
|
6866
|
-
"type": "boolean"
|
|
6867
|
-
},
|
|
6868
|
-
"order": {
|
|
6869
|
-
"description": "Sort output ascending/descending",
|
|
6870
|
-
"name": "order",
|
|
6871
|
-
"default": "asc",
|
|
6872
|
-
"hasDynamicHelp": false,
|
|
6873
|
-
"multiple": false,
|
|
6874
|
-
"options": [
|
|
6875
|
-
"asc",
|
|
6876
|
-
"desc"
|
|
6877
|
-
],
|
|
6878
|
-
"type": "option"
|
|
6855
|
+
"args": {},
|
|
6856
|
+
"description": "Rotate an API token, replacing its secret with a new one",
|
|
6857
|
+
"examples": [
|
|
6858
|
+
{
|
|
6859
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %>",
|
|
6860
|
+
"description": "Rotate the token piped on standard input"
|
|
6879
6861
|
},
|
|
6880
|
-
|
|
6881
|
-
"
|
|
6882
|
-
"
|
|
6883
|
-
|
|
6862
|
+
{
|
|
6863
|
+
"command": "<%= config.bin %> <%= command.id %> < token.txt",
|
|
6864
|
+
"description": "Rotate a token read from a file"
|
|
6865
|
+
},
|
|
6866
|
+
{
|
|
6867
|
+
"command": "echo \"$SANITY_TOKEN\" | <%= config.bin %> <%= command.id %> --json",
|
|
6868
|
+
"description": "Output the rotated token as JSON"
|
|
6869
|
+
}
|
|
6870
|
+
],
|
|
6871
|
+
"flags": {
|
|
6872
|
+
"json": {
|
|
6873
|
+
"description": "Format output as json.",
|
|
6874
|
+
"helpGroup": "GLOBAL",
|
|
6875
|
+
"name": "json",
|
|
6876
|
+
"allowNo": false,
|
|
6884
6877
|
"type": "boolean"
|
|
6885
6878
|
},
|
|
6886
|
-
"
|
|
6887
|
-
"
|
|
6888
|
-
"
|
|
6889
|
-
"
|
|
6879
|
+
"token": {
|
|
6880
|
+
"char": "t",
|
|
6881
|
+
"description": "Token to rotate (prefer standard input to keep it out of shell history)",
|
|
6882
|
+
"name": "token",
|
|
6890
6883
|
"hasDynamicHelp": false,
|
|
6884
|
+
"helpValue": "<token>",
|
|
6891
6885
|
"multiple": false,
|
|
6892
|
-
"options": [
|
|
6893
|
-
"id",
|
|
6894
|
-
"name",
|
|
6895
|
-
"role",
|
|
6896
|
-
"date"
|
|
6897
|
-
],
|
|
6898
6886
|
"type": "option"
|
|
6899
6887
|
}
|
|
6900
6888
|
},
|
|
6901
6889
|
"hasDynamicHelp": false,
|
|
6902
6890
|
"hiddenAliases": [
|
|
6903
|
-
"
|
|
6891
|
+
"token:rotate"
|
|
6904
6892
|
],
|
|
6905
|
-
"id": "
|
|
6893
|
+
"id": "tokens:rotate",
|
|
6906
6894
|
"pluginAlias": "@sanity/cli",
|
|
6907
6895
|
"pluginName": "@sanity/cli",
|
|
6908
6896
|
"pluginType": "core",
|
|
6909
6897
|
"strict": true,
|
|
6898
|
+
"enableJsonFlag": true,
|
|
6899
|
+
"telemetry": {
|
|
6900
|
+
"redactedFlags": [
|
|
6901
|
+
{
|
|
6902
|
+
"canonical": "--token",
|
|
6903
|
+
"flags": [
|
|
6904
|
+
"--token",
|
|
6905
|
+
"-t"
|
|
6906
|
+
]
|
|
6907
|
+
}
|
|
6908
|
+
]
|
|
6909
|
+
},
|
|
6910
6910
|
"isESM": true,
|
|
6911
6911
|
"relativePath": [
|
|
6912
6912
|
"dist",
|
|
6913
6913
|
"commands",
|
|
6914
|
-
"
|
|
6915
|
-
"
|
|
6914
|
+
"tokens",
|
|
6915
|
+
"rotate.js"
|
|
6916
6916
|
]
|
|
6917
6917
|
},
|
|
6918
6918
|
"context:documents:content": {
|
|
@@ -7177,15 +7177,212 @@
|
|
|
7177
7177
|
"required": true
|
|
7178
7178
|
}
|
|
7179
7179
|
},
|
|
7180
|
-
"description": "Returns a document with its conversion status and the chunks of its markdown. Entry citations point at a document's chunks.",
|
|
7180
|
+
"description": "Returns a document with its conversion status and the chunks of its markdown. Entry citations point at a document's chunks.",
|
|
7181
|
+
"examples": [
|
|
7182
|
+
{
|
|
7183
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <documentId>",
|
|
7184
|
+
"description": "Get a document"
|
|
7185
|
+
},
|
|
7186
|
+
{
|
|
7187
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <documentId> --json",
|
|
7188
|
+
"description": "Get a document, as JSON"
|
|
7189
|
+
}
|
|
7190
|
+
],
|
|
7191
|
+
"flags": {
|
|
7192
|
+
"json": {
|
|
7193
|
+
"description": "Format output as json.",
|
|
7194
|
+
"helpGroup": "GLOBAL",
|
|
7195
|
+
"name": "json",
|
|
7196
|
+
"allowNo": false,
|
|
7197
|
+
"type": "boolean"
|
|
7198
|
+
}
|
|
7199
|
+
},
|
|
7200
|
+
"hasDynamicHelp": false,
|
|
7201
|
+
"hiddenAliases": [],
|
|
7202
|
+
"id": "context:documents:get",
|
|
7203
|
+
"pluginAlias": "@sanity/cli",
|
|
7204
|
+
"pluginName": "@sanity/cli",
|
|
7205
|
+
"pluginType": "core",
|
|
7206
|
+
"strict": true,
|
|
7207
|
+
"summary": "Get a document",
|
|
7208
|
+
"enableJsonFlag": true,
|
|
7209
|
+
"telemetry": {
|
|
7210
|
+
"redactedFlags": []
|
|
7211
|
+
},
|
|
7212
|
+
"isESM": true,
|
|
7213
|
+
"relativePath": [
|
|
7214
|
+
"dist",
|
|
7215
|
+
"commands",
|
|
7216
|
+
"context",
|
|
7217
|
+
"documents",
|
|
7218
|
+
"get.js"
|
|
7219
|
+
]
|
|
7220
|
+
},
|
|
7221
|
+
"context:documents:list": {
|
|
7222
|
+
"aliases": [],
|
|
7223
|
+
"args": {
|
|
7224
|
+
"knowledgeBaseId": {
|
|
7225
|
+
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7226
|
+
"name": "knowledgeBaseId",
|
|
7227
|
+
"required": true
|
|
7228
|
+
}
|
|
7229
|
+
},
|
|
7230
|
+
"description": "Lists the documents in a knowledge base: the pages, dataset documents and files its sources yield, which builds read and cite. Results are cursor-paginated, and you can filter them by `source` and `state`.",
|
|
7231
|
+
"examples": [
|
|
7232
|
+
{
|
|
7233
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7234
|
+
"description": "List documents"
|
|
7235
|
+
},
|
|
7236
|
+
{
|
|
7237
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7238
|
+
"description": "List documents, as JSON"
|
|
7239
|
+
}
|
|
7240
|
+
],
|
|
7241
|
+
"flags": {
|
|
7242
|
+
"json": {
|
|
7243
|
+
"description": "Format output as json.",
|
|
7244
|
+
"helpGroup": "GLOBAL",
|
|
7245
|
+
"name": "json",
|
|
7246
|
+
"allowNo": false,
|
|
7247
|
+
"type": "boolean"
|
|
7248
|
+
},
|
|
7249
|
+
"limit": {
|
|
7250
|
+
"description": "The maximum number of items to return.",
|
|
7251
|
+
"name": "limit",
|
|
7252
|
+
"hasDynamicHelp": false,
|
|
7253
|
+
"multiple": false,
|
|
7254
|
+
"type": "option"
|
|
7255
|
+
},
|
|
7256
|
+
"source": {
|
|
7257
|
+
"description": "Return only the documents of this source.",
|
|
7258
|
+
"name": "source",
|
|
7259
|
+
"hasDynamicHelp": false,
|
|
7260
|
+
"multiple": false,
|
|
7261
|
+
"type": "option"
|
|
7262
|
+
},
|
|
7263
|
+
"state": {
|
|
7264
|
+
"description": "Return only documents in this state. Without it, `deleted` documents are left out.",
|
|
7265
|
+
"name": "state",
|
|
7266
|
+
"hasDynamicHelp": false,
|
|
7267
|
+
"multiple": false,
|
|
7268
|
+
"options": [
|
|
7269
|
+
"active",
|
|
7270
|
+
"missing",
|
|
7271
|
+
"deleted"
|
|
7272
|
+
],
|
|
7273
|
+
"type": "option"
|
|
7274
|
+
},
|
|
7275
|
+
"ids": {
|
|
7276
|
+
"description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
|
|
7277
|
+
"name": "ids",
|
|
7278
|
+
"hasDynamicHelp": false,
|
|
7279
|
+
"multiple": false,
|
|
7280
|
+
"type": "option"
|
|
7281
|
+
}
|
|
7282
|
+
},
|
|
7283
|
+
"hasDynamicHelp": false,
|
|
7284
|
+
"hiddenAliases": [],
|
|
7285
|
+
"id": "context:documents:list",
|
|
7286
|
+
"pluginAlias": "@sanity/cli",
|
|
7287
|
+
"pluginName": "@sanity/cli",
|
|
7288
|
+
"pluginType": "core",
|
|
7289
|
+
"strict": true,
|
|
7290
|
+
"summary": "List documents",
|
|
7291
|
+
"enableJsonFlag": true,
|
|
7292
|
+
"telemetry": {
|
|
7293
|
+
"redactedFlags": [
|
|
7294
|
+
{
|
|
7295
|
+
"canonical": "--source",
|
|
7296
|
+
"flags": [
|
|
7297
|
+
"--source"
|
|
7298
|
+
]
|
|
7299
|
+
},
|
|
7300
|
+
{
|
|
7301
|
+
"canonical": "--ids",
|
|
7302
|
+
"flags": [
|
|
7303
|
+
"--ids"
|
|
7304
|
+
]
|
|
7305
|
+
}
|
|
7306
|
+
]
|
|
7307
|
+
},
|
|
7308
|
+
"isESM": true,
|
|
7309
|
+
"relativePath": [
|
|
7310
|
+
"dist",
|
|
7311
|
+
"commands",
|
|
7312
|
+
"context",
|
|
7313
|
+
"documents",
|
|
7314
|
+
"list.js"
|
|
7315
|
+
]
|
|
7316
|
+
},
|
|
7317
|
+
"context:entries:get": {
|
|
7318
|
+
"aliases": [],
|
|
7319
|
+
"args": {
|
|
7320
|
+
"knowledgeBaseId": {
|
|
7321
|
+
"description": "Knowledge base ID",
|
|
7322
|
+
"name": "knowledgeBaseId",
|
|
7323
|
+
"required": true
|
|
7324
|
+
},
|
|
7325
|
+
"path": {
|
|
7326
|
+
"description": "Entry path, as listed by `sanity context entries list`",
|
|
7327
|
+
"name": "path",
|
|
7328
|
+
"required": true
|
|
7329
|
+
}
|
|
7330
|
+
},
|
|
7331
|
+
"description": "Get an entry and its content",
|
|
7332
|
+
"examples": [
|
|
7333
|
+
{
|
|
7334
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
7335
|
+
"description": "Print an entry and its content"
|
|
7336
|
+
},
|
|
7337
|
+
{
|
|
7338
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
7339
|
+
"description": "Output the entry, including citations, as JSON"
|
|
7340
|
+
}
|
|
7341
|
+
],
|
|
7342
|
+
"flags": {
|
|
7343
|
+
"json": {
|
|
7344
|
+
"description": "Format output as json.",
|
|
7345
|
+
"helpGroup": "GLOBAL",
|
|
7346
|
+
"name": "json",
|
|
7347
|
+
"allowNo": false,
|
|
7348
|
+
"type": "boolean"
|
|
7349
|
+
}
|
|
7350
|
+
},
|
|
7351
|
+
"hasDynamicHelp": false,
|
|
7352
|
+
"hiddenAliases": [],
|
|
7353
|
+
"id": "context:entries:get",
|
|
7354
|
+
"pluginAlias": "@sanity/cli",
|
|
7355
|
+
"pluginName": "@sanity/cli",
|
|
7356
|
+
"pluginType": "core",
|
|
7357
|
+
"strict": true,
|
|
7358
|
+
"enableJsonFlag": true,
|
|
7359
|
+
"isESM": true,
|
|
7360
|
+
"relativePath": [
|
|
7361
|
+
"dist",
|
|
7362
|
+
"commands",
|
|
7363
|
+
"context",
|
|
7364
|
+
"entries",
|
|
7365
|
+
"get.js"
|
|
7366
|
+
]
|
|
7367
|
+
},
|
|
7368
|
+
"context:entries:list": {
|
|
7369
|
+
"aliases": [],
|
|
7370
|
+
"args": {
|
|
7371
|
+
"knowledgeBaseId": {
|
|
7372
|
+
"description": "Knowledge base ID",
|
|
7373
|
+
"name": "knowledgeBaseId",
|
|
7374
|
+
"required": true
|
|
7375
|
+
}
|
|
7376
|
+
},
|
|
7377
|
+
"description": "List the entries a knowledge base build produced",
|
|
7181
7378
|
"examples": [
|
|
7182
7379
|
{
|
|
7183
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7184
|
-
"description": "
|
|
7380
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
7381
|
+
"description": "List all entries for a knowledge base"
|
|
7185
7382
|
},
|
|
7186
7383
|
{
|
|
7187
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
7188
|
-
"description": "
|
|
7384
|
+
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
7385
|
+
"description": "Output entries as JSON"
|
|
7189
7386
|
}
|
|
7190
7387
|
],
|
|
7191
7388
|
"flags": {
|
|
@@ -7199,43 +7396,44 @@
|
|
|
7199
7396
|
},
|
|
7200
7397
|
"hasDynamicHelp": false,
|
|
7201
7398
|
"hiddenAliases": [],
|
|
7202
|
-
"id": "context:
|
|
7399
|
+
"id": "context:entries:list",
|
|
7203
7400
|
"pluginAlias": "@sanity/cli",
|
|
7204
7401
|
"pluginName": "@sanity/cli",
|
|
7205
7402
|
"pluginType": "core",
|
|
7206
7403
|
"strict": true,
|
|
7207
|
-
"summary": "Get a document",
|
|
7208
7404
|
"enableJsonFlag": true,
|
|
7209
|
-
"telemetry": {
|
|
7210
|
-
"redactedFlags": []
|
|
7211
|
-
},
|
|
7212
7405
|
"isESM": true,
|
|
7213
7406
|
"relativePath": [
|
|
7214
7407
|
"dist",
|
|
7215
7408
|
"commands",
|
|
7216
7409
|
"context",
|
|
7217
|
-
"
|
|
7218
|
-
"
|
|
7410
|
+
"entries",
|
|
7411
|
+
"list.js"
|
|
7219
7412
|
]
|
|
7220
7413
|
},
|
|
7221
|
-
"context:
|
|
7414
|
+
"context:entries:rebuild": {
|
|
7222
7415
|
"aliases": [],
|
|
7223
7416
|
"args": {
|
|
7224
7417
|
"knowledgeBaseId": {
|
|
7225
7418
|
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
7226
7419
|
"name": "knowledgeBaseId",
|
|
7227
7420
|
"required": true
|
|
7421
|
+
},
|
|
7422
|
+
"entryPath": {
|
|
7423
|
+
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
7424
|
+
"name": "entryPath",
|
|
7425
|
+
"required": true
|
|
7228
7426
|
}
|
|
7229
7427
|
},
|
|
7230
|
-
"description": "
|
|
7428
|
+
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
7231
7429
|
"examples": [
|
|
7232
7430
|
{
|
|
7233
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId>",
|
|
7234
|
-
"description": "
|
|
7431
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
7432
|
+
"description": "Rebuild an entry from its sources"
|
|
7235
7433
|
},
|
|
7236
7434
|
{
|
|
7237
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> --json",
|
|
7238
|
-
"description": "
|
|
7435
|
+
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
7436
|
+
"description": "Rebuild an entry from its sources, as JSON"
|
|
7239
7437
|
}
|
|
7240
7438
|
],
|
|
7241
7439
|
"flags": {
|
|
@@ -7246,72 +7444,32 @@
|
|
|
7246
7444
|
"allowNo": false,
|
|
7247
7445
|
"type": "boolean"
|
|
7248
7446
|
},
|
|
7249
|
-
"
|
|
7250
|
-
"description": "
|
|
7251
|
-
"name": "
|
|
7252
|
-
"
|
|
7253
|
-
"
|
|
7254
|
-
"type": "option"
|
|
7255
|
-
},
|
|
7256
|
-
"source": {
|
|
7257
|
-
"description": "Return only the documents of this source.",
|
|
7258
|
-
"name": "source",
|
|
7259
|
-
"hasDynamicHelp": false,
|
|
7260
|
-
"multiple": false,
|
|
7261
|
-
"type": "option"
|
|
7262
|
-
},
|
|
7263
|
-
"state": {
|
|
7264
|
-
"description": "Return only documents in this state. Without it, `deleted` documents are left out.",
|
|
7265
|
-
"name": "state",
|
|
7266
|
-
"hasDynamicHelp": false,
|
|
7267
|
-
"multiple": false,
|
|
7268
|
-
"options": [
|
|
7269
|
-
"active",
|
|
7270
|
-
"missing",
|
|
7271
|
-
"deleted"
|
|
7272
|
-
],
|
|
7273
|
-
"type": "option"
|
|
7274
|
-
},
|
|
7275
|
-
"ids": {
|
|
7276
|
-
"description": "Comma-separated IDs of the documents to return, up to 200, in any state. Use it to look up the documents entry citations point at.",
|
|
7277
|
-
"name": "ids",
|
|
7278
|
-
"hasDynamicHelp": false,
|
|
7279
|
-
"multiple": false,
|
|
7280
|
-
"type": "option"
|
|
7447
|
+
"watch": {
|
|
7448
|
+
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
7449
|
+
"name": "watch",
|
|
7450
|
+
"allowNo": false,
|
|
7451
|
+
"type": "boolean"
|
|
7281
7452
|
}
|
|
7282
7453
|
},
|
|
7283
7454
|
"hasDynamicHelp": false,
|
|
7284
7455
|
"hiddenAliases": [],
|
|
7285
|
-
"id": "context:
|
|
7456
|
+
"id": "context:entries:rebuild",
|
|
7286
7457
|
"pluginAlias": "@sanity/cli",
|
|
7287
7458
|
"pluginName": "@sanity/cli",
|
|
7288
7459
|
"pluginType": "core",
|
|
7289
7460
|
"strict": true,
|
|
7290
|
-
"summary": "
|
|
7461
|
+
"summary": "Rebuild an entry from its sources",
|
|
7291
7462
|
"enableJsonFlag": true,
|
|
7292
7463
|
"telemetry": {
|
|
7293
|
-
"redactedFlags": [
|
|
7294
|
-
{
|
|
7295
|
-
"canonical": "--source",
|
|
7296
|
-
"flags": [
|
|
7297
|
-
"--source"
|
|
7298
|
-
]
|
|
7299
|
-
},
|
|
7300
|
-
{
|
|
7301
|
-
"canonical": "--ids",
|
|
7302
|
-
"flags": [
|
|
7303
|
-
"--ids"
|
|
7304
|
-
]
|
|
7305
|
-
}
|
|
7306
|
-
]
|
|
7464
|
+
"redactedFlags": []
|
|
7307
7465
|
},
|
|
7308
7466
|
"isESM": true,
|
|
7309
7467
|
"relativePath": [
|
|
7310
7468
|
"dist",
|
|
7311
7469
|
"commands",
|
|
7312
7470
|
"context",
|
|
7313
|
-
"
|
|
7314
|
-
"
|
|
7471
|
+
"entries",
|
|
7472
|
+
"rebuild.js"
|
|
7315
7473
|
]
|
|
7316
7474
|
},
|
|
7317
7475
|
"context:instructions:create": {
|
|
@@ -9386,164 +9544,6 @@
|
|
|
9386
9544
|
"upload.js"
|
|
9387
9545
|
]
|
|
9388
9546
|
},
|
|
9389
|
-
"context:entries:get": {
|
|
9390
|
-
"aliases": [],
|
|
9391
|
-
"args": {
|
|
9392
|
-
"knowledgeBaseId": {
|
|
9393
|
-
"description": "Knowledge base ID",
|
|
9394
|
-
"name": "knowledgeBaseId",
|
|
9395
|
-
"required": true
|
|
9396
|
-
},
|
|
9397
|
-
"path": {
|
|
9398
|
-
"description": "Entry path, as listed by `sanity context entries list`",
|
|
9399
|
-
"name": "path",
|
|
9400
|
-
"required": true
|
|
9401
|
-
}
|
|
9402
|
-
},
|
|
9403
|
-
"description": "Get an entry and its content",
|
|
9404
|
-
"examples": [
|
|
9405
|
-
{
|
|
9406
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds",
|
|
9407
|
-
"description": "Print an entry and its content"
|
|
9408
|
-
},
|
|
9409
|
-
{
|
|
9410
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 billing/refunds --json",
|
|
9411
|
-
"description": "Output the entry, including citations, as JSON"
|
|
9412
|
-
}
|
|
9413
|
-
],
|
|
9414
|
-
"flags": {
|
|
9415
|
-
"json": {
|
|
9416
|
-
"description": "Format output as json.",
|
|
9417
|
-
"helpGroup": "GLOBAL",
|
|
9418
|
-
"name": "json",
|
|
9419
|
-
"allowNo": false,
|
|
9420
|
-
"type": "boolean"
|
|
9421
|
-
}
|
|
9422
|
-
},
|
|
9423
|
-
"hasDynamicHelp": false,
|
|
9424
|
-
"hiddenAliases": [],
|
|
9425
|
-
"id": "context:entries:get",
|
|
9426
|
-
"pluginAlias": "@sanity/cli",
|
|
9427
|
-
"pluginName": "@sanity/cli",
|
|
9428
|
-
"pluginType": "core",
|
|
9429
|
-
"strict": true,
|
|
9430
|
-
"enableJsonFlag": true,
|
|
9431
|
-
"isESM": true,
|
|
9432
|
-
"relativePath": [
|
|
9433
|
-
"dist",
|
|
9434
|
-
"commands",
|
|
9435
|
-
"context",
|
|
9436
|
-
"entries",
|
|
9437
|
-
"get.js"
|
|
9438
|
-
]
|
|
9439
|
-
},
|
|
9440
|
-
"context:entries:list": {
|
|
9441
|
-
"aliases": [],
|
|
9442
|
-
"args": {
|
|
9443
|
-
"knowledgeBaseId": {
|
|
9444
|
-
"description": "Knowledge base ID",
|
|
9445
|
-
"name": "knowledgeBaseId",
|
|
9446
|
-
"required": true
|
|
9447
|
-
}
|
|
9448
|
-
},
|
|
9449
|
-
"description": "List the entries a knowledge base build produced",
|
|
9450
|
-
"examples": [
|
|
9451
|
-
{
|
|
9452
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123",
|
|
9453
|
-
"description": "List all entries for a knowledge base"
|
|
9454
|
-
},
|
|
9455
|
-
{
|
|
9456
|
-
"command": "<%= config.bin %> <%= command.id %> kb-abc123 --json",
|
|
9457
|
-
"description": "Output entries as JSON"
|
|
9458
|
-
}
|
|
9459
|
-
],
|
|
9460
|
-
"flags": {
|
|
9461
|
-
"json": {
|
|
9462
|
-
"description": "Format output as json.",
|
|
9463
|
-
"helpGroup": "GLOBAL",
|
|
9464
|
-
"name": "json",
|
|
9465
|
-
"allowNo": false,
|
|
9466
|
-
"type": "boolean"
|
|
9467
|
-
}
|
|
9468
|
-
},
|
|
9469
|
-
"hasDynamicHelp": false,
|
|
9470
|
-
"hiddenAliases": [],
|
|
9471
|
-
"id": "context:entries:list",
|
|
9472
|
-
"pluginAlias": "@sanity/cli",
|
|
9473
|
-
"pluginName": "@sanity/cli",
|
|
9474
|
-
"pluginType": "core",
|
|
9475
|
-
"strict": true,
|
|
9476
|
-
"enableJsonFlag": true,
|
|
9477
|
-
"isESM": true,
|
|
9478
|
-
"relativePath": [
|
|
9479
|
-
"dist",
|
|
9480
|
-
"commands",
|
|
9481
|
-
"context",
|
|
9482
|
-
"entries",
|
|
9483
|
-
"list.js"
|
|
9484
|
-
]
|
|
9485
|
-
},
|
|
9486
|
-
"context:entries:rebuild": {
|
|
9487
|
-
"aliases": [],
|
|
9488
|
-
"args": {
|
|
9489
|
-
"knowledgeBaseId": {
|
|
9490
|
-
"description": "The knowledge base's ID (`kb...`), its `publicId`. Its UUID `id` is also accepted.",
|
|
9491
|
-
"name": "knowledgeBaseId",
|
|
9492
|
-
"required": true
|
|
9493
|
-
},
|
|
9494
|
-
"entryPath": {
|
|
9495
|
-
"description": "The entry's slash-delimited path, such as `pricing/plans/free`, URL-encoded.",
|
|
9496
|
-
"name": "entryPath",
|
|
9497
|
-
"required": true
|
|
9498
|
-
}
|
|
9499
|
-
},
|
|
9500
|
-
"description": "Queues a rewrite of the entry at `entryPath` from its cited sources and the active instructions, and returns a job ID immediately. The response also lists the other entries built from any of the same sources. An instruction applies to every entry built from its sources, so those entries can change too. Returns `422` with code `entryDocumentInvalid` if the entry document was edited into a shape the API cannot read.",
|
|
9501
|
-
"examples": [
|
|
9502
|
-
{
|
|
9503
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath>",
|
|
9504
|
-
"description": "Rebuild an entry from its sources"
|
|
9505
|
-
},
|
|
9506
|
-
{
|
|
9507
|
-
"command": "<%= config.bin %> <%= command.id %> <knowledgeBaseId> <entryPath> --json",
|
|
9508
|
-
"description": "Rebuild an entry from its sources, as JSON"
|
|
9509
|
-
}
|
|
9510
|
-
],
|
|
9511
|
-
"flags": {
|
|
9512
|
-
"json": {
|
|
9513
|
-
"description": "Format output as json.",
|
|
9514
|
-
"helpGroup": "GLOBAL",
|
|
9515
|
-
"name": "json",
|
|
9516
|
-
"allowNo": false,
|
|
9517
|
-
"type": "boolean"
|
|
9518
|
-
},
|
|
9519
|
-
"watch": {
|
|
9520
|
-
"description": "Wait for the job to finish, exiting non-zero if it fails",
|
|
9521
|
-
"name": "watch",
|
|
9522
|
-
"allowNo": false,
|
|
9523
|
-
"type": "boolean"
|
|
9524
|
-
}
|
|
9525
|
-
},
|
|
9526
|
-
"hasDynamicHelp": false,
|
|
9527
|
-
"hiddenAliases": [],
|
|
9528
|
-
"id": "context:entries:rebuild",
|
|
9529
|
-
"pluginAlias": "@sanity/cli",
|
|
9530
|
-
"pluginName": "@sanity/cli",
|
|
9531
|
-
"pluginType": "core",
|
|
9532
|
-
"strict": true,
|
|
9533
|
-
"summary": "Rebuild an entry from its sources",
|
|
9534
|
-
"enableJsonFlag": true,
|
|
9535
|
-
"telemetry": {
|
|
9536
|
-
"redactedFlags": []
|
|
9537
|
-
},
|
|
9538
|
-
"isESM": true,
|
|
9539
|
-
"relativePath": [
|
|
9540
|
-
"dist",
|
|
9541
|
-
"commands",
|
|
9542
|
-
"context",
|
|
9543
|
-
"entries",
|
|
9544
|
-
"rebuild.js"
|
|
9545
|
-
]
|
|
9546
|
-
},
|
|
9547
9547
|
"datasets:alias:create": {
|
|
9548
9548
|
"aliases": [],
|
|
9549
9549
|
"args": {
|
|
@@ -10351,5 +10351,5 @@
|
|
|
10351
10351
|
]
|
|
10352
10352
|
}
|
|
10353
10353
|
},
|
|
10354
|
-
"version": "8.
|
|
10354
|
+
"version": "8.30.0"
|
|
10355
10355
|
}
|