Files
wg-easy/docs/content/guides/cli.md
Bernd Storath 84ed7b299f Feat: Cli (#1818)
* add cli

* fix lint

* add docs, include cli packages

* fix docs, username instead of name
2025-04-16 14:17:02 +02:00

880 B

title
title
CLI

If you want to use the CLI, you can run it with

Docker Compose

cd /etc/docker/containers/wg-easy
docker compose exec -it wg-easy cli

Docker Run

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

cd /etc/docker/containers/wg-easy
docker compose exec -it wg-easy cli db:admin:reset

You are asked to provide the new password

By Argument

cd /etc/docker/containers/wg-easy
docker compose exec -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.