Create

Create a PocketBase superuser: a login for the /admin panel.

This is not an account in your app. A superuser cannot sign in at the app’s own login page, and a fresh deploy has no app users until one is created with vela users create or signs up.

Syntax

$ vela admin create [email]
$ vela admin create
$ vela admin create me@example.com -t production

The email is prompted for when omitted, and the password is always prompted for, without echo. It must be at least 10 characters — PocketBase’s own minimum for a superuser. Creating a login for an email that already has one updates its password.

The URL to sign in at is printed when the command finishes.

The database is checked before anything is asked. Locally, a project without a backend is refused and pointed at vela enable backend; on a server, so is a target with no deployed database.

Options

  • -t, --target <target> - Which copy of the app to act on, defaults to local
  • --server <ssh> - Server this target runs on, recorded on first use
  • -i, --identity <file> - SSH private key to authenticate with
  • --ssh-port <port> - SSH port
  • --accept-host-keys - Trust an unknown host key on first connect (CI)