This commit is contained in:
kalzu rekku 2024-10-19 23:51:28 +03:00
parent 937e3f272a
commit 9b15d5bdeb

View File

@ -45,37 +45,26 @@ python wpm_client.py <action> [options]
### Example Usage
List Peers:
List Peers:
```
python wpm_client.py list
python wpm_client.py list
```
Create a New Peer:
Create a New Peer:
```
python wpm_client.py create --public-key "<peer-public-key>" --allowed-ips "10.0.0.2/32"
python wpm_client.py create --public-key "<peer-public-key>" --allowed-ips "10.0.0.2/32"
```
Update an Existing Peer:
Update an Existing Peer:
```
python wpm_client.py update --public-key "<peer-public-key>" --allowed-ips "10.0.0.3/32"
python wpm_client.py update --public-key "<peer-public-key>" --allowed-ips "10.0.0.3/32"
```
Delete a Peer:
Delete a Peer:
```
python wpm_client.py delete --public-key "<peer-public-key>"
python wpm_client.py delete --public-key "<peer-public-key>"
```
Restore Configuration:
Restore Configuration:
python wpm_client.py restore
```
python wpm_client.py restore
```
### Backup and Restore
@ -83,5 +72,5 @@ The server automatically creates a backup before making any changes to the WireG
You can restore the latest backup by sending a POST /restore request, which can be done using the client or via curl:
curl -X POST http://localhost:8000/restore
curl -X POST http://localhost:8000/restore