WireGuard Manager (wgm) is a command-line tool designed to simplify the management of WireGuard VPN users. It allows you to easily create, list, and delete WireGuard users with a few simple commands.
To install WireGuard Manager (wgm) from source, follow these steps:
-
Clone the repository:
git clone https://github.com/rlizana/wgm.git cd wgm -
Install the dependencies using Poetry:
poetry install
-
Install the package globally:
poetry build pip install dist/*.whl
This will allow you to call wgm from anywhere in the console.
To install WireGuard Manager (wgm) as a package, you can use pip:
pip install wgmTo use the WireGuard Manager, follow these steps:
-
Activate the virtual environment:
poetry shell
-
Run the application:
python main.py
To build the package, follow these steps:
poetry buildTo install the necessary dependencies for running unit tests with unittest, follow these steps:
Install the development dependencies:
bash poetry install --with dev poetry run pre-commit install
Run the unit tests:
bash python -m unittest discover tests
Or you can run the command
poetry run python -m wgm