File tree Expand file tree Collapse file tree 1 file changed +14
-5
lines changed
Expand file tree Collapse file tree 1 file changed +14
-5
lines changed Original file line number Diff line number Diff line change 11package cloudx
22
33import (
4- "fmt"
5-
64 "github.com/ory/x/cmdx"
75
86 "github.com/spf13/cobra"
@@ -13,9 +11,20 @@ func NewGetKratosConfigCmd() *cobra.Command {
1311 Use : "identity-config project-id" ,
1412 Aliases : []string {"ic" , "kratos-config" },
1513 Args : cobra .ExactArgs (1 ),
16- Short : fmt .Sprintf ("Get an Ory Cloud project and output it as Ory Kratos configuration" ),
17- Example : `ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format yaml > kratos-config.yaml
18- ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format json > kratos-config.json` ,
14+ Short : "Get an Ory Cloud project's identity configuration" ,
15+ Long : "You can use this command to render Ory Kratos configurations as well." ,
16+ Example : `$ ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format yaml > kratos-config.yaml
17+
18+ $ ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format json
19+
20+ {
21+ "selfservice": {
22+ "methods": {
23+ "password": { "enabled": false }
24+ }
25+ // ...
26+ }
27+ }` ,
1928 RunE : func (cmd * cobra.Command , args []string ) error {
2029 h , err := NewSnakeCharmer (cmd )
2130 if err != nil {
You can’t perform that action at this time.
0 commit comments