# Admin Scripts This directory contains utility scripts for administrative tasks. ## Creating Admin Users There are two scripts available for creating admin users: ### Interactive Script The interactive script will prompt you for the necessary information: ```bash npm run create-admin ``` This will guide you through the process with prompts for: - Username (minimum 3 characters) - Name (optional) - Password (minimum 6 characters) ### Command Line Script If you prefer to create an admin user without interactive prompts (useful for automation), use: ```bash npm run create-admin-cli -- [name] ``` Example: ```bash npm run create-admin-cli -- admin password123 "Admin User" ``` Note: Make sure to include the `--` before the arguments to pass them to the script correctly. ## Requirements - Both scripts require the database to be running and accessible - The DATABASE_URL environment variable must be properly configured - The scripts will validate inputs and check for existing users with the same username