Skip to content

Commit

Permalink
autogen(docs): generate cli docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ory-bot committed Aug 16, 2023
1 parent 09b5a40 commit da49dc1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/kratos/cli/kratos-delete-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kratos delete identity id-0 [id-1] [id-2] [id-n] [flags]
```
To delete the identity with the recovery email address "[email protected]", run:
{{ .CommandPath }} $({{ .Root.Name }} list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "[email protected]")) | .[].id')
kratos delete identity $(kratos list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "[email protected]")) | .[].id')
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/kratos/cli/kratos-get-identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ kratos get identity [id-1] [id-2] [id-n] [flags]
```
To get the identities with the recovery email address at the domain "ory.sh", run:
{{ .CommandPath }} $({{ .Root.Name }} ls identities --format json | jq -r 'map(select(.recovery_addresses[].value | endswith("@ory.sh"))) | .[].id')
kratos get identity $(kratos ls identities --format json | jq -r 'map(select(.recovery_addresses[].value | endswith("@ory.sh"))) | .[].id')
```

### Options
Expand Down
4 changes: 2 additions & 2 deletions docs/kratos/cli/kratos-import-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ Create an example identity:
}
EOF
{{ .CommandPath }} file.json
kratos import identities file.json
Alternatively:
cat file.json | {{ .CommandPath }}
cat file.json | kratos import identities
```

### Options
Expand Down
2 changes: 1 addition & 1 deletion docs/kratos/cli/kratos-list-identities.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ kratos list identities [<page> <per-page>] [flags]
### Examples

```
{{ .CommandPath }} 100 1
kratos list identities 100 1
```

### Options
Expand Down

0 comments on commit da49dc1

Please sign in to comment.