Skip to content

Commit aeee414

Browse files
authored
Merge pull request #5433 from kenjis/fix-docs-composer-command
docs: add command prompt `>` before `composer`
2 parents 73901de + 458aa5b commit aeee414

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

user_guide_src/source/installation/installing_composer.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Installation & Set Up
3232

3333
In the folder above your project root::
3434

35-
composer create-project codeigniter4/appstarter project-root
35+
> composer create-project codeigniter4/appstarter project-root
3636

3737
The command above will create a "project-root" folder.
3838

@@ -46,7 +46,7 @@ trusted dependencies that we bundle, being composer-installed.
4646

4747
A sample such installation command, using the default project-root "appstarter"::
4848

49-
composer create-project codeigniter4/appstarter --no-dev
49+
> composer create-project codeigniter4/appstarter --no-dev
5050

5151
After installation you should follow the steps in the "Upgrading" section.
5252

@@ -55,11 +55,11 @@ Upgrading
5555

5656
Whenever there is a new release, then from the command line in your project root::
5757

58-
composer update
58+
> composer update
5959

6060
If you want to compare the latest framework source structure for non-system directory (app, public, etc), you can update with ``--prefer-source``::
6161

62-
composer update codeigniter4/framework --prefer-source
62+
> composer update codeigniter4/framework --prefer-source
6363

6464
If ``--prefer-source`` doesn't automatically update to pull latest framework source structure, you can remove first::
6565

@@ -125,7 +125,7 @@ will be your document root.
125125

126126
In your project root::
127127

128-
composer require codeigniter4/framework --prefer-source
128+
> composer require codeigniter4/framework --prefer-source
129129

130130
As with the earlier two composer install methods, you can omit installing
131131
phpunit and its dependencies by adding the ``--no-dev`` argument to the ``composer require`` command.
@@ -147,7 +147,7 @@ Upgrading
147147

148148
Whenever there is a new release, then from the command line in your project root::
149149

150-
composer update --prefer-source
150+
> composer update --prefer-source
151151

152152
Read the upgrade instructions, and check designated
153153
``app/Config`` folders for affected changes.
@@ -179,6 +179,6 @@ they can be added to your project in a similar fashion.
179179

180180
From the command line inside your project root::
181181

182-
composer require codeigniter4/translations
182+
> composer require codeigniter4/translations
183183

184184
These will be updated along with the framework whenever you do a ``composer update``.

user_guide_src/source/libraries/caching.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ Predis Caching
315315
Predis is a flexible and feature-complete PHP client library for the Redis key-value store.
316316
To use it, from the command line inside your project root::
317317

318-
composer require predis/predis
318+
> composer require predis/predis
319319

320320
For more information on Redis, please see
321321
`https://github.com/nrk/predis <https://github.com/nrk/predis>`_.

user_guide_src/source/tutorial/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ From your command line type the following:
5959

6060
::
6161

62-
composer create-project codeigniter4/appstarter ci-news
62+
> composer create-project codeigniter4/appstarter ci-news
6363

6464
This creates a new folder, **ci-news**, which contains your application code, with
6565
CodeIgniter installed in the vendor folder.

0 commit comments

Comments
 (0)