Overview
If you have SSH access to your server, you can check for updates and run them directly from the command line. This is useful for automated deployments, staging environments, or when you prefer working in the terminal.
Available commands
Check current version
php artisan larapen:version
Displays your current installed version and the code version, and indicates whether an update is available.
Example output:
Larapen Version Information
===========================
Code version: 1.2.0
Installed version: 1.0.0
Status: Update available
Check update status (detailed)
php artisan larapen:update:status
Shows detailed information about pending updates, including changelogs for each version.
For a specific add-on:
php artisan larapen:update:status --component=addon:blog
Component names:
core: The main Larapen application (default)addon:blog: Blog add-onaddon:shop: Shop add-onaddon:helpcenter: HelpCenter add-onaddon:{name}: Any installed add-ontheme:{name}: Any installed theme
Run updates
php artisan larapen:update
Runs all pending core updates. The command will:
- Show the pending versions and their changelogs.
- Ask for confirmation before proceeding.
- Display a backup warning.
- Run each update sequentially and report results.
For a specific add-on:
php artisan larapen:update --component=addon:blog
To skip the confirmation prompt (useful for automated scripts):
php artisan larapen:update --force
Recommended CLI update workflow
- SSH into your server and navigate to your Larapen directory.
- Check version status:
php artisan larapen:version - Upload new files via SFTP or Git.
- Check again:
php artisan larapen:update:status - Run the update:
php artisan larapen:update - Clear caches (done automatically, but you can force it):
php artisan cache:clear php artisan config:clear php artisan view:clear
php artisan larapen:update first (core), then php artisan larapen:update --component=addon:blog (each add-on).