@sanity/cli 6.3.0 → 6.3.1

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.
Files changed (3) hide show
  1. package/README.md +82 -82
  2. package/oclif.manifest.json +329 -329
  3. package/package.json +7 -7
@@ -2613,43 +2613,98 @@
2613
2613
  "validate.js"
2614
2614
  ]
2615
2615
  },
2616
- "hooks:attempt": {
2616
+ "graphql:deploy": {
2617
2617
  "aliases": [],
2618
- "args": {
2619
- "attemptId": {
2620
- "description": "The delivery attempt ID to get details for",
2621
- "name": "attemptId",
2622
- "required": true
2623
- }
2624
- },
2625
- "description": "Print details of a given webhook delivery attempt",
2618
+ "args": {},
2619
+ "description": "Deploy a GraphQL API from the current Sanity schema",
2626
2620
  "examples": [
2627
2621
  {
2628
- "command": "<%= config.bin %> <%= command.id %> abc123",
2629
- "description": "Print details of webhook delivery attempt with ID abc123"
2622
+ "command": "<%= config.bin %> <%= command.id %>",
2623
+ "description": "Deploy all defined GraphQL APIs"
2630
2624
  },
2631
2625
  {
2632
- "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
2633
- "description": "Get attempt details for a specific project"
2626
+ "command": "<%= config.bin %> <%= command.id %> --dry-run",
2627
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
2628
+ },
2629
+ {
2630
+ "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
2631
+ "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
2632
+ },
2633
+ {
2634
+ "command": "<%= config.bin %> <%= command.id %> --playground",
2635
+ "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
2634
2636
  }
2635
2637
  ],
2636
2638
  "flags": {
2637
- "project-id": {
2638
- "char": "p",
2639
- "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
2640
- "helpGroup": "OVERRIDE",
2641
- "name": "project-id",
2639
+ "api": {
2640
+ "description": "Only deploy API with this ID. Can be specified multiple times.",
2641
+ "name": "api",
2642
+ "hasDynamicHelp": false,
2643
+ "multiple": true,
2644
+ "type": "option"
2645
+ },
2646
+ "dataset": {
2647
+ "char": "d",
2648
+ "description": "Deploy API for the given dataset",
2649
+ "name": "dataset",
2650
+ "hasDynamicHelp": false,
2651
+ "helpValue": "<name>",
2652
+ "multiple": false,
2653
+ "type": "option"
2654
+ },
2655
+ "dry-run": {
2656
+ "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
2657
+ "name": "dry-run",
2658
+ "allowNo": false,
2659
+ "type": "boolean"
2660
+ },
2661
+ "force": {
2662
+ "description": "Deploy API without confirming breaking changes",
2663
+ "name": "force",
2664
+ "allowNo": false,
2665
+ "type": "boolean"
2666
+ },
2667
+ "generation": {
2668
+ "description": "API generation to deploy (defaults to \"gen3\")",
2669
+ "name": "generation",
2670
+ "hasDynamicHelp": false,
2671
+ "multiple": false,
2672
+ "options": [
2673
+ "gen1",
2674
+ "gen2",
2675
+ "gen3"
2676
+ ],
2677
+ "type": "option"
2678
+ },
2679
+ "non-null-document-fields": {
2680
+ "description": "Use non-null document fields (_id, _type etc)",
2681
+ "name": "non-null-document-fields",
2682
+ "allowNo": false,
2683
+ "type": "boolean"
2684
+ },
2685
+ "playground": {
2686
+ "description": "Enable GraphQL playground for easier debugging",
2687
+ "name": "playground",
2688
+ "allowNo": true,
2689
+ "type": "boolean"
2690
+ },
2691
+ "tag": {
2692
+ "description": "Deploy API(s) to given tag (defaults to \"default\")",
2693
+ "name": "tag",
2642
2694
  "hasDynamicHelp": false,
2643
- "helpValue": "<id>",
2644
2695
  "multiple": false,
2645
2696
  "type": "option"
2697
+ },
2698
+ "with-union-cache": {
2699
+ "description": "Enable union cache that optimizes schema generation for schemas with many self referencing types",
2700
+ "name": "with-union-cache",
2701
+ "allowNo": false,
2702
+ "type": "boolean"
2646
2703
  }
2647
2704
  },
2648
2705
  "hasDynamicHelp": false,
2649
- "hiddenAliases": [
2650
- "hook:attempt"
2651
- ],
2652
- "id": "hooks:attempt",
2706
+ "hiddenAliases": [],
2707
+ "id": "graphql:deploy",
2653
2708
  "pluginAlias": "@sanity/cli",
2654
2709
  "pluginName": "@sanity/cli",
2655
2710
  "pluginType": "core",
@@ -2658,28 +2713,28 @@
2658
2713
  "relativePath": [
2659
2714
  "dist",
2660
2715
  "commands",
2661
- "hooks",
2662
- "attempt.js"
2716
+ "graphql",
2717
+ "deploy.js"
2663
2718
  ]
2664
2719
  },
2665
- "hooks:create": {
2720
+ "graphql:list": {
2666
2721
  "aliases": [],
2667
2722
  "args": {},
2668
- "description": "Create a new webhook for the current project",
2723
+ "description": "List all GraphQL endpoints deployed for this project",
2669
2724
  "examples": [
2670
2725
  {
2671
2726
  "command": "<%= config.bin %> <%= command.id %>",
2672
- "description": "Create a new webhook for the current project"
2727
+ "description": "List GraphQL endpoints for the current project"
2673
2728
  },
2674
2729
  {
2675
2730
  "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2676
- "description": "Create a webhook for a specific project"
2731
+ "description": "List GraphQL endpoints for a specific project"
2677
2732
  }
2678
2733
  ],
2679
2734
  "flags": {
2680
2735
  "project-id": {
2681
2736
  "char": "p",
2682
- "description": "Project ID to create webhook for (overrides CLI configuration)",
2737
+ "description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
2683
2738
  "helpGroup": "OVERRIDE",
2684
2739
  "name": "project-id",
2685
2740
  "hasDynamicHelp": false,
@@ -2689,10 +2744,8 @@
2689
2744
  }
2690
2745
  },
2691
2746
  "hasDynamicHelp": false,
2692
- "hiddenAliases": [
2693
- "hook:create"
2694
- ],
2695
- "id": "hooks:create",
2747
+ "hiddenAliases": [],
2748
+ "id": "graphql:list",
2696
2749
  "pluginAlias": "@sanity/cli",
2697
2750
  "pluginName": "@sanity/cli",
2698
2751
  "pluginType": "core",
@@ -2701,51 +2754,105 @@
2701
2754
  "relativePath": [
2702
2755
  "dist",
2703
2756
  "commands",
2704
- "hooks",
2705
- "create.js"
2757
+ "graphql",
2758
+ "list.js"
2706
2759
  ]
2707
2760
  },
2708
- "hooks:delete": {
2761
+ "graphql:undeploy": {
2709
2762
  "aliases": [],
2710
- "args": {
2711
- "name": {
2712
- "description": "Name of hook to delete (will prompt if not provided)",
2713
- "name": "name",
2714
- "required": false
2715
- }
2716
- },
2717
- "description": "Delete a hook within your project",
2763
+ "args": {},
2764
+ "description": "Remove a deployed GraphQL API",
2718
2765
  "examples": [
2719
2766
  {
2720
2767
  "command": "<%= config.bin %> <%= command.id %>",
2721
- "description": "Interactively select and delete a hook"
2768
+ "description": "Undeploy GraphQL API for current project and dataset"
2722
2769
  },
2723
2770
  {
2724
- "command": "<%= config.bin %> <%= command.id %> my-hook",
2725
- "description": "Delete a specific hook by name"
2771
+ "command": "<%= config.bin %> <%= command.id %> --api ios",
2772
+ "description": "Undeploy API with ID \"ios\""
2726
2773
  },
2727
2774
  {
2728
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2729
- "description": "Delete a hook from a specific project"
2775
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging",
2776
+ "description": "Undeploy GraphQL API for staging dataset"
2777
+ },
2778
+ {
2779
+ "command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
2780
+ "description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
2781
+ },
2782
+ {
2783
+ "command": "<%= config.bin %> <%= command.id %> --force",
2784
+ "description": "Undeploy GraphQL API without confirmation prompt"
2785
+ },
2786
+ {
2787
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
2788
+ "description": "Undeploy GraphQL API for a specific project and dataset"
2730
2789
  }
2731
2790
  ],
2732
2791
  "flags": {
2733
2792
  "project-id": {
2734
2793
  "char": "p",
2735
- "description": "Project ID to delete webhook from (overrides CLI configuration)",
2794
+ "description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
2736
2795
  "helpGroup": "OVERRIDE",
2737
2796
  "name": "project-id",
2738
2797
  "hasDynamicHelp": false,
2739
2798
  "helpValue": "<id>",
2740
2799
  "multiple": false,
2741
2800
  "type": "option"
2801
+ },
2802
+ "api": {
2803
+ "description": "Undeploy API with this ID",
2804
+ "exclusive": [
2805
+ "project-id",
2806
+ "project"
2807
+ ],
2808
+ "name": "api",
2809
+ "required": false,
2810
+ "hasDynamicHelp": false,
2811
+ "multiple": false,
2812
+ "type": "option"
2813
+ },
2814
+ "dataset": {
2815
+ "char": "d",
2816
+ "description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
2817
+ "helpGroup": "OVERRIDE",
2818
+ "name": "dataset",
2819
+ "hasDynamicHelp": false,
2820
+ "helpValue": "<name>",
2821
+ "multiple": false,
2822
+ "type": "option"
2823
+ },
2824
+ "force": {
2825
+ "description": "Skip confirmation prompt",
2826
+ "name": "force",
2827
+ "required": false,
2828
+ "allowNo": false,
2829
+ "type": "boolean"
2830
+ },
2831
+ "project": {
2832
+ "deprecated": {
2833
+ "to": "project-id"
2834
+ },
2835
+ "description": "Project ID to delete GraphQL API for",
2836
+ "hidden": true,
2837
+ "name": "project",
2838
+ "required": false,
2839
+ "hasDynamicHelp": false,
2840
+ "multiple": false,
2841
+ "type": "option"
2842
+ },
2843
+ "tag": {
2844
+ "description": "Tag to undeploy GraphQL API from",
2845
+ "name": "tag",
2846
+ "required": false,
2847
+ "default": "default",
2848
+ "hasDynamicHelp": false,
2849
+ "multiple": false,
2850
+ "type": "option"
2742
2851
  }
2743
2852
  },
2744
2853
  "hasDynamicHelp": false,
2745
- "hiddenAliases": [
2746
- "hook:delete"
2747
- ],
2748
- "id": "hooks:delete",
2854
+ "hiddenAliases": [],
2855
+ "id": "graphql:undeploy",
2749
2856
  "pluginAlias": "@sanity/cli",
2750
2857
  "pluginName": "@sanity/cli",
2751
2858
  "pluginType": "core",
@@ -2754,28 +2861,34 @@
2754
2861
  "relativePath": [
2755
2862
  "dist",
2756
2863
  "commands",
2757
- "hooks",
2758
- "delete.js"
2864
+ "graphql",
2865
+ "undeploy.js"
2759
2866
  ]
2760
2867
  },
2761
- "hooks:list": {
2868
+ "hooks:attempt": {
2762
2869
  "aliases": [],
2763
- "args": {},
2764
- "description": "List hooks for a given project",
2870
+ "args": {
2871
+ "attemptId": {
2872
+ "description": "The delivery attempt ID to get details for",
2873
+ "name": "attemptId",
2874
+ "required": true
2875
+ }
2876
+ },
2877
+ "description": "Print details of a given webhook delivery attempt",
2765
2878
  "examples": [
2766
2879
  {
2767
- "command": "<%= config.bin %> <%= command.id %>",
2768
- "description": "List hooks for a given project"
2880
+ "command": "<%= config.bin %> <%= command.id %> abc123",
2881
+ "description": "Print details of webhook delivery attempt with ID abc123"
2769
2882
  },
2770
2883
  {
2771
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2772
- "description": "List hooks for a specific project"
2884
+ "command": "<%= config.bin %> <%= command.id %> abc123 --project-id projectId",
2885
+ "description": "Get attempt details for a specific project"
2773
2886
  }
2774
2887
  ],
2775
2888
  "flags": {
2776
2889
  "project-id": {
2777
2890
  "char": "p",
2778
- "description": "Project ID to list webhooks for (overrides CLI configuration)",
2891
+ "description": "Project ID to view webhook attempt for (overrides CLI configuration)",
2779
2892
  "helpGroup": "OVERRIDE",
2780
2893
  "name": "project-id",
2781
2894
  "hasDynamicHelp": false,
@@ -2786,9 +2899,9 @@
2786
2899
  },
2787
2900
  "hasDynamicHelp": false,
2788
2901
  "hiddenAliases": [
2789
- "hook:list"
2902
+ "hook:attempt"
2790
2903
  ],
2791
- "id": "hooks:list",
2904
+ "id": "hooks:attempt",
2792
2905
  "pluginAlias": "@sanity/cli",
2793
2906
  "pluginName": "@sanity/cli",
2794
2907
  "pluginType": "core",
@@ -2798,57 +2911,40 @@
2798
2911
  "dist",
2799
2912
  "commands",
2800
2913
  "hooks",
2801
- "list.js"
2914
+ "attempt.js"
2802
2915
  ]
2803
2916
  },
2804
- "hooks:logs": {
2917
+ "hooks:create": {
2805
2918
  "aliases": [],
2806
- "args": {
2807
- "name": {
2808
- "description": "Name of the hook to show logs for",
2809
- "name": "name",
2810
- "required": false
2811
- }
2812
- },
2813
- "description": "List latest log entries for a given hook",
2919
+ "args": {},
2920
+ "description": "Create a new webhook for the current project",
2814
2921
  "examples": [
2815
2922
  {
2816
2923
  "command": "<%= config.bin %> <%= command.id %>",
2817
- "description": "List latest log entries for a given hook"
2818
- },
2819
- {
2820
- "command": "<%= config.bin %> <%= command.id %> [NAME]",
2821
- "description": "List latest log entries for a specific hook by name"
2924
+ "description": "Create a new webhook for the current project"
2822
2925
  },
2823
2926
  {
2824
2927
  "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2825
- "description": "List hook logs for a specific project"
2928
+ "description": "Create a webhook for a specific project"
2826
2929
  }
2827
2930
  ],
2828
2931
  "flags": {
2829
2932
  "project-id": {
2830
2933
  "char": "p",
2831
- "description": "Project ID to view webhook logs for (overrides CLI configuration)",
2934
+ "description": "Project ID to create webhook for (overrides CLI configuration)",
2832
2935
  "helpGroup": "OVERRIDE",
2833
2936
  "name": "project-id",
2834
2937
  "hasDynamicHelp": false,
2835
2938
  "helpValue": "<id>",
2836
2939
  "multiple": false,
2837
2940
  "type": "option"
2838
- },
2839
- "detailed": {
2840
- "description": "Include detailed payload and attempts",
2841
- "name": "detailed",
2842
- "required": false,
2843
- "allowNo": false,
2844
- "type": "boolean"
2845
2941
  }
2846
2942
  },
2847
2943
  "hasDynamicHelp": false,
2848
2944
  "hiddenAliases": [
2849
- "hook:logs"
2945
+ "hook:create"
2850
2946
  ],
2851
- "id": "hooks:logs",
2947
+ "id": "hooks:create",
2852
2948
  "pluginAlias": "@sanity/cli",
2853
2949
  "pluginName": "@sanity/cli",
2854
2950
  "pluginType": "core",
@@ -2858,101 +2954,50 @@
2858
2954
  "dist",
2859
2955
  "commands",
2860
2956
  "hooks",
2861
- "logs.js"
2957
+ "create.js"
2862
2958
  ]
2863
2959
  },
2864
- "graphql:deploy": {
2960
+ "hooks:delete": {
2865
2961
  "aliases": [],
2866
- "args": {},
2867
- "description": "Deploy a GraphQL API from the current Sanity schema",
2962
+ "args": {
2963
+ "name": {
2964
+ "description": "Name of hook to delete (will prompt if not provided)",
2965
+ "name": "name",
2966
+ "required": false
2967
+ }
2968
+ },
2969
+ "description": "Delete a hook within your project",
2868
2970
  "examples": [
2869
2971
  {
2870
2972
  "command": "<%= config.bin %> <%= command.id %>",
2871
- "description": "Deploy all defined GraphQL APIs"
2872
- },
2873
- {
2874
- "command": "<%= config.bin %> <%= command.id %> --dry-run",
2875
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy"
2973
+ "description": "Interactively select and delete a hook"
2876
2974
  },
2877
2975
  {
2878
- "command": "<%= config.bin %> <%= command.id %> --api staging --api ios",
2879
- "description": "Deploy only the GraphQL APIs with the IDs \"staging\" and \"ios\""
2976
+ "command": "<%= config.bin %> <%= command.id %> my-hook",
2977
+ "description": "Delete a specific hook by name"
2880
2978
  },
2881
2979
  {
2882
- "command": "<%= config.bin %> <%= command.id %> --playground",
2883
- "description": "Deploy all defined GraphQL APIs, overriding any playground setting"
2980
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2981
+ "description": "Delete a hook from a specific project"
2884
2982
  }
2885
2983
  ],
2886
2984
  "flags": {
2887
- "api": {
2888
- "description": "Only deploy API with this ID. Can be specified multiple times.",
2889
- "name": "api",
2890
- "hasDynamicHelp": false,
2891
- "multiple": true,
2892
- "type": "option"
2893
- },
2894
- "dataset": {
2895
- "char": "d",
2896
- "description": "Deploy API for the given dataset",
2897
- "name": "dataset",
2898
- "hasDynamicHelp": false,
2899
- "helpValue": "<name>",
2900
- "multiple": false,
2901
- "type": "option"
2902
- },
2903
- "dry-run": {
2904
- "description": "Validate defined GraphQL APIs, check for breaking changes, skip deploy",
2905
- "name": "dry-run",
2906
- "allowNo": false,
2907
- "type": "boolean"
2908
- },
2909
- "force": {
2910
- "description": "Deploy API without confirming breaking changes",
2911
- "name": "force",
2912
- "allowNo": false,
2913
- "type": "boolean"
2914
- },
2915
- "generation": {
2916
- "description": "API generation to deploy (defaults to \"gen3\")",
2917
- "name": "generation",
2918
- "hasDynamicHelp": false,
2919
- "multiple": false,
2920
- "options": [
2921
- "gen1",
2922
- "gen2",
2923
- "gen3"
2924
- ],
2925
- "type": "option"
2926
- },
2927
- "non-null-document-fields": {
2928
- "description": "Use non-null document fields (_id, _type etc)",
2929
- "name": "non-null-document-fields",
2930
- "allowNo": false,
2931
- "type": "boolean"
2932
- },
2933
- "playground": {
2934
- "description": "Enable GraphQL playground for easier debugging",
2935
- "name": "playground",
2936
- "allowNo": true,
2937
- "type": "boolean"
2938
- },
2939
- "tag": {
2940
- "description": "Deploy API(s) to given tag (defaults to \"default\")",
2941
- "name": "tag",
2985
+ "project-id": {
2986
+ "char": "p",
2987
+ "description": "Project ID to delete webhook from (overrides CLI configuration)",
2988
+ "helpGroup": "OVERRIDE",
2989
+ "name": "project-id",
2942
2990
  "hasDynamicHelp": false,
2991
+ "helpValue": "<id>",
2943
2992
  "multiple": false,
2944
2993
  "type": "option"
2945
- },
2946
- "with-union-cache": {
2947
- "description": "Enable union cache that optimizes schema generation for schemas with many self referencing types",
2948
- "name": "with-union-cache",
2949
- "allowNo": false,
2950
- "type": "boolean"
2951
2994
  }
2952
2995
  },
2953
2996
  "hasDynamicHelp": false,
2954
- "hiddenAliases": [],
2955
- "id": "graphql:deploy",
2997
+ "hiddenAliases": [
2998
+ "hook:delete"
2999
+ ],
3000
+ "id": "hooks:delete",
2956
3001
  "pluginAlias": "@sanity/cli",
2957
3002
  "pluginName": "@sanity/cli",
2958
3003
  "pluginType": "core",
@@ -2961,28 +3006,28 @@
2961
3006
  "relativePath": [
2962
3007
  "dist",
2963
3008
  "commands",
2964
- "graphql",
2965
- "deploy.js"
3009
+ "hooks",
3010
+ "delete.js"
2966
3011
  ]
2967
3012
  },
2968
- "graphql:list": {
3013
+ "hooks:list": {
2969
3014
  "aliases": [],
2970
3015
  "args": {},
2971
- "description": "List all GraphQL endpoints deployed for this project",
3016
+ "description": "List hooks for a given project",
2972
3017
  "examples": [
2973
3018
  {
2974
3019
  "command": "<%= config.bin %> <%= command.id %>",
2975
- "description": "List GraphQL endpoints for the current project"
3020
+ "description": "List hooks for a given project"
2976
3021
  },
2977
3022
  {
2978
3023
  "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
2979
- "description": "List GraphQL endpoints for a specific project"
3024
+ "description": "List hooks for a specific project"
2980
3025
  }
2981
3026
  ],
2982
3027
  "flags": {
2983
3028
  "project-id": {
2984
3029
  "char": "p",
2985
- "description": "Project ID to list GraphQL endpoints for (overrides CLI configuration)",
3030
+ "description": "Project ID to list webhooks for (overrides CLI configuration)",
2986
3031
  "helpGroup": "OVERRIDE",
2987
3032
  "name": "project-id",
2988
3033
  "hasDynamicHelp": false,
@@ -2992,8 +3037,10 @@
2992
3037
  }
2993
3038
  },
2994
3039
  "hasDynamicHelp": false,
2995
- "hiddenAliases": [],
2996
- "id": "graphql:list",
3040
+ "hiddenAliases": [
3041
+ "hook:list"
3042
+ ],
3043
+ "id": "hooks:list",
2997
3044
  "pluginAlias": "@sanity/cli",
2998
3045
  "pluginName": "@sanity/cli",
2999
3046
  "pluginType": "core",
@@ -3002,44 +3049,38 @@
3002
3049
  "relativePath": [
3003
3050
  "dist",
3004
3051
  "commands",
3005
- "graphql",
3052
+ "hooks",
3006
3053
  "list.js"
3007
3054
  ]
3008
3055
  },
3009
- "graphql:undeploy": {
3056
+ "hooks:logs": {
3010
3057
  "aliases": [],
3011
- "args": {},
3012
- "description": "Remove a deployed GraphQL API",
3058
+ "args": {
3059
+ "name": {
3060
+ "description": "Name of the hook to show logs for",
3061
+ "name": "name",
3062
+ "required": false
3063
+ }
3064
+ },
3065
+ "description": "List latest log entries for a given hook",
3013
3066
  "examples": [
3014
3067
  {
3015
3068
  "command": "<%= config.bin %> <%= command.id %>",
3016
- "description": "Undeploy GraphQL API for current project and dataset"
3017
- },
3018
- {
3019
- "command": "<%= config.bin %> <%= command.id %> --api ios",
3020
- "description": "Undeploy API with ID \"ios\""
3021
- },
3022
- {
3023
- "command": "<%= config.bin %> <%= command.id %> --dataset staging",
3024
- "description": "Undeploy GraphQL API for staging dataset"
3025
- },
3026
- {
3027
- "command": "<%= config.bin %> <%= command.id %> --dataset staging --tag next",
3028
- "description": "Undeploy GraphQL API for staging dataset with \"next\" tag"
3069
+ "description": "List latest log entries for a given hook"
3029
3070
  },
3030
3071
  {
3031
- "command": "<%= config.bin %> <%= command.id %> --force",
3032
- "description": "Undeploy GraphQL API without confirmation prompt"
3072
+ "command": "<%= config.bin %> <%= command.id %> [NAME]",
3073
+ "description": "List latest log entries for a specific hook by name"
3033
3074
  },
3034
3075
  {
3035
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123 --dataset production",
3036
- "description": "Undeploy GraphQL API for a specific project and dataset"
3076
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123",
3077
+ "description": "List hook logs for a specific project"
3037
3078
  }
3038
3079
  ],
3039
3080
  "flags": {
3040
3081
  "project-id": {
3041
3082
  "char": "p",
3042
- "description": "Project ID to undeploy GraphQL API from (overrides CLI configuration)",
3083
+ "description": "Project ID to view webhook logs for (overrides CLI configuration)",
3043
3084
  "helpGroup": "OVERRIDE",
3044
3085
  "name": "project-id",
3045
3086
  "hasDynamicHelp": false,
@@ -3047,60 +3088,19 @@
3047
3088
  "multiple": false,
3048
3089
  "type": "option"
3049
3090
  },
3050
- "api": {
3051
- "description": "Undeploy API with this ID",
3052
- "exclusive": [
3053
- "project-id",
3054
- "project"
3055
- ],
3056
- "name": "api",
3057
- "required": false,
3058
- "hasDynamicHelp": false,
3059
- "multiple": false,
3060
- "type": "option"
3061
- },
3062
- "dataset": {
3063
- "char": "d",
3064
- "description": "Dataset to undeploy GraphQL API from (overrides CLI configuration)",
3065
- "helpGroup": "OVERRIDE",
3066
- "name": "dataset",
3067
- "hasDynamicHelp": false,
3068
- "helpValue": "<name>",
3069
- "multiple": false,
3070
- "type": "option"
3071
- },
3072
- "force": {
3073
- "description": "Skip confirmation prompt",
3074
- "name": "force",
3091
+ "detailed": {
3092
+ "description": "Include detailed payload and attempts",
3093
+ "name": "detailed",
3075
3094
  "required": false,
3076
3095
  "allowNo": false,
3077
3096
  "type": "boolean"
3078
- },
3079
- "project": {
3080
- "deprecated": {
3081
- "to": "project-id"
3082
- },
3083
- "description": "Project ID to delete GraphQL API for",
3084
- "hidden": true,
3085
- "name": "project",
3086
- "required": false,
3087
- "hasDynamicHelp": false,
3088
- "multiple": false,
3089
- "type": "option"
3090
- },
3091
- "tag": {
3092
- "description": "Tag to undeploy GraphQL API from",
3093
- "name": "tag",
3094
- "required": false,
3095
- "default": "default",
3096
- "hasDynamicHelp": false,
3097
- "multiple": false,
3098
- "type": "option"
3099
3097
  }
3100
3098
  },
3101
3099
  "hasDynamicHelp": false,
3102
- "hiddenAliases": [],
3103
- "id": "graphql:undeploy",
3100
+ "hiddenAliases": [
3101
+ "hook:logs"
3102
+ ],
3103
+ "id": "hooks:logs",
3104
3104
  "pluginAlias": "@sanity/cli",
3105
3105
  "pluginName": "@sanity/cli",
3106
3106
  "pluginType": "core",
@@ -3109,8 +3109,8 @@
3109
3109
  "relativePath": [
3110
3110
  "dist",
3111
3111
  "commands",
3112
- "graphql",
3113
- "undeploy.js"
3112
+ "hooks",
3113
+ "logs.js"
3114
3114
  ]
3115
3115
  },
3116
3116
  "manifest:extract": {
@@ -4114,84 +4114,6 @@
4114
4114
  "validate.js"
4115
4115
  ]
4116
4116
  },
4117
- "telemetry:disable": {
4118
- "aliases": [],
4119
- "args": {},
4120
- "description": "Disable telemetry for your logged in user",
4121
- "examples": [
4122
- {
4123
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4124
- "description": "Disable telemetry for your logged in user"
4125
- }
4126
- ],
4127
- "flags": {},
4128
- "hasDynamicHelp": false,
4129
- "hiddenAliases": [],
4130
- "id": "telemetry:disable",
4131
- "pluginAlias": "@sanity/cli",
4132
- "pluginName": "@sanity/cli",
4133
- "pluginType": "core",
4134
- "strict": true,
4135
- "isESM": true,
4136
- "relativePath": [
4137
- "dist",
4138
- "commands",
4139
- "telemetry",
4140
- "disable.js"
4141
- ]
4142
- },
4143
- "telemetry:enable": {
4144
- "aliases": [],
4145
- "args": {},
4146
- "description": "Enable telemetry for your logged in user",
4147
- "examples": [
4148
- {
4149
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4150
- "description": "Enable telemetry for your logged in user"
4151
- }
4152
- ],
4153
- "flags": {},
4154
- "hasDynamicHelp": false,
4155
- "hiddenAliases": [],
4156
- "id": "telemetry:enable",
4157
- "pluginAlias": "@sanity/cli",
4158
- "pluginName": "@sanity/cli",
4159
- "pluginType": "core",
4160
- "strict": true,
4161
- "isESM": true,
4162
- "relativePath": [
4163
- "dist",
4164
- "commands",
4165
- "telemetry",
4166
- "enable.js"
4167
- ]
4168
- },
4169
- "telemetry:status": {
4170
- "aliases": [],
4171
- "args": {},
4172
- "description": "Check telemetry consent status for your logged in user",
4173
- "examples": [
4174
- {
4175
- "command": "<%= config.bin %> telemetry <%= command.id %>",
4176
- "description": "Check telemetry consent status for your logged in user"
4177
- }
4178
- ],
4179
- "flags": {},
4180
- "hasDynamicHelp": false,
4181
- "hiddenAliases": [],
4182
- "id": "telemetry:status",
4183
- "pluginAlias": "@sanity/cli",
4184
- "pluginName": "@sanity/cli",
4185
- "pluginType": "core",
4186
- "strict": true,
4187
- "isESM": true,
4188
- "relativePath": [
4189
- "dist",
4190
- "commands",
4191
- "telemetry",
4192
- "status.js"
4193
- ]
4194
- },
4195
4117
  "tokens:add": {
4196
4118
  "aliases": [],
4197
4119
  "args": {
@@ -4394,6 +4316,84 @@
4394
4316
  "list.js"
4395
4317
  ]
4396
4318
  },
4319
+ "telemetry:disable": {
4320
+ "aliases": [],
4321
+ "args": {},
4322
+ "description": "Disable telemetry for your logged in user",
4323
+ "examples": [
4324
+ {
4325
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4326
+ "description": "Disable telemetry for your logged in user"
4327
+ }
4328
+ ],
4329
+ "flags": {},
4330
+ "hasDynamicHelp": false,
4331
+ "hiddenAliases": [],
4332
+ "id": "telemetry:disable",
4333
+ "pluginAlias": "@sanity/cli",
4334
+ "pluginName": "@sanity/cli",
4335
+ "pluginType": "core",
4336
+ "strict": true,
4337
+ "isESM": true,
4338
+ "relativePath": [
4339
+ "dist",
4340
+ "commands",
4341
+ "telemetry",
4342
+ "disable.js"
4343
+ ]
4344
+ },
4345
+ "telemetry:enable": {
4346
+ "aliases": [],
4347
+ "args": {},
4348
+ "description": "Enable telemetry for your logged in user",
4349
+ "examples": [
4350
+ {
4351
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4352
+ "description": "Enable telemetry for your logged in user"
4353
+ }
4354
+ ],
4355
+ "flags": {},
4356
+ "hasDynamicHelp": false,
4357
+ "hiddenAliases": [],
4358
+ "id": "telemetry:enable",
4359
+ "pluginAlias": "@sanity/cli",
4360
+ "pluginName": "@sanity/cli",
4361
+ "pluginType": "core",
4362
+ "strict": true,
4363
+ "isESM": true,
4364
+ "relativePath": [
4365
+ "dist",
4366
+ "commands",
4367
+ "telemetry",
4368
+ "enable.js"
4369
+ ]
4370
+ },
4371
+ "telemetry:status": {
4372
+ "aliases": [],
4373
+ "args": {},
4374
+ "description": "Check telemetry consent status for your logged in user",
4375
+ "examples": [
4376
+ {
4377
+ "command": "<%= config.bin %> telemetry <%= command.id %>",
4378
+ "description": "Check telemetry consent status for your logged in user"
4379
+ }
4380
+ ],
4381
+ "flags": {},
4382
+ "hasDynamicHelp": false,
4383
+ "hiddenAliases": [],
4384
+ "id": "telemetry:status",
4385
+ "pluginAlias": "@sanity/cli",
4386
+ "pluginName": "@sanity/cli",
4387
+ "pluginType": "core",
4388
+ "strict": true,
4389
+ "isESM": true,
4390
+ "relativePath": [
4391
+ "dist",
4392
+ "commands",
4393
+ "telemetry",
4394
+ "status.js"
4395
+ ]
4396
+ },
4397
4397
  "users:invite": {
4398
4398
  "aliases": [],
4399
4399
  "args": {
@@ -5065,5 +5065,5 @@
5065
5065
  ]
5066
5066
  }
5067
5067
  },
5068
- "version": "6.3.0"
5068
+ "version": "6.3.1"
5069
5069
  }