Skip to content

Conversation

@ssddanbrown
Copy link
Member

@ssddanbrown ssddanbrown commented Aug 5, 2025

This adds flags to target changes to the first default admin user, and to generate a password.

Related to #4575.

New flags:

  • --generate-password: Generate a random password, and echo it back out as the only output on success.
  • --initial: Update the default [email protected] user if an existing admin, otherwise create a new admin user if there's no existing admin accounts.

When the --initial flag is given, the email and name of the account will default to [email protected] and Admin if not provided (Allowing simpler default account creation in future). If the default admin does not exist with this flag, and an existing non-default admin already exists, then user creation will be skipped with a message and an exit code of 2.

Docs Updates

  • Details these flags and behaviours in the command line docs

Added flags to target changes to the first default admin user, and to
generate a password.
This is related to #4575.
@ssddanbrown ssddanbrown self-assigned this Aug 5, 2025
@ssddanbrown ssddanbrown added this to the Next Feature Release milestone Aug 5, 2025
- Also changed first-admin to initial.
- Updated initial handling to not require email/name to be passed, using
  defaults instead.
- Adds missing existing email use check.
Return status for skipped --initial creation will now return 2, so that
it can be identified seperate from a creation and from an error.
@ssddanbrown ssddanbrown merged commit d6296ac into development Aug 30, 2025
16 checks passed
@ssddanbrown ssddanbrown deleted the admin_command_updates branch August 30, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants