@sanity/cli 6.1.0 → 6.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +78 -78
- package/dist/actions/manifest/extractWorkspaceManifest.js +12 -5
- package/dist/actions/manifest/extractWorkspaceManifest.js.map +1 -1
- package/dist/actions/schema/uploadSchemaToLexicon.js +6 -4
- package/dist/actions/schema/uploadSchemaToLexicon.js.map +1 -1
- package/oclif.manifest.json +374 -374
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -3706,42 +3706,24 @@
|
|
|
3706
3706
|
"status.js"
|
|
3707
3707
|
]
|
|
3708
3708
|
},
|
|
3709
|
-
"
|
|
3709
|
+
"schema:delete": {
|
|
3710
3710
|
"aliases": [],
|
|
3711
|
-
"args": {
|
|
3712
|
-
|
|
3713
|
-
"description": "Label for the new token",
|
|
3714
|
-
"name": "label",
|
|
3715
|
-
"required": false
|
|
3716
|
-
}
|
|
3717
|
-
},
|
|
3718
|
-
"description": "Create a new API token for this project",
|
|
3711
|
+
"args": {},
|
|
3712
|
+
"description": "Delete schema documents by id",
|
|
3719
3713
|
"examples": [
|
|
3720
3714
|
{
|
|
3721
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3722
|
-
"description": "
|
|
3723
|
-
},
|
|
3724
|
-
{
|
|
3725
|
-
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
3726
|
-
"description": "Create a token with editor role"
|
|
3727
|
-
},
|
|
3728
|
-
{
|
|
3729
|
-
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
3730
|
-
"description": "Create a token in unattended mode"
|
|
3731
|
-
},
|
|
3732
|
-
{
|
|
3733
|
-
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
3734
|
-
"description": "Output token information as JSON"
|
|
3715
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName",
|
|
3716
|
+
"description": "Delete a single schema"
|
|
3735
3717
|
},
|
|
3736
3718
|
{
|
|
3737
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3738
|
-
"description": "
|
|
3719
|
+
"command": "<%= config.bin %> <%= command.id %> --ids sanity.workspace.schema.workspaceName,prefix.sanity.workspace.schema.otherWorkspace",
|
|
3720
|
+
"description": "Delete multiple schemas"
|
|
3739
3721
|
}
|
|
3740
3722
|
],
|
|
3741
3723
|
"flags": {
|
|
3742
3724
|
"project-id": {
|
|
3743
3725
|
"char": "p",
|
|
3744
|
-
"description": "Project ID to
|
|
3726
|
+
"description": "Project ID to delete schema from (overrides CLI configuration)",
|
|
3745
3727
|
"helpGroup": "OVERRIDE",
|
|
3746
3728
|
"name": "project-id",
|
|
3747
3729
|
"hasDynamicHelp": false,
|
|
@@ -3749,31 +3731,49 @@
|
|
|
3749
3731
|
"multiple": false,
|
|
3750
3732
|
"type": "option"
|
|
3751
3733
|
},
|
|
3752
|
-
"
|
|
3753
|
-
"
|
|
3754
|
-
"
|
|
3755
|
-
"
|
|
3734
|
+
"dataset": {
|
|
3735
|
+
"char": "d",
|
|
3736
|
+
"description": "Delete schemas from a specific dataset",
|
|
3737
|
+
"name": "dataset",
|
|
3738
|
+
"hasDynamicHelp": false,
|
|
3739
|
+
"helpValue": "<name>",
|
|
3740
|
+
"multiple": false,
|
|
3741
|
+
"type": "option"
|
|
3742
|
+
},
|
|
3743
|
+
"extract-manifest": {
|
|
3744
|
+
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
3745
|
+
"hidden": true,
|
|
3746
|
+
"name": "extract-manifest",
|
|
3747
|
+
"allowNo": true,
|
|
3756
3748
|
"type": "boolean"
|
|
3757
3749
|
},
|
|
3758
|
-
"
|
|
3759
|
-
"description": "
|
|
3760
|
-
"name": "
|
|
3750
|
+
"ids": {
|
|
3751
|
+
"description": "Comma-separated list of schema ids to delete",
|
|
3752
|
+
"name": "ids",
|
|
3753
|
+
"required": true,
|
|
3761
3754
|
"hasDynamicHelp": false,
|
|
3762
|
-
"helpValue": "viewer",
|
|
3763
3755
|
"multiple": false,
|
|
3764
3756
|
"type": "option"
|
|
3765
3757
|
},
|
|
3766
|
-
"
|
|
3767
|
-
"
|
|
3768
|
-
"
|
|
3769
|
-
"name": "
|
|
3758
|
+
"manifest-dir": {
|
|
3759
|
+
"description": "Directory containing manifest file",
|
|
3760
|
+
"hidden": true,
|
|
3761
|
+
"name": "manifest-dir",
|
|
3762
|
+
"default": "./dist/static",
|
|
3763
|
+
"hasDynamicHelp": false,
|
|
3764
|
+
"multiple": false,
|
|
3765
|
+
"type": "option"
|
|
3766
|
+
},
|
|
3767
|
+
"verbose": {
|
|
3768
|
+
"description": "Enable verbose logging",
|
|
3769
|
+
"name": "verbose",
|
|
3770
3770
|
"allowNo": false,
|
|
3771
3771
|
"type": "boolean"
|
|
3772
3772
|
}
|
|
3773
3773
|
},
|
|
3774
3774
|
"hasDynamicHelp": false,
|
|
3775
3775
|
"hiddenAliases": [],
|
|
3776
|
-
"id": "
|
|
3776
|
+
"id": "schema:delete",
|
|
3777
3777
|
"pluginAlias": "@sanity/cli",
|
|
3778
3778
|
"pluginName": "@sanity/cli",
|
|
3779
3779
|
"pluginType": "core",
|
|
@@ -3782,63 +3782,66 @@
|
|
|
3782
3782
|
"relativePath": [
|
|
3783
3783
|
"dist",
|
|
3784
3784
|
"commands",
|
|
3785
|
-
"
|
|
3786
|
-
"
|
|
3785
|
+
"schema",
|
|
3786
|
+
"delete.js"
|
|
3787
3787
|
]
|
|
3788
3788
|
},
|
|
3789
|
-
"
|
|
3789
|
+
"schema:deploy": {
|
|
3790
3790
|
"aliases": [],
|
|
3791
|
-
"args": {
|
|
3792
|
-
|
|
3793
|
-
"description": "Token ID to delete (will prompt if not provided)",
|
|
3794
|
-
"name": "tokenId",
|
|
3795
|
-
"required": false
|
|
3796
|
-
}
|
|
3797
|
-
},
|
|
3798
|
-
"description": "Delete an API token from this project",
|
|
3791
|
+
"args": {},
|
|
3792
|
+
"description": "Deploy schema documents into workspace datasets.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
|
|
3799
3793
|
"examples": [
|
|
3800
3794
|
{
|
|
3801
3795
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3802
|
-
"description": "
|
|
3803
|
-
},
|
|
3804
|
-
{
|
|
3805
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
3806
|
-
"description": "Delete a specific token by ID"
|
|
3807
|
-
},
|
|
3808
|
-
{
|
|
3809
|
-
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
3810
|
-
"description": "Delete a specific token without confirmation prompt"
|
|
3796
|
+
"description": "Deploy all workspace schemas"
|
|
3811
3797
|
},
|
|
3812
3798
|
{
|
|
3813
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3814
|
-
"description": "
|
|
3799
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3800
|
+
"description": "Deploy the schema for only the workspace \"default\""
|
|
3815
3801
|
}
|
|
3816
3802
|
],
|
|
3817
3803
|
"flags": {
|
|
3818
|
-
"
|
|
3819
|
-
"
|
|
3820
|
-
"
|
|
3821
|
-
"
|
|
3822
|
-
"
|
|
3804
|
+
"extract-manifest": {
|
|
3805
|
+
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
3806
|
+
"name": "extract-manifest",
|
|
3807
|
+
"allowNo": true,
|
|
3808
|
+
"type": "boolean"
|
|
3809
|
+
},
|
|
3810
|
+
"manifest-dir": {
|
|
3811
|
+
"description": "Directory containing manifest file",
|
|
3812
|
+
"name": "manifest-dir",
|
|
3813
|
+
"default": "./dist/static",
|
|
3823
3814
|
"hasDynamicHelp": false,
|
|
3824
|
-
"helpValue": "<
|
|
3815
|
+
"helpValue": "<directory>",
|
|
3825
3816
|
"multiple": false,
|
|
3826
3817
|
"type": "option"
|
|
3827
3818
|
},
|
|
3828
|
-
"
|
|
3829
|
-
"
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
"
|
|
3833
|
-
"
|
|
3834
|
-
"
|
|
3819
|
+
"tag": {
|
|
3820
|
+
"description": "Add a tag suffix to the schema id",
|
|
3821
|
+
"name": "tag",
|
|
3822
|
+
"hasDynamicHelp": false,
|
|
3823
|
+
"helpValue": "<tag>",
|
|
3824
|
+
"multiple": false,
|
|
3825
|
+
"type": "option"
|
|
3826
|
+
},
|
|
3827
|
+
"verbose": {
|
|
3828
|
+
"description": "Print detailed information during deployment",
|
|
3829
|
+
"name": "verbose",
|
|
3835
3830
|
"allowNo": false,
|
|
3836
3831
|
"type": "boolean"
|
|
3832
|
+
},
|
|
3833
|
+
"workspace": {
|
|
3834
|
+
"description": "The name of the workspace to deploy a schema for",
|
|
3835
|
+
"name": "workspace",
|
|
3836
|
+
"hasDynamicHelp": false,
|
|
3837
|
+
"helpValue": "<name>",
|
|
3838
|
+
"multiple": false,
|
|
3839
|
+
"type": "option"
|
|
3837
3840
|
}
|
|
3838
3841
|
},
|
|
3839
3842
|
"hasDynamicHelp": false,
|
|
3840
3843
|
"hiddenAliases": [],
|
|
3841
|
-
"id": "
|
|
3844
|
+
"id": "schema:deploy",
|
|
3842
3845
|
"pluginAlias": "@sanity/cli",
|
|
3843
3846
|
"pluginName": "@sanity/cli",
|
|
3844
3847
|
"pluginType": "core",
|
|
@@ -3847,49 +3850,77 @@
|
|
|
3847
3850
|
"relativePath": [
|
|
3848
3851
|
"dist",
|
|
3849
3852
|
"commands",
|
|
3850
|
-
"
|
|
3851
|
-
"
|
|
3853
|
+
"schema",
|
|
3854
|
+
"deploy.js"
|
|
3852
3855
|
]
|
|
3853
3856
|
},
|
|
3854
|
-
"
|
|
3857
|
+
"schema:extract": {
|
|
3855
3858
|
"aliases": [],
|
|
3856
3859
|
"args": {},
|
|
3857
|
-
"description": "
|
|
3860
|
+
"description": "Extracts a JSON representation of a Sanity schema within a Studio context.\n\n**Note**: This command is experimental and subject to change.",
|
|
3858
3861
|
"examples": [
|
|
3859
3862
|
{
|
|
3860
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3861
|
-
"description": "
|
|
3863
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
3864
|
+
"description": "Extracts schema types in a Sanity project with more than one workspace"
|
|
3862
3865
|
},
|
|
3863
3866
|
{
|
|
3864
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3865
|
-
"description": "
|
|
3867
|
+
"command": "<%= config.bin %> <%= command.id %> --watch",
|
|
3868
|
+
"description": "Watch mode - re-extract on changes"
|
|
3866
3869
|
},
|
|
3867
3870
|
{
|
|
3868
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3869
|
-
"description": "
|
|
3871
|
+
"command": "<%= config.bin %> <%= command.id %> --watch --watch-patterns \"lib/**/*.ts\"",
|
|
3872
|
+
"description": "Watch with custom glob patterns"
|
|
3870
3873
|
}
|
|
3871
3874
|
],
|
|
3872
3875
|
"flags": {
|
|
3873
|
-
"
|
|
3874
|
-
"
|
|
3875
|
-
"
|
|
3876
|
-
"
|
|
3877
|
-
"
|
|
3876
|
+
"enforce-required-fields": {
|
|
3877
|
+
"description": "Makes the schema generated treat fields marked as required as non-optional",
|
|
3878
|
+
"name": "enforce-required-fields",
|
|
3879
|
+
"allowNo": false,
|
|
3880
|
+
"type": "boolean"
|
|
3881
|
+
},
|
|
3882
|
+
"format": {
|
|
3883
|
+
"description": "Format the schema as GROQ type nodes. Only available format at the moment.",
|
|
3884
|
+
"name": "format",
|
|
3885
|
+
"default": "groq-type-nodes",
|
|
3878
3886
|
"hasDynamicHelp": false,
|
|
3879
|
-
"helpValue": "<
|
|
3887
|
+
"helpValue": "<format>",
|
|
3880
3888
|
"multiple": false,
|
|
3881
3889
|
"type": "option"
|
|
3882
3890
|
},
|
|
3883
|
-
"
|
|
3884
|
-
"description": "
|
|
3885
|
-
"name": "
|
|
3891
|
+
"path": {
|
|
3892
|
+
"description": "Optional path to specify destination of the schema file",
|
|
3893
|
+
"name": "path",
|
|
3894
|
+
"hasDynamicHelp": false,
|
|
3895
|
+
"multiple": false,
|
|
3896
|
+
"type": "option"
|
|
3897
|
+
},
|
|
3898
|
+
"watch": {
|
|
3899
|
+
"description": "Enable watch mode to re-extract schema on file changes",
|
|
3900
|
+
"name": "watch",
|
|
3886
3901
|
"allowNo": false,
|
|
3887
3902
|
"type": "boolean"
|
|
3903
|
+
},
|
|
3904
|
+
"watch-patterns": {
|
|
3905
|
+
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
3906
|
+
"name": "watch-patterns",
|
|
3907
|
+
"hasDynamicHelp": false,
|
|
3908
|
+
"helpValue": "<glob>",
|
|
3909
|
+
"multiple": true,
|
|
3910
|
+
"type": "option"
|
|
3911
|
+
},
|
|
3912
|
+
"workspace": {
|
|
3913
|
+
"description": "The name of the workspace to generate a schema for",
|
|
3914
|
+
"name": "workspace",
|
|
3915
|
+
"hasDynamicHelp": false,
|
|
3916
|
+
"helpValue": "<name>",
|
|
3917
|
+
"multiple": false,
|
|
3918
|
+
"type": "option"
|
|
3888
3919
|
}
|
|
3889
3920
|
},
|
|
3890
3921
|
"hasDynamicHelp": false,
|
|
3891
3922
|
"hiddenAliases": [],
|
|
3892
|
-
"id": "
|
|
3923
|
+
"id": "schema:extract",
|
|
3893
3924
|
"pluginAlias": "@sanity/cli",
|
|
3894
3925
|
"pluginName": "@sanity/cli",
|
|
3895
3926
|
"pluginType": "core",
|
|
@@ -3898,61 +3929,68 @@
|
|
|
3898
3929
|
"relativePath": [
|
|
3899
3930
|
"dist",
|
|
3900
3931
|
"commands",
|
|
3901
|
-
"
|
|
3902
|
-
"
|
|
3932
|
+
"schema",
|
|
3933
|
+
"extract.js"
|
|
3903
3934
|
]
|
|
3904
3935
|
},
|
|
3905
|
-
"
|
|
3936
|
+
"schema:list": {
|
|
3906
3937
|
"aliases": [],
|
|
3907
|
-
"args": {
|
|
3908
|
-
|
|
3909
|
-
"description": "Email address to invite",
|
|
3910
|
-
"name": "email",
|
|
3911
|
-
"required": false
|
|
3912
|
-
}
|
|
3913
|
-
},
|
|
3914
|
-
"description": "Invite a new user to the project",
|
|
3938
|
+
"args": {},
|
|
3939
|
+
"description": "Lists all schemas in the current dataset.\n\n**Note**: This command is experimental and subject to change.\n\nThis operation (re-)generates a manifest file describing the sanity config workspace by default.\nTo re-use an existing manifest file, use --no-extract-manifest.",
|
|
3915
3940
|
"examples": [
|
|
3916
3941
|
{
|
|
3917
3942
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
3918
|
-
"description": "
|
|
3943
|
+
"description": "List all schemas found in any workspace dataset in a table"
|
|
3919
3944
|
},
|
|
3920
3945
|
{
|
|
3921
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3922
|
-
"description": "
|
|
3946
|
+
"command": "<%= config.bin %> <%= command.id %> --id _.schemas.workspaceName",
|
|
3947
|
+
"description": "Get a schema for a given id"
|
|
3923
3948
|
},
|
|
3924
3949
|
{
|
|
3925
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3926
|
-
"description": "
|
|
3950
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
3951
|
+
"description": "Get stored schemas as pretty-printed json-array"
|
|
3927
3952
|
},
|
|
3928
3953
|
{
|
|
3929
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3930
|
-
"description": "
|
|
3954
|
+
"command": "<%= config.bin %> <%= command.id %> --json --id _.schemas.workspaceName",
|
|
3955
|
+
"description": "Get singular stored schema as pretty-printed json-object"
|
|
3931
3956
|
}
|
|
3932
3957
|
],
|
|
3933
3958
|
"flags": {
|
|
3934
|
-
"
|
|
3935
|
-
"
|
|
3936
|
-
"
|
|
3937
|
-
"
|
|
3938
|
-
"
|
|
3959
|
+
"extract-manifest": {
|
|
3960
|
+
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
3961
|
+
"hidden": true,
|
|
3962
|
+
"name": "extract-manifest",
|
|
3963
|
+
"allowNo": true,
|
|
3964
|
+
"type": "boolean"
|
|
3965
|
+
},
|
|
3966
|
+
"id": {
|
|
3967
|
+
"description": "Fetch a single schema by id",
|
|
3968
|
+
"name": "id",
|
|
3939
3969
|
"hasDynamicHelp": false,
|
|
3940
|
-
"helpValue": "<
|
|
3970
|
+
"helpValue": "<schema_id>",
|
|
3941
3971
|
"multiple": false,
|
|
3942
3972
|
"type": "option"
|
|
3943
3973
|
},
|
|
3944
|
-
"
|
|
3945
|
-
"description": "
|
|
3946
|
-
"name": "
|
|
3947
|
-
"
|
|
3974
|
+
"json": {
|
|
3975
|
+
"description": "Get schema as json",
|
|
3976
|
+
"name": "json",
|
|
3977
|
+
"allowNo": false,
|
|
3978
|
+
"type": "boolean"
|
|
3979
|
+
},
|
|
3980
|
+
"manifest-dir": {
|
|
3981
|
+
"description": "Directory containing manifest file",
|
|
3982
|
+
"hidden": true,
|
|
3983
|
+
"name": "manifest-dir",
|
|
3984
|
+
"default": "./dist/static",
|
|
3948
3985
|
"hasDynamicHelp": false,
|
|
3986
|
+
"helpValue": "<directory>",
|
|
3949
3987
|
"multiple": false,
|
|
3950
3988
|
"type": "option"
|
|
3951
3989
|
}
|
|
3952
3990
|
},
|
|
3953
3991
|
"hasDynamicHelp": false,
|
|
3954
3992
|
"hiddenAliases": [],
|
|
3955
|
-
"id": "
|
|
3993
|
+
"id": "schema:list",
|
|
3956
3994
|
"pluginAlias": "@sanity/cli",
|
|
3957
3995
|
"pluginName": "@sanity/cli",
|
|
3958
3996
|
"pluginType": "core",
|
|
@@ -3961,85 +3999,77 @@
|
|
|
3961
3999
|
"relativePath": [
|
|
3962
4000
|
"dist",
|
|
3963
4001
|
"commands",
|
|
3964
|
-
"
|
|
3965
|
-
"
|
|
4002
|
+
"schema",
|
|
4003
|
+
"list.js"
|
|
3966
4004
|
]
|
|
3967
4005
|
},
|
|
3968
|
-
"
|
|
4006
|
+
"schema:validate": {
|
|
3969
4007
|
"aliases": [],
|
|
3970
4008
|
"args": {},
|
|
3971
|
-
"description": "
|
|
4009
|
+
"description": "Validates all schema types specified in a workspace",
|
|
3972
4010
|
"examples": [
|
|
3973
4011
|
{
|
|
3974
|
-
"command": "<%= config.bin %> <%= command.id %>",
|
|
3975
|
-
"description": "
|
|
4012
|
+
"command": "<%= config.bin %> <%= command.id %> --workspace default",
|
|
4013
|
+
"description": "Validates all schema types in a Sanity project with more than one workspace"
|
|
3976
4014
|
},
|
|
3977
4015
|
{
|
|
3978
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
3979
|
-
"description": "
|
|
4016
|
+
"command": "<%= config.bin %> <%= command.id %> > report.txt",
|
|
4017
|
+
"description": "Save the results of the report into a file"
|
|
3980
4018
|
},
|
|
3981
4019
|
{
|
|
3982
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3983
|
-
"description": "
|
|
4020
|
+
"command": "<%= config.bin %> <%= command.id %> --level error",
|
|
4021
|
+
"description": "Report out only errors"
|
|
3984
4022
|
},
|
|
3985
4023
|
{
|
|
3986
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
3987
|
-
"description": "
|
|
4024
|
+
"command": "<%= config.bin %> <%= command.id %> --debug-metafile-path metafile.json",
|
|
4025
|
+
"description": "Generate a report which can be analyzed with https://esbuild.github.io/analyze/"
|
|
3988
4026
|
}
|
|
3989
4027
|
],
|
|
3990
4028
|
"flags": {
|
|
3991
|
-
"
|
|
3992
|
-
"
|
|
3993
|
-
"
|
|
3994
|
-
"
|
|
3995
|
-
"name": "project-id",
|
|
4029
|
+
"debug-metafile-path": {
|
|
4030
|
+
"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/",
|
|
4031
|
+
"helpGroup": "DEBUG",
|
|
4032
|
+
"name": "debug-metafile-path",
|
|
3996
4033
|
"hasDynamicHelp": false,
|
|
3997
|
-
"helpValue": "<id>",
|
|
3998
4034
|
"multiple": false,
|
|
3999
4035
|
"type": "option"
|
|
4000
4036
|
},
|
|
4001
|
-
"
|
|
4002
|
-
"description": "
|
|
4003
|
-
"name": "
|
|
4004
|
-
"
|
|
4005
|
-
"type": "boolean"
|
|
4006
|
-
},
|
|
4007
|
-
"order": {
|
|
4008
|
-
"description": "Sort output ascending/descending",
|
|
4009
|
-
"name": "order",
|
|
4010
|
-
"default": "asc",
|
|
4037
|
+
"format": {
|
|
4038
|
+
"description": "The output format used to print schema errors and warnings",
|
|
4039
|
+
"name": "format",
|
|
4040
|
+
"default": "pretty",
|
|
4011
4041
|
"hasDynamicHelp": false,
|
|
4012
4042
|
"multiple": false,
|
|
4013
4043
|
"options": [
|
|
4014
|
-
"
|
|
4015
|
-
"
|
|
4044
|
+
"pretty",
|
|
4045
|
+
"ndjson",
|
|
4046
|
+
"json"
|
|
4016
4047
|
],
|
|
4017
4048
|
"type": "option"
|
|
4018
4049
|
},
|
|
4019
|
-
"
|
|
4020
|
-
"description": "
|
|
4021
|
-
"name": "
|
|
4022
|
-
"
|
|
4023
|
-
"type": "boolean"
|
|
4024
|
-
},
|
|
4025
|
-
"sort": {
|
|
4026
|
-
"description": "Sort users by specified column",
|
|
4027
|
-
"name": "sort",
|
|
4028
|
-
"default": "date",
|
|
4050
|
+
"level": {
|
|
4051
|
+
"description": "The minimum level reported out",
|
|
4052
|
+
"name": "level",
|
|
4053
|
+
"default": "warning",
|
|
4029
4054
|
"hasDynamicHelp": false,
|
|
4030
4055
|
"multiple": false,
|
|
4031
4056
|
"options": [
|
|
4032
|
-
"
|
|
4033
|
-
"
|
|
4034
|
-
"role",
|
|
4035
|
-
"date"
|
|
4057
|
+
"error",
|
|
4058
|
+
"warning"
|
|
4036
4059
|
],
|
|
4037
4060
|
"type": "option"
|
|
4061
|
+
},
|
|
4062
|
+
"workspace": {
|
|
4063
|
+
"description": "The name of the workspace to use when validating all schema types",
|
|
4064
|
+
"name": "workspace",
|
|
4065
|
+
"hasDynamicHelp": false,
|
|
4066
|
+
"multiple": false,
|
|
4067
|
+
"type": "option"
|
|
4038
4068
|
}
|
|
4039
4069
|
},
|
|
4040
4070
|
"hasDynamicHelp": false,
|
|
4041
4071
|
"hiddenAliases": [],
|
|
4042
|
-
"id": "
|
|
4072
|
+
"id": "schema:validate",
|
|
4043
4073
|
"pluginAlias": "@sanity/cli",
|
|
4044
4074
|
"pluginName": "@sanity/cli",
|
|
4045
4075
|
"pluginType": "core",
|
|
@@ -4048,28 +4078,46 @@
|
|
|
4048
4078
|
"relativePath": [
|
|
4049
4079
|
"dist",
|
|
4050
4080
|
"commands",
|
|
4051
|
-
"
|
|
4052
|
-
"
|
|
4081
|
+
"schema",
|
|
4082
|
+
"validate.js"
|
|
4053
4083
|
]
|
|
4054
4084
|
},
|
|
4055
|
-
"
|
|
4085
|
+
"tokens:add": {
|
|
4056
4086
|
"aliases": [],
|
|
4057
|
-
"args": {
|
|
4058
|
-
|
|
4087
|
+
"args": {
|
|
4088
|
+
"label": {
|
|
4089
|
+
"description": "Label for the new token",
|
|
4090
|
+
"name": "label",
|
|
4091
|
+
"required": false
|
|
4092
|
+
}
|
|
4093
|
+
},
|
|
4094
|
+
"description": "Create a new API token for this project",
|
|
4059
4095
|
"examples": [
|
|
4060
4096
|
{
|
|
4061
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4062
|
-
"description": "
|
|
4097
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\"",
|
|
4098
|
+
"description": "Create a token with a label"
|
|
4063
4099
|
},
|
|
4064
4100
|
{
|
|
4065
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4066
|
-
"description": "
|
|
4101
|
+
"command": "<%= config.bin %> <%= command.id %> \"My API Token\" --role=editor",
|
|
4102
|
+
"description": "Create a token with editor role"
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"command": "<%= config.bin %> <%= command.id %> \"CI Token\" --role=editor --yes",
|
|
4106
|
+
"description": "Create a token in unattended mode"
|
|
4107
|
+
},
|
|
4108
|
+
{
|
|
4109
|
+
"command": "<%= config.bin %> <%= command.id %> \"API Token\" --json",
|
|
4110
|
+
"description": "Output token information as JSON"
|
|
4111
|
+
},
|
|
4112
|
+
{
|
|
4113
|
+
"command": "<%= config.bin %> <%= command.id %> \"My Token\" --project-id abc123 --role=editor",
|
|
4114
|
+
"description": "Create a token for a specific project"
|
|
4067
4115
|
}
|
|
4068
4116
|
],
|
|
4069
4117
|
"flags": {
|
|
4070
4118
|
"project-id": {
|
|
4071
4119
|
"char": "p",
|
|
4072
|
-
"description": "Project ID to
|
|
4120
|
+
"description": "Project ID to add token to (overrides CLI configuration)",
|
|
4073
4121
|
"helpGroup": "OVERRIDE",
|
|
4074
4122
|
"name": "project-id",
|
|
4075
4123
|
"hasDynamicHelp": false,
|
|
@@ -4077,49 +4125,31 @@
|
|
|
4077
4125
|
"multiple": false,
|
|
4078
4126
|
"type": "option"
|
|
4079
4127
|
},
|
|
4080
|
-
"
|
|
4081
|
-
"
|
|
4082
|
-
"
|
|
4083
|
-
"
|
|
4084
|
-
"hasDynamicHelp": false,
|
|
4085
|
-
"helpValue": "<name>",
|
|
4086
|
-
"multiple": false,
|
|
4087
|
-
"type": "option"
|
|
4088
|
-
},
|
|
4089
|
-
"extract-manifest": {
|
|
4090
|
-
"description": "Generate manifest file (disable with --no-extract-manifest)",
|
|
4091
|
-
"hidden": true,
|
|
4092
|
-
"name": "extract-manifest",
|
|
4093
|
-
"allowNo": true,
|
|
4128
|
+
"json": {
|
|
4129
|
+
"description": "Output as JSON",
|
|
4130
|
+
"name": "json",
|
|
4131
|
+
"allowNo": false,
|
|
4094
4132
|
"type": "boolean"
|
|
4095
4133
|
},
|
|
4096
|
-
"
|
|
4097
|
-
"description": "
|
|
4098
|
-
"name": "
|
|
4099
|
-
"required": true,
|
|
4100
|
-
"hasDynamicHelp": false,
|
|
4101
|
-
"multiple": false,
|
|
4102
|
-
"type": "option"
|
|
4103
|
-
},
|
|
4104
|
-
"manifest-dir": {
|
|
4105
|
-
"description": "Directory containing manifest file",
|
|
4106
|
-
"hidden": true,
|
|
4107
|
-
"name": "manifest-dir",
|
|
4108
|
-
"default": "./dist/static",
|
|
4134
|
+
"role": {
|
|
4135
|
+
"description": "Role to assign to the token",
|
|
4136
|
+
"name": "role",
|
|
4109
4137
|
"hasDynamicHelp": false,
|
|
4138
|
+
"helpValue": "viewer",
|
|
4110
4139
|
"multiple": false,
|
|
4111
4140
|
"type": "option"
|
|
4112
4141
|
},
|
|
4113
|
-
"
|
|
4114
|
-
"
|
|
4115
|
-
"
|
|
4142
|
+
"yes": {
|
|
4143
|
+
"char": "y",
|
|
4144
|
+
"description": "Skip prompts and use defaults (unattended mode)",
|
|
4145
|
+
"name": "yes",
|
|
4116
4146
|
"allowNo": false,
|
|
4117
4147
|
"type": "boolean"
|
|
4118
4148
|
}
|
|
4119
4149
|
},
|
|
4120
4150
|
"hasDynamicHelp": false,
|
|
4121
4151
|
"hiddenAliases": [],
|
|
4122
|
-
"id": "
|
|
4152
|
+
"id": "tokens:add",
|
|
4123
4153
|
"pluginAlias": "@sanity/cli",
|
|
4124
4154
|
"pluginName": "@sanity/cli",
|
|
4125
4155
|
"pluginType": "core",
|
|
@@ -4128,66 +4158,63 @@
|
|
|
4128
4158
|
"relativePath": [
|
|
4129
4159
|
"dist",
|
|
4130
4160
|
"commands",
|
|
4131
|
-
"
|
|
4132
|
-
"
|
|
4161
|
+
"tokens",
|
|
4162
|
+
"add.js"
|
|
4133
4163
|
]
|
|
4134
4164
|
},
|
|
4135
|
-
"
|
|
4165
|
+
"tokens:delete": {
|
|
4136
4166
|
"aliases": [],
|
|
4137
|
-
"args": {
|
|
4138
|
-
|
|
4167
|
+
"args": {
|
|
4168
|
+
"tokenId": {
|
|
4169
|
+
"description": "Token ID to delete (will prompt if not provided)",
|
|
4170
|
+
"name": "tokenId",
|
|
4171
|
+
"required": false
|
|
4172
|
+
}
|
|
4173
|
+
},
|
|
4174
|
+
"description": "Delete an API token from this project",
|
|
4139
4175
|
"examples": [
|
|
4140
4176
|
{
|
|
4141
4177
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4142
|
-
"description": "
|
|
4178
|
+
"description": "Interactively select and delete a token"
|
|
4143
4179
|
},
|
|
4144
4180
|
{
|
|
4145
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4146
|
-
"description": "
|
|
4147
|
-
}
|
|
4148
|
-
],
|
|
4149
|
-
"flags": {
|
|
4150
|
-
"extract-manifest": {
|
|
4151
|
-
"description": "Disables manifest generation - the command will fail if no manifest exists",
|
|
4152
|
-
"name": "extract-manifest",
|
|
4153
|
-
"allowNo": true,
|
|
4154
|
-
"type": "boolean"
|
|
4181
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB",
|
|
4182
|
+
"description": "Delete a specific token by ID"
|
|
4155
4183
|
},
|
|
4156
|
-
|
|
4157
|
-
"
|
|
4158
|
-
"
|
|
4159
|
-
"default": "./dist/static",
|
|
4160
|
-
"hasDynamicHelp": false,
|
|
4161
|
-
"helpValue": "<directory>",
|
|
4162
|
-
"multiple": false,
|
|
4163
|
-
"type": "option"
|
|
4184
|
+
{
|
|
4185
|
+
"command": "<%= config.bin %> <%= command.id %> silJ2lFmK6dONB --yes",
|
|
4186
|
+
"description": "Delete a specific token without confirmation prompt"
|
|
4164
4187
|
},
|
|
4165
|
-
|
|
4166
|
-
"
|
|
4167
|
-
"
|
|
4188
|
+
{
|
|
4189
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4190
|
+
"description": "Delete a token from a specific project"
|
|
4191
|
+
}
|
|
4192
|
+
],
|
|
4193
|
+
"flags": {
|
|
4194
|
+
"project-id": {
|
|
4195
|
+
"char": "p",
|
|
4196
|
+
"description": "Project ID to delete token from (overrides CLI configuration)",
|
|
4197
|
+
"helpGroup": "OVERRIDE",
|
|
4198
|
+
"name": "project-id",
|
|
4168
4199
|
"hasDynamicHelp": false,
|
|
4169
|
-
"helpValue": "<
|
|
4200
|
+
"helpValue": "<id>",
|
|
4170
4201
|
"multiple": false,
|
|
4171
4202
|
"type": "option"
|
|
4172
4203
|
},
|
|
4173
|
-
"
|
|
4174
|
-
"
|
|
4175
|
-
|
|
4204
|
+
"yes": {
|
|
4205
|
+
"aliases": [
|
|
4206
|
+
"y"
|
|
4207
|
+
],
|
|
4208
|
+
"description": "Skip confirmation prompt (unattended mode)",
|
|
4209
|
+
"name": "yes",
|
|
4210
|
+
"required": false,
|
|
4176
4211
|
"allowNo": false,
|
|
4177
4212
|
"type": "boolean"
|
|
4178
|
-
},
|
|
4179
|
-
"workspace": {
|
|
4180
|
-
"description": "The name of the workspace to deploy a schema for",
|
|
4181
|
-
"name": "workspace",
|
|
4182
|
-
"hasDynamicHelp": false,
|
|
4183
|
-
"helpValue": "<name>",
|
|
4184
|
-
"multiple": false,
|
|
4185
|
-
"type": "option"
|
|
4186
4213
|
}
|
|
4187
4214
|
},
|
|
4188
4215
|
"hasDynamicHelp": false,
|
|
4189
4216
|
"hiddenAliases": [],
|
|
4190
|
-
"id": "
|
|
4217
|
+
"id": "tokens:delete",
|
|
4191
4218
|
"pluginAlias": "@sanity/cli",
|
|
4192
4219
|
"pluginName": "@sanity/cli",
|
|
4193
4220
|
"pluginType": "core",
|
|
@@ -4196,77 +4223,49 @@
|
|
|
4196
4223
|
"relativePath": [
|
|
4197
4224
|
"dist",
|
|
4198
4225
|
"commands",
|
|
4199
|
-
"
|
|
4200
|
-
"
|
|
4226
|
+
"tokens",
|
|
4227
|
+
"delete.js"
|
|
4201
4228
|
]
|
|
4202
4229
|
},
|
|
4203
|
-
"
|
|
4230
|
+
"tokens:list": {
|
|
4204
4231
|
"aliases": [],
|
|
4205
4232
|
"args": {},
|
|
4206
|
-
"description": "
|
|
4233
|
+
"description": "List API tokens for the current project",
|
|
4207
4234
|
"examples": [
|
|
4208
4235
|
{
|
|
4209
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4210
|
-
"description": "
|
|
4236
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4237
|
+
"description": "List tokens for the current project"
|
|
4211
4238
|
},
|
|
4212
4239
|
{
|
|
4213
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4214
|
-
"description": "
|
|
4240
|
+
"command": "<%= config.bin %> <%= command.id %> --json",
|
|
4241
|
+
"description": "List tokens in JSON format"
|
|
4215
4242
|
},
|
|
4216
4243
|
{
|
|
4217
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4218
|
-
"description": "
|
|
4244
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4245
|
+
"description": "List tokens for a specific project"
|
|
4219
4246
|
}
|
|
4220
4247
|
],
|
|
4221
4248
|
"flags": {
|
|
4222
|
-
"
|
|
4223
|
-
"
|
|
4224
|
-
"
|
|
4225
|
-
"
|
|
4226
|
-
"
|
|
4227
|
-
},
|
|
4228
|
-
"format": {
|
|
4229
|
-
"description": "Format the schema as GROQ type nodes. Only available format at the moment.",
|
|
4230
|
-
"name": "format",
|
|
4231
|
-
"default": "groq-type-nodes",
|
|
4232
|
-
"hasDynamicHelp": false,
|
|
4233
|
-
"helpValue": "<format>",
|
|
4234
|
-
"multiple": false,
|
|
4235
|
-
"type": "option"
|
|
4236
|
-
},
|
|
4237
|
-
"path": {
|
|
4238
|
-
"description": "Optional path to specify destination of the schema file",
|
|
4239
|
-
"name": "path",
|
|
4249
|
+
"project-id": {
|
|
4250
|
+
"char": "p",
|
|
4251
|
+
"description": "Project ID to list tokens for (overrides CLI configuration)",
|
|
4252
|
+
"helpGroup": "OVERRIDE",
|
|
4253
|
+
"name": "project-id",
|
|
4240
4254
|
"hasDynamicHelp": false,
|
|
4255
|
+
"helpValue": "<id>",
|
|
4241
4256
|
"multiple": false,
|
|
4242
4257
|
"type": "option"
|
|
4243
4258
|
},
|
|
4244
|
-
"
|
|
4245
|
-
"description": "
|
|
4246
|
-
"name": "
|
|
4259
|
+
"json": {
|
|
4260
|
+
"description": "Output tokens in JSON format",
|
|
4261
|
+
"name": "json",
|
|
4247
4262
|
"allowNo": false,
|
|
4248
4263
|
"type": "boolean"
|
|
4249
|
-
},
|
|
4250
|
-
"watch-patterns": {
|
|
4251
|
-
"description": "Additional glob pattern(s) to watch (can be specified multiple times)",
|
|
4252
|
-
"name": "watch-patterns",
|
|
4253
|
-
"hasDynamicHelp": false,
|
|
4254
|
-
"helpValue": "<glob>",
|
|
4255
|
-
"multiple": true,
|
|
4256
|
-
"type": "option"
|
|
4257
|
-
},
|
|
4258
|
-
"workspace": {
|
|
4259
|
-
"description": "The name of the workspace to generate a schema for",
|
|
4260
|
-
"name": "workspace",
|
|
4261
|
-
"hasDynamicHelp": false,
|
|
4262
|
-
"helpValue": "<name>",
|
|
4263
|
-
"multiple": false,
|
|
4264
|
-
"type": "option"
|
|
4265
4264
|
}
|
|
4266
4265
|
},
|
|
4267
4266
|
"hasDynamicHelp": false,
|
|
4268
4267
|
"hiddenAliases": [],
|
|
4269
|
-
"id": "
|
|
4268
|
+
"id": "tokens:list",
|
|
4270
4269
|
"pluginAlias": "@sanity/cli",
|
|
4271
4270
|
"pluginName": "@sanity/cli",
|
|
4272
4271
|
"pluginType": "core",
|
|
@@ -4275,68 +4274,61 @@
|
|
|
4275
4274
|
"relativePath": [
|
|
4276
4275
|
"dist",
|
|
4277
4276
|
"commands",
|
|
4278
|
-
"
|
|
4279
|
-
"
|
|
4277
|
+
"tokens",
|
|
4278
|
+
"list.js"
|
|
4280
4279
|
]
|
|
4281
4280
|
},
|
|
4282
|
-
"
|
|
4281
|
+
"users:invite": {
|
|
4283
4282
|
"aliases": [],
|
|
4284
|
-
"args": {
|
|
4285
|
-
|
|
4283
|
+
"args": {
|
|
4284
|
+
"email": {
|
|
4285
|
+
"description": "Email address to invite",
|
|
4286
|
+
"name": "email",
|
|
4287
|
+
"required": false
|
|
4288
|
+
}
|
|
4289
|
+
},
|
|
4290
|
+
"description": "Invite a new user to the project",
|
|
4286
4291
|
"examples": [
|
|
4287
4292
|
{
|
|
4288
4293
|
"command": "<%= config.bin %> <%= command.id %>",
|
|
4289
|
-
"description": "
|
|
4294
|
+
"description": "Invite a new user to the project (prompt for details)"
|
|
4290
4295
|
},
|
|
4291
4296
|
{
|
|
4292
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4293
|
-
"description": "
|
|
4297
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io",
|
|
4298
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", prompt for role"
|
|
4294
4299
|
},
|
|
4295
4300
|
{
|
|
4296
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4297
|
-
"description": "
|
|
4301
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --role administrator",
|
|
4302
|
+
"description": "Send a new user invite to the email \"pippi@sanity.io\", as administrator"
|
|
4298
4303
|
},
|
|
4299
4304
|
{
|
|
4300
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4301
|
-
"description": "
|
|
4305
|
+
"command": "<%= config.bin %> <%= command.id %> pippi@sanity.io --project-id abc123",
|
|
4306
|
+
"description": "Invite a user to a specific project"
|
|
4302
4307
|
}
|
|
4303
4308
|
],
|
|
4304
4309
|
"flags": {
|
|
4305
|
-
"
|
|
4306
|
-
"
|
|
4307
|
-
"
|
|
4308
|
-
"
|
|
4309
|
-
"
|
|
4310
|
-
"type": "boolean"
|
|
4311
|
-
},
|
|
4312
|
-
"id": {
|
|
4313
|
-
"description": "Fetch a single schema by id",
|
|
4314
|
-
"name": "id",
|
|
4310
|
+
"project-id": {
|
|
4311
|
+
"char": "p",
|
|
4312
|
+
"description": "Project ID to invite user to (overrides CLI configuration)",
|
|
4313
|
+
"helpGroup": "OVERRIDE",
|
|
4314
|
+
"name": "project-id",
|
|
4315
4315
|
"hasDynamicHelp": false,
|
|
4316
|
-
"helpValue": "<
|
|
4316
|
+
"helpValue": "<id>",
|
|
4317
4317
|
"multiple": false,
|
|
4318
4318
|
"type": "option"
|
|
4319
4319
|
},
|
|
4320
|
-
"
|
|
4321
|
-
"description": "
|
|
4322
|
-
"name": "
|
|
4323
|
-
"
|
|
4324
|
-
"type": "boolean"
|
|
4325
|
-
},
|
|
4326
|
-
"manifest-dir": {
|
|
4327
|
-
"description": "Directory containing manifest file",
|
|
4328
|
-
"hidden": true,
|
|
4329
|
-
"name": "manifest-dir",
|
|
4330
|
-
"default": "./dist/static",
|
|
4320
|
+
"role": {
|
|
4321
|
+
"description": "Role to invite the user as",
|
|
4322
|
+
"name": "role",
|
|
4323
|
+
"required": false,
|
|
4331
4324
|
"hasDynamicHelp": false,
|
|
4332
|
-
"helpValue": "<directory>",
|
|
4333
4325
|
"multiple": false,
|
|
4334
4326
|
"type": "option"
|
|
4335
4327
|
}
|
|
4336
4328
|
},
|
|
4337
4329
|
"hasDynamicHelp": false,
|
|
4338
4330
|
"hiddenAliases": [],
|
|
4339
|
-
"id": "
|
|
4331
|
+
"id": "users:invite",
|
|
4340
4332
|
"pluginAlias": "@sanity/cli",
|
|
4341
4333
|
"pluginName": "@sanity/cli",
|
|
4342
4334
|
"pluginType": "core",
|
|
@@ -4345,77 +4337,85 @@
|
|
|
4345
4337
|
"relativePath": [
|
|
4346
4338
|
"dist",
|
|
4347
4339
|
"commands",
|
|
4348
|
-
"
|
|
4349
|
-
"
|
|
4340
|
+
"users",
|
|
4341
|
+
"invite.js"
|
|
4350
4342
|
]
|
|
4351
4343
|
},
|
|
4352
|
-
"
|
|
4344
|
+
"users:list": {
|
|
4353
4345
|
"aliases": [],
|
|
4354
4346
|
"args": {},
|
|
4355
|
-
"description": "
|
|
4347
|
+
"description": "List all users of the project",
|
|
4356
4348
|
"examples": [
|
|
4357
4349
|
{
|
|
4358
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4359
|
-
"description": "
|
|
4350
|
+
"command": "<%= config.bin %> <%= command.id %>",
|
|
4351
|
+
"description": "List all users of the project"
|
|
4360
4352
|
},
|
|
4361
4353
|
{
|
|
4362
|
-
"command": "<%= config.bin %> <%= command.id %>
|
|
4363
|
-
"description": "
|
|
4354
|
+
"command": "<%= config.bin %> <%= command.id %> --no-invitations --no-robots",
|
|
4355
|
+
"description": "List all users of the project, but exclude pending invitations and robots"
|
|
4364
4356
|
},
|
|
4365
4357
|
{
|
|
4366
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4367
|
-
"description": "
|
|
4358
|
+
"command": "<%= config.bin %> <%= command.id %> --sort role",
|
|
4359
|
+
"description": "List all users, sorted by role"
|
|
4368
4360
|
},
|
|
4369
4361
|
{
|
|
4370
|
-
"command": "<%= config.bin %> <%= command.id %> --
|
|
4371
|
-
"description": "
|
|
4362
|
+
"command": "<%= config.bin %> <%= command.id %> --project-id abc123",
|
|
4363
|
+
"description": "List users for a specific project"
|
|
4372
4364
|
}
|
|
4373
4365
|
],
|
|
4374
4366
|
"flags": {
|
|
4375
|
-
"
|
|
4376
|
-
"
|
|
4377
|
-
"
|
|
4378
|
-
"
|
|
4367
|
+
"project-id": {
|
|
4368
|
+
"char": "p",
|
|
4369
|
+
"description": "Project ID to list users for (overrides CLI configuration)",
|
|
4370
|
+
"helpGroup": "OVERRIDE",
|
|
4371
|
+
"name": "project-id",
|
|
4379
4372
|
"hasDynamicHelp": false,
|
|
4373
|
+
"helpValue": "<id>",
|
|
4380
4374
|
"multiple": false,
|
|
4381
4375
|
"type": "option"
|
|
4382
4376
|
},
|
|
4383
|
-
"
|
|
4384
|
-
"description": "
|
|
4385
|
-
"name": "
|
|
4386
|
-
"
|
|
4377
|
+
"invitations": {
|
|
4378
|
+
"description": "Includes or excludes pending invitations",
|
|
4379
|
+
"name": "invitations",
|
|
4380
|
+
"allowNo": true,
|
|
4381
|
+
"type": "boolean"
|
|
4382
|
+
},
|
|
4383
|
+
"order": {
|
|
4384
|
+
"description": "Sort output ascending/descending",
|
|
4385
|
+
"name": "order",
|
|
4386
|
+
"default": "asc",
|
|
4387
4387
|
"hasDynamicHelp": false,
|
|
4388
4388
|
"multiple": false,
|
|
4389
4389
|
"options": [
|
|
4390
|
-
"
|
|
4391
|
-
"
|
|
4392
|
-
"json"
|
|
4390
|
+
"asc",
|
|
4391
|
+
"desc"
|
|
4393
4392
|
],
|
|
4394
4393
|
"type": "option"
|
|
4395
4394
|
},
|
|
4396
|
-
"
|
|
4397
|
-
"description": "
|
|
4398
|
-
"name": "
|
|
4399
|
-
"
|
|
4395
|
+
"robots": {
|
|
4396
|
+
"description": "Includes or excludes robots (token users)",
|
|
4397
|
+
"name": "robots",
|
|
4398
|
+
"allowNo": true,
|
|
4399
|
+
"type": "boolean"
|
|
4400
|
+
},
|
|
4401
|
+
"sort": {
|
|
4402
|
+
"description": "Sort users by specified column",
|
|
4403
|
+
"name": "sort",
|
|
4404
|
+
"default": "date",
|
|
4400
4405
|
"hasDynamicHelp": false,
|
|
4401
4406
|
"multiple": false,
|
|
4402
4407
|
"options": [
|
|
4403
|
-
"
|
|
4404
|
-
"
|
|
4408
|
+
"id",
|
|
4409
|
+
"name",
|
|
4410
|
+
"role",
|
|
4411
|
+
"date"
|
|
4405
4412
|
],
|
|
4406
4413
|
"type": "option"
|
|
4407
|
-
},
|
|
4408
|
-
"workspace": {
|
|
4409
|
-
"description": "The name of the workspace to use when validating all schema types",
|
|
4410
|
-
"name": "workspace",
|
|
4411
|
-
"hasDynamicHelp": false,
|
|
4412
|
-
"multiple": false,
|
|
4413
|
-
"type": "option"
|
|
4414
4414
|
}
|
|
4415
4415
|
},
|
|
4416
4416
|
"hasDynamicHelp": false,
|
|
4417
4417
|
"hiddenAliases": [],
|
|
4418
|
-
"id": "
|
|
4418
|
+
"id": "users:list",
|
|
4419
4419
|
"pluginAlias": "@sanity/cli",
|
|
4420
4420
|
"pluginName": "@sanity/cli",
|
|
4421
4421
|
"pluginType": "core",
|
|
@@ -4424,8 +4424,8 @@
|
|
|
4424
4424
|
"relativePath": [
|
|
4425
4425
|
"dist",
|
|
4426
4426
|
"commands",
|
|
4427
|
-
"
|
|
4428
|
-
"
|
|
4427
|
+
"users",
|
|
4428
|
+
"list.js"
|
|
4429
4429
|
]
|
|
4430
4430
|
},
|
|
4431
4431
|
"dataset:alias:create": {
|
|
@@ -4943,5 +4943,5 @@
|
|
|
4943
4943
|
]
|
|
4944
4944
|
}
|
|
4945
4945
|
},
|
|
4946
|
-
"version": "6.1.
|
|
4946
|
+
"version": "6.1.1"
|
|
4947
4947
|
}
|