You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docusaurus/docs/cloud/projects/settings.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ Updating the git repository could result in the loss of the project and its data
74
74
| Auto-deploy | Tick the box to automatically trigger a new deployment whenever a new commit is pushed to the selected branch. Untick it to disable the option. |
75
75
76
76
5. Click on the **Update repository** button at the bottom of the *Update repository* interface.
77
-
6. In the *Manage repository* dialog, confirm your changes by clicking on the **Relink repository** button.
77
+
6. In the *Update repository* dialog, confirm your changes by clicking on the **Confirm** button.
| v4.25.1 |`npx @strapi/upgrade patch`| v4.25.9<br/><br/>(because v4.25.9 is the latest patch version for the v4.25 minor version) |
73
+
| v4.14.1 |`npx @strapi/upgrade minor`| v4.25.9 |
74
+
| v4.14.1 |`npx @strapi/upgrade major`| Nothing.<br/><br/>I first need to run `npx @strapi/upgrade minor` to upgrade to v4.25.9. |
75
+
| v4.25.9 |`npx @strapi/upgrade major`| v5.1.2 |
76
+
| v4.14.1 |`npx @strapi/upgrade latest`| v5.1.2 <br/><br/>A confirmation prompt appears to make sure the major version bump is intended. |
72
77
73
78
## Upgrade to a new version
74
79
@@ -78,21 +83,23 @@ Before running the upgrade process, make sure you've created a backup of your co
78
83
79
84
### Upgrade to a major version
80
85
81
-
Run the upgrade tool with the `major` parameter to upgrade the project to the next major version of Strapi:
86
+
Run the upgrade tool with the `major` parameter to upgrade the project to the latest release of the next major Strapi version:
82
87
83
88
```bash
84
89
npx @strapi/upgrade major
85
90
```
86
91
87
-
During the upgrade process, the application dependencies are updated and installed, and the related codemods are executed.
92
+
During the upgrade process, the application dependencies are updated and installed, and the related codemods are executed (if any).
88
93
89
94
:::note
90
-
If your application is not already running the latest minor and patch version in the current major, the `major` upgrade is prevented, and you will first need to upgrade to the latest [minor.patch](#upgrade-to-a-minor-version) version in the current major version. This means that moving from v4.14.4 to v5.0.0 is a 2-step process because the latest v4 version is v4.16.2.
95
+
If your application is not already running the latest minor and patch version in the current major, the `major` upgrade is prevented, and you will first need to upgrade to the latest [minor.patch](#upgrade-to-a-minor-version) version in the current major version.
96
+
97
+
This means that moving from v4.14.4 to v5.0.0 is a 2-step process because the latest v4 version is v4.16.2.
91
98
:::
92
99
93
100
### Upgrade to a minor version
94
101
95
-
Run the upgrade tool with the `minor` parameter to upgrade the project to the latest minor and patch version of Strapi:
102
+
Run the upgrade tool with the `minor` parameter to upgrade the project to the latest minor and patch version of Strapi for the current major:
96
103
97
104
```bash
98
105
npx @strapi/upgrade minor
@@ -110,6 +117,23 @@ npx @strapi/upgrade patch
110
117
111
118
During the upgrade process, the project dependencies are updated and installed, and the related codemods are executed (if any).
112
119
120
+
### Upgrade to the latest version
121
+
122
+
Run the upgrade tool with the `latest` parameter to upgrade the project to the latest available version regardless of the current Strapi version:
123
+
124
+
```bash
125
+
npx @strapi/upgrade latest
126
+
```
127
+
128
+
During the upgrade process, the project dependencies are updated and installed, and the related codemods are executed (if any).
129
+
130
+
:::note
131
+
If a `major` version upgrade is detected, the upgrade tool displays a confirmation prompt to make sure the change is
132
+
intended.
133
+
134
+
In the scenario where the major bump isn't the desired option, see [the minor upgrade](#upgrade-to-a-minor-version).
135
+
:::
136
+
113
137
## Run codemods only
114
138
115
139
Run the upgrade tool with the `codemods` parameter to execute a utility that allows selecting the codemods to be executed. With this command, only the codemods are run, the dependencies are not updated nor installed.
@@ -136,20 +160,20 @@ npx @strapi/upgrade codemods run 5.0.0-strapi-codemod-uid
136
160
137
161
The `npx @strapi/upgrade [major|minor|patch]` commands can accept the following options:
|[`-n, --dry`](#simulate-the-upgrade-without-updating-any-files-dry-run)|[Simulate](#simulate-the-upgrade-without-updating-any-files-dry-run) the upgrade without updating any files | false |
142
-
|[`-d, --debug`](#get-detailed-debugging-information)| Get [more logs](#get-detailed-debugging-information) in debug mode | false|
|[`-p, --project-path <project-path>`](#select-a-path-for-the-strapi-application-folder)|[Path](#select-a-path-for-the-strapi-application-folder) to the Strapi project | -|
145
-
|[`-y, --yes`](#answer-yes-to-every-prompt)| Automatically [answer "yes"](#answer-yes-to-every-prompt) to every prompt | false|
|[`-n, --dry`](#simulate-the-upgrade-without-updating-any-files-dry-run)|[Simulate](#simulate-the-upgrade-without-updating-any-files-dry-run) the upgrade without updating any files | false |
166
+
|[`-d, --debug`](#get-detailed-debugging-information)| Get [more logs](#get-detailed-debugging-information) in debug mode | false |
|[`-p, --project-path <project-path>`](#select-a-path-for-the-strapi-application-folder)|[Path](#select-a-path-for-the-strapi-application-folder) to the Strapi project | - |
169
+
|[`-y, --yes`](#answer-yes-to-every-prompt)| Automatically [answer "yes"](#answer-yes-to-every-prompt) to every prompt | false |
146
170
147
-
The following options can be run either with the `npx @strapi/upgrade` command alone or with the `npx @strapi/upgrade [major|minor|patch]` commands:
171
+
The following options can be run either with the `npx @strapi/upgrade` command alone or with the `npx @strapi/upgrade [major|minor|patch|latest]` commands:
0 commit comments