From 242d3e009ed4b7def1a60077ba4c3ea024432e1f Mon Sep 17 00:00:00 2001 From: lordfriend Date: Sat, 7 May 2016 16:22:10 +0800 Subject: [PATCH] update readme.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34e5cb1..6e50758 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,13 @@ There are some config that must be modified before your run the project ### init database execute sql `bangumi_create.sql` and `user_create.sql` to init the database tables used by application. by default, you need to create an admin user to use the http admin API. -there are and CLI tool for this, use tools.py to create invite code and promote admin user +there are a CLI tool for this job, use tools.py to create invite code and promote admin user + +```bash +$ python tools.py --user-add admin 1234 # admin is username 1234 is password + +$ python tools.py --user-promote admin 3 # admin is username 3 is the level, currently means super user +``` ## Server