The commands TruCMS and its bundled modules add, plus the package commands you need when working on plugins and themes. Run php artisan list for everything, and php artisan help <command> for options.
| Command | Does | Run it |
|---|---|---|
dotartisan:optimize | Caches config and routes, clears compiled views, then compiles Blade views for every theme. Run automatically after .env-backed settings are saved and during updates | On production after deploys; never while you are editing routes |
dotartisan:cache-views | Compile all Blade views in resources/themes | Part of the above |
dotartisan:clean-temp | Delete stale temporary uploads | Occasionally, or from the admin System tools |
dotartisan:tickets:autoclose | Close inactive support tickets (after config('tickets.autoclose-days')) | Not scheduled by default; add it to a schedule if wanted |
dotartisan:translations:missing, dotartisan:translations:unused | Find translation keys used but not defined, or defined but not used | Before a release |
pages:refresh-bound | Re-bake every data-bound section with current data | Scheduled hourly; run by hand after bulk imports |
slugs:backfill | Create or validate global slug rows for every model in config('slugs.models') | After adding a sluggable model to existing data |
templates:audit | Report on the section library: coverage, use by website templates and pages, gaps | When working on the template library |
templates:export-previews | Render library layouts and template pages to static HTML for screenshots | When producing preview images |
responsecache:clear | Empty the full-page cache | When debugging cached output |
| Command | Does | Scheduled |
|---|---|---|
booking:cleanup-payment-intents | Cancel expired pending booking payment intents and remove old cancelled ones | Hourly |
booking:renew-calendar-watches | Renew Google Calendar push subscriptions before they expire | Daily 03:20 |
trucommerce:checkout-intents:expire | Expire stale checkout intents and release reserved coupon or promotion usage | Every 15 minutes |
trucommerce:stock:release-holds | Release stock held by stale unpaid carts | Every 15 minutes |
trucommerce:cleanup | Remove expired and draft shop data no longer needed | Daily 02:10 |
trucommerce:optimize | Refresh shop caches and derived product information | Daily 02:30 |
trucommerce:media:generate-missing-conversions | Create missing image conversions for shop media | Daily 03:00 |
| Command | Does |
|---|---|
module:list | All modules with status and priority |
module:enable Name, module:disable Name | Flip the flag in modules_statuses.json. Unlike the Plugin Manager these do not check dependencies or protection |
module:migrate Name, module:seed Name | Run one module's migrations or seeders (plain php artisan migrate also includes enabled modules) |
module:publish Name | Copy resources/assets to public/modules/{name} |
module:make Name, module:make-model, module:make-controller, module:make-migration… | Generators that put files in the right module folders and namespaces |
module:delete Name | Delete a module folder without any of the Plugin Manager's checks |
After copying a module in by hand, run composer dump-autoload: module classes are added to Composer's autoloader only when it regenerates its files.
| Command | Does |
|---|---|
theme:list | Installed themes and their parents |
theme:refresh-cache | Rebuild the cached list of theme.json files; run after adding or editing one |
theme:create, theme:package, theme:install, theme:remove | Theme package commands from the theme library. TruCMS does not use theme packages for distribution; see Creating a theme |
| Command | Does |
|---|---|
translations:import | Load keys from lang/ files into the Translations screen |
translations:export | Write the Translations screen's values back to lang/ files |
media-library:regenerate | Rebuild image conversions (after changing a conversion) |
media-library:clean | Remove orphaned files and outdated conversions |
| Command | When |
|---|---|
php artisan optimize:clear | Something you changed in code, config, routes or .env is ignored. Also flushes the response cache (it clears the cache) |
php artisan migrate | After activating or updating a plugin (the Plugin Manager does not migrate) |
php artisan schedule:list | Check that your plugin's configureSchedules() registered its tasks |
php artisan storage:link | Uploaded files return 404 (also available in System tools) |
Initial installation is not an Artisan task
Install TruCMS through its web installer. The dotartisan:install command you may see in the list belongs to the installer package and generates its service classes; it does not install a site.