You run laravel new rust-app --rust and get this:
The "--rust" option does not exist.
new [--dev] [--git] [--branch BRANCH] [--github [GITHUB]] [--organization ORGANIZATION] [--database DATABASE] [--react] [--svelte] [--vue] [--livewire] [--livewire-class-components] [--workos] [--teams] [--no-authentication] [--pest] [--phpunit] [--npm] [--pnpm] [--bun] [--yarn] [--boost] [--no-boost] [--using [USING]] [-f|--force] [--] <name>
The list of options that follows has --react, --livewire, --pest and so on, but nothing about Rust. That’s the clue. You’re running the older, PHP-based Laravel installer, not the new Laravel CLI.
Why it happens
Laravel Rust comes with its own command-line tool. The official docs say it installs the laravel command into ~/.laravel/bin. Laravel Herd and the older Composer-based installer also provide a command called laravel. If either of them is earlier on your PATH, your terminal runs that one instead, and it doesn’t know --rust.
Step 1: See which laravel you’re running
laravel --version
The new CLI’s output should start with Laravel CLI. If it prints something else, such as “Laravel Installer”, you’re running the old one.
Step 2: List every laravel on your PATH
which -a laravel
The first line is the one that runs. You may see a path under ~/.composer or ~/.config/composer, a Herd path, or ~/.laravel/bin/laravel. If ~/.laravel/bin/laravel isn’t in the list, go to Step 3. If it is but it’s not first, go to Step 4.
Step 3: Install the new Laravel CLI (if it’s missing)
curl -fsSL https://laravel.com/install.sh | sh
Then open a new terminal tab. The installer adds ~/.laravel/bin to your PATH, but only new terminals pick it up. If rustc isn’t found either, see Fix: zsh command not found: rustc. If the installer warns that laravel is shadowed, see that fix.
Step 4: Put the new CLI first
Open ~/.zshrc in any editor:
open -e ~/.zshrc
Find the line the installer added for ~/.laravel/bin and move it below any Herd or Composer PATH lines. This is the fix from Laravel’s docs. Save, open a new terminal, and check again:
laravel --version
which -a laravel
laravel --version should now start with Laravel CLI.
If you installed the old installer with Composer and no longer need it, the docs say you can remove it instead:
composer global remove laravel/installer
Don’t remove it if other projects of yours rely on it.
Step 5: Run the command again
laravel new rust-app --rust
cd rust-app
You can also leave out --rust. The new CLI asks which language you want, and you choose Rust.
Quick check
| What you see | Meaning | What to do |
|---|---|---|
The "--rust" option does not exist |
Old PHP installer or Herd is running | Steps 1 and 2 |
which -a laravel has no ~/.laravel/bin entry |
New CLI not installed | Step 3 |
| New CLI is listed, but not first | Another path is ahead of it | Step 4 |
laravel --version starts with Laravel CLI |
Right tool | Step 5 |
FAQ
Will this break my PHP Laravel projects? The docs don’t say. They describe the new CLI as the tool for creating and running apps, and the language question suggests it handles PHP too. I haven’t tested that, so check laravel --version and one of your PHP projects after the change.
Do I need PHP or Composer for Laravel Rust? No. You need Rust, Node.js, Git and the Laravel CLI.
Where’s the full walkthrough? See How to Install Laravel Rust on macOS.
Sources:
