Skip to content

Commit 9d8b450

Browse files
committed
docs: update command docs
1 parent 4ff9a27 commit 9d8b450

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

cloudx/cmd_get_kratos_config.go

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package cloudx
22

33
import (
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 {

0 commit comments

Comments
 (0)