gon user

Create an admin user in the application. Works locally (Docker) or on a remote server via SSH.

Usage

gon user admin@example.com # Local, random password
gon user admin@example.com --name="Jan Novak" # Custom name
gon user admin@example.com --password=secret123 # Custom password
gon user admin@example.com --remote=production # Create on remote server

Options

  • --name — Display name (defaults to email prefix)
  • --password — Password (defaults to random 16 chars)
  • --remote — Run on remote server (e.g. production)

Runs php artisan users:admin inside the app container.