Skip to content

Commands ​

CommandWhereDoes
mela:installYour machineSets up MelaCMS in a fresh Laravel app
mela:updateYour machineUpdates the core and applies it
mela:super-adminThe server, or anywhereCreates a super-admin, or gives the role to an existing account
mela:media-regenerateAnywhereMakes the image sizes again

mela:install ​

Sets up MelaCMS: config, migrations, user model, roles, super-admin, Filament assets, storage link, workflow templates and agent instructions. Safe to run again. See Installation.

OptionPurpose
--name=Super-admin name
--email=Super-admin email
--password=Super-admin password, at least 8 characters
--locales=Comma-separated site languages, for example en,it
--forceReplace project files that differ from the core templates

Without the options it asks for each value. With --no-interaction, --email and --password are required.

mela:update ​

Asks Composer for the newest MelaCMS release, requires it, then applies it: migrations, roles, the storage link, the agent instructions, and a question for each workflow template the core changed. See Updating the core.

OptionPurpose
--installedApply the core already in vendor/, without looking for a newer version
--checkChange nothing, and fail when the agent instructions are behind the installed core. Run by the site's CI

On a production environment it does not look for a new version.

mela:super-admin ​

Changes the database only, so it is the command to run on a server after the first deploy. It creates the core roles if they are missing, then the super-admin account. If the email belongs to an existing user, that user keeps their name and password and gains the role.

OptionPurpose
--email=Email of the account
--name=Name of a new account
--password=Password of a new account

mela:media-regenerate ​

Makes the image sizes of every file in the media library again. Run it after changing media.conversions or media.quality in the config.

Code released under the MIT License. The MelaCMS name and logo are trademarks, see Brand.