Skip to content
Available for new work
Pages in Blog

ReferencePremium

CoullWorks Blog for Laravel commands, scheduler and queues

Every Artisan command with its arguments and options, the scheduled tasks and the queued jobs.

Updated 16 November 2026Back to the package pageBuy

Commands for the optional modules are only registered while that module is enabled in its enabled config key.

Artisan commands#

cwb:install#

Usage: php artisan cwb:install

Create the default blog if none exists; safe to run again.

cwb:publish-scheduled#

Usage: php artisan cwb:publish-scheduled

Publish due scheduled posts and archive posts past their unpublish time (scheduled every minute).

cwb:licence-check#

Usage: php artisan cwb:licence-check

Check the licence with the licensing server (scheduled daily).

cwb:blade-install#

Usage: php artisan cwb:blade-install

Publishes the compiled stylesheet when blade.compiled_css is true; prints how to wire your own Tailwind/Bootstrap build.

cwb:blocks:reindex#

Usage: php artisan cwb:blocks:reindex [arguments and options]

Rebuild media, product and link rows derived from post blocks.

Argument or optionKindWhat it does
--blog=optionOnly this blog id.
--checkoptionReport translations whose rows differ from their JSON, write nothing.

cwb:blocks:upgrade#

Usage: php artisan cwb:blocks:upgrade

Persist the in-memory upgrades of old block versions.

cwb:comments-anonymise#

Usage: php artisan cwb:comments-anonymise [arguments and options]

Anonymise every comment of one reader. Module must be enabled for its commands.

Argument or optionKindWhat it does
--user=optionThe commenter user key (auth identifier of the host user).
--email=optionThe address the reader commented with.

cwb:analytics-prune#

Usage: php artisan cwb:analytics-prune

Delete per-day view rows older than retention (totals kept); scheduled daily. Module must be enabled for its commands.

Usage: php artisan cwb:analytics-refresh-related

Recompute related posts of every published post; scheduled daily at 03:00. Module must be enabled for its commands.

cwb:ai-prune#

Usage: php artisan cwb:ai-prune

Remove stored AI outputs older than each blog retention days; scheduled daily. Module must be enabled for its commands.

blog:ai:queue:process#

Usage: php artisan blog:ai:queue:process

Start due AI bulk queue items (at most concurrency), recover stalled ones, stop at the monthly cap; scheduled every minute, withoutOverlapping, onOneServer.

cwb:import#

Usage: php artisan cwb:import [arguments and options]

Import content and old addresses (dry run first). Module must be enabled for its commands.

Argument or optionKindWhat it does
sourceargumentwordpress, ghost, markdown, magefan, mageplaza, mirasvit, aheadworks, stephenjude or firefly.
--blog=optionBlog slug or id (default: the default blog).
--file=optionExport file, or folder for markdown, on --disk.
--disk=optionFilesystem disk of --file (default: the default disk).
--connection=optionDatabase connection of the old blog (Magento and Laravel package sources).
--table-prefix=optionTable prefix of the old database.
--old-url-pattern=optionOld post address with {slug}, for Laravel package sources.
--dry-runoptionRead everything and report; write nothing.
--forceoptionOverwrite records edited since the last import.
--yesoptionConfirm that a database backup exists (needed for a live run).
--include-pagesoptionImport pages as posts.
--locale=optionLanguage of the imported content (default: the blog default).
--old-base-url=optionWhere the old site lived, for the old addresses.
--category-base=optionOld category base.
--tag-base=optionOld tag base.
--author-map=optionlogin:author_slug,... maps a source author to an existing author.

cwb:import:report#

Usage: php artisan cwb:import:report [arguments and options]

Print the report of an import job. Module must be enabled for its commands.

Argument or optionKindWhat it does
jobargumentThe id of the import job.
--csv=optionWrite the external redirect map to this file.

blog:inertia:install#

Usage: php artisan blog:inertia:install [arguments and options]

Publish the Inertia React or Vue stubs and write the host controller and routes.

Argument or optionKindWhat it does
frameworkargumentARGUMENT react (default) or vue.
styleargumentARGUMENT tailwind (default) or bootstrap.
--routes-onlyoptionOnly write the controller and route files.
--forceoptionOverwrite files that already exist.
--domain=*optionA domain with its own path prefix, as domain or domain=prefix (repeatable).
--controller-path=optionDefault app/Http/Controllers/Blog/InertiaBlogController.php.
--routes-path=optionDefault routes/blog-inertia.php.

blog:inertia:types#

Usage: php artisan blog:inertia:types [arguments and options]

Generate the TypeScript declarations of the block payloads, payloads and page props.

Argument or optionKindWhat it does
--path=optionFolder to write into (default resources/js/blog/types).

Scheduler#

Applies to every row below: Registered automatically when the module is enabled; locking (withoutOverlapping/onOneServer) needs a cache store implementing LockProvider (checked in the provider).

CommandFrequency
cwb:publish-scheduledeveryMinute()->withoutOverlapping()
cwb:licence-checkdaily()->withoutOverlapping()
cwb:analytics-prunedaily()->withoutOverlapping()
cwb:analytics-refresh-relateddailyAt(03:00)->withoutOverlapping()
cwb:ai-prunedaily()
blog:ai:queue:processeveryMinute()->withoutOverlapping()->onOneServer()

Queued jobs#

Applies to every row below: Requires a running queue worker.

JobQueueWhat it does
RunAiStepdefault queueOne AI wizard step; timeout 900s.
RunQueueItemdefault queueOne bulk queue item, start to draft; timeout 3600s.
RunImportJobdefault queueImport run (no timeout); timeout 0s.
RecordPostViewanalytics.queue (null = default)Counts a view.
RefreshPostDataanalytics.queueRecompute related posts / reading time.
GenerateImageVariantsdefault queueResize variants (images.widths) when images.variants.
NewCommentNotificationdefault queueMail to staff recipients (ShouldQueue notification).
ReplyNotificationdefault queueMail to a parent commenter who asked to be told.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.