From da49dc1a7cabe0376fb434108e80e138fbe46331 Mon Sep 17 00:00:00 2001 From: ory-bot <60093411+ory-bot@users.noreply.github.com> Date: Wed, 16 Aug 2023 06:44:52 +0000 Subject: [PATCH] autogen(docs): generate cli docs --- docs/kratos/cli/kratos-delete-identity.md | 2 +- docs/kratos/cli/kratos-get-identity.md | 2 +- docs/kratos/cli/kratos-import-identities.md | 4 ++-- docs/kratos/cli/kratos-list-identities.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/kratos/cli/kratos-delete-identity.md b/docs/kratos/cli/kratos-delete-identity.md index 4c0a6af87..5d9c401bf 100644 --- a/docs/kratos/cli/kratos-delete-identity.md +++ b/docs/kratos/cli/kratos-delete-identity.md @@ -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 "foo@bar.com", run: - {{ .CommandPath }} $({{ .Root.Name }} list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "foo@bar.com")) | .[].id') + kratos delete identity $(kratos list identities --format json | jq -r 'map(select(.recovery_addresses[].value == "foo@bar.com")) | .[].id') ``` ### Options diff --git a/docs/kratos/cli/kratos-get-identity.md b/docs/kratos/cli/kratos-get-identity.md index de3dbc6b9..860ff3af8 100644 --- a/docs/kratos/cli/kratos-get-identity.md +++ b/docs/kratos/cli/kratos-get-identity.md @@ -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 diff --git a/docs/kratos/cli/kratos-import-identities.md b/docs/kratos/cli/kratos-import-identities.md index 438cbbebc..e1a1108f8 100644 --- a/docs/kratos/cli/kratos-import-identities.md +++ b/docs/kratos/cli/kratos-import-identities.md @@ -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 diff --git a/docs/kratos/cli/kratos-list-identities.md b/docs/kratos/cli/kratos-list-identities.md index 8e763da08..4c9b29d3f 100644 --- a/docs/kratos/cli/kratos-list-identities.md +++ b/docs/kratos/cli/kratos-list-identities.md @@ -24,7 +24,7 @@ kratos list identities [ ] [flags] ### Examples ``` -{{ .CommandPath }} 100 1 +kratos list identities 100 1 ``` ### Options