Core Release Commands

Artisan commands for LaraDashboard core upgrades, verification, rollback, and release packaging.

Core Release Commands

LaraDashboard core ships custom Artisan commands for marketplace update checks, in-place upgrades, snapshots, and release packaging. These mirror the Core Upgrades admin UI at /admin/core-upgrades.

Update workflow

Command Purpose
core:check-updates Query marketplace for a newer core version
core:check-updates --silent Same, without console output (used by scheduler)
core:snapshot Capture pre-upgrade file snapshot
core:upgrade Download and apply core upgrade
core:verify Post-upgrade health and integrity checks
core:rollback Restore from last snapshot

Typical upgrade sequence

php artisan core:check-updates
php artisan core:snapshot
php artisan core:upgrade
php artisan core:verify
php artisan migrate --force
php artisan optimize

If verification fails:

php artisan core:rollback

Release packaging (maintainers)

Command Purpose
core:zip Create distributable core ZIP for marketplace release

After updating version.json and changelog, run core:zip to produce the release artifact tagged with the version number.

Related module commands:

Command Purpose
modules:check-updates Check marketplace for module updates
module:zip {Module} Build module release ZIP
module:package {Module} Package with pre-built assets

Scheduled tasks

From app/Console/Kernel.php:

Schedule Command
Twice daily (06:00, 18:00) core:check-updates --silent
Hourly modules:check-updates --silent

Environment variables

Variable Purpose
MARKETPLACE_URL Marketplace base URL (default https://laradashboard.com)
MODULE_UPDATE_CHECK_ENABLED Enable/disable module update checks
RELEASE_API_TOKEN API token for release publishing (maintainers)
RELEASE_GITHUB_REPOSITORY GitHub repo for release automation

Related

/