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 option | Kind | What it does |
|---|---|---|
--blog= | option | Only this blog id. |
--check | option | Report 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 option | Kind | What it does |
|---|---|---|
--user= | option | The commenter user key (auth identifier of the host user). |
--email= | option | The 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.
cwb:analytics-refresh-related#
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 option | Kind | What it does |
|---|---|---|
source | argument | wordpress, ghost, markdown, magefan, mageplaza, mirasvit, aheadworks, stephenjude or firefly. |
--blog= | option | Blog slug or id (default: the default blog). |
--file= | option | Export file, or folder for markdown, on --disk. |
--disk= | option | Filesystem disk of --file (default: the default disk). |
--connection= | option | Database connection of the old blog (Magento and Laravel package sources). |
--table-prefix= | option | Table prefix of the old database. |
--old-url-pattern= | option | Old post address with {slug}, for Laravel package sources. |
--dry-run | option | Read everything and report; write nothing. |
--force | option | Overwrite records edited since the last import. |
--yes | option | Confirm that a database backup exists (needed for a live run). |
--include-pages | option | Import pages as posts. |
--locale= | option | Language of the imported content (default: the blog default). |
--old-base-url= | option | Where the old site lived, for the old addresses. |
--category-base= | option | Old category base. |
--tag-base= | option | Old tag base. |
--author-map= | option | login: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 option | Kind | What it does |
|---|---|---|
job | argument | The id of the import job. |
--csv= | option | Write 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 option | Kind | What it does |
|---|---|---|
framework | argument | ARGUMENT react (default) or vue. |
style | argument | ARGUMENT tailwind (default) or bootstrap. |
--routes-only | option | Only write the controller and route files. |
--force | option | Overwrite files that already exist. |
--domain=* | option | A domain with its own path prefix, as domain or domain=prefix (repeatable). |
--controller-path= | option | Default app/Http/Controllers/Blog/InertiaBlogController.php. |
--routes-path= | option | Default 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 option | Kind | What it does |
|---|---|---|
--path= | option | Folder 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).
| Command | Frequency |
|---|---|
cwb:publish-scheduled | everyMinute()->withoutOverlapping() |
cwb:licence-check | daily()->withoutOverlapping() |
cwb:analytics-prune | daily()->withoutOverlapping() |
cwb:analytics-refresh-related | dailyAt(03:00)->withoutOverlapping() |
cwb:ai-prune | daily() |
blog:ai:queue:process | everyMinute()->withoutOverlapping()->onOneServer() |
Queued jobs#
Applies to every row below: Requires a running queue worker.
| Job | Queue | What it does |
|---|---|---|
RunAiStep | default queue | One AI wizard step; timeout 900s. |
RunQueueItem | default queue | One bulk queue item, start to draft; timeout 3600s. |
RunImportJob | default queue | Import run (no timeout); timeout 0s. |
RecordPostView | analytics.queue (null = default) | Counts a view. |
RefreshPostData | analytics.queue | Recompute related posts / reading time. |
GenerateImageVariants | default queue | Resize variants (images.widths) when images.variants. |
NewCommentNotification | default queue | Mail to staff recipients (ShouldQueue notification). |
ReplyNotification | default queue | Mail to a parent commenter who asked to be told. |







