README..
This commit is contained in:
parent
937e3f272a
commit
9b15d5bdeb
33
README.md
33
README.md
@ -45,37 +45,26 @@ python wpm_client.py <action> [options]
|
|||||||
|
|
||||||
### Example Usage
|
### 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
|
### 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:
|
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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user