@sanity/cli 7.6.0 → 7.7.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.
@@ -210,6 +210,13 @@
210
210
  "allowNo": false,
211
211
  "type": "boolean"
212
212
  },
213
+ "json": {
214
+ "char": "j",
215
+ "description": "Output the result as JSON",
216
+ "name": "json",
217
+ "allowNo": false,
218
+ "type": "boolean"
219
+ },
213
220
  "minify": {
214
221
  "description": "Minify built JavaScript (use --no-minify to skip for faster builds)",
215
222
  "name": "minify",
@@ -4645,43 +4652,26 @@
4645
4652
  "list.js"
4646
4653
  ]
4647
4654
  },
4648
- "datasets:alias:create": {
4655
+ "datasets:embeddings:disable": {
4649
4656
  "aliases": [],
4650
4657
  "args": {
4651
- "aliasName": {
4652
- "description": "Dataset alias name to create",
4653
- "name": "aliasName",
4654
- "required": false
4655
- },
4656
- "targetDataset": {
4657
- "description": "Target dataset name to link the alias to",
4658
- "name": "targetDataset",
4658
+ "dataset": {
4659
+ "description": "Dataset name to disable embeddings for",
4660
+ "name": "dataset",
4659
4661
  "required": false
4660
4662
  }
4661
4663
  },
4662
- "description": "Create a dataset alias for the project",
4664
+ "description": "Disable embeddings for a dataset",
4663
4665
  "examples": [
4664
4666
  {
4665
- "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
4666
- "description": "Create alias in a specific project"
4667
- },
4668
- {
4669
- "command": "<%= config.bin %> <%= command.id %>",
4670
- "description": "Create an alias with interactive prompts"
4671
- },
4672
- {
4673
- "command": "<%= config.bin %> <%= command.id %> conference",
4674
- "description": "Create alias named \"conference\" with interactive dataset selection"
4675
- },
4676
- {
4677
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
4678
- "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
4667
+ "command": "<%= config.bin %> <%= command.id %> production",
4668
+ "description": "Disable embeddings for the production dataset"
4679
4669
  }
4680
4670
  ],
4681
4671
  "flags": {
4682
4672
  "project-id": {
4683
4673
  "char": "p",
4684
- "description": "Project ID to create dataset alias in (overrides CLI configuration)",
4674
+ "description": "Project ID to disable embeddings for (overrides CLI configuration)",
4685
4675
  "helpGroup": "OVERRIDE",
4686
4676
  "name": "project-id",
4687
4677
  "hasDynamicHelp": false,
@@ -4692,9 +4682,9 @@
4692
4682
  },
4693
4683
  "hasDynamicHelp": false,
4694
4684
  "hiddenAliases": [
4695
- "dataset:alias:create"
4685
+ "dataset:embeddings:disable"
4696
4686
  ],
4697
- "id": "datasets:alias:create",
4687
+ "id": "datasets:embeddings:disable",
4698
4688
  "pluginAlias": "@sanity/cli",
4699
4689
  "pluginName": "@sanity/cli",
4700
4690
  "pluginType": "core",
@@ -4704,34 +4694,38 @@
4704
4694
  "dist",
4705
4695
  "commands",
4706
4696
  "datasets",
4707
- "alias",
4708
- "create.js"
4697
+ "embeddings",
4698
+ "disable.js"
4709
4699
  ]
4710
4700
  },
4711
- "datasets:alias:delete": {
4701
+ "datasets:embeddings:enable": {
4712
4702
  "aliases": [],
4713
4703
  "args": {
4714
- "aliasName": {
4715
- "description": "Dataset alias name to delete",
4716
- "name": "aliasName",
4717
- "required": true
4704
+ "dataset": {
4705
+ "description": "Dataset name to enable embeddings for",
4706
+ "name": "dataset",
4707
+ "required": false
4718
4708
  }
4719
4709
  },
4720
- "description": "Delete a dataset alias from the project",
4710
+ "description": "Enable embeddings for a dataset",
4721
4711
  "examples": [
4722
4712
  {
4723
- "command": "<%= config.bin %> <%= command.id %> conference",
4724
- "description": "Delete alias named \"conference\" with confirmation prompt"
4713
+ "command": "<%= config.bin %> <%= command.id %> production",
4714
+ "description": "Enable embeddings for the production dataset"
4725
4715
  },
4726
4716
  {
4727
- "command": "<%= config.bin %> <%= command.id %> conference --force",
4728
- "description": "Delete alias named \"conference\" without confirmation prompt"
4717
+ "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
4718
+ "description": "Enable embeddings with a specific projection"
4719
+ },
4720
+ {
4721
+ "command": "<%= config.bin %> <%= command.id %> production --wait",
4722
+ "description": "Enable embeddings and wait for processing to complete"
4729
4723
  }
4730
4724
  ],
4731
4725
  "flags": {
4732
4726
  "project-id": {
4733
4727
  "char": "p",
4734
- "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
4728
+ "description": "Project ID to enable embeddings for (overrides CLI configuration)",
4735
4729
  "helpGroup": "OVERRIDE",
4736
4730
  "name": "project-id",
4737
4731
  "hasDynamicHelp": false,
@@ -4739,19 +4733,26 @@
4739
4733
  "multiple": false,
4740
4734
  "type": "option"
4741
4735
  },
4742
- "force": {
4743
- "description": "Skip confirmation prompt and delete immediately",
4744
- "name": "force",
4736
+ "projection": {
4737
+ "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
4738
+ "name": "projection",
4745
4739
  "required": false,
4740
+ "hasDynamicHelp": false,
4741
+ "multiple": false,
4742
+ "type": "option"
4743
+ },
4744
+ "wait": {
4745
+ "description": "Wait for embeddings processing to complete before returning",
4746
+ "name": "wait",
4746
4747
  "allowNo": false,
4747
4748
  "type": "boolean"
4748
4749
  }
4749
4750
  },
4750
4751
  "hasDynamicHelp": false,
4751
4752
  "hiddenAliases": [
4752
- "dataset:alias:delete"
4753
+ "dataset:embeddings:enable"
4753
4754
  ],
4754
- "id": "datasets:alias:delete",
4755
+ "id": "datasets:embeddings:enable",
4755
4756
  "pluginAlias": "@sanity/cli",
4756
4757
  "pluginName": "@sanity/cli",
4757
4758
  "pluginType": "core",
@@ -4761,67 +4762,43 @@
4761
4762
  "dist",
4762
4763
  "commands",
4763
4764
  "datasets",
4764
- "alias",
4765
- "delete.js"
4765
+ "embeddings",
4766
+ "enable.js"
4766
4767
  ]
4767
4768
  },
4768
- "datasets:alias:link": {
4769
+ "datasets:embeddings:status": {
4769
4770
  "aliases": [],
4770
4771
  "args": {
4771
- "aliasName": {
4772
- "description": "Dataset alias name to link",
4773
- "name": "aliasName",
4774
- "required": false
4775
- },
4776
- "targetDataset": {
4777
- "description": "Target dataset name to link the alias to",
4778
- "name": "targetDataset",
4772
+ "dataset": {
4773
+ "description": "The name of the dataset to check embeddings status for",
4774
+ "name": "dataset",
4779
4775
  "required": false
4780
4776
  }
4781
4777
  },
4782
- "description": "Link a dataset alias to a dataset in the project",
4778
+ "description": "Show embeddings settings and status for a dataset",
4783
4779
  "examples": [
4784
4780
  {
4785
- "command": "<%= config.bin %> <%= command.id %>",
4786
- "description": "Link an alias with interactive prompts"
4787
- },
4788
- {
4789
- "command": "<%= config.bin %> <%= command.id %> conference",
4790
- "description": "Link alias named \"conference\" with interactive dataset selection"
4791
- },
4792
- {
4793
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
4794
- "description": "Link alias \"conference\" to \"conf-2025\" dataset"
4795
- },
4796
- {
4797
- "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
4798
- "description": "Force link without confirmation (skip relink prompt)"
4781
+ "command": "<%= config.bin %> <%= command.id %> production",
4782
+ "description": "Show embeddings status for the production dataset"
4799
4783
  }
4800
4784
  ],
4801
4785
  "flags": {
4802
4786
  "project-id": {
4803
4787
  "char": "p",
4804
- "description": "Project ID to link dataset alias in (overrides CLI configuration)",
4788
+ "description": "Project ID to check embeddings status for (overrides CLI configuration)",
4805
4789
  "helpGroup": "OVERRIDE",
4806
4790
  "name": "project-id",
4807
4791
  "hasDynamicHelp": false,
4808
4792
  "helpValue": "<id>",
4809
4793
  "multiple": false,
4810
4794
  "type": "option"
4811
- },
4812
- "force": {
4813
- "description": "Skip confirmation prompt when relinking existing alias",
4814
- "name": "force",
4815
- "required": false,
4816
- "allowNo": false,
4817
- "type": "boolean"
4818
4795
  }
4819
4796
  },
4820
4797
  "hasDynamicHelp": false,
4821
4798
  "hiddenAliases": [
4822
- "dataset:alias:link"
4799
+ "dataset:embeddings:status"
4823
4800
  ],
4824
- "id": "datasets:alias:link",
4801
+ "id": "datasets:embeddings:status",
4825
4802
  "pluginAlias": "@sanity/cli",
4826
4803
  "pluginName": "@sanity/cli",
4827
4804
  "pluginType": "core",
@@ -4831,58 +4808,43 @@
4831
4808
  "dist",
4832
4809
  "commands",
4833
4810
  "datasets",
4834
- "alias",
4835
- "link.js"
4811
+ "embeddings",
4812
+ "status.js"
4836
4813
  ]
4837
4814
  },
4838
- "datasets:alias:unlink": {
4815
+ "datasets:visibility:get": {
4839
4816
  "aliases": [],
4840
4817
  "args": {
4841
- "aliasName": {
4842
- "description": "Dataset alias name to unlink",
4843
- "name": "aliasName",
4844
- "required": false
4818
+ "dataset": {
4819
+ "description": "The name of the dataset to get visibility for",
4820
+ "name": "dataset",
4821
+ "required": true
4845
4822
  }
4846
4823
  },
4847
- "description": "Unlink a dataset alias from its dataset in the project",
4824
+ "description": "Get the visibility of a dataset",
4848
4825
  "examples": [
4849
4826
  {
4850
- "command": "<%= config.bin %> <%= command.id %>",
4851
- "description": "Unlink an alias with interactive selection"
4852
- },
4853
- {
4854
- "command": "<%= config.bin %> <%= command.id %> conference",
4855
- "description": "Unlink alias \"conference\" with confirmation prompt"
4856
- },
4857
- {
4858
- "command": "<%= config.bin %> <%= command.id %> conference --force",
4859
- "description": "Unlink alias \"conference\" without confirmation prompt"
4827
+ "command": "<%= config.bin %> <%= command.id %> my-dataset",
4828
+ "description": "Check the visibility of a dataset"
4860
4829
  }
4861
4830
  ],
4862
4831
  "flags": {
4863
4832
  "project-id": {
4864
4833
  "char": "p",
4865
- "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
4834
+ "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
4866
4835
  "helpGroup": "OVERRIDE",
4867
4836
  "name": "project-id",
4868
4837
  "hasDynamicHelp": false,
4869
4838
  "helpValue": "<id>",
4870
4839
  "multiple": false,
4871
4840
  "type": "option"
4872
- },
4873
- "force": {
4874
- "description": "Skip confirmation prompt and unlink immediately",
4875
- "name": "force",
4876
- "required": false,
4877
- "allowNo": false,
4878
- "type": "boolean"
4879
4841
  }
4880
4842
  },
4881
4843
  "hasDynamicHelp": false,
4882
4844
  "hiddenAliases": [
4883
- "dataset:alias:unlink"
4845
+ "dataset:visibility:get"
4884
4846
  ],
4885
- "id": "datasets:alias:unlink",
4847
+ "id": "datasets:visibility:get",
4886
4848
  "pluginAlias": "@sanity/cli",
4887
4849
  "pluginName": "@sanity/cli",
4888
4850
  "pluginType": "core",
@@ -4892,30 +4854,43 @@
4892
4854
  "dist",
4893
4855
  "commands",
4894
4856
  "datasets",
4895
- "alias",
4896
- "unlink.js"
4857
+ "visibility",
4858
+ "get.js"
4897
4859
  ]
4898
4860
  },
4899
- "datasets:embeddings:disable": {
4861
+ "datasets:visibility:set": {
4900
4862
  "aliases": [],
4901
4863
  "args": {
4902
4864
  "dataset": {
4903
- "description": "Dataset name to disable embeddings for",
4865
+ "description": "The name of the dataset to set visibility for",
4904
4866
  "name": "dataset",
4905
- "required": false
4867
+ "required": true
4868
+ },
4869
+ "mode": {
4870
+ "description": "The visibility mode to set",
4871
+ "name": "mode",
4872
+ "options": [
4873
+ "public",
4874
+ "private"
4875
+ ],
4876
+ "required": true
4906
4877
  }
4907
4878
  },
4908
- "description": "Disable embeddings for a dataset",
4879
+ "description": "Set the visibility of a dataset",
4909
4880
  "examples": [
4910
4881
  {
4911
- "command": "<%= config.bin %> <%= command.id %> production",
4912
- "description": "Disable embeddings for the production dataset"
4882
+ "command": "<%= config.bin %> <%= command.id %> my-dataset private",
4883
+ "description": "Make a dataset private"
4884
+ },
4885
+ {
4886
+ "command": "<%= config.bin %> <%= command.id %> my-dataset public",
4887
+ "description": "Make a dataset public"
4913
4888
  }
4914
4889
  ],
4915
4890
  "flags": {
4916
4891
  "project-id": {
4917
4892
  "char": "p",
4918
- "description": "Project ID to disable embeddings for (overrides CLI configuration)",
4893
+ "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
4919
4894
  "helpGroup": "OVERRIDE",
4920
4895
  "name": "project-id",
4921
4896
  "hasDynamicHelp": false,
@@ -4926,9 +4901,9 @@
4926
4901
  },
4927
4902
  "hasDynamicHelp": false,
4928
4903
  "hiddenAliases": [
4929
- "dataset:embeddings:disable"
4904
+ "dataset:visibility:set"
4930
4905
  ],
4931
- "id": "datasets:embeddings:disable",
4906
+ "id": "datasets:visibility:set",
4932
4907
  "pluginAlias": "@sanity/cli",
4933
4908
  "pluginName": "@sanity/cli",
4934
4909
  "pluginType": "core",
@@ -4938,65 +4913,60 @@
4938
4913
  "dist",
4939
4914
  "commands",
4940
4915
  "datasets",
4941
- "embeddings",
4942
- "disable.js"
4916
+ "visibility",
4917
+ "set.js"
4943
4918
  ]
4944
4919
  },
4945
- "datasets:embeddings:enable": {
4920
+ "datasets:alias:create": {
4946
4921
  "aliases": [],
4947
4922
  "args": {
4948
- "dataset": {
4949
- "description": "Dataset name to enable embeddings for",
4950
- "name": "dataset",
4923
+ "aliasName": {
4924
+ "description": "Dataset alias name to create",
4925
+ "name": "aliasName",
4926
+ "required": false
4927
+ },
4928
+ "targetDataset": {
4929
+ "description": "Target dataset name to link the alias to",
4930
+ "name": "targetDataset",
4951
4931
  "required": false
4952
4932
  }
4953
4933
  },
4954
- "description": "Enable embeddings for a dataset",
4934
+ "description": "Create a dataset alias for the project",
4955
4935
  "examples": [
4956
4936
  {
4957
- "command": "<%= config.bin %> <%= command.id %> production",
4958
- "description": "Enable embeddings for the production dataset"
4937
+ "command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
4938
+ "description": "Create alias in a specific project"
4959
4939
  },
4960
4940
  {
4961
- "command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
4962
- "description": "Enable embeddings with a specific projection"
4941
+ "command": "<%= config.bin %> <%= command.id %>",
4942
+ "description": "Create an alias with interactive prompts"
4963
4943
  },
4964
4944
  {
4965
- "command": "<%= config.bin %> <%= command.id %> production --wait",
4966
- "description": "Enable embeddings and wait for processing to complete"
4945
+ "command": "<%= config.bin %> <%= command.id %> conference",
4946
+ "description": "Create alias named \"conference\" with interactive dataset selection"
4947
+ },
4948
+ {
4949
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
4950
+ "description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
4967
4951
  }
4968
4952
  ],
4969
4953
  "flags": {
4970
4954
  "project-id": {
4971
4955
  "char": "p",
4972
- "description": "Project ID to enable embeddings for (overrides CLI configuration)",
4956
+ "description": "Project ID to create dataset alias in (overrides CLI configuration)",
4973
4957
  "helpGroup": "OVERRIDE",
4974
4958
  "name": "project-id",
4975
4959
  "hasDynamicHelp": false,
4976
4960
  "helpValue": "<id>",
4977
4961
  "multiple": false,
4978
4962
  "type": "option"
4979
- },
4980
- "projection": {
4981
- "description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
4982
- "name": "projection",
4983
- "required": false,
4984
- "hasDynamicHelp": false,
4985
- "multiple": false,
4986
- "type": "option"
4987
- },
4988
- "wait": {
4989
- "description": "Wait for embeddings processing to complete before returning",
4990
- "name": "wait",
4991
- "allowNo": false,
4992
- "type": "boolean"
4993
4963
  }
4994
4964
  },
4995
4965
  "hasDynamicHelp": false,
4996
4966
  "hiddenAliases": [
4997
- "dataset:embeddings:enable"
4967
+ "dataset:alias:create"
4998
4968
  ],
4999
- "id": "datasets:embeddings:enable",
4969
+ "id": "datasets:alias:create",
5000
4970
  "pluginAlias": "@sanity/cli",
5001
4971
  "pluginName": "@sanity/cli",
5002
4972
  "pluginType": "core",
@@ -5006,43 +4976,54 @@
5006
4976
  "dist",
5007
4977
  "commands",
5008
4978
  "datasets",
5009
- "embeddings",
5010
- "enable.js"
4979
+ "alias",
4980
+ "create.js"
5011
4981
  ]
5012
4982
  },
5013
- "datasets:embeddings:status": {
4983
+ "datasets:alias:delete": {
5014
4984
  "aliases": [],
5015
4985
  "args": {
5016
- "dataset": {
5017
- "description": "The name of the dataset to check embeddings status for",
5018
- "name": "dataset",
5019
- "required": false
4986
+ "aliasName": {
4987
+ "description": "Dataset alias name to delete",
4988
+ "name": "aliasName",
4989
+ "required": true
5020
4990
  }
5021
4991
  },
5022
- "description": "Show embeddings settings and status for a dataset",
4992
+ "description": "Delete a dataset alias from the project",
5023
4993
  "examples": [
5024
4994
  {
5025
- "command": "<%= config.bin %> <%= command.id %> production",
5026
- "description": "Show embeddings status for the production dataset"
4995
+ "command": "<%= config.bin %> <%= command.id %> conference",
4996
+ "description": "Delete alias named \"conference\" with confirmation prompt"
4997
+ },
4998
+ {
4999
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
5000
+ "description": "Delete alias named \"conference\" without confirmation prompt"
5027
5001
  }
5028
5002
  ],
5029
5003
  "flags": {
5030
5004
  "project-id": {
5031
5005
  "char": "p",
5032
- "description": "Project ID to check embeddings status for (overrides CLI configuration)",
5006
+ "description": "Project ID to delete dataset alias from (overrides CLI configuration)",
5033
5007
  "helpGroup": "OVERRIDE",
5034
5008
  "name": "project-id",
5035
5009
  "hasDynamicHelp": false,
5036
5010
  "helpValue": "<id>",
5037
5011
  "multiple": false,
5038
5012
  "type": "option"
5013
+ },
5014
+ "force": {
5015
+ "description": "Skip confirmation prompt and delete immediately",
5016
+ "name": "force",
5017
+ "required": false,
5018
+ "allowNo": false,
5019
+ "type": "boolean"
5039
5020
  }
5040
5021
  },
5041
5022
  "hasDynamicHelp": false,
5042
5023
  "hiddenAliases": [
5043
- "dataset:embeddings:status"
5024
+ "dataset:alias:delete"
5044
5025
  ],
5045
- "id": "datasets:embeddings:status",
5026
+ "id": "datasets:alias:delete",
5046
5027
  "pluginAlias": "@sanity/cli",
5047
5028
  "pluginName": "@sanity/cli",
5048
5029
  "pluginType": "core",
@@ -5052,43 +5033,67 @@
5052
5033
  "dist",
5053
5034
  "commands",
5054
5035
  "datasets",
5055
- "embeddings",
5056
- "status.js"
5036
+ "alias",
5037
+ "delete.js"
5057
5038
  ]
5058
5039
  },
5059
- "datasets:visibility:get": {
5040
+ "datasets:alias:link": {
5060
5041
  "aliases": [],
5061
5042
  "args": {
5062
- "dataset": {
5063
- "description": "The name of the dataset to get visibility for",
5064
- "name": "dataset",
5065
- "required": true
5043
+ "aliasName": {
5044
+ "description": "Dataset alias name to link",
5045
+ "name": "aliasName",
5046
+ "required": false
5047
+ },
5048
+ "targetDataset": {
5049
+ "description": "Target dataset name to link the alias to",
5050
+ "name": "targetDataset",
5051
+ "required": false
5066
5052
  }
5067
5053
  },
5068
- "description": "Get the visibility of a dataset",
5054
+ "description": "Link a dataset alias to a dataset in the project",
5069
5055
  "examples": [
5070
5056
  {
5071
- "command": "<%= config.bin %> <%= command.id %> my-dataset",
5072
- "description": "Check the visibility of a dataset"
5057
+ "command": "<%= config.bin %> <%= command.id %>",
5058
+ "description": "Link an alias with interactive prompts"
5059
+ },
5060
+ {
5061
+ "command": "<%= config.bin %> <%= command.id %> conference",
5062
+ "description": "Link alias named \"conference\" with interactive dataset selection"
5063
+ },
5064
+ {
5065
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025",
5066
+ "description": "Link alias \"conference\" to \"conf-2025\" dataset"
5067
+ },
5068
+ {
5069
+ "command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
5070
+ "description": "Force link without confirmation (skip relink prompt)"
5073
5071
  }
5074
5072
  ],
5075
5073
  "flags": {
5076
5074
  "project-id": {
5077
5075
  "char": "p",
5078
- "description": "Project ID to get dataset visibility for (overrides CLI configuration)",
5076
+ "description": "Project ID to link dataset alias in (overrides CLI configuration)",
5079
5077
  "helpGroup": "OVERRIDE",
5080
5078
  "name": "project-id",
5081
5079
  "hasDynamicHelp": false,
5082
5080
  "helpValue": "<id>",
5083
5081
  "multiple": false,
5084
5082
  "type": "option"
5083
+ },
5084
+ "force": {
5085
+ "description": "Skip confirmation prompt when relinking existing alias",
5086
+ "name": "force",
5087
+ "required": false,
5088
+ "allowNo": false,
5089
+ "type": "boolean"
5085
5090
  }
5086
5091
  },
5087
5092
  "hasDynamicHelp": false,
5088
5093
  "hiddenAliases": [
5089
- "dataset:visibility:get"
5094
+ "dataset:alias:link"
5090
5095
  ],
5091
- "id": "datasets:visibility:get",
5096
+ "id": "datasets:alias:link",
5092
5097
  "pluginAlias": "@sanity/cli",
5093
5098
  "pluginName": "@sanity/cli",
5094
5099
  "pluginType": "core",
@@ -5098,56 +5103,58 @@
5098
5103
  "dist",
5099
5104
  "commands",
5100
5105
  "datasets",
5101
- "visibility",
5102
- "get.js"
5106
+ "alias",
5107
+ "link.js"
5103
5108
  ]
5104
5109
  },
5105
- "datasets:visibility:set": {
5110
+ "datasets:alias:unlink": {
5106
5111
  "aliases": [],
5107
5112
  "args": {
5108
- "dataset": {
5109
- "description": "The name of the dataset to set visibility for",
5110
- "name": "dataset",
5111
- "required": true
5112
- },
5113
- "mode": {
5114
- "description": "The visibility mode to set",
5115
- "name": "mode",
5116
- "options": [
5117
- "public",
5118
- "private"
5119
- ],
5120
- "required": true
5113
+ "aliasName": {
5114
+ "description": "Dataset alias name to unlink",
5115
+ "name": "aliasName",
5116
+ "required": false
5121
5117
  }
5122
5118
  },
5123
- "description": "Set the visibility of a dataset",
5119
+ "description": "Unlink a dataset alias from its dataset in the project",
5124
5120
  "examples": [
5125
5121
  {
5126
- "command": "<%= config.bin %> <%= command.id %> my-dataset private",
5127
- "description": "Make a dataset private"
5122
+ "command": "<%= config.bin %> <%= command.id %>",
5123
+ "description": "Unlink an alias with interactive selection"
5128
5124
  },
5129
5125
  {
5130
- "command": "<%= config.bin %> <%= command.id %> my-dataset public",
5131
- "description": "Make a dataset public"
5126
+ "command": "<%= config.bin %> <%= command.id %> conference",
5127
+ "description": "Unlink alias \"conference\" with confirmation prompt"
5128
+ },
5129
+ {
5130
+ "command": "<%= config.bin %> <%= command.id %> conference --force",
5131
+ "description": "Unlink alias \"conference\" without confirmation prompt"
5132
5132
  }
5133
5133
  ],
5134
5134
  "flags": {
5135
5135
  "project-id": {
5136
5136
  "char": "p",
5137
- "description": "Project ID to set dataset visibility for (overrides CLI configuration)",
5137
+ "description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
5138
5138
  "helpGroup": "OVERRIDE",
5139
5139
  "name": "project-id",
5140
5140
  "hasDynamicHelp": false,
5141
5141
  "helpValue": "<id>",
5142
5142
  "multiple": false,
5143
5143
  "type": "option"
5144
+ },
5145
+ "force": {
5146
+ "description": "Skip confirmation prompt and unlink immediately",
5147
+ "name": "force",
5148
+ "required": false,
5149
+ "allowNo": false,
5150
+ "type": "boolean"
5144
5151
  }
5145
5152
  },
5146
5153
  "hasDynamicHelp": false,
5147
5154
  "hiddenAliases": [
5148
- "dataset:visibility:set"
5155
+ "dataset:alias:unlink"
5149
5156
  ],
5150
- "id": "datasets:visibility:set",
5157
+ "id": "datasets:alias:unlink",
5151
5158
  "pluginAlias": "@sanity/cli",
5152
5159
  "pluginName": "@sanity/cli",
5153
5160
  "pluginType": "core",
@@ -5157,10 +5164,10 @@
5157
5164
  "dist",
5158
5165
  "commands",
5159
5166
  "datasets",
5160
- "visibility",
5161
- "set.js"
5167
+ "alias",
5168
+ "unlink.js"
5162
5169
  ]
5163
5170
  }
5164
5171
  },
5165
- "version": "7.6.0"
5172
+ "version": "7.7.0"
5166
5173
  }