Users

Manage the accounts people sign in to your app with.

Syntax

$ vela users <command>
  • create - Create an app user, or change one

App users and admin logins

An app has two kinds of account, and they do not overlap:

  • An app user is a record in the app’s own auth collection, users unless you named another. It is what vela enable auth signs in at /login, what locals.user holds and what your collections’ rules refer to. vela users create makes one.
  • An admin login is a PocketBase superuser. It opens the admin panel at /admin and nothing else: it cannot sign in to the app. vela admin create makes one.

A first deploy has a superuser, created on the server, and no app users at all: the database is new. Create the first account with vela users create -t production, or sign up through the app if it has a signup page.