Skip to content

feat(make-user): non-interactive mode via POSTAL_INITIAL_USER_* env vars#3574

Open
maxlevine-mhi wants to merge 2 commits into
postalserver:mainfrom
maxlevine-mhi:feat/non-interactive-make-user
Open

feat(make-user): non-interactive mode via POSTAL_INITIAL_USER_* env vars#3574
maxlevine-mhi wants to merge 2 commits into
postalserver:mainfrom
maxlevine-mhi:feat/non-interactive-make-user

Conversation

@maxlevine-mhi
Copy link
Copy Markdown

@maxlevine-mhi maxlevine-mhi commented May 23, 2026

Adds non-interactive support to postal make-user. When POSTAL_INITIAL_USER_EMAIL is set, make-user skips HighLine prompts and reads all four fields from env: POSTAL_INITIAL_USER_EMAIL, POSTAL_INITIAL_USER_FIRST_NAME, POSTAL_INITIAL_USER_LAST_NAME, POSTAL_INITIAL_USER_PASSWORD. Upserts by email (creates new or updates first/last/password on existing). Exit code is non-zero on missing vars or validation failure. Interactive path is unchanged. Adds spec/util/user_creator_spec.rb covering create, update, missing-var, validation-failure. For local testing on the fork before any upstream submission. Companion docs PR: postalserver/docs#89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants