Added create your first admin user part in documentation.

This commit is contained in:
2025-04-07 12:53:30 +03:00
parent fe9c6242c0
commit eb16b34a4f

View File

@@ -29,6 +29,7 @@ This repository includes:
- [Test your setup](#test-your-setup) - [Test your setup](#test-your-setup)
- [Using the `status` command:](#using-the-status-command) - [Using the `status` command:](#using-the-status-command)
- [Using the `test_setup` command:](#using-the-test_setup-command) - [Using the `test_setup` command:](#using-the-test_setup-command)
- [Create your first admin user](#create-your-first-admin-user)
## Getting Started ## Getting Started
@@ -217,6 +218,26 @@ Config file loaded successfully.
+-------------------------------------------+ +-------------------------------------------+
``` ```
## Create your first admin user
We recommend creating one admin user, and use that to create normal users via the API.
To create your first admin user, simply use the `create_user` command:
```bash
$ db-middleware create_user
Config file loaded successfully.
Enter username: myadmin
Enter role (admin/user): admin
+-----------------------------------------------------------------------------+
| > User 'myadmin' with role 'admin' created successfully. |
| > API Key: 4887f28e378dfd99e622833ccbebc174a45d |
+-----------------------------------------------------------------------------+
```
--- ---