Skip to content

Commit

Permalink
docs(workflow): change update instructions to get latest version (#2937)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored May 18, 2020
1 parent 2a9a95d commit 0c151fc
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions site/docs-md/basics/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ To check if there are any new updates to Capacitor itself, run `npx cap doctor`
To update Capacitor Core and CLI:

```bash
npm update @capacitor/cli
npm update @capacitor/core
npm install @capacitor/cli@latest
npm install @capacitor/core@latest
```

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

```bash
npm update @capacitor/ios
npm update @capacitor/android
```
npm install @capacitor/ios@latest
npm install @capacitor/android@latest
```

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 comments on commit 0c151fc

Please sign in to comment.