Command Line Interface (CLI) commands
Mautic may require you to use the command line (CLI). Listed below are the available CLI commands.
Note
You can find this list (and others - for example commands relating to Doctrine and other vendors) by running this command: bin/console
You must be in the Mautic root directory to run the CLI commands.
Format: command [options] [arguments]
Options
Options |
Description |
|---|---|
-h, --help |
Display this help message |
-q, --quiet |
Do not output any message |
V, --version
--ansi
--no-ansi
|
Display this app version
Force ANSI output
Disable ANSI output
|
-n, --no-interaction |
Do not ask any interactive question |
-s, --shell
--process-isolation
|
Launch the shell.
Launch commands from shell as a separate process.
|
-e, --env=ENV
--no-debug
|
The Environment name. [default: “prod”]
Switches off debug mode.
|
-v
-vv
-vvv
--verbose
|
Increase the verbosity of messages:
1. for normal output,
2. for more verbose output and
3. for debug
|
Mautic commands
These are the commands you may need to use in relation to your Mautic instance. Add a bin/console before Mautic command.
Example
bin/console mautic:segments:update
Command |
Description |
Aliases |
|---|---|---|
|
Combines and minifies Asset files (CSS/JS) from each bundle into single production files |
|
|
Process Contacts pending to receive a Channel broadcast. |
|
|
Execute specific scheduled events. |
|
|
Rebuild Campaigns based on Contact Segments. |
|
|
Trigger timed events for active Campaigns. |
|
|
Validate if a Contact has been inactive for a decision and execute events if so. |
|
|
Synchronizes registrant information from Citrix products |
|
|
Clears Mautic cache, by using this command, you will erase the 10-minute Mautic cache, which contains things like segment counts and data for dashboard widgets. |
|
|
Merge Contacts based on same unique identifiers |
|
|
Processes exports of Contacts to a CSV file and sends the results via Email. |
|
|
Creates the actual column in the table if the create_custom_field_in_background config option is set to true. |
|
|
Deletes the actual column in the table if the create_custom_field_in_background config option is set to true. |
|
|
Fetch and process monitored Email. |
|
|
Processes mail queue |
|
|
Analyze Custom Fields table and return table or file with results. See Manage Custom Fields. |
|
|
If the CSV import is configured to run in background then this command will pick up the pending import jobs and imports the data from CSV files to Mautic. |
|
|
Fetch Contacts from Integration. |
|
|
Pulls the data from Pipedrive and sends it to Mautic |
|
|
Pushes the data from Mautic to Pipedrive |
|
|
Push Contact activity to Integration. |
|
|
Installs data |
|
|
Fetch remote datastores for IP lookup services that leverage local lookups. |
|
|
Cleans up older data. |
|
|
Process sending of messages queue. |
|
|
Generate a blank migration class. |
|
|
Install, reloads or updates Plugins. |
|
|
Process queues |
|
|
Processes scheduler for Report’s export |
|
|
Update Contacts in smart Segments based on new Contact data. |
|
|
Outputs table of all Segments and whether they are being used in Campaigns, Emails, other Segments, Form actions and SMS. Useful to detect Segments that can be deleted to save resources on rebuilds. |
|
|
Converts Theme config to JSON from PHP |
|
|
Deletes IP addresses that aren’t used in any other database table |
|
|
Updates the Mautic app. |
|
|
Fetches updates for Mautic |
|
|
Process queued Webhook payloads |
|
|
Looks at the monitoring records and finds hashtags. |
|
|
Searches for mentioned tweets |
Doctrine commands
Command |
Description |
|---|---|
|
Installs Mautic sample data, overwriting existing data. |