Skip to content

CLI Tasks

Mobilizon provides commands to perform some tasks.


You need to run these commands with the appropriate environment loaded, so probably prefix with MIX_ENV=prod.

The commands are documented as if they were being used a source installation:

MIX_ENV=prod mix mobilizon.command.subcommand

If you use Elixir releases (such as Docker), the commands need to be changed like this:

mobilizon_ctl command.subcommand

For instance, creating a new admin without Docker would be something like:

MIX_ENV=prod mix "" --admin --password "Y0urP4ssw0rd"

Inside Docker, it would be something like:

docker-compose exec mobilizon mobilizon_ctl "" --admin --password "Y0urP4ssw0rd"

Last update: November 10, 2020