# Create the first administrator

Run the database migrations without the demo seeders, then create a platform
administrator interactively:

```bash
docker compose exec app php artisan migrate
docker compose exec app php artisan admin:create
```

The name and email may be supplied as options. The password is always collected
through a hidden prompt and must contain at least 12 characters:

```bash
docker compose exec app php artisan admin:create \
  --name="Platform Admin" --email="admin@example.com"
```

When running PHP directly instead of Docker, use the equivalent command from
the backend directory:

```bash
php artisan admin:create
```

The command creates a verified `super_admin` account with no organization. It
refuses to modify an existing account when the supplied email is already in use.
