Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit cd97919

Browse files
committed
Update package name for require command
1 parent 061890a commit cd97919

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/guides/v2.4/comp-mgr/cli/cli-upgrade.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ You can upgrade your Magento application from the command line if you installed
1818
{:.bs-callout-info}
1919
Do not use this method to upgrade if you cloned the Magento 2 GitHub repository. Instead, see [Update Magento][] for upgrade instructions.
2020

21-
The following instructions show you how to upgrade Magento using Composer. Magento 2.4.2 introduced support for Composer 2. If you are attempting to upgrade from Magento <2.4.1, you must first upgrade to a version of Magento that is compatible with Composer 2 (for example, 2.4.2) using Composer 1 _before_ upgrading to Composer 2 for Magento >2.4.2 upgrades.
21+
The following instructions show you how to upgrade Magento using Composer. Magento 2.4.2 introduced support for Composer 2. If you are attempting to upgrade from Magento <2.4.1, you must first upgrade to a version of Magento that is compatible with Composer 2 (for example, 2.4.2) using Composer 1 _before_ upgrading to Composer 2 for Magento >2.4.2 upgrades. In addition, you must be running a [supported version]({{page.baseurl}}/install-gde/system-requirements.html) of PHP.
2222

2323
## Before you begin {#prerequisites}
2424

2525
Complete the following prerequisites to prepare your environment before starting the upgrade process:
2626

27-
- **Determine whether your current catalog search engine is supported**-Avoid significant upgrade errors by ensuring your search engine complies with 2.3 requirements. See [Check the catalog search engine] for more details.
27+
- **Determine whether your current catalog search engine is supported**-Avoid significant upgrade errors by ensuring your search engine complies with 2.4 requirements. See [Check the catalog search engine] for more details.
2828
- **Complete the Update and upgrade checklist**—To avoid possible errors during installation or upgrading, complete the [Update and upgrade checklist].
2929
- **Set the `pub/` directory root**—See [Modify docroot to improve security][] for more details.
3030
- **Check PHP and environment settings**—Verify that your PHP and other environment settings are compatible with the [system requirements].
@@ -46,7 +46,7 @@ Complete the following prerequisites to prepare your environment before starting
4646
To install the plugin:
4747

4848
```bash
49-
composer require magento/composer-root-update-plugin=~1.0 --no-update
49+
composer require magento/composer-root-update-plugin=~2.0 --no-update
5050
```
5151

5252
Update the dependencies:
@@ -76,24 +76,24 @@ See the examples at the end of this section for help specifying different releas
7676

7777
{:.bs-callout-info}
7878
The first time you upgrade using the plugin, you can interactively view and update any out-of-date values that may be remaining from previous versions.
79-
To enable this, use the `--interactive-magento-conflicts` option on the `composer require` commands.
79+
To enable this, use the `--interactive-root-conflicts` option on the `composer require-commerce` commands.
8080

81-
To override all conflicting custom values with the expected Magento values, re-run the `composer require` command with the `--use-default-magento-values` option.
81+
To override all conflicting custom values with the expected Magento values, re-run the `composer require-commerce` command with the `--use-default-project-values` option.
8282

8383
{:.bs-callout-tip}
84-
Use `composer require --help` to learn more about available options.
84+
Use `composer require-commerce --help` to learn more about available options.
8585
To learn more about usage of the plugin, refer to the [Plugin Usage](https://github.com/magento/composer-root-update-plugin/blob/0.1/src/Magento/ComposerRootUpdatePlugin/README.md#usage).
8686

8787
_{{ ce }}_:
8888

8989
```bash
90-
composer require magento/product-community-edition={{ page.guide_version }}.0 --no-update
90+
composer require-commerce magento/product-community-edition={{ page.guide_version }}.0 --no-update
9191
```
9292

9393
_{{ ee }}_:
9494

9595
```bash
96-
composer require magento/product-enterprise-edition={{ page.guide_version }}.0 --no-update
96+
composer require-commerce magento/product-enterprise-edition={{ page.guide_version }}.0 --no-update
9797
```
9898

9999
<div class="bs-callout-tip" markdown="1">
@@ -115,28 +115,28 @@ See the examples at the end of this section for help specifying different releas
115115

116116
### Example - Minor release
117117

118-
Minor releases contain new features, quality fixes, and security fixes. Use Composer to specify a minor release. For example, to specify the {{site.data.var.ee}} 2.3.7 metapackage:
118+
Minor releases contain new features, quality fixes, and security fixes. Use Composer to specify a minor release. For example, to specify the {{site.data.var.ee}} 2.4.3 metapackage:
119119

120120
```bash
121-
composer require magento/product-community-edition=2.3.7 --no-update
121+
composer require-commerce magento/product-community-edition=2.4.3 --no-update
122122
```
123123

124124
### Example - Quality patch
125125

126-
Quality patches primarily contain functional _and_ security fixes. However, they can also sometimes contain new, backward-compatible features. Use Composer to download a quality patch. For example, to specify the {{site.data.var.ee}} 2.3.7 metapackage:
126+
Quality patches primarily contain functional _and_ security fixes. However, they can also sometimes contain new, backward-compatible features. Use Composer to download a quality patch. For example, to specify the {{site.data.var.ee}} 2.4.1 metapackage:
127127

128128
```bash
129-
composer require magento/product-community-edition=2.3.7 --no-update
129+
composer require-commerce magento/product-community-edition=2.4.1 --no-update
130130
```
131131

132132
### Example - Security patch
133133

134134
Security patches contain security fixes only. They are designed to make the upgrade process faster and easier.
135135

136-
Security patches use the Composer naming convention `2.3.6-px`. Use Composer to specify a patch. For example, to download the {{site.data.var.ce}} 2.3.6-p1 metapackage:
136+
Security patches use the Composer naming convention `2.4.3-px`. Use Composer to specify a patch. For example, to download the {{site.data.var.ce}} 2.4.3-p1 metapackage:
137137

138138
```bash
139-
composer require magento/product-community-edition=2.3.6-p1 --no-update
139+
composer require-commerce magento/product-community-edition=2.4.3-p1 --no-update
140140
```
141141

142142
## Update metadata

0 commit comments

Comments
 (0)