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

tootctl accounts [add|del|cull] #8642

Merged
merged 2 commits into from
Sep 9, 2018
Merged

tootctl accounts [add|del|cull] #8642

merged 2 commits into from
Sep 9, 2018

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented Sep 7, 2018

Usage:
  tootctl accounts add USERNAME --email=EMAIL

Options:
  --email=EMAIL                    
  [--confirmed], [--no-confirmed]  
  [--role=ROLE]                    
                                   # Default: user
  [--reattach], [--no-reattach]    
  [--force]                        

Description:
  Create a new user account with a given USERNAME and an e-mail address provided 
  with --email.

  With the --confirmed option, the confirmation e-mail will be skipped and the 
  account will be active straight away.

  With the --role option one of "user", "admin" or "moderator" can be supplied. 
  Defaults to "user"

  With the --reattach option, the new user will be reattached to a given 
  existing username of an old account. If the old account is still in use by 
  someone else, you can supply the --force option to delete the old record and 
  reattach the username to the new account anyway.
Usage:
  tootctl accounts del USERNAME

Description:
  Remove a user account with a given USERNAME.
Usage:
  tootctl accounts cull

Options:
  [--dry-run], [--no-dry-run]  

Description:
  Query every single remote account in the database to determine if it still 
  exists on the origin server, and if it doesn't, remove it from the database.

  Accounts that have had confirmed activity within the last week are excluded 
  from the checks.

  If 10 or more accounts from the same domain cannot be queried due to a 
  connection error (such as missing DNS records) then the domain is considered 
  dead, and all other accounts from it are deleted without further querying.

  With the --dry-run option, no deletes will actually be carried out.

- tootctl accounts add USERNAME
- tootctl accounts del USERNAME
@Gargron Gargron added the moderation Administration and moderation tooling label Sep 7, 2018
@Gargron Gargron changed the title CLI interface for creating/deleting local users tootctl accounts [add|del|cull] Sep 7, 2018
@shleeable
Copy link
Contributor

shleeable commented Sep 9, 2018

Once a user is generated, do you expect them to reset the password using the form?
or could you consider making a tootctl accounts passwd USERNAME --password 'blah blah blah' --force

@Gargron
Copy link
Member Author

Gargron commented Sep 9, 2018

@ashleyhull-versent It generates a random password which is output to the CLI. The user is supposed to change the password once they login.

@shleeable
Copy link
Contributor

That's perfect from an interactive point - I'm mostly thinking about my AWS CFN automation.

happy with that tho.

@Gargron Gargron merged commit 47ea318 into master Sep 9, 2018
@Gargron Gargron deleted the feature-cli-user-add branch September 9, 2018 11:33
kyori19 pushed a commit to kyori19/mastodon that referenced this pull request Sep 20, 2018
* CLI interface for creating/deleting local users

- tootctl accounts add USERNAME
- tootctl accounts del USERNAME

* Add CLI interface for culling remote users that no longer exist

- tootctl accounts cull
koppepan1204 pushed a commit to koppepan1204/mastodon that referenced this pull request Oct 10, 2018
* CLI interface for creating/deleting local users

- tootctl accounts add USERNAME
- tootctl accounts del USERNAME

* Add CLI interface for culling remote users that no longer exist

- tootctl accounts cull
koppepan1204 pushed a commit to koppepan1204/mastodon that referenced this pull request Oct 12, 2018
* CLI interface for creating/deleting local users

- tootctl accounts add USERNAME
- tootctl accounts del USERNAME

* Add CLI interface for culling remote users that no longer exist

- tootctl accounts cull
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moderation Administration and moderation tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants