This extension offers a command
This is an extension that is extremely suitable for Continuous Deployment scenarios.
Install with composer:
composer require blomstra/cache-assets:*
Go to your admin area and enable the extension.
Use the command
php flarum cache:assets --help command to see a list of all options, at least one flag is required for the command to do anything:
--css to compile the less/css
--locales to compile css and js of the language packs