Runique CLI
Create a Superuser
Command-line interface to create superusers, start the server and manage migrations.
runique create-superuser
=== Create Superuser === [Ctrl+C to quit]
[1/5] Hash algorithm:
1) Argon2 (recommended)
2) Bcrypt
3) Scrypt
4) Custom provider
Choice [1-4] (default: 1):
[2/5] Username:
[3/5] Email:
[4/5] Password:
[5/5] Confirm password:
──────────────────────────────────
Algorithm : Argon2
Username : admin
Email : admin@example.com
Password : ••••••••
──────────────────────────────────
[Enter] Confirm [A] Change algorithm [Ctrl+C] Cancel
Navigation: ESC goes back to the previous step at any time.
The CLI runs without the application runtime — it has no access to the
PasswordConfigconfigured inmain.rs. The algorithm is chosen explicitly at each run.For the
Customcase, provide a binary or script that reads the password from stdin and returns the hash on stdout.
All Commands
runique new <name> # Create a new project
runique start [--main src/main.rs] [--admin src/admin.rs] # Start with admin daemon
runique makemigrations --entities src/entities --migrations migration/src # Generate migrations
runique migration up|down|status --migrations migration/src # Manage migrations
runique create-superuser # Create a superuser