diff --git a/setup.rst b/setup.rst index 3a13dd5f04c..be41fa9aeff 100644 --- a/setup.rst +++ b/setup.rst @@ -49,10 +49,10 @@ application: .. code-block:: terminal # run this if you are building a traditional web application - $ symfony new my_project_directory --webapp + $ symfony new my_project_directory --version=6.0.* --webapp # run this if you are building a microservice, console application or API - $ symfony new my_project_directory + $ symfony new my_project_directory --version=6.0.* The only difference between these two commands is the number of packages installed by default. The ``--webapp`` option installs all the packages that you @@ -64,12 +64,12 @@ Symfony application using Composer: .. code-block:: terminal # run this if you are building a traditional web application - $ composer create-project symfony/skeleton my_project_directory + $ composer create-project symfony/skeleton:"6.0.*" my_project_directory $ cd my_project_directory $ composer require webapp # run this if you are building a microservice, console application or API - $ composer create-project symfony/skeleton my_project_directory + $ composer create-project symfony/skeleton:"6.0.*" my_project_directory No matter which command you run to create the Symfony application. All of them will create a new ``my_project_directory/`` directory, download some dependencies @@ -273,14 +273,14 @@ stable version. If you want to use an LTS version, add the ``--version`` option: $ symfony new my_project_directory --version=next # you can also select an exact specific Symfony version - $ symfony new my_project_directory --version=5.4 + $ symfony new my_project_directory --version=5.4.* The ``lts`` and ``next`` shortcuts are only available when using Symfony to create new projects. If you use Composer, you need to tell the exact version: .. code-block:: terminal - $ composer create-project symfony/skeleton:"^5.4" my_project_directory + $ composer create-project symfony/skeleton:"5.4.*" my_project_directory The Symfony Demo application ----------------------------