> ## Documentation Index
> Fetch the complete documentation index at: https://docs.curator.interworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# backenduser:create

> Create a backend user with all available permissions

Creates a backend user with all available permissions.

**Arguments:**

| Argument | Required | Description |
| - | - | - |
| `username` | Yes | Backend username |
| `password` | Yes | Initial password |
| `email` | Yes | Email address |
| `firstname` | No | First name (defaults to username) |
| `lastname` | No | Last name (defaults to username) |

**Options:**

| Option | Description |
| - | - |
| `--if-not-exists` | If a backend user with the same username or email already exists (including a deleted one), skip creation and exit successfully without changing that user. Without this option, a duplicate username or email fails with an error such as "The email has already been taken." |

**Examples:**

```bash theme={null}
php artisan backenduser:create admin secretpass admin@example.com John Doe
```

Create the user only if it does not already exist, which is useful for setup scripts that may run more than once:

```bash theme={null}
php artisan backenduser:create --if-not-exists admin secretpass admin@example.com
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.