Installing the Symfony CLI
Learn how to install the Symfony CLI on a Linux Ubuntu operating system to interact with the Symfony framework.
We'll cover the following
In this lesson, we’ll install the Symfony CLI, which is a command utility used to interact with Symfony projects.
The Symfony CLI is crucial for Symfony projects because it provides us with the capability to:
- Create new projects
- Run a Symfony server to see our website
- Modify database attributes
- Interact with Symfony learning book
- Connect to Symfony cloud
- Create classes
- Plus, a lot more!
Install curl
Install the Linux curl package, which lets you use the curl
command to download files from URLs.
sudo apt install curl
The sudo password is educativecourse
.
Get the Symfony CLI package
Pull the Symfony CLI package.
curl -1sLf 'https://dl.cloudsmith.io/public/symfony/stable/setup.deb.sh' | sudo -E bash
Install the Symfony CLI
Run the following command to install the Symfony CLI:
sudo apt install symfony-cli
Check the Symfony CLI
Check if the Symfony CLI is installed correctly by running:
symfony -v
Successful installation should show several lines of text in the terminal, starting with the Symfony CLI version number.
Well done! Now, you have the Symfony CLI installed.
Get hands-on with 1400+ tech skills courses.