Skip to content

Commit 0c151fc

Browse files
authored
docs(workflow): change update instructions to get latest version (#2937)
1 parent 2a9a95d commit 0c151fc

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

site/docs-md/basics/workflow.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,15 @@ To check if there are any new updates to Capacitor itself, run `npx cap doctor`
6565
To update Capacitor Core and CLI:
6666

6767
```bash
68-
npm update @capacitor/cli
69-
npm update @capacitor/core
68+
npm install @capacitor/cli@latest
69+
npm install @capacitor/core@latest
7070
```
7171

7272
To update any or all of the platforms you are using:
7373

7474
```bash
75-
npm update @capacitor/ios
76-
npm update @capacitor/android
77-
```
75+
npm install @capacitor/ios@latest
76+
npm install @capacitor/android@latest
77+
```
78+
79+
Note: If you don't want to risk to introduce breaking changes, use `npm update @capacitor/package-name` instead of `@latest` as `update` respects semver.

0 commit comments

Comments
 (0)