@sanity/cli 7.0.1 → 7.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/oclif.manifest.json
CHANGED
|
@@ -3779,120 +3779,24 @@
|
|
|
3779
3779
|
"list.js"
|
|
3780
3780
|
]
|
|
3781
3781
|
},
|
|
3782
|
-
"
|
|
3783
|
-
"aliases": [],
|
|
3784
|
-
"args": {},
|
|
3785
|
-
"description": "Disable telemetry for your account",
|
|
3786
|
-
"examples": [
|
|
3787
|
-
{
|
|
3788
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3789
|
-
"description": "Disable telemetry for your account"
|
|
3790
|
-
}
|
|
3791
|
-
],
|
|
3792
|
-
"flags": {},
|
|
3793
|
-
"hasDynamicHelp": false,
|
|
3794
|
-
"hiddenAliases": [],
|
|
3795
|
-
"id": "telemetry:disable",
|
|
3796
|
-
"pluginAlias": "@sanity/cli",
|
|
3797
|
-
"pluginName": "@sanity/cli",
|
|
3798
|
-
"pluginType": "core",
|
|
3799
|
-
"strict": true,
|
|
3800
|
-
"isESM": true,
|
|
3801
|
-
"relativePath": [
|
|
3802
|
-
"dist",
|
|
3803
|
-
"commands",
|
|
3804
|
-
"telemetry",
|
|
3805
|
-
"disable.js"
|
|
3806
|
-
]
|
|
3807
|
-
},
|
|
3808
|
-
"telemetry:enable": {
|
|
3809
|
-
"aliases": [],
|
|
3810
|
-
"args": {},
|
|
3811
|
-
"description": "Enable telemetry for your account",
|
|
3812
|
-
"examples": [
|
|
3813
|
-
{
|
|
3814
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3815
|
-
"description": "Enable telemetry for your account"
|
|
3816
|
-
}
|
|
3817
|
-
],
|
|
3818
|
-
"flags": {},
|
|
3819
|
-
"hasDynamicHelp": false,
|
|
3820
|
-
"hiddenAliases": [],
|
|
3821
|
-
"id": "telemetry:enable",
|
|
3822
|
-
"pluginAlias": "@sanity/cli",
|
|
3823
|
-
"pluginName": "@sanity/cli",
|
|
3824
|
-
"pluginType": "core",
|
|
3825
|
-
"strict": true,
|
|
3826
|
-
"isESM": true,
|
|
3827
|
-
"relativePath": [
|
|
3828
|
-
"dist",
|
|
3829
|
-
"commands",
|
|
3830
|
-
"telemetry",
|
|
3831
|
-
"enable.js"
|
|
3832
|
-
]
|
|
3833
|
-
},
|
|
3834
|
-
"telemetry:status": {
|
|
3782
|
+
"schemas:delete": {
|
|
3835
3783
|
"aliases": [],
|
|
3836
3784
|
"args": {},
|
|
3837
|
-
"description": "
|
|
3838
|
-
"examples": [
|
|
3839
|
-
{
|
|
3840
|
-
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
3841
|
-
"description": "Check telemetry status for your account"
|
|
3842
|
-
}
|
|
3843
|
-
],
|
|
3844
|
-
"flags": {},
|
|
3845
|
-
"hasDynamicHelp": false,
|
|
3846
|
-
"hiddenAliases": [],
|
|
3847
|
-
"id": "telemetry:status",
|
|
3848
|
-
"pluginAlias": "@sanity/cli",
|
|
3849
|
-
"pluginName": "@sanity/cli",
|
|
3850
|
-
"pluginType": "core",
|
|
3851
|
-
"strict": true,
|
|
3852
|
-
"isESM": true,
|
|
3853
|
-
"relativePath": [
|
|
3854
|
-
"dist",
|
|
3855
|
-
"commands",
|
|
3856
|
-
"telemetry",
|
|
3857
|
-
"status.js"
|
|
3858
|
-
]
|
|
3859
|
-
},
|
|
3860
|
-
"tokens:add": {
|
|
3861
|
-
"aliases": [],
|
|
3862
|
-
"args": {
|
|
3863
|
-
"label": {
|
|
3864
|
-
"description": "Label for the new token",
|
|
3865
|
-
"name": "label",
|
|
3866
|
-
"required": false
|
|
3867
|
-
}
|
|
3868
|
-
},
|
|
3869
|
-
"description": "Create a new API token for the project",
|
|
3785
|
+
"description": "Delete schema documents by id",
|
|
3870
3786
|
"examples": [
|
|
3871
3787
|
{
|
|
3872
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3873
|
-
"description": "
|
|
3874
|
-
},
|
|
3875
|
-
{
|
|
3876
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
3877
|
-
"description": "Create a token with editor role"
|
|
3878
|
-
},
|
|
3879
|
-
{
|
|
3880
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
3881
|
-
"description": "Create a token in unattended mode"
|
|
3882
|
-
},
|
|
3883
|
-
{
|
|
3884
|
-
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
3885
|
-
"description": "Output token information as JSON"
|
|
3788
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
3789
|
+
"description": "Delete a single schema"
|
|
3886
3790
|
},
|
|
3887
3791
|
{
|
|
3888
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3889
|
-
"description": "
|
|
3792
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
3793
|
+
"description": "Delete multiple schemas"
|
|
3890
3794
|
}
|
|
3891
3795
|
],
|
|
3892
3796
|
"flags": {
|
|
3893
3797
|
"project-id": {
|
|
3894
3798
|
"char": "p",
|
|
3895
|
-
"description": "Project ID to
|
|
3799
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
3896
3800
|
"helpGroup": "OVERRIDE",
|
|
3897
3801
|
"name": "project-id",
|
|
3898
3802
|
"hasDynamicHelp": false,
|
|
@@ -3900,33 +3804,51 @@
|
|
|
3900
3804
|
"multiple": false,
|
|
3901
3805
|
"type": "option"
|
|
3902
3806
|
},
|
|
3903
|
-
"
|
|
3904
|
-
"
|
|
3905
|
-
"
|
|
3906
|
-
"
|
|
3807
|
+
"dataset": {
|
|
3808
|
+
"char": "d",
|
|
3809
|
+
"description": "Delete schemas from a specific dataset",
|
|
3810
|
+
"name": "dataset",
|
|
3811
|
+
"hasDynamicHelp": false,
|
|
3812
|
+
"helpValue": "<name>",
|
|
3813
|
+
"multiple": false,
|
|
3814
|
+
"type": "option"
|
|
3815
|
+
},
|
|
3816
|
+
"extract-manifest": {
|
|
3817
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3818
|
+
"hidden": true,
|
|
3819
|
+
"name": "extract-manifest",
|
|
3820
|
+
"allowNo": true,
|
|
3907
3821
|
"type": "boolean"
|
|
3908
3822
|
},
|
|
3909
|
-
"
|
|
3910
|
-
"description": "
|
|
3911
|
-
"name": "
|
|
3823
|
+
"ids": {
|
|
3824
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
3825
|
+
"name": "ids",
|
|
3826
|
+
"required": true,
|
|
3912
3827
|
"hasDynamicHelp": false,
|
|
3913
|
-
"helpValue": "viewer",
|
|
3914
3828
|
"multiple": false,
|
|
3915
3829
|
"type": "option"
|
|
3916
3830
|
},
|
|
3917
|
-
"
|
|
3918
|
-
"
|
|
3919
|
-
"
|
|
3920
|
-
"name": "
|
|
3831
|
+
"manifest-dir": {
|
|
3832
|
+
"description": "Directory containing manifest file",
|
|
3833
|
+
"hidden": true,
|
|
3834
|
+
"name": "manifest-dir",
|
|
3835
|
+
"default": "./dist/static",
|
|
3836
|
+
"hasDynamicHelp": false,
|
|
3837
|
+
"multiple": false,
|
|
3838
|
+
"type": "option"
|
|
3839
|
+
},
|
|
3840
|
+
"verbose": {
|
|
3841
|
+
"description": "Enable verbose logging",
|
|
3842
|
+
"name": "verbose",
|
|
3921
3843
|
"allowNo": false,
|
|
3922
3844
|
"type": "boolean"
|
|
3923
3845
|
}
|
|
3924
3846
|
},
|
|
3925
3847
|
"hasDynamicHelp": false,
|
|
3926
3848
|
"hiddenAliases": [
|
|
3927
|
-
"
|
|
3849
|
+
"schema:delete"
|
|
3928
3850
|
],
|
|
3929
|
-
"id": "
|
|
3851
|
+
"id": "schemas:delete",
|
|
3930
3852
|
"pluginAlias": "@sanity/cli",
|
|
3931
3853
|
"pluginName": "@sanity/cli",
|
|
3932
3854
|
"pluginType": "core",
|
|
@@ -3935,65 +3857,68 @@
|
|
|
3935
3857
|
"relativePath": [
|
|
3936
3858
|
"dist",
|
|
3937
3859
|
"commands",
|
|
3938
|
-
"
|
|
3939
|
-
"
|
|
3860
|
+
"schemas",
|
|
3861
|
+
"delete.js"
|
|
3940
3862
|
]
|
|
3941
3863
|
},
|
|
3942
|
-
"
|
|
3864
|
+
"schemas:deploy": {
|
|
3943
3865
|
"aliases": [],
|
|
3944
|
-
"args": {
|
|
3945
|
-
|
|
3946
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
3947
|
-
"name": "tokenId",
|
|
3948
|
-
"required": false
|
|
3949
|
-
}
|
|
3950
|
-
},
|
|
3951
|
-
"description": "Delete an API token from the project",
|
|
3866
|
+
"args": {},
|
|
3867
|
+
"description": "Deploy schema documents into workspace datasets.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To re-use an existing manifest, use --no-extract-manifest.",
|
|
3952
3868
|
"examples": [
|
|
3953
3869
|
{
|
|
3954
3870
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3955
|
-
"description": "
|
|
3956
|
-
},
|
|
3957
|
-
{
|
|
3958
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
3959
|
-
"description": "Delete a specific token by ID"
|
|
3960
|
-
},
|
|
3961
|
-
{
|
|
3962
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
3963
|
-
"description": "Delete a specific token without confirmation prompt"
|
|
3871
|
+
"description": "Deploy all workspace schemas"
|
|
3964
3872
|
},
|
|
3965
3873
|
{
|
|
3966
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3967
|
-
"description": "
|
|
3874
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3875
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
3968
3876
|
}
|
|
3969
3877
|
],
|
|
3970
3878
|
"flags": {
|
|
3971
|
-
"
|
|
3972
|
-
"
|
|
3973
|
-
"
|
|
3974
|
-
"
|
|
3975
|
-
"
|
|
3879
|
+
"extract-manifest": {
|
|
3880
|
+
"description": "Regenerate manifest before deploying (use --no-extract-manifest to skip)",
|
|
3881
|
+
"name": "extract-manifest",
|
|
3882
|
+
"allowNo": true,
|
|
3883
|
+
"type": "boolean"
|
|
3884
|
+
},
|
|
3885
|
+
"manifest-dir": {
|
|
3886
|
+
"description": "Directory containing manifest file",
|
|
3887
|
+
"name": "manifest-dir",
|
|
3888
|
+
"default": "./dist/static",
|
|
3976
3889
|
"hasDynamicHelp": false,
|
|
3977
|
-
"helpValue": "<
|
|
3890
|
+
"helpValue": "<directory>",
|
|
3978
3891
|
"multiple": false,
|
|
3979
3892
|
"type": "option"
|
|
3980
3893
|
},
|
|
3981
|
-
"
|
|
3982
|
-
"
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
"
|
|
3986
|
-
"
|
|
3987
|
-
"
|
|
3894
|
+
"tag": {
|
|
3895
|
+
"description": "Add a tag suffix to the schema id",
|
|
3896
|
+
"name": "tag",
|
|
3897
|
+
"hasDynamicHelp": false,
|
|
3898
|
+
"helpValue": "<tag>",
|
|
3899
|
+
"multiple": false,
|
|
3900
|
+
"type": "option"
|
|
3901
|
+
},
|
|
3902
|
+
"verbose": {
|
|
3903
|
+
"description": "Print detailed information during deployment",
|
|
3904
|
+
"name": "verbose",
|
|
3988
3905
|
"allowNo": false,
|
|
3989
3906
|
"type": "boolean"
|
|
3907
|
+
},
|
|
3908
|
+
"workspace": {
|
|
3909
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
3910
|
+
"name": "workspace",
|
|
3911
|
+
"hasDynamicHelp": false,
|
|
3912
|
+
"helpValue": "<name>",
|
|
3913
|
+
"multiple": false,
|
|
3914
|
+
"type": "option"
|
|
3990
3915
|
}
|
|
3991
3916
|
},
|
|
3992
3917
|
"hasDynamicHelp": false,
|
|
3993
3918
|
"hiddenAliases": [
|
|
3994
|
-
"
|
|
3919
|
+
"schema:deploy"
|
|
3995
3920
|
],
|
|
3996
|
-
"id": "
|
|
3921
|
+
"id": "schemas:deploy",
|
|
3997
3922
|
"pluginAlias": "@sanity/cli",
|
|
3998
3923
|
"pluginName": "@sanity/cli",
|
|
3999
3924
|
"pluginType": "core",
|
|
@@ -4002,51 +3927,79 @@
|
|
|
4002
3927
|
"relativePath": [
|
|
4003
3928
|
"dist",
|
|
4004
3929
|
"commands",
|
|
4005
|
-
"
|
|
4006
|
-
"
|
|
3930
|
+
"schemas",
|
|
3931
|
+
"deploy.js"
|
|
4007
3932
|
]
|
|
4008
3933
|
},
|
|
4009
|
-
"
|
|
3934
|
+
"schemas:extract": {
|
|
4010
3935
|
"aliases": [],
|
|
4011
3936
|
"args": {},
|
|
4012
|
-
"description": "
|
|
3937
|
+
"description": "Extract a JSON representation of a Sanity schema within a Studio context.\n\nNote: This command is experimental and subject to change.",
|
|
4013
3938
|
"examples": [
|
|
4014
3939
|
{
|
|
4015
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4016
|
-
"description": "
|
|
3940
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3941
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
4017
3942
|
},
|
|
4018
3943
|
{
|
|
4019
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4020
|
-
"description": "
|
|
3944
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
3945
|
+
"description": "Watch mode - re-extract on changes"
|
|
4021
3946
|
},
|
|
4022
3947
|
{
|
|
4023
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4024
|
-
"description": "
|
|
3948
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
3949
|
+
"description": "Watch with custom glob patterns"
|
|
4025
3950
|
}
|
|
4026
3951
|
],
|
|
4027
3952
|
"flags": {
|
|
4028
|
-
"
|
|
4029
|
-
"
|
|
4030
|
-
"
|
|
4031
|
-
"
|
|
4032
|
-
"
|
|
3953
|
+
"enforce-required-fields": {
|
|
3954
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
3955
|
+
"name": "enforce-required-fields",
|
|
3956
|
+
"allowNo": false,
|
|
3957
|
+
"type": "boolean"
|
|
3958
|
+
},
|
|
3959
|
+
"format": {
|
|
3960
|
+
"description": "Output format (currently only groq-type-nodes)",
|
|
3961
|
+
"name": "format",
|
|
3962
|
+
"default": "groq-type-nodes",
|
|
3963
|
+
"hasDynamicHelp": false,
|
|
3964
|
+
"helpValue": "<format>",
|
|
3965
|
+
"multiple": false,
|
|
3966
|
+
"type": "option"
|
|
3967
|
+
},
|
|
3968
|
+
"path": {
|
|
3969
|
+
"description": "Optional path to specify destination of the schema file",
|
|
3970
|
+
"name": "path",
|
|
3971
|
+
"hasDynamicHelp": false,
|
|
3972
|
+
"multiple": false,
|
|
3973
|
+
"type": "option"
|
|
3974
|
+
},
|
|
3975
|
+
"watch": {
|
|
3976
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
3977
|
+
"name": "watch",
|
|
3978
|
+
"allowNo": false,
|
|
3979
|
+
"type": "boolean"
|
|
3980
|
+
},
|
|
3981
|
+
"watch-patterns": {
|
|
3982
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
3983
|
+
"name": "watch-patterns",
|
|
3984
|
+
"hasDynamicHelp": false,
|
|
3985
|
+
"helpValue": "<glob>",
|
|
3986
|
+
"multiple": true,
|
|
3987
|
+
"type": "option"
|
|
3988
|
+
},
|
|
3989
|
+
"workspace": {
|
|
3990
|
+
"description": "The name of the workspace to generate a schema for",
|
|
3991
|
+
"name": "workspace",
|
|
4033
3992
|
"hasDynamicHelp": false,
|
|
4034
|
-
"helpValue": "<
|
|
3993
|
+
"helpValue": "<name>",
|
|
4035
3994
|
"multiple": false,
|
|
4036
3995
|
"type": "option"
|
|
4037
|
-
},
|
|
4038
|
-
"json": {
|
|
4039
|
-
"description": "Output tokens in JSON format",
|
|
4040
|
-
"name": "json",
|
|
4041
|
-
"allowNo": false,
|
|
4042
|
-
"type": "boolean"
|
|
4043
3996
|
}
|
|
4044
3997
|
},
|
|
4045
3998
|
"hasDynamicHelp": false,
|
|
4046
3999
|
"hiddenAliases": [
|
|
4047
|
-
"
|
|
4000
|
+
"schema:extract"
|
|
4048
4001
|
],
|
|
4049
|
-
"id": "
|
|
4002
|
+
"id": "schemas:extract",
|
|
4050
4003
|
"pluginAlias": "@sanity/cli",
|
|
4051
4004
|
"pluginName": "@sanity/cli",
|
|
4052
4005
|
"pluginType": "core",
|
|
@@ -4055,63 +4008,70 @@
|
|
|
4055
4008
|
"relativePath": [
|
|
4056
4009
|
"dist",
|
|
4057
4010
|
"commands",
|
|
4058
|
-
"
|
|
4059
|
-
"
|
|
4011
|
+
"schemas",
|
|
4012
|
+
"extract.js"
|
|
4060
4013
|
]
|
|
4061
4014
|
},
|
|
4062
|
-
"
|
|
4015
|
+
"schemas:list": {
|
|
4063
4016
|
"aliases": [],
|
|
4064
|
-
"args": {
|
|
4065
|
-
|
|
4066
|
-
"description": "Email address to invite",
|
|
4067
|
-
"name": "email",
|
|
4068
|
-
"required": false
|
|
4069
|
-
}
|
|
4070
|
-
},
|
|
4071
|
-
"description": "Invite a new user to the project",
|
|
4017
|
+
"args": {},
|
|
4018
|
+
"description": "List all schemas in the current dataset.\n\nNote: This command is experimental and subject to change.\n\nRegenerates a manifest file by default. To reuse an existing manifest, use --no-extract-manifest.",
|
|
4072
4019
|
"examples": [
|
|
4073
4020
|
{
|
|
4074
4021
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4075
|
-
"description": "
|
|
4022
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
4076
4023
|
},
|
|
4077
4024
|
{
|
|
4078
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4079
|
-
"description": "
|
|
4025
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
4026
|
+
"description": "Get a schema for a given id"
|
|
4080
4027
|
},
|
|
4081
4028
|
{
|
|
4082
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4083
|
-
"description": "
|
|
4029
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4030
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
4084
4031
|
},
|
|
4085
4032
|
{
|
|
4086
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4087
|
-
"description": "
|
|
4033
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
4034
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
4088
4035
|
}
|
|
4089
4036
|
],
|
|
4090
4037
|
"flags": {
|
|
4091
|
-
"
|
|
4092
|
-
"
|
|
4093
|
-
"
|
|
4094
|
-
"
|
|
4095
|
-
"
|
|
4038
|
+
"extract-manifest": {
|
|
4039
|
+
"description": "Regenerate manifest before listing (use --no-extract-manifest to skip)",
|
|
4040
|
+
"hidden": true,
|
|
4041
|
+
"name": "extract-manifest",
|
|
4042
|
+
"allowNo": true,
|
|
4043
|
+
"type": "boolean"
|
|
4044
|
+
},
|
|
4045
|
+
"id": {
|
|
4046
|
+
"description": "Fetch a single schema by id",
|
|
4047
|
+
"name": "id",
|
|
4096
4048
|
"hasDynamicHelp": false,
|
|
4097
|
-
"helpValue": "<
|
|
4049
|
+
"helpValue": "<schema_id>",
|
|
4098
4050
|
"multiple": false,
|
|
4099
4051
|
"type": "option"
|
|
4100
4052
|
},
|
|
4101
|
-
"
|
|
4102
|
-
"description": "
|
|
4103
|
-
"name": "
|
|
4104
|
-
"
|
|
4053
|
+
"json": {
|
|
4054
|
+
"description": "Get schema as json",
|
|
4055
|
+
"name": "json",
|
|
4056
|
+
"allowNo": false,
|
|
4057
|
+
"type": "boolean"
|
|
4058
|
+
},
|
|
4059
|
+
"manifest-dir": {
|
|
4060
|
+
"description": "Directory containing manifest file",
|
|
4061
|
+
"hidden": true,
|
|
4062
|
+
"name": "manifest-dir",
|
|
4063
|
+
"default": "./dist/static",
|
|
4105
4064
|
"hasDynamicHelp": false,
|
|
4065
|
+
"helpValue": "<directory>",
|
|
4106
4066
|
"multiple": false,
|
|
4107
4067
|
"type": "option"
|
|
4108
4068
|
}
|
|
4109
4069
|
},
|
|
4110
4070
|
"hasDynamicHelp": false,
|
|
4111
4071
|
"hiddenAliases": [
|
|
4112
|
-
"
|
|
4072
|
+
"schema:list"
|
|
4113
4073
|
],
|
|
4114
|
-
"id": "
|
|
4074
|
+
"id": "schemas:list",
|
|
4115
4075
|
"pluginAlias": "@sanity/cli",
|
|
4116
4076
|
"pluginName": "@sanity/cli",
|
|
4117
4077
|
"pluginType": "core",
|
|
@@ -4120,87 +4080,79 @@
|
|
|
4120
4080
|
"relativePath": [
|
|
4121
4081
|
"dist",
|
|
4122
4082
|
"commands",
|
|
4123
|
-
"
|
|
4124
|
-
"
|
|
4083
|
+
"schemas",
|
|
4084
|
+
"list.js"
|
|
4125
4085
|
]
|
|
4126
4086
|
},
|
|
4127
|
-
"
|
|
4087
|
+
"schemas:validate": {
|
|
4128
4088
|
"aliases": [],
|
|
4129
4089
|
"args": {},
|
|
4130
|
-
"description": "
|
|
4090
|
+
"description": "Validates all schema types specified in a workspace",
|
|
4131
4091
|
"examples": [
|
|
4132
4092
|
{
|
|
4133
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4134
|
-
"description": "
|
|
4093
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4094
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
4135
4095
|
},
|
|
4136
4096
|
{
|
|
4137
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4138
|
-
"description": "
|
|
4097
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4098
|
+
"description": "Save the results of the report into a file"
|
|
4139
4099
|
},
|
|
4140
4100
|
{
|
|
4141
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4142
|
-
"description": "
|
|
4101
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4102
|
+
"description": "Report out only errors"
|
|
4143
4103
|
},
|
|
4144
4104
|
{
|
|
4145
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4146
|
-
"description": "
|
|
4105
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4106
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
4147
4107
|
}
|
|
4148
4108
|
],
|
|
4149
4109
|
"flags": {
|
|
4150
|
-
"
|
|
4151
|
-
"
|
|
4152
|
-
"
|
|
4153
|
-
"
|
|
4154
|
-
"name": "project-id",
|
|
4110
|
+
"debug-metafile-path": {
|
|
4111
|
+
"description": "Optional path where a metafile will be written for build analysis. Only written on successful validation. Can be analyzed at https://esbuild.github.io/analyze/",
|
|
4112
|
+
"helpGroup": "DEBUG",
|
|
4113
|
+
"name": "debug-metafile-path",
|
|
4155
4114
|
"hasDynamicHelp": false,
|
|
4156
|
-
"helpValue": "<id>",
|
|
4157
4115
|
"multiple": false,
|
|
4158
4116
|
"type": "option"
|
|
4159
4117
|
},
|
|
4160
|
-
"
|
|
4161
|
-
"description": "
|
|
4162
|
-
"name": "
|
|
4163
|
-
"
|
|
4164
|
-
"type": "boolean"
|
|
4165
|
-
},
|
|
4166
|
-
"order": {
|
|
4167
|
-
"description": "Sort output ascending/descending",
|
|
4168
|
-
"name": "order",
|
|
4169
|
-
"default": "asc",
|
|
4118
|
+
"format": {
|
|
4119
|
+
"description": "The output format used to print schema errors and warnings",
|
|
4120
|
+
"name": "format",
|
|
4121
|
+
"default": "pretty",
|
|
4170
4122
|
"hasDynamicHelp": false,
|
|
4171
4123
|
"multiple": false,
|
|
4172
4124
|
"options": [
|
|
4173
|
-
"
|
|
4174
|
-
"
|
|
4125
|
+
"pretty",
|
|
4126
|
+
"ndjson",
|
|
4127
|
+
"json"
|
|
4175
4128
|
],
|
|
4176
4129
|
"type": "option"
|
|
4177
4130
|
},
|
|
4178
|
-
"
|
|
4179
|
-
"description": "
|
|
4180
|
-
"name": "
|
|
4181
|
-
"
|
|
4182
|
-
"type": "boolean"
|
|
4183
|
-
},
|
|
4184
|
-
"sort": {
|
|
4185
|
-
"description": "Sort users by specified column",
|
|
4186
|
-
"name": "sort",
|
|
4187
|
-
"default": "date",
|
|
4131
|
+
"level": {
|
|
4132
|
+
"description": "The minimum level reported out",
|
|
4133
|
+
"name": "level",
|
|
4134
|
+
"default": "warning",
|
|
4188
4135
|
"hasDynamicHelp": false,
|
|
4189
4136
|
"multiple": false,
|
|
4190
4137
|
"options": [
|
|
4191
|
-
"
|
|
4192
|
-
"
|
|
4193
|
-
"role",
|
|
4194
|
-
"date"
|
|
4138
|
+
"error",
|
|
4139
|
+
"warning"
|
|
4195
4140
|
],
|
|
4196
4141
|
"type": "option"
|
|
4142
|
+
},
|
|
4143
|
+
"workspace": {
|
|
4144
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
4145
|
+
"name": "workspace",
|
|
4146
|
+
"hasDynamicHelp": false,
|
|
4147
|
+
"multiple": false,
|
|
4148
|
+
"type": "option"
|
|
4197
4149
|
}
|
|
4198
4150
|
},
|
|
4199
4151
|
"hasDynamicHelp": false,
|
|
4200
4152
|
"hiddenAliases": [
|
|
4201
|
-
"
|
|
4153
|
+
"schema:validate"
|
|
4202
4154
|
],
|
|
4203
|
-
"id": "
|
|
4155
|
+
"id": "schemas:validate",
|
|
4204
4156
|
"pluginAlias": "@sanity/cli",
|
|
4205
4157
|
"pluginName": "@sanity/cli",
|
|
4206
4158
|
"pluginType": "core",
|
|
@@ -4209,60 +4161,158 @@
|
|
|
4209
4161
|
"relativePath": [
|
|
4210
4162
|
"dist",
|
|
4211
4163
|
"commands",
|
|
4212
|
-
"
|
|
4213
|
-
"
|
|
4164
|
+
"schemas",
|
|
4165
|
+
"validate.js"
|
|
4214
4166
|
]
|
|
4215
4167
|
},
|
|
4216
|
-
"
|
|
4168
|
+
"telemetry:disable": {
|
|
4217
4169
|
"aliases": [],
|
|
4218
|
-
"args": {
|
|
4219
|
-
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
"
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4170
|
+
"args": {},
|
|
4171
|
+
"description": "Disable telemetry for your account",
|
|
4172
|
+
"examples": [
|
|
4173
|
+
{
|
|
4174
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4175
|
+
"description": "Disable telemetry for your account"
|
|
4176
|
+
}
|
|
4177
|
+
],
|
|
4178
|
+
"flags": {},
|
|
4179
|
+
"hasDynamicHelp": false,
|
|
4180
|
+
"hiddenAliases": [],
|
|
4181
|
+
"id": "telemetry:disable",
|
|
4182
|
+
"pluginAlias": "@sanity/cli",
|
|
4183
|
+
"pluginName": "@sanity/cli",
|
|
4184
|
+
"pluginType": "core",
|
|
4185
|
+
"strict": true,
|
|
4186
|
+
"isESM": true,
|
|
4187
|
+
"relativePath": [
|
|
4188
|
+
"dist",
|
|
4189
|
+
"commands",
|
|
4190
|
+
"telemetry",
|
|
4191
|
+
"disable.js"
|
|
4192
|
+
]
|
|
4193
|
+
},
|
|
4194
|
+
"telemetry:enable": {
|
|
4195
|
+
"aliases": [],
|
|
4196
|
+
"args": {},
|
|
4197
|
+
"description": "Enable telemetry for your account",
|
|
4198
|
+
"examples": [
|
|
4199
|
+
{
|
|
4200
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4201
|
+
"description": "Enable telemetry for your account"
|
|
4202
|
+
}
|
|
4203
|
+
],
|
|
4204
|
+
"flags": {},
|
|
4205
|
+
"hasDynamicHelp": false,
|
|
4206
|
+
"hiddenAliases": [],
|
|
4207
|
+
"id": "telemetry:enable",
|
|
4208
|
+
"pluginAlias": "@sanity/cli",
|
|
4209
|
+
"pluginName": "@sanity/cli",
|
|
4210
|
+
"pluginType": "core",
|
|
4211
|
+
"strict": true,
|
|
4212
|
+
"isESM": true,
|
|
4213
|
+
"relativePath": [
|
|
4214
|
+
"dist",
|
|
4215
|
+
"commands",
|
|
4216
|
+
"telemetry",
|
|
4217
|
+
"enable.js"
|
|
4218
|
+
]
|
|
4219
|
+
},
|
|
4220
|
+
"telemetry:status": {
|
|
4221
|
+
"aliases": [],
|
|
4222
|
+
"args": {},
|
|
4223
|
+
"description": "Check telemetry status for your account",
|
|
4224
|
+
"examples": [
|
|
4225
|
+
{
|
|
4226
|
+
"command": "<%= config.bin %> telemetry <%= command.id %>",
|
|
4227
|
+
"description": "Check telemetry status for your account"
|
|
4228
|
+
}
|
|
4229
|
+
],
|
|
4230
|
+
"flags": {},
|
|
4231
|
+
"hasDynamicHelp": false,
|
|
4232
|
+
"hiddenAliases": [],
|
|
4233
|
+
"id": "telemetry:status",
|
|
4234
|
+
"pluginAlias": "@sanity/cli",
|
|
4235
|
+
"pluginName": "@sanity/cli",
|
|
4236
|
+
"pluginType": "core",
|
|
4237
|
+
"strict": true,
|
|
4238
|
+
"isESM": true,
|
|
4239
|
+
"relativePath": [
|
|
4240
|
+
"dist",
|
|
4241
|
+
"commands",
|
|
4242
|
+
"telemetry",
|
|
4243
|
+
"status.js"
|
|
4244
|
+
]
|
|
4245
|
+
},
|
|
4246
|
+
"tokens:add": {
|
|
4247
|
+
"aliases": [],
|
|
4248
|
+
"args": {
|
|
4249
|
+
"label": {
|
|
4250
|
+
"description": "Label for the new token",
|
|
4251
|
+
"name": "label",
|
|
4227
4252
|
"required": false
|
|
4228
4253
|
}
|
|
4229
4254
|
},
|
|
4230
|
-
"description": "Create a
|
|
4255
|
+
"description": "Create a new API token for the project",
|
|
4231
4256
|
"examples": [
|
|
4232
4257
|
{
|
|
4233
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4234
|
-
"description": "Create
|
|
4258
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
4259
|
+
"description": "Create a token with a label"
|
|
4235
4260
|
},
|
|
4236
4261
|
{
|
|
4237
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4238
|
-
"description": "Create
|
|
4262
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
4263
|
+
"description": "Create a token with editor role"
|
|
4239
4264
|
},
|
|
4240
4265
|
{
|
|
4241
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4242
|
-
"description": "Create
|
|
4266
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
4267
|
+
"description": "Create a token in unattended mode"
|
|
4243
4268
|
},
|
|
4244
4269
|
{
|
|
4245
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4246
|
-
"description": "
|
|
4270
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
4271
|
+
"description": "Output token information as JSON"
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
4275
|
+
"description": "Create a token for a specific project"
|
|
4247
4276
|
}
|
|
4248
4277
|
],
|
|
4249
4278
|
"flags": {
|
|
4250
4279
|
"project-id": {
|
|
4251
4280
|
"char": "p",
|
|
4252
|
-
"description": "Project ID to
|
|
4281
|
+
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
4253
4282
|
"helpGroup": "OVERRIDE",
|
|
4254
4283
|
"name": "project-id",
|
|
4255
4284
|
"hasDynamicHelp": false,
|
|
4256
4285
|
"helpValue": "<id>",
|
|
4257
4286
|
"multiple": false,
|
|
4258
4287
|
"type": "option"
|
|
4288
|
+
},
|
|
4289
|
+
"json": {
|
|
4290
|
+
"description": "Output as JSON",
|
|
4291
|
+
"name": "json",
|
|
4292
|
+
"allowNo": false,
|
|
4293
|
+
"type": "boolean"
|
|
4294
|
+
},
|
|
4295
|
+
"role": {
|
|
4296
|
+
"description": "Role to assign to the token",
|
|
4297
|
+
"name": "role",
|
|
4298
|
+
"hasDynamicHelp": false,
|
|
4299
|
+
"helpValue": "viewer",
|
|
4300
|
+
"multiple": false,
|
|
4301
|
+
"type": "option"
|
|
4302
|
+
},
|
|
4303
|
+
"yes": {
|
|
4304
|
+
"char": "y",
|
|
4305
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
4306
|
+
"name": "yes",
|
|
4307
|
+
"allowNo": false,
|
|
4308
|
+
"type": "boolean"
|
|
4259
4309
|
}
|
|
4260
4310
|
},
|
|
4261
4311
|
"hasDynamicHelp": false,
|
|
4262
4312
|
"hiddenAliases": [
|
|
4263
|
-
"
|
|
4313
|
+
"token:add"
|
|
4264
4314
|
],
|
|
4265
|
-
"id": "
|
|
4315
|
+
"id": "tokens:add",
|
|
4266
4316
|
"pluginAlias": "@sanity/cli",
|
|
4267
4317
|
"pluginName": "@sanity/cli",
|
|
4268
4318
|
"pluginType": "core",
|
|
@@ -4271,35 +4321,42 @@
|
|
|
4271
4321
|
"relativePath": [
|
|
4272
4322
|
"dist",
|
|
4273
4323
|
"commands",
|
|
4274
|
-
"
|
|
4275
|
-
"
|
|
4276
|
-
"create.js"
|
|
4324
|
+
"tokens",
|
|
4325
|
+
"add.js"
|
|
4277
4326
|
]
|
|
4278
4327
|
},
|
|
4279
|
-
"
|
|
4328
|
+
"tokens:delete": {
|
|
4280
4329
|
"aliases": [],
|
|
4281
4330
|
"args": {
|
|
4282
|
-
"
|
|
4283
|
-
"description": "
|
|
4284
|
-
"name": "
|
|
4285
|
-
"required":
|
|
4331
|
+
"tokenId": {
|
|
4332
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
4333
|
+
"name": "tokenId",
|
|
4334
|
+
"required": false
|
|
4286
4335
|
}
|
|
4287
4336
|
},
|
|
4288
|
-
"description": "Delete
|
|
4337
|
+
"description": "Delete an API token from the project",
|
|
4289
4338
|
"examples": [
|
|
4290
4339
|
{
|
|
4291
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4292
|
-
"description": "
|
|
4340
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4341
|
+
"description": "Interactively select and delete a token"
|
|
4293
4342
|
},
|
|
4294
4343
|
{
|
|
4295
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4296
|
-
"description": "Delete
|
|
4344
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
4345
|
+
"description": "Delete a specific token by ID"
|
|
4346
|
+
},
|
|
4347
|
+
{
|
|
4348
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
4349
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
4350
|
+
},
|
|
4351
|
+
{
|
|
4352
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4353
|
+
"description": "Delete a token from a specific project"
|
|
4297
4354
|
}
|
|
4298
4355
|
],
|
|
4299
4356
|
"flags": {
|
|
4300
4357
|
"project-id": {
|
|
4301
4358
|
"char": "p",
|
|
4302
|
-
"description": "Project ID to delete
|
|
4359
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
4303
4360
|
"helpGroup": "OVERRIDE",
|
|
4304
4361
|
"name": "project-id",
|
|
4305
4362
|
"hasDynamicHelp": false,
|
|
@@ -4307,9 +4364,12 @@
|
|
|
4307
4364
|
"multiple": false,
|
|
4308
4365
|
"type": "option"
|
|
4309
4366
|
},
|
|
4310
|
-
"
|
|
4311
|
-
"
|
|
4312
|
-
|
|
4367
|
+
"yes": {
|
|
4368
|
+
"aliases": [
|
|
4369
|
+
"y"
|
|
4370
|
+
],
|
|
4371
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
4372
|
+
"name": "yes",
|
|
4313
4373
|
"required": false,
|
|
4314
4374
|
"allowNo": false,
|
|
4315
4375
|
"type": "boolean"
|
|
@@ -4317,9 +4377,9 @@
|
|
|
4317
4377
|
},
|
|
4318
4378
|
"hasDynamicHelp": false,
|
|
4319
4379
|
"hiddenAliases": [
|
|
4320
|
-
"
|
|
4380
|
+
"token:delete"
|
|
4321
4381
|
],
|
|
4322
|
-
"id": "
|
|
4382
|
+
"id": "tokens:delete",
|
|
4323
4383
|
"pluginAlias": "@sanity/cli",
|
|
4324
4384
|
"pluginName": "@sanity/cli",
|
|
4325
4385
|
"pluginType": "core",
|
|
@@ -4328,48 +4388,32 @@
|
|
|
4328
4388
|
"relativePath": [
|
|
4329
4389
|
"dist",
|
|
4330
4390
|
"commands",
|
|
4331
|
-
"
|
|
4332
|
-
"alias",
|
|
4391
|
+
"tokens",
|
|
4333
4392
|
"delete.js"
|
|
4334
4393
|
]
|
|
4335
4394
|
},
|
|
4336
|
-
"
|
|
4395
|
+
"tokens:list": {
|
|
4337
4396
|
"aliases": [],
|
|
4338
|
-
"args": {
|
|
4339
|
-
|
|
4340
|
-
"description": "Dataset alias name to link",
|
|
4341
|
-
"name": "aliasName",
|
|
4342
|
-
"required": false
|
|
4343
|
-
},
|
|
4344
|
-
"targetDataset": {
|
|
4345
|
-
"description": "Target dataset name to link the alias to",
|
|
4346
|
-
"name": "targetDataset",
|
|
4347
|
-
"required": false
|
|
4348
|
-
}
|
|
4349
|
-
},
|
|
4350
|
-
"description": "Link a dataset alias to a dataset in the project",
|
|
4397
|
+
"args": {},
|
|
4398
|
+
"description": "List API tokens for the project",
|
|
4351
4399
|
"examples": [
|
|
4352
4400
|
{
|
|
4353
4401
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4354
|
-
"description": "
|
|
4355
|
-
},
|
|
4356
|
-
{
|
|
4357
|
-
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4358
|
-
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
4402
|
+
"description": "List tokens for the project"
|
|
4359
4403
|
},
|
|
4360
4404
|
{
|
|
4361
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4362
|
-
"description": "
|
|
4405
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4406
|
+
"description": "List tokens in JSON format"
|
|
4363
4407
|
},
|
|
4364
4408
|
{
|
|
4365
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4366
|
-
"description": "
|
|
4409
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4410
|
+
"description": "List tokens for a specific project"
|
|
4367
4411
|
}
|
|
4368
4412
|
],
|
|
4369
4413
|
"flags": {
|
|
4370
4414
|
"project-id": {
|
|
4371
4415
|
"char": "p",
|
|
4372
|
-
"description": "Project ID to
|
|
4416
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
4373
4417
|
"helpGroup": "OVERRIDE",
|
|
4374
4418
|
"name": "project-id",
|
|
4375
4419
|
"hasDynamicHelp": false,
|
|
@@ -4377,19 +4421,18 @@
|
|
|
4377
4421
|
"multiple": false,
|
|
4378
4422
|
"type": "option"
|
|
4379
4423
|
},
|
|
4380
|
-
"
|
|
4381
|
-
"description": "
|
|
4382
|
-
"name": "
|
|
4383
|
-
"required": false,
|
|
4424
|
+
"json": {
|
|
4425
|
+
"description": "Output tokens in JSON format",
|
|
4426
|
+
"name": "json",
|
|
4384
4427
|
"allowNo": false,
|
|
4385
4428
|
"type": "boolean"
|
|
4386
4429
|
}
|
|
4387
4430
|
},
|
|
4388
4431
|
"hasDynamicHelp": false,
|
|
4389
4432
|
"hiddenAliases": [
|
|
4390
|
-
"
|
|
4433
|
+
"token:list"
|
|
4391
4434
|
],
|
|
4392
|
-
"id": "
|
|
4435
|
+
"id": "tokens:list",
|
|
4393
4436
|
"pluginAlias": "@sanity/cli",
|
|
4394
4437
|
"pluginName": "@sanity/cli",
|
|
4395
4438
|
"pluginType": "core",
|
|
@@ -4398,39 +4441,42 @@
|
|
|
4398
4441
|
"relativePath": [
|
|
4399
4442
|
"dist",
|
|
4400
4443
|
"commands",
|
|
4401
|
-
"
|
|
4402
|
-
"
|
|
4403
|
-
"link.js"
|
|
4444
|
+
"tokens",
|
|
4445
|
+
"list.js"
|
|
4404
4446
|
]
|
|
4405
4447
|
},
|
|
4406
|
-
"
|
|
4448
|
+
"users:invite": {
|
|
4407
4449
|
"aliases": [],
|
|
4408
4450
|
"args": {
|
|
4409
|
-
"
|
|
4410
|
-
"description": "
|
|
4411
|
-
"name": "
|
|
4451
|
+
"email": {
|
|
4452
|
+
"description": "Email address to invite",
|
|
4453
|
+
"name": "email",
|
|
4412
4454
|
"required": false
|
|
4413
4455
|
}
|
|
4414
4456
|
},
|
|
4415
|
-
"description": "
|
|
4457
|
+
"description": "Invite a new user to the project",
|
|
4416
4458
|
"examples": [
|
|
4417
4459
|
{
|
|
4418
4460
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4419
|
-
"description": "
|
|
4461
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
4420
4462
|
},
|
|
4421
4463
|
{
|
|
4422
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4423
|
-
"description": "
|
|
4464
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
4465
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
4424
4466
|
},
|
|
4425
4467
|
{
|
|
4426
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4427
|
-
"description": "
|
|
4468
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
4469
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
4473
|
+
"description": "Invite a user to a specific project"
|
|
4428
4474
|
}
|
|
4429
4475
|
],
|
|
4430
4476
|
"flags": {
|
|
4431
4477
|
"project-id": {
|
|
4432
4478
|
"char": "p",
|
|
4433
|
-
"description": "Project ID to
|
|
4479
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
4434
4480
|
"helpGroup": "OVERRIDE",
|
|
4435
4481
|
"name": "project-id",
|
|
4436
4482
|
"hasDynamicHelp": false,
|
|
@@ -4438,19 +4484,20 @@
|
|
|
4438
4484
|
"multiple": false,
|
|
4439
4485
|
"type": "option"
|
|
4440
4486
|
},
|
|
4441
|
-
"
|
|
4442
|
-
"description": "
|
|
4443
|
-
"name": "
|
|
4487
|
+
"role": {
|
|
4488
|
+
"description": "Role to invite the user as",
|
|
4489
|
+
"name": "role",
|
|
4444
4490
|
"required": false,
|
|
4445
|
-
"
|
|
4446
|
-
"
|
|
4491
|
+
"hasDynamicHelp": false,
|
|
4492
|
+
"multiple": false,
|
|
4493
|
+
"type": "option"
|
|
4447
4494
|
}
|
|
4448
4495
|
},
|
|
4449
4496
|
"hasDynamicHelp": false,
|
|
4450
4497
|
"hiddenAliases": [
|
|
4451
|
-
"
|
|
4498
|
+
"user:invite"
|
|
4452
4499
|
],
|
|
4453
|
-
"id": "
|
|
4500
|
+
"id": "users:invite",
|
|
4454
4501
|
"pluginAlias": "@sanity/cli",
|
|
4455
4502
|
"pluginName": "@sanity/cli",
|
|
4456
4503
|
"pluginType": "core",
|
|
@@ -4459,44 +4506,87 @@
|
|
|
4459
4506
|
"relativePath": [
|
|
4460
4507
|
"dist",
|
|
4461
4508
|
"commands",
|
|
4462
|
-
"
|
|
4463
|
-
"
|
|
4464
|
-
"unlink.js"
|
|
4509
|
+
"users",
|
|
4510
|
+
"invite.js"
|
|
4465
4511
|
]
|
|
4466
4512
|
},
|
|
4467
|
-
"
|
|
4513
|
+
"users:list": {
|
|
4468
4514
|
"aliases": [],
|
|
4469
|
-
"args": {
|
|
4470
|
-
|
|
4471
|
-
"description": "Dataset name to disable embeddings for",
|
|
4472
|
-
"name": "dataset",
|
|
4473
|
-
"required": false
|
|
4474
|
-
}
|
|
4475
|
-
},
|
|
4476
|
-
"description": "Disable embeddings for a dataset",
|
|
4515
|
+
"args": {},
|
|
4516
|
+
"description": "List project members",
|
|
4477
4517
|
"examples": [
|
|
4478
4518
|
{
|
|
4479
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4480
|
-
"description": "
|
|
4519
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4520
|
+
"description": "List all users of the project"
|
|
4521
|
+
},
|
|
4522
|
+
{
|
|
4523
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
4524
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
4525
|
+
},
|
|
4526
|
+
{
|
|
4527
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
4528
|
+
"description": "List all users, sorted by role"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4532
|
+
"description": "List users for a specific project"
|
|
4481
4533
|
}
|
|
4482
4534
|
],
|
|
4483
4535
|
"flags": {
|
|
4484
4536
|
"project-id": {
|
|
4485
4537
|
"char": "p",
|
|
4486
|
-
"description": "Project ID to
|
|
4538
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
4487
4539
|
"helpGroup": "OVERRIDE",
|
|
4488
4540
|
"name": "project-id",
|
|
4489
4541
|
"hasDynamicHelp": false,
|
|
4490
|
-
"helpValue": "<id>",
|
|
4542
|
+
"helpValue": "<id>",
|
|
4543
|
+
"multiple": false,
|
|
4544
|
+
"type": "option"
|
|
4545
|
+
},
|
|
4546
|
+
"invitations": {
|
|
4547
|
+
"description": "Includes or excludes pending invitations",
|
|
4548
|
+
"name": "invitations",
|
|
4549
|
+
"allowNo": true,
|
|
4550
|
+
"type": "boolean"
|
|
4551
|
+
},
|
|
4552
|
+
"order": {
|
|
4553
|
+
"description": "Sort output ascending/descending",
|
|
4554
|
+
"name": "order",
|
|
4555
|
+
"default": "asc",
|
|
4556
|
+
"hasDynamicHelp": false,
|
|
4557
|
+
"multiple": false,
|
|
4558
|
+
"options": [
|
|
4559
|
+
"asc",
|
|
4560
|
+
"desc"
|
|
4561
|
+
],
|
|
4562
|
+
"type": "option"
|
|
4563
|
+
},
|
|
4564
|
+
"robots": {
|
|
4565
|
+
"description": "Includes or excludes robots (token users)",
|
|
4566
|
+
"name": "robots",
|
|
4567
|
+
"allowNo": true,
|
|
4568
|
+
"type": "boolean"
|
|
4569
|
+
},
|
|
4570
|
+
"sort": {
|
|
4571
|
+
"description": "Sort users by specified column",
|
|
4572
|
+
"name": "sort",
|
|
4573
|
+
"default": "date",
|
|
4574
|
+
"hasDynamicHelp": false,
|
|
4491
4575
|
"multiple": false,
|
|
4576
|
+
"options": [
|
|
4577
|
+
"id",
|
|
4578
|
+
"name",
|
|
4579
|
+
"role",
|
|
4580
|
+
"date"
|
|
4581
|
+
],
|
|
4492
4582
|
"type": "option"
|
|
4493
4583
|
}
|
|
4494
4584
|
},
|
|
4495
4585
|
"hasDynamicHelp": false,
|
|
4496
4586
|
"hiddenAliases": [
|
|
4497
|
-
"
|
|
4587
|
+
"user:list"
|
|
4498
4588
|
],
|
|
4499
|
-
"id": "
|
|
4589
|
+
"id": "users:list",
|
|
4500
4590
|
"pluginAlias": "@sanity/cli",
|
|
4501
4591
|
"pluginName": "@sanity/cli",
|
|
4502
4592
|
"pluginType": "core",
|
|
@@ -4505,66 +4595,60 @@
|
|
|
4505
4595
|
"relativePath": [
|
|
4506
4596
|
"dist",
|
|
4507
4597
|
"commands",
|
|
4508
|
-
"
|
|
4509
|
-
"
|
|
4510
|
-
"disable.js"
|
|
4598
|
+
"users",
|
|
4599
|
+
"list.js"
|
|
4511
4600
|
]
|
|
4512
4601
|
},
|
|
4513
|
-
"datasets:
|
|
4602
|
+
"datasets:alias:create": {
|
|
4514
4603
|
"aliases": [],
|
|
4515
4604
|
"args": {
|
|
4516
|
-
"
|
|
4517
|
-
"description": "Dataset name to
|
|
4518
|
-
"name": "
|
|
4605
|
+
"aliasName": {
|
|
4606
|
+
"description": "Dataset alias name to create",
|
|
4607
|
+
"name": "aliasName",
|
|
4608
|
+
"required": false
|
|
4609
|
+
},
|
|
4610
|
+
"targetDataset": {
|
|
4611
|
+
"description": "Target dataset name to link the alias to",
|
|
4612
|
+
"name": "targetDataset",
|
|
4519
4613
|
"required": false
|
|
4520
4614
|
}
|
|
4521
4615
|
},
|
|
4522
|
-
"description": "
|
|
4616
|
+
"description": "Create a dataset alias for the project",
|
|
4523
4617
|
"examples": [
|
|
4524
4618
|
{
|
|
4525
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4526
|
-
"description": "
|
|
4619
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123 conference conf-2025",
|
|
4620
|
+
"description": "Create alias in a specific project"
|
|
4527
4621
|
},
|
|
4528
4622
|
{
|
|
4529
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4530
|
-
"description": "
|
|
4623
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4624
|
+
"description": "Create an alias with interactive prompts"
|
|
4531
4625
|
},
|
|
4532
4626
|
{
|
|
4533
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4534
|
-
"description": "
|
|
4627
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4628
|
+
"description": "Create alias named \"conference\" with interactive dataset selection"
|
|
4629
|
+
},
|
|
4630
|
+
{
|
|
4631
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
4632
|
+
"description": "Create alias \"conference\" linked to \"conf-2025\" dataset"
|
|
4535
4633
|
}
|
|
4536
4634
|
],
|
|
4537
4635
|
"flags": {
|
|
4538
4636
|
"project-id": {
|
|
4539
4637
|
"char": "p",
|
|
4540
|
-
"description": "Project ID to
|
|
4638
|
+
"description": "Project ID to create dataset alias in (overrides CLI configuration)",
|
|
4541
4639
|
"helpGroup": "OVERRIDE",
|
|
4542
4640
|
"name": "project-id",
|
|
4543
4641
|
"hasDynamicHelp": false,
|
|
4544
4642
|
"helpValue": "<id>",
|
|
4545
4643
|
"multiple": false,
|
|
4546
4644
|
"type": "option"
|
|
4547
|
-
},
|
|
4548
|
-
"projection": {
|
|
4549
|
-
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4550
|
-
"name": "projection",
|
|
4551
|
-
"required": false,
|
|
4552
|
-
"hasDynamicHelp": false,
|
|
4553
|
-
"multiple": false,
|
|
4554
|
-
"type": "option"
|
|
4555
|
-
},
|
|
4556
|
-
"wait": {
|
|
4557
|
-
"description": "Wait for embeddings processing to complete before returning",
|
|
4558
|
-
"name": "wait",
|
|
4559
|
-
"allowNo": false,
|
|
4560
|
-
"type": "boolean"
|
|
4561
4645
|
}
|
|
4562
4646
|
},
|
|
4563
4647
|
"hasDynamicHelp": false,
|
|
4564
4648
|
"hiddenAliases": [
|
|
4565
|
-
"dataset:
|
|
4649
|
+
"dataset:alias:create"
|
|
4566
4650
|
],
|
|
4567
|
-
"id": "datasets:
|
|
4651
|
+
"id": "datasets:alias:create",
|
|
4568
4652
|
"pluginAlias": "@sanity/cli",
|
|
4569
4653
|
"pluginName": "@sanity/cli",
|
|
4570
4654
|
"pluginType": "core",
|
|
@@ -4574,43 +4658,54 @@
|
|
|
4574
4658
|
"dist",
|
|
4575
4659
|
"commands",
|
|
4576
4660
|
"datasets",
|
|
4577
|
-
"
|
|
4578
|
-
"
|
|
4661
|
+
"alias",
|
|
4662
|
+
"create.js"
|
|
4579
4663
|
]
|
|
4580
4664
|
},
|
|
4581
|
-
"datasets:
|
|
4665
|
+
"datasets:alias:delete": {
|
|
4582
4666
|
"aliases": [],
|
|
4583
4667
|
"args": {
|
|
4584
|
-
"
|
|
4585
|
-
"description": "
|
|
4586
|
-
"name": "
|
|
4587
|
-
"required":
|
|
4668
|
+
"aliasName": {
|
|
4669
|
+
"description": "Dataset alias name to delete",
|
|
4670
|
+
"name": "aliasName",
|
|
4671
|
+
"required": true
|
|
4588
4672
|
}
|
|
4589
4673
|
},
|
|
4590
|
-
"description": "
|
|
4674
|
+
"description": "Delete a dataset alias from the project",
|
|
4591
4675
|
"examples": [
|
|
4592
4676
|
{
|
|
4593
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4594
|
-
"description": "
|
|
4677
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4678
|
+
"description": "Delete alias named \"conference\" with confirmation prompt"
|
|
4679
|
+
},
|
|
4680
|
+
{
|
|
4681
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
4682
|
+
"description": "Delete alias named \"conference\" without confirmation prompt"
|
|
4595
4683
|
}
|
|
4596
4684
|
],
|
|
4597
4685
|
"flags": {
|
|
4598
4686
|
"project-id": {
|
|
4599
4687
|
"char": "p",
|
|
4600
|
-
"description": "Project ID to
|
|
4688
|
+
"description": "Project ID to delete dataset alias from (overrides CLI configuration)",
|
|
4601
4689
|
"helpGroup": "OVERRIDE",
|
|
4602
4690
|
"name": "project-id",
|
|
4603
4691
|
"hasDynamicHelp": false,
|
|
4604
4692
|
"helpValue": "<id>",
|
|
4605
4693
|
"multiple": false,
|
|
4606
4694
|
"type": "option"
|
|
4695
|
+
},
|
|
4696
|
+
"force": {
|
|
4697
|
+
"description": "Skip confirmation prompt and delete immediately",
|
|
4698
|
+
"name": "force",
|
|
4699
|
+
"required": false,
|
|
4700
|
+
"allowNo": false,
|
|
4701
|
+
"type": "boolean"
|
|
4607
4702
|
}
|
|
4608
4703
|
},
|
|
4609
4704
|
"hasDynamicHelp": false,
|
|
4610
4705
|
"hiddenAliases": [
|
|
4611
|
-
"dataset:
|
|
4706
|
+
"dataset:alias:delete"
|
|
4612
4707
|
],
|
|
4613
|
-
"id": "datasets:
|
|
4708
|
+
"id": "datasets:alias:delete",
|
|
4614
4709
|
"pluginAlias": "@sanity/cli",
|
|
4615
4710
|
"pluginName": "@sanity/cli",
|
|
4616
4711
|
"pluginType": "core",
|
|
@@ -4620,28 +4715,47 @@
|
|
|
4620
4715
|
"dist",
|
|
4621
4716
|
"commands",
|
|
4622
4717
|
"datasets",
|
|
4623
|
-
"
|
|
4624
|
-
"
|
|
4718
|
+
"alias",
|
|
4719
|
+
"delete.js"
|
|
4625
4720
|
]
|
|
4626
4721
|
},
|
|
4627
|
-
"
|
|
4722
|
+
"datasets:alias:link": {
|
|
4628
4723
|
"aliases": [],
|
|
4629
|
-
"args": {
|
|
4630
|
-
|
|
4724
|
+
"args": {
|
|
4725
|
+
"aliasName": {
|
|
4726
|
+
"description": "Dataset alias name to link",
|
|
4727
|
+
"name": "aliasName",
|
|
4728
|
+
"required": false
|
|
4729
|
+
},
|
|
4730
|
+
"targetDataset": {
|
|
4731
|
+
"description": "Target dataset name to link the alias to",
|
|
4732
|
+
"name": "targetDataset",
|
|
4733
|
+
"required": false
|
|
4734
|
+
}
|
|
4735
|
+
},
|
|
4736
|
+
"description": "Link a dataset alias to a dataset in the project",
|
|
4631
4737
|
"examples": [
|
|
4632
4738
|
{
|
|
4633
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4634
|
-
"description": "
|
|
4739
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4740
|
+
"description": "Link an alias with interactive prompts"
|
|
4635
4741
|
},
|
|
4636
4742
|
{
|
|
4637
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4638
|
-
"description": "
|
|
4743
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4744
|
+
"description": "Link alias named \"conference\" with interactive dataset selection"
|
|
4745
|
+
},
|
|
4746
|
+
{
|
|
4747
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025",
|
|
4748
|
+
"description": "Link alias \"conference\" to \"conf-2025\" dataset"
|
|
4749
|
+
},
|
|
4750
|
+
{
|
|
4751
|
+
"command": "<%= config.bin %> <%= command.id %> conference conf-2025 --force",
|
|
4752
|
+
"description": "Force link without confirmation (skip relink prompt)"
|
|
4639
4753
|
}
|
|
4640
4754
|
],
|
|
4641
4755
|
"flags": {
|
|
4642
4756
|
"project-id": {
|
|
4643
4757
|
"char": "p",
|
|
4644
|
-
"description": "Project ID to
|
|
4758
|
+
"description": "Project ID to link dataset alias in (overrides CLI configuration)",
|
|
4645
4759
|
"helpGroup": "OVERRIDE",
|
|
4646
4760
|
"name": "project-id",
|
|
4647
4761
|
"hasDynamicHelp": false,
|
|
@@ -4649,51 +4763,19 @@
|
|
|
4649
4763
|
"multiple": false,
|
|
4650
4764
|
"type": "option"
|
|
4651
4765
|
},
|
|
4652
|
-
"
|
|
4653
|
-
"
|
|
4654
|
-
"
|
|
4655
|
-
"
|
|
4656
|
-
"hasDynamicHelp": false,
|
|
4657
|
-
"helpValue": "<name>",
|
|
4658
|
-
"multiple": false,
|
|
4659
|
-
"type": "option"
|
|
4660
|
-
},
|
|
4661
|
-
"extract-manifest": {
|
|
4662
|
-
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
4663
|
-
"hidden": true,
|
|
4664
|
-
"name": "extract-manifest",
|
|
4665
|
-
"allowNo": true,
|
|
4666
|
-
"type": "boolean"
|
|
4667
|
-
},
|
|
4668
|
-
"ids": {
|
|
4669
|
-
"description": "Comma-separated list of schema ids to delete",
|
|
4670
|
-
"name": "ids",
|
|
4671
|
-
"required": true,
|
|
4672
|
-
"hasDynamicHelp": false,
|
|
4673
|
-
"multiple": false,
|
|
4674
|
-
"type": "option"
|
|
4675
|
-
},
|
|
4676
|
-
"manifest-dir": {
|
|
4677
|
-
"description": "Directory containing manifest file",
|
|
4678
|
-
"hidden": true,
|
|
4679
|
-
"name": "manifest-dir",
|
|
4680
|
-
"default": "./dist/static",
|
|
4681
|
-
"hasDynamicHelp": false,
|
|
4682
|
-
"multiple": false,
|
|
4683
|
-
"type": "option"
|
|
4684
|
-
},
|
|
4685
|
-
"verbose": {
|
|
4686
|
-
"description": "Enable verbose logging",
|
|
4687
|
-
"name": "verbose",
|
|
4766
|
+
"force": {
|
|
4767
|
+
"description": "Skip confirmation prompt when relinking existing alias",
|
|
4768
|
+
"name": "force",
|
|
4769
|
+
"required": false,
|
|
4688
4770
|
"allowNo": false,
|
|
4689
4771
|
"type": "boolean"
|
|
4690
4772
|
}
|
|
4691
4773
|
},
|
|
4692
4774
|
"hasDynamicHelp": false,
|
|
4693
4775
|
"hiddenAliases": [
|
|
4694
|
-
"
|
|
4776
|
+
"dataset:alias:link"
|
|
4695
4777
|
],
|
|
4696
|
-
"id": "
|
|
4778
|
+
"id": "datasets:alias:link",
|
|
4697
4779
|
"pluginAlias": "@sanity/cli",
|
|
4698
4780
|
"pluginName": "@sanity/cli",
|
|
4699
4781
|
"pluginType": "core",
|
|
@@ -4702,68 +4784,59 @@
|
|
|
4702
4784
|
"relativePath": [
|
|
4703
4785
|
"dist",
|
|
4704
4786
|
"commands",
|
|
4705
|
-
"
|
|
4706
|
-
"
|
|
4787
|
+
"datasets",
|
|
4788
|
+
"alias",
|
|
4789
|
+
"link.js"
|
|
4707
4790
|
]
|
|
4708
4791
|
},
|
|
4709
|
-
"
|
|
4792
|
+
"datasets:alias:unlink": {
|
|
4710
4793
|
"aliases": [],
|
|
4711
|
-
"args": {
|
|
4712
|
-
|
|
4794
|
+
"args": {
|
|
4795
|
+
"aliasName": {
|
|
4796
|
+
"description": "Dataset alias name to unlink",
|
|
4797
|
+
"name": "aliasName",
|
|
4798
|
+
"required": false
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4801
|
+
"description": "Unlink a dataset alias from its dataset in the project",
|
|
4713
4802
|
"examples": [
|
|
4714
4803
|
{
|
|
4715
4804
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4716
|
-
"description": "
|
|
4805
|
+
"description": "Unlink an alias with interactive selection"
|
|
4717
4806
|
},
|
|
4718
4807
|
{
|
|
4719
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4720
|
-
"description": "
|
|
4808
|
+
"command": "<%= config.bin %> <%= command.id %> conference",
|
|
4809
|
+
"description": "Unlink alias \"conference\" with confirmation prompt"
|
|
4810
|
+
},
|
|
4811
|
+
{
|
|
4812
|
+
"command": "<%= config.bin %> <%= command.id %> conference --force",
|
|
4813
|
+
"description": "Unlink alias \"conference\" without confirmation prompt"
|
|
4721
4814
|
}
|
|
4722
4815
|
],
|
|
4723
4816
|
"flags": {
|
|
4724
|
-
"
|
|
4725
|
-
"
|
|
4726
|
-
"
|
|
4727
|
-
"
|
|
4728
|
-
"
|
|
4729
|
-
},
|
|
4730
|
-
"manifest-dir": {
|
|
4731
|
-
"description": "Directory containing manifest file",
|
|
4732
|
-
"name": "manifest-dir",
|
|
4733
|
-
"default": "./dist/static",
|
|
4734
|
-
"hasDynamicHelp": false,
|
|
4735
|
-
"helpValue": "<directory>",
|
|
4736
|
-
"multiple": false,
|
|
4737
|
-
"type": "option"
|
|
4738
|
-
},
|
|
4739
|
-
"tag": {
|
|
4740
|
-
"description": "Add a tag suffix to the schema id",
|
|
4741
|
-
"name": "tag",
|
|
4742
|
-
"hasDynamicHelp": false,
|
|
4743
|
-
"helpValue": "<tag>",
|
|
4744
|
-
"multiple": false,
|
|
4745
|
-
"type": "option"
|
|
4746
|
-
},
|
|
4747
|
-
"verbose": {
|
|
4748
|
-
"description": "Print detailed information during deployment",
|
|
4749
|
-
"name": "verbose",
|
|
4750
|
-
"allowNo": false,
|
|
4751
|
-
"type": "boolean"
|
|
4752
|
-
},
|
|
4753
|
-
"workspace": {
|
|
4754
|
-
"description": "The name of the workspace to deploy a schema for",
|
|
4755
|
-
"name": "workspace",
|
|
4817
|
+
"project-id": {
|
|
4818
|
+
"char": "p",
|
|
4819
|
+
"description": "Project ID to unlink dataset alias in (overrides CLI configuration)",
|
|
4820
|
+
"helpGroup": "OVERRIDE",
|
|
4821
|
+
"name": "project-id",
|
|
4756
4822
|
"hasDynamicHelp": false,
|
|
4757
|
-
"helpValue": "<
|
|
4823
|
+
"helpValue": "<id>",
|
|
4758
4824
|
"multiple": false,
|
|
4759
4825
|
"type": "option"
|
|
4826
|
+
},
|
|
4827
|
+
"force": {
|
|
4828
|
+
"description": "Skip confirmation prompt and unlink immediately",
|
|
4829
|
+
"name": "force",
|
|
4830
|
+
"required": false,
|
|
4831
|
+
"allowNo": false,
|
|
4832
|
+
"type": "boolean"
|
|
4760
4833
|
}
|
|
4761
4834
|
},
|
|
4762
4835
|
"hasDynamicHelp": false,
|
|
4763
4836
|
"hiddenAliases": [
|
|
4764
|
-
"
|
|
4837
|
+
"dataset:alias:unlink"
|
|
4765
4838
|
],
|
|
4766
|
-
"id": "
|
|
4839
|
+
"id": "datasets:alias:unlink",
|
|
4767
4840
|
"pluginAlias": "@sanity/cli",
|
|
4768
4841
|
"pluginName": "@sanity/cli",
|
|
4769
4842
|
"pluginType": "core",
|
|
@@ -4772,79 +4845,44 @@
|
|
|
4772
4845
|
"relativePath": [
|
|
4773
4846
|
"dist",
|
|
4774
4847
|
"commands",
|
|
4775
|
-
"
|
|
4776
|
-
"
|
|
4848
|
+
"datasets",
|
|
4849
|
+
"alias",
|
|
4850
|
+
"unlink.js"
|
|
4777
4851
|
]
|
|
4778
4852
|
},
|
|
4779
|
-
"
|
|
4853
|
+
"datasets:embeddings:disable": {
|
|
4780
4854
|
"aliases": [],
|
|
4781
|
-
"args": {
|
|
4782
|
-
|
|
4855
|
+
"args": {
|
|
4856
|
+
"dataset": {
|
|
4857
|
+
"description": "Dataset name to disable embeddings for",
|
|
4858
|
+
"name": "dataset",
|
|
4859
|
+
"required": false
|
|
4860
|
+
}
|
|
4861
|
+
},
|
|
4862
|
+
"description": "Disable embeddings for a dataset",
|
|
4783
4863
|
"examples": [
|
|
4784
4864
|
{
|
|
4785
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4786
|
-
"description": "
|
|
4787
|
-
},
|
|
4788
|
-
{
|
|
4789
|
-
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
4790
|
-
"description": "Watch mode - re-extract on changes"
|
|
4791
|
-
},
|
|
4792
|
-
{
|
|
4793
|
-
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
4794
|
-
"description": "Watch with custom glob patterns"
|
|
4865
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4866
|
+
"description": "Disable embeddings for the production dataset"
|
|
4795
4867
|
}
|
|
4796
4868
|
],
|
|
4797
4869
|
"flags": {
|
|
4798
|
-
"
|
|
4799
|
-
"
|
|
4800
|
-
"
|
|
4801
|
-
"
|
|
4802
|
-
"
|
|
4803
|
-
},
|
|
4804
|
-
"format": {
|
|
4805
|
-
"description": "Output format (currently only groq-type-nodes)",
|
|
4806
|
-
"name": "format",
|
|
4807
|
-
"default": "groq-type-nodes",
|
|
4808
|
-
"hasDynamicHelp": false,
|
|
4809
|
-
"helpValue": "<format>",
|
|
4810
|
-
"multiple": false,
|
|
4811
|
-
"type": "option"
|
|
4812
|
-
},
|
|
4813
|
-
"path": {
|
|
4814
|
-
"description": "Optional path to specify destination of the schema file",
|
|
4815
|
-
"name": "path",
|
|
4816
|
-
"hasDynamicHelp": false,
|
|
4817
|
-
"multiple": false,
|
|
4818
|
-
"type": "option"
|
|
4819
|
-
},
|
|
4820
|
-
"watch": {
|
|
4821
|
-
"description": "Enable watch mode to re-extract schema on file changes",
|
|
4822
|
-
"name": "watch",
|
|
4823
|
-
"allowNo": false,
|
|
4824
|
-
"type": "boolean"
|
|
4825
|
-
},
|
|
4826
|
-
"watch-patterns": {
|
|
4827
|
-
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
4828
|
-
"name": "watch-patterns",
|
|
4829
|
-
"hasDynamicHelp": false,
|
|
4830
|
-
"helpValue": "<glob>",
|
|
4831
|
-
"multiple": true,
|
|
4832
|
-
"type": "option"
|
|
4833
|
-
},
|
|
4834
|
-
"workspace": {
|
|
4835
|
-
"description": "The name of the workspace to generate a schema for",
|
|
4836
|
-
"name": "workspace",
|
|
4870
|
+
"project-id": {
|
|
4871
|
+
"char": "p",
|
|
4872
|
+
"description": "Project ID to disable embeddings for (overrides CLI configuration)",
|
|
4873
|
+
"helpGroup": "OVERRIDE",
|
|
4874
|
+
"name": "project-id",
|
|
4837
4875
|
"hasDynamicHelp": false,
|
|
4838
|
-
"helpValue": "<
|
|
4876
|
+
"helpValue": "<id>",
|
|
4839
4877
|
"multiple": false,
|
|
4840
4878
|
"type": "option"
|
|
4841
4879
|
}
|
|
4842
4880
|
},
|
|
4843
4881
|
"hasDynamicHelp": false,
|
|
4844
4882
|
"hiddenAliases": [
|
|
4845
|
-
"
|
|
4883
|
+
"dataset:embeddings:disable"
|
|
4846
4884
|
],
|
|
4847
|
-
"id": "
|
|
4885
|
+
"id": "datasets:embeddings:disable",
|
|
4848
4886
|
"pluginAlias": "@sanity/cli",
|
|
4849
4887
|
"pluginName": "@sanity/cli",
|
|
4850
4888
|
"pluginType": "core",
|
|
@@ -4853,70 +4891,66 @@
|
|
|
4853
4891
|
"relativePath": [
|
|
4854
4892
|
"dist",
|
|
4855
4893
|
"commands",
|
|
4856
|
-
"
|
|
4857
|
-
"
|
|
4894
|
+
"datasets",
|
|
4895
|
+
"embeddings",
|
|
4896
|
+
"disable.js"
|
|
4858
4897
|
]
|
|
4859
4898
|
},
|
|
4860
|
-
"
|
|
4899
|
+
"datasets:embeddings:enable": {
|
|
4861
4900
|
"aliases": [],
|
|
4862
|
-
"args": {
|
|
4863
|
-
|
|
4901
|
+
"args": {
|
|
4902
|
+
"dataset": {
|
|
4903
|
+
"description": "Dataset name to enable embeddings for",
|
|
4904
|
+
"name": "dataset",
|
|
4905
|
+
"required": false
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
"description": "Enable embeddings for a dataset",
|
|
4864
4909
|
"examples": [
|
|
4865
4910
|
{
|
|
4866
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
4867
|
-
"description": "
|
|
4868
|
-
},
|
|
4869
|
-
{
|
|
4870
|
-
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
4871
|
-
"description": "Get a schema for a given id"
|
|
4911
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4912
|
+
"description": "Enable embeddings for the production dataset"
|
|
4872
4913
|
},
|
|
4873
4914
|
{
|
|
4874
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4875
|
-
"description": "
|
|
4915
|
+
"command": "<%= config.bin %> <%= command.id %> production --projection \"{ title, body }\"",
|
|
4916
|
+
"description": "Enable embeddings with a specific projection"
|
|
4876
4917
|
},
|
|
4877
4918
|
{
|
|
4878
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4879
|
-
"description": "
|
|
4919
|
+
"command": "<%= config.bin %> <%= command.id %> production --wait",
|
|
4920
|
+
"description": "Enable embeddings and wait for processing to complete"
|
|
4880
4921
|
}
|
|
4881
4922
|
],
|
|
4882
4923
|
"flags": {
|
|
4883
|
-
"
|
|
4884
|
-
"
|
|
4885
|
-
"
|
|
4886
|
-
"
|
|
4887
|
-
"
|
|
4888
|
-
"type": "boolean"
|
|
4889
|
-
},
|
|
4890
|
-
"id": {
|
|
4891
|
-
"description": "Fetch a single schema by id",
|
|
4892
|
-
"name": "id",
|
|
4924
|
+
"project-id": {
|
|
4925
|
+
"char": "p",
|
|
4926
|
+
"description": "Project ID to enable embeddings for (overrides CLI configuration)",
|
|
4927
|
+
"helpGroup": "OVERRIDE",
|
|
4928
|
+
"name": "project-id",
|
|
4893
4929
|
"hasDynamicHelp": false,
|
|
4894
|
-
"helpValue": "<
|
|
4930
|
+
"helpValue": "<id>",
|
|
4895
4931
|
"multiple": false,
|
|
4896
4932
|
"type": "option"
|
|
4897
4933
|
},
|
|
4898
|
-
"
|
|
4899
|
-
"description": "
|
|
4900
|
-
"name": "
|
|
4901
|
-
"
|
|
4902
|
-
"type": "boolean"
|
|
4903
|
-
},
|
|
4904
|
-
"manifest-dir": {
|
|
4905
|
-
"description": "Directory containing manifest file",
|
|
4906
|
-
"hidden": true,
|
|
4907
|
-
"name": "manifest-dir",
|
|
4908
|
-
"default": "./dist/static",
|
|
4934
|
+
"projection": {
|
|
4935
|
+
"description": "GROQ projection defining which fields to embed (e.g. \"{ title, body }\")",
|
|
4936
|
+
"name": "projection",
|
|
4937
|
+
"required": false,
|
|
4909
4938
|
"hasDynamicHelp": false,
|
|
4910
|
-
"helpValue": "<directory>",
|
|
4911
4939
|
"multiple": false,
|
|
4912
4940
|
"type": "option"
|
|
4941
|
+
},
|
|
4942
|
+
"wait": {
|
|
4943
|
+
"description": "Wait for embeddings processing to complete before returning",
|
|
4944
|
+
"name": "wait",
|
|
4945
|
+
"allowNo": false,
|
|
4946
|
+
"type": "boolean"
|
|
4913
4947
|
}
|
|
4914
4948
|
},
|
|
4915
4949
|
"hasDynamicHelp": false,
|
|
4916
4950
|
"hiddenAliases": [
|
|
4917
|
-
"
|
|
4951
|
+
"dataset:embeddings:enable"
|
|
4918
4952
|
],
|
|
4919
|
-
"id": "
|
|
4953
|
+
"id": "datasets:embeddings:enable",
|
|
4920
4954
|
"pluginAlias": "@sanity/cli",
|
|
4921
4955
|
"pluginName": "@sanity/cli",
|
|
4922
4956
|
"pluginType": "core",
|
|
@@ -4925,79 +4959,44 @@
|
|
|
4925
4959
|
"relativePath": [
|
|
4926
4960
|
"dist",
|
|
4927
4961
|
"commands",
|
|
4928
|
-
"
|
|
4929
|
-
"
|
|
4962
|
+
"datasets",
|
|
4963
|
+
"embeddings",
|
|
4964
|
+
"enable.js"
|
|
4930
4965
|
]
|
|
4931
4966
|
},
|
|
4932
|
-
"
|
|
4967
|
+
"datasets:embeddings:status": {
|
|
4933
4968
|
"aliases": [],
|
|
4934
|
-
"args": {
|
|
4935
|
-
|
|
4969
|
+
"args": {
|
|
4970
|
+
"dataset": {
|
|
4971
|
+
"description": "The name of the dataset to check embeddings status for",
|
|
4972
|
+
"name": "dataset",
|
|
4973
|
+
"required": false
|
|
4974
|
+
}
|
|
4975
|
+
},
|
|
4976
|
+
"description": "Show embeddings settings and status for a dataset",
|
|
4936
4977
|
"examples": [
|
|
4937
4978
|
{
|
|
4938
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4939
|
-
"description": "
|
|
4940
|
-
},
|
|
4941
|
-
{
|
|
4942
|
-
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4943
|
-
"description": "Save the results of the report into a file"
|
|
4944
|
-
},
|
|
4945
|
-
{
|
|
4946
|
-
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4947
|
-
"description": "Report out only errors"
|
|
4948
|
-
},
|
|
4949
|
-
{
|
|
4950
|
-
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4951
|
-
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
4979
|
+
"command": "<%= config.bin %> <%= command.id %> production",
|
|
4980
|
+
"description": "Show embeddings status for the production dataset"
|
|
4952
4981
|
}
|
|
4953
4982
|
],
|
|
4954
4983
|
"flags": {
|
|
4955
|
-
"
|
|
4956
|
-
"
|
|
4957
|
-
"
|
|
4958
|
-
"
|
|
4959
|
-
"
|
|
4960
|
-
"multiple": false,
|
|
4961
|
-
"type": "option"
|
|
4962
|
-
},
|
|
4963
|
-
"format": {
|
|
4964
|
-
"description": "The output format used to print schema errors and warnings",
|
|
4965
|
-
"name": "format",
|
|
4966
|
-
"default": "pretty",
|
|
4967
|
-
"hasDynamicHelp": false,
|
|
4968
|
-
"multiple": false,
|
|
4969
|
-
"options": [
|
|
4970
|
-
"pretty",
|
|
4971
|
-
"ndjson",
|
|
4972
|
-
"json"
|
|
4973
|
-
],
|
|
4974
|
-
"type": "option"
|
|
4975
|
-
},
|
|
4976
|
-
"level": {
|
|
4977
|
-
"description": "The minimum level reported out",
|
|
4978
|
-
"name": "level",
|
|
4979
|
-
"default": "warning",
|
|
4980
|
-
"hasDynamicHelp": false,
|
|
4981
|
-
"multiple": false,
|
|
4982
|
-
"options": [
|
|
4983
|
-
"error",
|
|
4984
|
-
"warning"
|
|
4985
|
-
],
|
|
4986
|
-
"type": "option"
|
|
4987
|
-
},
|
|
4988
|
-
"workspace": {
|
|
4989
|
-
"description": "The name of the workspace to use when validating all schema types",
|
|
4990
|
-
"name": "workspace",
|
|
4984
|
+
"project-id": {
|
|
4985
|
+
"char": "p",
|
|
4986
|
+
"description": "Project ID to check embeddings status for (overrides CLI configuration)",
|
|
4987
|
+
"helpGroup": "OVERRIDE",
|
|
4988
|
+
"name": "project-id",
|
|
4991
4989
|
"hasDynamicHelp": false,
|
|
4990
|
+
"helpValue": "<id>",
|
|
4992
4991
|
"multiple": false,
|
|
4993
4992
|
"type": "option"
|
|
4994
4993
|
}
|
|
4995
4994
|
},
|
|
4996
4995
|
"hasDynamicHelp": false,
|
|
4997
4996
|
"hiddenAliases": [
|
|
4998
|
-
"
|
|
4997
|
+
"dataset:embeddings:status"
|
|
4999
4998
|
],
|
|
5000
|
-
"id": "
|
|
4999
|
+
"id": "datasets:embeddings:status",
|
|
5001
5000
|
"pluginAlias": "@sanity/cli",
|
|
5002
5001
|
"pluginName": "@sanity/cli",
|
|
5003
5002
|
"pluginType": "core",
|
|
@@ -5006,8 +5005,9 @@
|
|
|
5006
5005
|
"relativePath": [
|
|
5007
5006
|
"dist",
|
|
5008
5007
|
"commands",
|
|
5009
|
-
"
|
|
5010
|
-
"
|
|
5008
|
+
"datasets",
|
|
5009
|
+
"embeddings",
|
|
5010
|
+
"status.js"
|
|
5011
5011
|
]
|
|
5012
5012
|
},
|
|
5013
5013
|
"datasets:visibility:get": {
|
|
@@ -5116,5 +5116,5 @@
|
|
|
5116
5116
|
]
|
|
5117
5117
|
}
|
|
5118
5118
|
},
|
|
5119
|
-
"version": "7.0
|
|
5119
|
+
"version": "7.1.0"
|
|
5120
5120
|
}
|