@sanity/cli 8.36.0 → 8.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/deploy/deployApp.js +20 -7
- package/dist/actions/deploy/deployApp.js.map +1 -1
- package/dist/actions/deploy/deployChecks.js +2 -1
- package/dist/actions/deploy/deployChecks.js.map +1 -1
- package/dist/actions/deploy/deployDashboardConfig.js +11 -5
- package/dist/actions/deploy/deployDashboardConfig.js.map +1 -1
- package/dist/actions/deploy/deployRunner.js.map +1 -1
- package/dist/actions/deploy/deployStudio.js +24 -7
- package/dist/actions/deploy/deployStudio.js.map +1 -1
- package/dist/actions/deploy/resolveDeployTarget.js +2 -2
- package/dist/actions/deploy/resolveDeployTarget.js.map +1 -1
- package/dist/actions/targets/resolveCommandTarget.js +130 -0
- package/dist/actions/targets/resolveCommandTarget.js.map +1 -0
- package/dist/actions/undeploy/runUndeploy.js +19 -3
- package/dist/actions/undeploy/runUndeploy.js.map +1 -1
- package/dist/commands/build.js +8 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/documents/query.js +26 -11
- package/dist/commands/documents/query.js.map +1 -1
- package/dist/prompts/promptForProject.js +9 -3
- package/dist/prompts/promptForProject.js.map +1 -1
- package/dist/services/blueprints.js +18 -0
- package/dist/services/blueprints.js.map +1 -0
- package/dist/util/checkoutBlueprint.js +33 -0
- package/dist/util/checkoutBlueprint.js.map +1 -0
- package/dist/util/sharedFlags.js +10 -0
- package/dist/util/sharedFlags.js.map +1 -1
- package/oclif.manifest.json +103 -96
- package/package.json +4 -4
package/oclif.manifest.json
CHANGED
|
@@ -3774,6 +3774,13 @@
|
|
|
3774
3774
|
"multiple": false,
|
|
3775
3775
|
"type": "option"
|
|
3776
3776
|
},
|
|
3777
|
+
"with-blueprints": {
|
|
3778
|
+
"description": "Use Blueprint-aware behavior",
|
|
3779
|
+
"hidden": true,
|
|
3780
|
+
"name": "with-blueprints",
|
|
3781
|
+
"allowNo": false,
|
|
3782
|
+
"type": "boolean"
|
|
3783
|
+
},
|
|
3777
3784
|
"anonymous": {
|
|
3778
3785
|
"description": "Send the query without any authorization token",
|
|
3779
3786
|
"name": "anonymous",
|
|
@@ -9886,20 +9893,20 @@
|
|
|
9886
9893
|
"unlink.js"
|
|
9887
9894
|
]
|
|
9888
9895
|
},
|
|
9889
|
-
"datasets:
|
|
9896
|
+
"datasets:embeddings:disable": {
|
|
9890
9897
|
"aliases": [],
|
|
9891
9898
|
"args": {
|
|
9892
9899
|
"dataset": {
|
|
9893
|
-
"description": "
|
|
9900
|
+
"description": "Dataset name to disable embeddings for",
|
|
9894
9901
|
"name": "dataset",
|
|
9895
|
-
"required":
|
|
9902
|
+
"required": false
|
|
9896
9903
|
}
|
|
9897
9904
|
},
|
|
9898
|
-
"description": "
|
|
9905
|
+
"description": "Disable embeddings for a dataset",
|
|
9899
9906
|
"examples": [
|
|
9900
9907
|
{
|
|
9901
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
9902
|
-
"description": "
|
|
9908
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
9909
|
+
"description": "Disable embeddings for the production dataset"
|
|
9903
9910
|
}
|
|
9904
9911
|
],
|
|
9905
9912
|
"flags": {
|
|
@@ -9909,7 +9916,7 @@
|
|
|
9909
9916
|
],
|
|
9910
9917
|
"char": "p",
|
|
9911
9918
|
"deprecateAliases": true,
|
|
9912
|
-
"description": "Project ID to
|
|
9919
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
9913
9920
|
"helpGroup": "OVERRIDE",
|
|
9914
9921
|
"name": "project",
|
|
9915
9922
|
"hasDynamicHelp": false,
|
|
@@ -9920,9 +9927,9 @@
|
|
|
9920
9927
|
},
|
|
9921
9928
|
"hasDynamicHelp": false,
|
|
9922
9929
|
"hiddenAliases": [
|
|
9923
|
-
"dataset:
|
|
9930
|
+
"dataset:embeddings:disable"
|
|
9924
9931
|
],
|
|
9925
|
-
"id": "datasets:
|
|
9932
|
+
"id": "datasets:embeddings:disable",
|
|
9926
9933
|
"pluginAlias": "@sanity/cli",
|
|
9927
9934
|
"pluginName": "@sanity/cli",
|
|
9928
9935
|
"pluginType": "core",
|
|
@@ -9932,37 +9939,32 @@
|
|
|
9932
9939
|
"dist",
|
|
9933
9940
|
"commands",
|
|
9934
9941
|
"datasets",
|
|
9935
|
-
"
|
|
9936
|
-
"
|
|
9942
|
+
"embeddings",
|
|
9943
|
+
"disable.js"
|
|
9937
9944
|
]
|
|
9938
9945
|
},
|
|
9939
|
-
"datasets:
|
|
9946
|
+
"datasets:embeddings:enable": {
|
|
9940
9947
|
"aliases": [],
|
|
9941
9948
|
"args": {
|
|
9942
9949
|
"dataset": {
|
|
9943
|
-
"description": "
|
|
9950
|
+
"description": "Dataset name to enable embeddings for",
|
|
9944
9951
|
"name": "dataset",
|
|
9945
|
-
"required":
|
|
9946
|
-
},
|
|
9947
|
-
"mode": {
|
|
9948
|
-
"description": "The visibility mode to set",
|
|
9949
|
-
"name": "mode",
|
|
9950
|
-
"options": [
|
|
9951
|
-
"public",
|
|
9952
|
-
"private"
|
|
9953
|
-
],
|
|
9954
|
-
"required": true
|
|
9952
|
+
"required": false
|
|
9955
9953
|
}
|
|
9956
9954
|
},
|
|
9957
|
-
"description": "
|
|
9955
|
+
"description": "Enable embeddings for a dataset",
|
|
9958
9956
|
"examples": [
|
|
9959
9957
|
{
|
|
9960
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
9961
|
-
"description": "
|
|
9958
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
9959
|
+
"description": "Enable embeddings for the production dataset"
|
|
9962
9960
|
},
|
|
9963
9961
|
{
|
|
9964
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
9965
|
-
"description": "
|
|
9962
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
9963
|
+
"description": "Enable embeddings with a specific projection"
|
|
9964
|
+
},
|
|
9965
|
+
{
|
|
9966
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
9967
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
9966
9968
|
}
|
|
9967
9969
|
],
|
|
9968
9970
|
"flags": {
|
|
@@ -9972,47 +9974,71 @@
|
|
|
9972
9974
|
],
|
|
9973
9975
|
"char": "p",
|
|
9974
9976
|
"deprecateAliases": true,
|
|
9975
|
-
"description": "Project ID to
|
|
9977
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
9976
9978
|
"helpGroup": "OVERRIDE",
|
|
9977
9979
|
"name": "project",
|
|
9978
9980
|
"hasDynamicHelp": false,
|
|
9979
9981
|
"helpValue": "<id>",
|
|
9980
9982
|
"multiple": false,
|
|
9981
9983
|
"type": "option"
|
|
9984
|
+
},
|
|
9985
|
+
"projection": {
|
|
9986
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
9987
|
+
"name": "projection",
|
|
9988
|
+
"required": false,
|
|
9989
|
+
"hasDynamicHelp": false,
|
|
9990
|
+
"multiple": false,
|
|
9991
|
+
"type": "option"
|
|
9992
|
+
},
|
|
9993
|
+
"wait": {
|
|
9994
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
9995
|
+
"name": "wait",
|
|
9996
|
+
"allowNo": false,
|
|
9997
|
+
"type": "boolean"
|
|
9982
9998
|
}
|
|
9983
9999
|
},
|
|
9984
10000
|
"hasDynamicHelp": false,
|
|
9985
10001
|
"hiddenAliases": [
|
|
9986
|
-
"dataset:
|
|
10002
|
+
"dataset:embeddings:enable"
|
|
9987
10003
|
],
|
|
9988
|
-
"id": "datasets:
|
|
10004
|
+
"id": "datasets:embeddings:enable",
|
|
9989
10005
|
"pluginAlias": "@sanity/cli",
|
|
9990
10006
|
"pluginName": "@sanity/cli",
|
|
9991
10007
|
"pluginType": "core",
|
|
9992
10008
|
"strict": true,
|
|
10009
|
+
"telemetry": {
|
|
10010
|
+
"redactedFlags": [
|
|
10011
|
+
{
|
|
10012
|
+
"canonical": "--projection",
|
|
10013
|
+
"flags": [
|
|
10014
|
+
"--projection"
|
|
10015
|
+
]
|
|
10016
|
+
}
|
|
10017
|
+
]
|
|
10018
|
+
},
|
|
9993
10019
|
"isESM": true,
|
|
9994
10020
|
"relativePath": [
|
|
9995
10021
|
"dist",
|
|
9996
10022
|
"commands",
|
|
9997
10023
|
"datasets",
|
|
9998
|
-
"
|
|
9999
|
-
"
|
|
10024
|
+
"embeddings",
|
|
10025
|
+
"enable.js"
|
|
10000
10026
|
]
|
|
10001
10027
|
},
|
|
10002
|
-
"datasets:embeddings:
|
|
10028
|
+
"datasets:embeddings:status": {
|
|
10003
10029
|
"aliases": [],
|
|
10004
10030
|
"args": {
|
|
10005
10031
|
"dataset": {
|
|
10006
|
-
"description": "
|
|
10032
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
10007
10033
|
"name": "dataset",
|
|
10008
10034
|
"required": false
|
|
10009
10035
|
}
|
|
10010
10036
|
},
|
|
10011
|
-
"description": "
|
|
10037
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
10012
10038
|
"examples": [
|
|
10013
10039
|
{
|
|
10014
10040
|
"command": "<%= config.bin %> <%= command.id %> production",
|
|
10015
|
-
"description": "
|
|
10041
|
+
"description": "Show embeddings status for the production dataset"
|
|
10016
10042
|
}
|
|
10017
10043
|
],
|
|
10018
10044
|
"flags": {
|
|
@@ -10022,7 +10048,7 @@
|
|
|
10022
10048
|
],
|
|
10023
10049
|
"char": "p",
|
|
10024
10050
|
"deprecateAliases": true,
|
|
10025
|
-
"description": "Project ID to
|
|
10051
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
10026
10052
|
"helpGroup": "OVERRIDE",
|
|
10027
10053
|
"name": "project",
|
|
10028
10054
|
"hasDynamicHelp": false,
|
|
@@ -10033,9 +10059,9 @@
|
|
|
10033
10059
|
},
|
|
10034
10060
|
"hasDynamicHelp": false,
|
|
10035
10061
|
"hiddenAliases": [
|
|
10036
|
-
"dataset:embeddings:
|
|
10062
|
+
"dataset:embeddings:status"
|
|
10037
10063
|
],
|
|
10038
|
-
"id": "datasets:embeddings:
|
|
10064
|
+
"id": "datasets:embeddings:status",
|
|
10039
10065
|
"pluginAlias": "@sanity/cli",
|
|
10040
10066
|
"pluginName": "@sanity/cli",
|
|
10041
10067
|
"pluginType": "core",
|
|
@@ -10046,31 +10072,23 @@
|
|
|
10046
10072
|
"commands",
|
|
10047
10073
|
"datasets",
|
|
10048
10074
|
"embeddings",
|
|
10049
|
-
"
|
|
10075
|
+
"status.js"
|
|
10050
10076
|
]
|
|
10051
10077
|
},
|
|
10052
|
-
"datasets:
|
|
10078
|
+
"datasets:visibility:get": {
|
|
10053
10079
|
"aliases": [],
|
|
10054
10080
|
"args": {
|
|
10055
10081
|
"dataset": {
|
|
10056
|
-
"description": "
|
|
10082
|
+
"description": "The name of the dataset to get visibility for",
|
|
10057
10083
|
"name": "dataset",
|
|
10058
|
-
"required":
|
|
10084
|
+
"required": true
|
|
10059
10085
|
}
|
|
10060
10086
|
},
|
|
10061
|
-
"description": "
|
|
10087
|
+
"description": "Get the visibility of a dataset",
|
|
10062
10088
|
"examples": [
|
|
10063
10089
|
{
|
|
10064
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
10065
|
-
"description": "
|
|
10066
|
-
},
|
|
10067
|
-
{
|
|
10068
|
-
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
10069
|
-
"description": "Enable embeddings with a specific projection"
|
|
10070
|
-
},
|
|
10071
|
-
{
|
|
10072
|
-
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
10073
|
-
"description": "Enable embeddings and wait for processing to complete"
|
|
10090
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset",
|
|
10091
|
+
"description": "Check the visibility of a dataset"
|
|
10074
10092
|
}
|
|
10075
10093
|
],
|
|
10076
10094
|
"flags": {
|
|
@@ -10080,71 +10098,60 @@
|
|
|
10080
10098
|
],
|
|
10081
10099
|
"char": "p",
|
|
10082
10100
|
"deprecateAliases": true,
|
|
10083
|
-
"description": "Project ID to
|
|
10101
|
+
"description": "Project ID to get dataset visibility for (overrides CLI configuration)",
|
|
10084
10102
|
"helpGroup": "OVERRIDE",
|
|
10085
10103
|
"name": "project",
|
|
10086
10104
|
"hasDynamicHelp": false,
|
|
10087
10105
|
"helpValue": "<id>",
|
|
10088
10106
|
"multiple": false,
|
|
10089
10107
|
"type": "option"
|
|
10090
|
-
},
|
|
10091
|
-
"projection": {
|
|
10092
|
-
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
10093
|
-
"name": "projection",
|
|
10094
|
-
"required": false,
|
|
10095
|
-
"hasDynamicHelp": false,
|
|
10096
|
-
"multiple": false,
|
|
10097
|
-
"type": "option"
|
|
10098
|
-
},
|
|
10099
|
-
"wait": {
|
|
10100
|
-
"description": "Wait for embeddings processing to complete before returning",
|
|
10101
|
-
"name": "wait",
|
|
10102
|
-
"allowNo": false,
|
|
10103
|
-
"type": "boolean"
|
|
10104
10108
|
}
|
|
10105
10109
|
},
|
|
10106
10110
|
"hasDynamicHelp": false,
|
|
10107
10111
|
"hiddenAliases": [
|
|
10108
|
-
"dataset:
|
|
10112
|
+
"dataset:visibility:get"
|
|
10109
10113
|
],
|
|
10110
|
-
"id": "datasets:
|
|
10114
|
+
"id": "datasets:visibility:get",
|
|
10111
10115
|
"pluginAlias": "@sanity/cli",
|
|
10112
10116
|
"pluginName": "@sanity/cli",
|
|
10113
10117
|
"pluginType": "core",
|
|
10114
10118
|
"strict": true,
|
|
10115
|
-
"telemetry": {
|
|
10116
|
-
"redactedFlags": [
|
|
10117
|
-
{
|
|
10118
|
-
"canonical": "--projection",
|
|
10119
|
-
"flags": [
|
|
10120
|
-
"--projection"
|
|
10121
|
-
]
|
|
10122
|
-
}
|
|
10123
|
-
]
|
|
10124
|
-
},
|
|
10125
10119
|
"isESM": true,
|
|
10126
10120
|
"relativePath": [
|
|
10127
10121
|
"dist",
|
|
10128
10122
|
"commands",
|
|
10129
10123
|
"datasets",
|
|
10130
|
-
"
|
|
10131
|
-
"
|
|
10124
|
+
"visibility",
|
|
10125
|
+
"get.js"
|
|
10132
10126
|
]
|
|
10133
10127
|
},
|
|
10134
|
-
"datasets:
|
|
10128
|
+
"datasets:visibility:set": {
|
|
10135
10129
|
"aliases": [],
|
|
10136
10130
|
"args": {
|
|
10137
10131
|
"dataset": {
|
|
10138
|
-
"description": "The name of the dataset to
|
|
10132
|
+
"description": "The name of the dataset to set visibility for",
|
|
10139
10133
|
"name": "dataset",
|
|
10140
|
-
"required":
|
|
10134
|
+
"required": true
|
|
10135
|
+
},
|
|
10136
|
+
"mode": {
|
|
10137
|
+
"description": "The visibility mode to set",
|
|
10138
|
+
"name": "mode",
|
|
10139
|
+
"options": [
|
|
10140
|
+
"public",
|
|
10141
|
+
"private"
|
|
10142
|
+
],
|
|
10143
|
+
"required": true
|
|
10141
10144
|
}
|
|
10142
10145
|
},
|
|
10143
|
-
"description": "
|
|
10146
|
+
"description": "Set the visibility of a dataset",
|
|
10144
10147
|
"examples": [
|
|
10145
10148
|
{
|
|
10146
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
10147
|
-
"description": "
|
|
10149
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset private",
|
|
10150
|
+
"description": "Make a dataset private"
|
|
10151
|
+
},
|
|
10152
|
+
{
|
|
10153
|
+
"command": "<%= config.bin %> <%= command.id %> my-dataset public",
|
|
10154
|
+
"description": "Make a dataset public"
|
|
10148
10155
|
}
|
|
10149
10156
|
],
|
|
10150
10157
|
"flags": {
|
|
@@ -10154,7 +10161,7 @@
|
|
|
10154
10161
|
],
|
|
10155
10162
|
"char": "p",
|
|
10156
10163
|
"deprecateAliases": true,
|
|
10157
|
-
"description": "Project ID to
|
|
10164
|
+
"description": "Project ID to set dataset visibility for (overrides CLI configuration)",
|
|
10158
10165
|
"helpGroup": "OVERRIDE",
|
|
10159
10166
|
"name": "project",
|
|
10160
10167
|
"hasDynamicHelp": false,
|
|
@@ -10165,9 +10172,9 @@
|
|
|
10165
10172
|
},
|
|
10166
10173
|
"hasDynamicHelp": false,
|
|
10167
10174
|
"hiddenAliases": [
|
|
10168
|
-
"dataset:
|
|
10175
|
+
"dataset:visibility:set"
|
|
10169
10176
|
],
|
|
10170
|
-
"id": "datasets:
|
|
10177
|
+
"id": "datasets:visibility:set",
|
|
10171
10178
|
"pluginAlias": "@sanity/cli",
|
|
10172
10179
|
"pluginName": "@sanity/cli",
|
|
10173
10180
|
"pluginType": "core",
|
|
@@ -10177,8 +10184,8 @@
|
|
|
10177
10184
|
"dist",
|
|
10178
10185
|
"commands",
|
|
10179
10186
|
"datasets",
|
|
10180
|
-
"
|
|
10181
|
-
"
|
|
10187
|
+
"visibility",
|
|
10188
|
+
"set.js"
|
|
10182
10189
|
]
|
|
10183
10190
|
},
|
|
10184
10191
|
"context:sources:syncs:confirm": {
|
|
@@ -10428,5 +10435,5 @@
|
|
|
10428
10435
|
]
|
|
10429
10436
|
}
|
|
10430
10437
|
},
|
|
10431
|
-
"version": "8.
|
|
10438
|
+
"version": "8.37.0"
|
|
10432
10439
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.37.0",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity projects and organizations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@oclif/plugin-not-found": "^3.3.0",
|
|
65
65
|
"@sanity/blueprints": "^0.35.0",
|
|
66
66
|
"@sanity/cli-build": "^7.6.0",
|
|
67
|
-
"@sanity/cli-core": "^3.
|
|
67
|
+
"@sanity/cli-core": "^3.18.0",
|
|
68
68
|
"@sanity/cli-setup": "^0.1.1",
|
|
69
69
|
"@sanity/client": "^8.17.0",
|
|
70
70
|
"@sanity/codegen": "^8.3.4",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@sanity/types": "^6.25.0",
|
|
83
83
|
"@sanity/util": "^6.25.0",
|
|
84
84
|
"@sanity/validation": "^6.25.0",
|
|
85
|
-
"@sanity/workbench-cli": "^2.
|
|
85
|
+
"@sanity/workbench-cli": "^2.22.0",
|
|
86
86
|
"@sanity/worker-channels": "^2.0.0",
|
|
87
87
|
"@sanity/workflows": ">=0.39.0 <1.0.0",
|
|
88
88
|
"@sanity/workflows-cli": ">=0.39.0 <1.0.0",
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
"@repo/oxc-config": "0.0.0",
|
|
131
131
|
"@repo/package.config": "0.0.1",
|
|
132
132
|
"@repo/tsconfig": "3.70.0",
|
|
133
|
-
"@sanity/cli-test": "
|
|
133
|
+
"@sanity/cli-test": "28.0.0",
|
|
134
134
|
"@sanity/pkg-utils": "^12.3.4",
|
|
135
135
|
"@swc/cli": "^0.8.2",
|
|
136
136
|
"@swc/core": "^1.16.22",
|