Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add email and password options #89

Merged
merged 5 commits into from
Oct 24, 2024
Merged

Add email and password options #89

merged 5 commits into from
Oct 24, 2024

Conversation

jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Oct 24, 2024

This adds --email and --password options.

Using the --email option will bypass the "Create a super user?" prompt as well as the email/password/etc prompts.

If you use --email without --password, the user's password will be literally password.

This also removes the "name" prompt from the fallback windows user logic. It's nice to get rid of the hacky tinker user-updating code. Name is not really necessary. They can always update it later.

Examples

statamic new myapp [email protected] --password=test

Password will be test.


statamic new myapp [email protected]

Password will be password.


statamic new myapp --password=test

Since you don't use the email option, the password option will be ignored, and you will get all the prompts.


statamic new myapp

You will get all the prompts as you always did.

@jasonvarga jasonvarga merged commit 2abc0f8 into master Oct 24, 2024
1 check passed
@jasonvarga jasonvarga deleted the user-options branch October 24, 2024 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant