Skip to content

Commit 39efc72

Browse files
Fix commands for none unix based terminals (#821)
1 parent a168d7d commit 39efc72

File tree

7 files changed

+26
-26
lines changed

7 files changed

+26
-26
lines changed

book/getting-started.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ This command will bootstrap a new project in the directory ``my-project``.
4949

5050
.. code-block:: bash
5151
52-
bin/console sulu:admin:download-language
52+
php bin/console sulu:admin:download-language
5353
5454
Webspaces
5555
---------
@@ -125,7 +125,7 @@ default data:
125125

126126
.. code-block:: bash
127127
128-
bin/adminconsole sulu:build dev
128+
php bin/adminconsole sulu:build dev
129129
130130
.. caution::
131131

@@ -134,7 +134,7 @@ default data:
134134

135135
.. code-block:: bash
136136
137-
bin/adminconsole sulu:build prod
137+
php bin/adminconsole sulu:build prod
138138
139139
Optionally, you can store the content of your website (all tables starting with
140140
``phpcr_``) in `Apache Jackrabbit`_. We'll get back to that later.

book/templates.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ Here is a table with the content types shipped in Sulu core:
228228

229229
.. code-block:: bash
230230
231-
bin/adminconsole sulu:content:types:dump
231+
php bin/adminconsole sulu:content:types:dump
232232
233233
Many content types can be configured by passing parameters in the element
234234
``<params>``. For a single select, for example, you need to set the possible
@@ -381,7 +381,7 @@ from within a block.
381381

382382
.. note::
383383

384-
Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
384+
Because the ``&`` character needs to be escaped inside of XML files, you have to use ``AND`` instead of ``&&``
385385
if you want to connect conditions using a logical and. Additionally, you can use ``OR`` instead of ``||``.
386386

387387
Language Independent Properties

cookbook/build-admin-frontend.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Sulu is shipped with a build in command to update the build.
1515

1616
.. code-block:: bash
1717
18-
bin/adminconsole sulu:admin:update-build
18+
php bin/adminconsole sulu:admin:update-build
1919
2020
.. note::
2121

cookbook/dump-sitemap.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ Each provider returns mostly 50000 links which can return many
77
links, which would take a bigger amount of time. The Google bot
88
does not wait a long time for the sitemap to be returned.
99

10-
To improve the speed of the sitemap page, Sulu provides a command for pre-generating
10+
To improve the speed of the sitemap page, Sulu provides a command for pre-generating
1111
the page and cache it on the filesystem. The should be called in a cron-job to keep the
1212
pre-generated sitemap up to date.
1313

1414
.. note::
1515

16-
This is a performance optimization for very big websites. In 99% of the cases, the
17-
optimization is not necessary and the sitemap can be generated on the fly.
16+
This is a performance optimization for very big websites. In 99% of the cases, the
17+
optimization is not necessary and the sitemap can be generated on the fly.
1818

1919
.. code-block:: bash
2020
21-
bin/websiteconsole sulu:website:dump-sitemap
21+
php bin/websiteconsole sulu:website:dump-sitemap
2222
2323
If you use the ``{host}`` replacer in your webspace url
2424
configuration, you need to set the Symfony ``default_uri`` config option
25-
for generating the URLs of your sitemap items via a command.
26-
Have a look at the official Symfony Documentation about
25+
for generating the URLs of your sitemap items via a command.
26+
Have a look at the official Symfony Documentation about
2727
`Generating URLs in Commands`_ for more information.
2828

2929
.. code-block:: yaml
@@ -54,7 +54,7 @@ Switch back to on the fly generation
5454
If you want to switch back to on the fly generation, you need
5555
to remove the exist pre-generated sitemaps from the ``var`` directory.
5656

57-
By default, pre-generated sitemaps are stored in the following directory in the
57+
By default, pre-generated sitemaps are stored in the following directory in the
5858
``prod`` environment:
5959

6060
.. code-block:: bash

cookbook/jackrabbit.rst

+11-11
Original file line numberDiff line numberDiff line change
@@ -76,36 +76,36 @@ data before changing the configuration:
7676

7777
.. code-block:: bash
7878
79-
bin/adminconsole doctrine:phpcr:workspace:export -p /cmf cmf.xml
80-
bin/websiteconsole doctrine:phpcr:workspace:export -p /cmf cmf_live.xml
81-
bin/adminconsole doctrine:phpcr:workspace:export -p /jcr:versions jcr.xml
79+
php bin/adminconsole doctrine:phpcr:workspace:export -p /cmf cmf.xml
80+
php bin/websiteconsole doctrine:phpcr:workspace:export -p /cmf cmf_live.xml
81+
php bin/adminconsole doctrine:phpcr:workspace:export -p /jcr:versions jcr.xml
8282
8383
Then change the configuration as explained in the above Configuration section, and
8484
then execute the following command to initialize the jackrabbit workspaces for sulu:
8585

8686
.. code-block:: bash
8787
88-
bin/adminconsole cache:clear
89-
bin/adminconsole sulu:document:initialize
88+
php bin/adminconsole cache:clear
89+
php bin/adminconsole sulu:document:initialize
9090
9191
Now executed these commands to clear any previously existing data (first you should make
9292
sure that you really don't need this data anymore).
9393

9494
.. code-block:: bash
9595
96-
bin/adminconsole doctrine:phpcr:node:remove /cmf
97-
bin/websiteconsole doctrine:phpcr:node:remove /cmf
96+
php bin/adminconsole doctrine:phpcr:node:remove /cmf
97+
php bin/websiteconsole doctrine:phpcr:node:remove /cmf
9898
# the following command can fail if the node not exist ignore the error then:
99-
bin/adminconsole doctrine:phpcr:node:remove /jcr:versions
99+
php bin/adminconsole doctrine:phpcr:node:remove /jcr:versions
100100
101101
After that you can import the exported data from ``doctrinedbal`` into ``jackrabbit``
102102
by running the following commands:
103103

104104
.. code-block:: bash
105105
106-
bin/adminconsole doctrine:phpcr:workspace:import -p / cmf.xml
107-
bin/websiteconsole doctrine:phpcr:workspace:import -p / cmf_live.xml
108-
bin/adminconsole doctrine:phpcr:workspace:import -p / jcr.xml
106+
php bin/adminconsole doctrine:phpcr:workspace:import -p / cmf.xml
107+
php bin/websiteconsole doctrine:phpcr:workspace:import -p / cmf_live.xml
108+
php bin/adminconsole doctrine:phpcr:workspace:import -p / jcr.xml
109109
110110
.. _`Jackrabbit`: https://jackrabbit.apache.org/jcr/index.html
111111
.. _`environment variable`: https://symfony.com/doc/4.4/configuration.html#config-env-vars

reference/components/document-manager/using_the_document_manager.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ See the :doc:`subscribers` chapter for more information.
6868

6969
.. code-block:: bash
7070
71-
bin/adminconsole your:command
71+
php bin/adminconsole your:command
7272
7373
The Path Builder
7474
----------------

upgrades/upgrade-1.6-2.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ necessary should be to execute the migrations we have written:
287287

288288
.. code-block:: bash
289289
290-
bin/console phpcr:migrations:migrate
290+
php bin/console phpcr:migrations:migrate
291291
292292
.. _UPGRADE.md file: https://github.com/sulu/sulu/blob/2.0.12/UPGRADE.md
293293
.. _sulu/skeleton: https://github.com/sulu/skeleton

0 commit comments

Comments
 (0)