Skip to content

Commit

Permalink
docs: update command docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Mar 24, 2022
1 parent 4ff9a27 commit 9d8b450
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions cloudx/cmd_get_kratos_config.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package cloudx

import (
"fmt"

"github.com/ory/x/cmdx"

"github.com/spf13/cobra"
Expand All @@ -13,9 +11,20 @@ func NewGetKratosConfigCmd() *cobra.Command {
Use: "identity-config project-id",
Aliases: []string{"ic", "kratos-config"},
Args: cobra.ExactArgs(1),
Short: fmt.Sprintf("Get an Ory Cloud project and output it as Ory Kratos configuration"),
Example: `ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format yaml > kratos-config.yaml
ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format json > kratos-config.json`,
Short: "Get an Ory Cloud project's identity configuration",
Long: "You can use this command to render Ory Kratos configurations as well.",
Example: `$ ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format yaml > kratos-config.yaml
$ ory get kratos-config ecaaa3cb-0730-4ee8-a6df-9553cdfeef89 --format json
{
"selfservice": {
"methods": {
"password": { "enabled": false }
}
// ...
}
}`,
RunE: func(cmd *cobra.Command, args []string) error {
h, err := NewSnakeCharmer(cmd)
if err != nil {
Expand Down

0 comments on commit 9d8b450

Please sign in to comment.