"Installing Laravel Boost" fails with "There are no commands defined in the boost namespace"

ERROR There are no commands defined in the "boost" namespace.

Thrown by sail artisan boost:install --guidelines --skills --mcp --no-interaction.

When

The "Installing Laravel Boost" step, immediately after composer require laravel/boost --dev.

Why it happens

The composer require laravel/boost --dev that runs just before this step has, at least once, reported success ("Nothing to install, update or remove") without actually adding the package to composer.json or vendor/ — an intermittent Composer resolution flake we haven't fully root-caused yet. Since the package was never installed, its service provider is never discovered and none of its artisan commands exist.

Fix

Re-run the same command by hand inside the app directory — sail composer require laravel/boost --dev — and confirm laravel/boost now appears in composer.json before continuing. On every occurrence so far, the second attempt has succeeded immediately. Then resume the scaffold (see the previous entry).

Still stuck? Open an issue with your --log transcript.

All troubleshooting entries