Skip to content

CLI Tasks

Mobilizon provides commands to perform some tasks. Explore the tasks in the menu.

The commands need to be called like this:

sudo -u mobilizon ./bin/mobilizon_ctl command.subcommand

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

sudo -u mobilizon ./bin/mobilizon_ctl users.new "your@email.com" --admin --password "Y0urP4ssw0rd"

The commands need to be called like this:

mobilizon_ctl command.subcommand

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

docker compose exec mobilizon mobilizon_ctl users.new "your@email.com" --admin --password "Y0urP4ssw0rd"

Environment

You need to run these commands with the appropriate environment loaded, so make sure they're alwayed prefixed with MIX_ENV=prod.

The commands need to be called like this:

MIX_ENV=prod mix mobilizon.command.subcommand

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

MIX_ENV=prod mix mobilizon.users.new "your@email.com" --admin --password "Y0urP4ssw0rd"


Last update: August 11, 2023