Skip to content

Commit 642dd95

Browse files
committed
Include the version option at the end
1 parent dc86eae commit 642dd95

File tree

3 files changed

+18
-14
lines changed

3 files changed

+18
-14
lines changed

best_practices/creating-the-project.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ to create files and execute the following commands:
3131
.. code-block:: terminal
3232
3333
$ cd projects/
34-
$ symfony new --version=3.4 blog
34+
$ symfony new blog --version=3.4
3535
3636
**Windows systems**:
3737

3838
.. class:: command-windows
3939
.. code-block:: terminal
4040
4141
> cd projects/
42-
> php symfony new --version=3.4 blog
42+
> php symfony new blog --version=3.4
4343
4444
.. note::
4545

setup.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ with the ``new`` command:
6767

6868
.. code-block:: terminal
6969
70-
$ symfony new --version=3.4 my_project_name
70+
$ symfony new my_project_name --version=3.4
7171
7272
This command creates a new directory called ``my_project_name/`` that contains
7373
an empty project based on the most recent stable Symfony version available. In
@@ -111,15 +111,18 @@ In case your project needs to be based on a specific Symfony version, use the
111111
.. code-block:: terminal
112112
113113
# use the most recent version in any Symfony branch
114-
$ symfony new --version=3.3 my_project_name
115-
$ symfony new --version=3.4 my_project_name
114+
$ symfony new my_project_name --version=3.3
115+
$ symfony new my_project_name --version=3.4
116116
117117
# use a specific Symfony version
118-
$ symfony new --version=3.3.10 my_project_name
119-
$ symfony new --version=3.4.5 my_project_name
118+
$ symfony new my_project_name --version=3.3.10
119+
$ symfony new my_project_name --version=3.4.5
120120
121121
# use the most recent 'lts' version (Long Term Support version)
122-
$ symfony new --version=lts my_project_name
122+
$ symfony new my_project_name --version=lts
123+
124+
# use the 'next' Symfony version to be released (still in development)
125+
$ symfony new my_project_name --version=next
123126
124127
Each version has its *own* documentation, which you can select on any documentation
125128
page.

setup/symfony_server.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -364,24 +364,25 @@ commands from the Symfony server:
364364
.. code-block:: terminal
365365
366366
# creates a new project based on symfony/skeleton
367-
$ symfony new --version=3.4 my_project_name
367+
$ symfony new my_project_name --version=3.4
368368
369369
# creates a new project based on symfony/website-skeleton
370-
$ symfony new --version=3.4 --full my_project_name
370+
$ symfony new my_project_name --version=3.4 --full
371371
372372
# creates a new project based on the Symfony Demo application
373-
$ symfony new --version=3.4 --demo my_project_name
373+
$ symfony new my_project_name --version=3.4 --demo
374374
375375
You can create a project depending on a **development** version as well (note
376376
that Composer will also set the stability to ``dev`` for all root dependencies):
377377

378378
.. code-block:: terminal
379379
380-
# creates a new project based on Symfony's master branch
381-
$ symfony new --version=dev-master my_project_name
380+
# creates a new project based on Symfony's master branch (both are equivalent)
381+
$ symfony new my_project_name --version=dev-master
382+
$ symfony new my_project_name --version=next
382383
383384
# creates a new project based on Symfony's 4.3 dev branch
384-
$ symfony new --version=4.3.x-dev my_project_name
385+
$ symfony new my_project_name --version=4.3.x-dev
385386
386387
.. _`symfony.com/download`: https://symfony.com/download
387388
.. _`symfony/cli`: https://github.com/symfony/cli

0 commit comments

Comments
 (0)