The list of Rake tasks.
If you want to confirm all Rake tasks from command line interface, you can run the following.
bundle exec rails rake -T
Execute daily tasks.
bundle exec rails mastodon:daily
Turn a user into an admin, identified by the USERNAME environment variable.
bundle exec rails mastodon:make_admin USERNAME=alice
In the example above, the user alice
is turned into an admin.
Manually confirms a user with associated user email address stored in USER_EMAIL environment variable.
bundle exec rails mastodon:confirm_email USER_EMAIL=alice@alice.com
In the example above, the registration of the user with the email alice@alice.com
is completed.
Add a user by providing their email, username and initial password. The user will receive a confirmation email, then they must reset their password before logging in.
bundle exec rails mastodon:add_user
Removes media attachments that have not been assigned to any status for longer than a day.
bundle exec rails mastodon:media:clear
Remove media attachments attributed to silenced accounts.
bundle exec rails mastodon:media:remove_silenced
Remove cached remote media attachments that are older than a week.
bundle exec rails mastodon:media:remove_remote
Set unknown attachment type for remote-only attachments.
bundle exec rails mastodon:media:set_unknown
Unsubscribes from PuSH updates of feeds nobody follows locally.
bundle exec rails mastodon:push:clear
Re-subscribes to soon expiring PuSH subscriptions.
bundle exec rails mastodon:push:refresh
Clear timelines of inactive users.
bundle exec rails mastodon:feeds:clear
Clears all timelines.
bundle exec rails mastodon:feeds:clear_all
Send out digest e-mails.
bundle exec rails mastodon:emails:digest
Clear out unconfirmed users.
bundle exec rails mastodon:users:clear
List all admin users.
bundle exec rails mastodon:users:admins
Open registrations on this instance.
bundle exec rails mastodon:settings:open_registrations
Close registrations on this instance.
bundle exec rails mastodon:settings:close_registrations
Update counter caches.
bundle exec rails mastodon:maintenance:update_counter_caches
Generate static versions of GIF avatars/headers.
bundle exec rails mastodon:maintenance:add_static_avatars
Ensure referencial integrity.
bundle exec rails mastodon:maintenance:prepare_for_foreign_keys