How to install Laravel's Artisan?
Stefan Bogdanescu
Founder & Senior Architect · 2026-06-29
Laravel's Artisan is the command-line interface (CLI) that enables developers to execute various tasks, manage databases through migrations, and streamlines application development. If you encounter errors when trying to access Artisan through your PHP command, as mentioned in the user query, there could be installation issues or discrepancies between Laravel versions. In this article, we'll walk you through the steps needed to install Laravel's Artisan CLI on modern systems.
Prerequisites
- A computer running Windows, macOS, or Linux with a stable internet connection.
- PHP (>= 5.6.40) installed on your system.
- (Optional) A Composer (>= 1)
Installing Laravel's Artisan CLI via Composer
If Composer is already installed, simply run the following command in your terminal:
```bash composer global require "laravel/installer" ``` To ensure that Laravel's required binaries are available, run a system-wide update: ```bash composer global update ``` Now access Artisan by typing `php artisan` or `php artisan list` in the terminal. If you see any errors, proceed to the next section.