From 13ef1bea74070e94ea8462d531a49ea96da4ec2b Mon Sep 17 00:00:00 2001 From: Lenahilin Date: Tue, 15 Sep 2020 15:22:37 +0200 Subject: [PATCH] Fixing args order for admin password reset command (#27594) Putting the optional argument "--homepath" after the command. The previous one throws the following error: "Incorrect Usage. flag provided but not defined: -homepath". See also https://community.grafana.com/t/admin-password-reset/19455/9 --- docs/sources/administration/cli.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sources/administration/cli.md b/docs/sources/administration/cli.md index 5b02f04a78b..98322332c58 100644 --- a/docs/sources/administration/cli.md +++ b/docs/sources/administration/cli.md @@ -205,7 +205,7 @@ If there are two flags being used to set the homepath and the config file path, To correct this, use the `--homepath` global option to specify the Grafana default homepath for this command: ```bash -grafana-cli --homepath "/usr/share/grafana" admin reset-admin-password +grafana-cli admin reset-admin-password --homepath "/usr/share/grafana" ``` If you have not lost the admin password, we recommend that you change the user password either in the User Preferences or in the Server Admin > User tab.