From 9b15d5bdeb1d5972a17969afeb39a190a5d413ed Mon Sep 17 00:00:00 2001 From: kalzu rekku Date: Sat, 19 Oct 2024 23:51:28 +0300 Subject: [PATCH] README.. --- README.md | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 969b39a..5fd4168 100644 --- a/README.md +++ b/README.md @@ -45,37 +45,26 @@ python wpm_client.py [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 "" --allowed-ips "10.0.0.2/32" + python wpm_client.py create --public-key "" --allowed-ips "10.0.0.2/32" -``` +Update an Existing Peer: - Update an Existing Peer: -``` -python wpm_client.py update --public-key "" --allowed-ips "10.0.0.3/32" + python wpm_client.py update --public-key "" --allowed-ips "10.0.0.3/32" -``` +Delete a Peer: - Delete a Peer: -``` -python wpm_client.py delete --public-key "" + python wpm_client.py delete --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