Upgrading

Within a major, an update is two commands — or none, if you let Larapilot update itself every night. A new major is always your decision.

Within a major#

Terminal
composer update andreapollastri/larapilot laravel/boost --with-dependencies
php artisan larapilot:update
php artisan larapilot:doctor

larapilot:update refreshes the rules behind the skills, the task templates, the integrations guide, and the packaged design systems (--preserve-design-systems keeps yours), re-registers your custom skills, realigns the forecast, then updates Boost and republishes. It never touches config.yaml, the PRD, the plans, the domain docs, or your skills.

To 6.0.1#

Nothing to migrate. Four things behave differently from 6.0.0:

  • Git follows the story. Under a Gitflow git_mode, spec-start puts the story on its branch and spec-approve merges it — the last item of the list below, which the 6.0.0 package did not carry yet. LARAPILOT_STORY_BRANCHES=false keeps git in your hands. See Between stories.
  • spec-show --task= returns the task, not the story with it. A script of yours that read the story from that call adds --story.
  • With no token, the API and the MCP server over HTTP answer only under a name of your machine — localhost, an address, a .test domain, the host of APP_URL. Behind a tunnel or in a cloud workspace, make a token (larapilot:api-token generate) or list the host in LARAPILOT_API_OPEN_HOSTS.
  • Through MCP, validate-prd, validate-spec, and validate-plan read a payload or a document of the project — a YAML, JSON, or Markdown file inside it, never an environment or a credentials file.

Updates by themselves#

Larapilot can keep itself current within the constraint of your composer.json:

Terminal
php artisan larapilot:self-update check          # what Packagist has, and what the constraint lets in
php artisan larapilot:self-update apply          # composer update, then larapilot:update in a new process
php artisan larapilot:self-update apply --force  # the same even when nothing is newer
php artisan larapilot:self-update auto --on      # every night at 04:MM, from the Laravel scheduler

The nightly run needs the scheduler, waits while composer.json or composer.lock has uncommitted changes, and never runs in production. A new major is announced, never installed by itself. Admins do the same from the Updates page — opened from the version number at the foot of the sidebar, with a dot when a release is ready — which also shows the last run and its log.

Started from the page, the update runs as it would from your shell: with your home directory, the PHP of the project, and a composer.phar at the root of the project when there is one. When the web server does not find Composer, name it: LARAPILOT_COMPOSER=/full/path/to/composer. On 6.0.0 and 6.0.1 the page stops on The HOME or COMPOSER_HOME environment variable must be set under PHP-FPM: update once from a terminal — the commands of Within a major — and the page works from 6.0.2 on.

The Updates page: the installed version, the newest release, check, update, force update, and nightly updates

From an older major#

composer update stays inside the major your composer.json names, so raise the constraint first:

Terminal
composer require andreapollastri/larapilot:^6.0 --dev --with-all-dependencies
php artisan larapilot:update
php artisan larapilot:doctor

Nothing in .larapilot/ is migrated: the PRD, the backlog, the plans, the decisions, and the settings are read as they are. What changes from 5.x to 6.0:

  • The dashboard’s CSS variables carry shadcn’s names — a stylesheet of yours that read --bg or --accent reads --background and --primary.
  • /larapilot/mcp is Larapilot’s MCP server over HTTP — an app route at that address is shadowed (LARAPILOT_MCP_HTTP=false frees it).
  • auth.yaml holds passkeys — a downgrade to 5.x drops them, nothing else.
  • Story comments are gone — what changes the scope goes into the story; spec-comment and the comments setting are removed.
  • spec-plan refuses a story with an open question, and spec-review one whose numbered criteria are not verified — both take --force; stories written before 6.0 are not gated.
  • spec-start moves git, spec-approve merges — under a Gitflow git_mode the story goes on its feature/US-XXX-* branch at start and back into its base at approval (GITFLOW); a story whose blockers are not implemented does not start. Plans have no TASK-00: tick an older one with task-done. --no-branch, --no-land, or LARAPILOT_STORY_BRANCHES=false keep git in your hands.
  • Forecast’s AI side reads the model Economics prices with, not a flat speed-up.

The full list is in the changelog.

Laravel, PHP, and the database#

Three skills move the project to a new version, and all three start the same way: a readiness report with the criticalities — blocker, high, medium, low — and nothing changes until you choose to upgrade now, add it to the backlog, or stop at the report.

Terminal
php artisan larapilot:stack                                   # Laravel, PHP, database, packages, with support windows
php artisan larapilot:upgrade-check --laravel=13 --report
php artisan larapilot:upgrade-check --php=8.4
php artisan larapilot:upgrade-check --db=pgsql:17 --db-from=mysql:8.0
  • /larapilot-laravel-upgrade asks Packagist which release of each dependency supports the target, then upgrades one major at a time on its own branch — the upgrade guide, Filament, Livewire, Inertia, Nova — with the gates after each step and an upgrade report with the rollback.
  • /larapilot-php-upgrade runs the suite on the target, finds the packages that exclude it and the deprecated code, and every file that pins PHP: Docker, CI, Vapor, Herd, Sail.
  • /larapilot-db-upgrade never touches a shared database: portable code, a rehearsal on a scratch database, the data move, and the cutover runbook.

The About page shows the same facts: each version with its support window, and the command that checks the next upgrade.