mirror of https://github.com/wg-easy/wg-easy
4 changed files with 60 additions and 11 deletions
@ -0,0 +1,43 @@ |
|||
--- |
|||
title: CLI |
|||
--- |
|||
|
|||
If you want to use the CLI, you can run it with |
|||
|
|||
### Docker Compose |
|||
|
|||
```shell |
|||
cd /etc/docker/containers/wg-easy |
|||
docker compose run --rm -it wg-easy cli |
|||
``` |
|||
|
|||
### Docker Run |
|||
|
|||
```shell |
|||
docker run --rm -it \ |
|||
-v ~/.wg-easy:/etc/wireguard \ |
|||
ghcr.io/wg-easy/wg-easy:15 \ |
|||
cli |
|||
``` |
|||
|
|||
### Reset Password |
|||
|
|||
If you want to reset the password for the admin user, you can run the following command: |
|||
|
|||
#### By Prompt |
|||
|
|||
```shell |
|||
cd /etc/docker/containers/wg-easy |
|||
docker compose run --rm -it wg-easy cli db:admin:reset |
|||
``` |
|||
|
|||
You are asked to provide the new password |
|||
|
|||
#### By Argument |
|||
|
|||
```shell |
|||
cd /etc/docker/containers/wg-easy |
|||
docker compose run --rm -it wg-easy cli db:admin:reset --password <new_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. |
Loading…
Reference in new issue