From eb16b34a4f9f2cc3649526b136a6a5202e1482fc Mon Sep 17 00:00:00 2001 From: abdulhade Date: Mon, 7 Apr 2025 12:53:30 +0300 Subject: [PATCH] Added create your first admin user part in documentation. --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 4e13ee2..f5b40dc 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,7 @@ This repository includes: - [Test your setup](#test-your-setup) - [Using the `status` command:](#using-the-status-command) - [Using the `test_setup` command:](#using-the-test_setup-command) + - [Create your first admin user](#create-your-first-admin-user) ## 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 | ++-----------------------------------------------------------------------------+ +``` + ---