added admin console command

This commit is contained in:
Gani Georgiev
2023-04-20 17:20:56 +03:00
parent 0b023b2c02
commit 025c9313e1
3 changed files with 147 additions and 1 deletions
+12
View File
@@ -1,5 +1,17 @@
## (WIP)
- Added new `./pocketbase admin` console command:
```sh
// creates new admin account
./pocketbase admin create test@example.com 123456890
// changes the password of an existing admin account
./pocketbase admin update test@example.com 0987654321
// deletes single admin account (if exists)
./pocketbase admin delete test@example.com
```
- Added `apis.Serve(app, options)` helper to allow starting the API server programmatically.