Skip to content

User Management Commands

User commands operate on the SafeCall SQLite users table.

safecall app users create

Creates a new user.

Usage

bash
sudo ./util.sh app users create

Prompts

  • email
  • password + confirmation
  • admin flag (1 for admin, 0 for non-admin, default 0)

Behavior highlights

  • Rejects duplicate email.
  • Stores password as hash.

safecall app users delete

Deletes a user by email.

Usage

bash
sudo ./util.sh app users delete

Behavior highlights

  • Prompts for email.
  • Requires confirmation (y) before deletion.

safecall app users reset-password

Resets password for the default configured user email.

Usage

bash
sudo ./util.sh app users reset-password

Hidden behavior

  • Target email is taken from server_credentials_default_email in config.
  • It does not ask for arbitrary email in this mode.

Prerequisites and caveats

  • Command expects config/main.config.json in current directory (legacy fallback: main.config.json).
  • Database path is loaded from server_db_path in config.
  • If config or DB is missing, command exits with an error.