laravel/installer
Laravel Installer is the official CLI tool for creating new Laravel applications quickly. Install it via Composer and scaffold fresh projects with a single command, using the latest Laravel release and recommended defaults for your environment.
The laravel/installer package (v5.28.1) is a minimal patch release with no breaking changes or new features. The core functionality (interactive starter kit selection, Symfony 8 support, AI/JSON output, and Pest fixes) remains identical to v5.28.0.
Install the binary:
composer global require laravel/installer
Or via Homebrew (macOS):
brew install laravel/installer
Create a new Laravel project (unchanged):
laravel new project-name
Interactive Starter Kit Selection (unchanged):
laravel new my-app --stack=jetstream # Explicit
laravel new my-app # Interactive prompt
Serve the app (optional):
cd project-name && composer run dev
--stack for CI/CD or scripts; rely on prompts for local/dev.RefreshDatabase comments in pest.php.laravel new my-app --stack=jetstream --database=postgres --test=pest
laravel new my-app
laravel new my-app --json --stack=jetstream --no-interaction
- run: laravel new my-app --stack=jetstream --no-interaction
Starter Kit Shortcuts (same as v5.28.0):
| Flag | Behavior |
|---|---|
--stack=jetstream |
Installs Jetstream (Livewire) |
--stack=fortify |
Installs Fortify (API) |
--stack=breeze |
Installs Breeze (Blade) |
--stack=none |
Skips all starter kits |
AI/JSON Workflow:
laravel new my-app --json | jq -r '.metadata.stack'
Pest + Starter Kits:
laravel new my-app --stack=jetstream --test=pest
Database + Starter Kit:
laravel new my-app --stack=fortify --database=mysql
COMPOSER_AUTH is configured or use SSH.--stack in non-interactive environments.--stack=none and manually install starter kits.metadata.stack in scripts.laravel new my-app --stack=jetstream --json | jq '.dependencies | keys[]'
laravel new my-app --verbose
composer config -g github-oauth.github.com "ghp_..."
"None" if no --stack is provided.metadata.stack and metadata.starter_kit_version.--database or --test are provided.\r\n; handle in scripts.NO_UPDATE_NEEDED
How can I help you explore Laravel packages today?