Page MenuHomewrite.as

Add ability to generate users from the command line
Closed, ResolvedPublic

Description

Overview

Allow the generation of users from the command line non-interactively.

Background

The creation of the initial user is the only piece of WriteFreely setup that is still interactive-only. Adding this feature will make it possible to completely automate the initial setup of a blog.

Users

Advanced users and automation.

Implementation

Create a command writefreely --create-user username:password that creates a user with username username and password password.

Support for single-blog setup is in scope. Support for multi-blog setup is out of scope.

Revisions and Commits

Event Timeline

benovermyer created this object with visibility "Public (No Login Required)".
benovermyer created this object with edit policy "Task Author".
matt added a comment.Dec 3 2018, 5:04 PM

Great point. This should be relatively easy, so maybe we can get it into the next release.

Implementation-wise, because this is only for single-blog setups, maybe this would also throw an error if an initial user already exists?

Also, I think this task is more for WriteFreely, not the Write.as CLI client. (I'd update it, but don't have edit permissions).

benovermyer changed the edit policy from "Task Author" to "All Users".Dec 3 2018, 6:32 PM
benovermyer edited projects, added WriteFreely; removed Write.as CLI.

I updated the task's tag and changed it to be editable by All Users. Is that the right group?

matt added a comment.Dec 5 2018, 5:07 AM

Yep that's perfect, thanks 👍 That way anyone can make changes if needed. I've also changed that default value in the "Create Task" form.

matt moved this task from Far Future to Soon / v1.0 on the WriteFreely board.Dec 6 2018, 12:06 AM
matt awarded a token.
matt claimed this task.EditedDec 6 2018, 12:12 AM

Could really use this, especially now that WriteFreely.host is up and running, so I'll get started on it.

I'll be using it in a multi-user environment, so I think I'll keep the mentioned behavior and name the argument --create-admin, so the meaning is a little clearer.