Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

osieman's avatar

curl -s https://laravel.build/example-app | bash

Hi All

I built my laravel app using composer. I now want to follow the way of using a docker.

Using the laravel.com installation instructions for a docker and sail I have got to this point .

For example, to create a new Laravel application in a directory named "example-app", you may run the following command in your terminal:

curl -s https://laravel.build/example-app | bash

I just copied this command in a windows terminal... hopeing that all would be okay but I got this response

Supply values for the following parameters:
Uri:

Not really sure what I am meant to do....

Thanks in advance

0 likes
10 replies
rodrigo.pedra's avatar

Do you have WSL2 installed and configured on your Windows installation?

From Sails docs page:

Laravel Sail is supported on macOS, Linux, and Windows (via WSL2).

https://laravel.com/docs/8.x/sail

Try running this command from a terminal using the Windows Subsystem for Linux version 2.

As docs implies you should have WSL2 installed and with a Linux distro of your choice configured.

osieman's avatar

Yes... I believe I have done all the steps up to the curl command.. From what I gather verson 2 means it is wsl2 using wsl.exe -l -v.

I also ran the below to get a docker started...

Then I put in this curl command and still get the error.

PS C:\laravel-projects> wsl.exe -l -v
  NAME                   STATE           VERSION
* docker-desktop         Running         2
  docker-desktop-data    Running         2
PS C:\laravel-projects> docker run -d -p 80:80 docker/getting-started
Unable to find image 'docker/getting-started:latest' locally
latest: Pulling from docker/getting-started
aad63a933944: Pull complete
b14da7a62044: Pull complete
343784d40d66: Pull complete
6f617e610986: Pull complete
Digest: sha256:d2c4fb0641519ea208f20ab03dc40ec2a5a53fdfbccca90bef14f870158ed577
Status: Downloaded newer image for docker/getting-started:latest
e7523a48c6b17e19e03f26bf999f939fbeea996e003dc8f0dd6a910bf3faba8d
PS C:\laravel-projects> curl -s https://laravel.build/example-app | bash

cmdlet Invoke-WebRequest at command pipeline position 1
Supply values for the following parameters:
Uri:
curl : Cannot find drive. A drive with the name 'https' does not exist.
At line:1 char:1
+ curl -s https://laravel.build/example-app | bash
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (https:String) [Invoke-WebRequest], DriveNotFoundException
    + FullyQualifiedErrorId : DriveNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand

PS C:\laravel-projects>
rodrigo.pedra's avatar

Shouldn't you be running those commands inside the WSL shell, not on PowerShell directly.

I think you can start PowerShell and move to a WSL shell inside it, but the commands should be running from the underlying Linux shell installed trough WSL.

From the snippet you pasted above it seems you are running the commands in PowerShell using the Windows filesystem instead.

Also, depending on the Linux distro you installed through WSL, cURL might not be installed by default.

If it is a debian/ubuntu based distro you can try running this command to install it:

$ sudo apt-get install curl

To ensure cURL is installed.

osieman's avatar

Okay.... I got it to the next stage... thanks

I had to install ubuntu.. set it to wsl2... and as you said, run the curl command in the terminal...

I guess the instruction are correct but you need to do it once to know whats going on...

I assumed this was what everbody was doing to get get laravel up and running but I am now thinking the majority are using composer.... dunno

1 like
rodrigo.pedra's avatar

You're welcome.

I tried sail, but like you said am still using composer. In my case I am already 6 years working with Laravel, so old habits are hard to change.

But glad you got it working.

1 like
shane@bjja.com.au's avatar

If you try to run the command from inside the WSL environment, you get Docker is not running... (probably because docker is not running inside the linux environment, it's running inside the windows environment... but you can't run the curl from the windows env, because it complains about '\r'

mbrughi's avatar

If you have configured correctly WSL 2 on a Windows and installed a linux distro, you simple open Windows Terminal and click on "caret" dropdown then you see your linux distro "terminal". Click on this and execute the curl command to install Laravel example-app.

azaf70's avatar

Instead of running your command on terminal or bash, open wsl and run it there. I was making the same mistake until I ran my command on wsl and everything was fine. I hope it helps.

Please or to participate in this conversation.