From 7dae9550a50742525e9dc38a48e0d0045e895bf0 Mon Sep 17 00:00:00 2001 From: Bernd Storath <999999bst@gmail.com> Date: Wed, 16 Apr 2025 14:06:10 +0200 Subject: [PATCH] fix docs, username instead of name --- docs/content/guides/cli.md | 6 +++--- src/cli/index.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/guides/cli.md b/docs/content/guides/cli.md index d952f92a..5a4b5a07 100644 --- a/docs/content/guides/cli.md +++ b/docs/content/guides/cli.md @@ -8,7 +8,7 @@ If you want to use the CLI, you can run it with ```shell cd /etc/docker/containers/wg-easy -docker compose run --rm -it wg-easy cli +docker compose exec -it wg-easy cli ``` ### Docker Run @@ -28,7 +28,7 @@ If you want to reset the password for the admin user, you can run the following ```shell cd /etc/docker/containers/wg-easy -docker compose run --rm -it wg-easy cli db:admin:reset +docker compose exec -it wg-easy cli db:admin:reset ``` You are asked to provide the new password @@ -37,7 +37,7 @@ You are asked to provide the new password ```shell cd /etc/docker/containers/wg-easy -docker compose run --rm -it wg-easy cli db:admin:reset --password +docker compose exec -it wg-easy cli db:admin:reset --password ``` This will reset the password for the admin user to the new password you provided. If you include special characters in the password, make sure to escape them properly. diff --git a/src/cli/index.ts b/src/cli/index.ts index 58944ece..18c2cbd4 100644 --- a/src/cli/index.ts +++ b/src/cli/index.ts @@ -73,7 +73,7 @@ const dbAdminReset = defineCommand({ } consola.success( - `Successfully updated admin user ${user.id} (${user.name})` + `Successfully updated admin user ${user.id} (${user.username})` ); }, });