Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade docs to add yarn upgrade --latest flag #513

Merged
merged 1 commit into from
Jun 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions lang/en/docs/cli/upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,34 @@ success Saved 867 new dependencies.
✨ Done in 20.79s.
```

##### `yarn upgrade [--latest\-L]` <a class="toc" id="toc-yarn-upgrade" href="#toc-yarn-upgrade"></a>

This command updates all dependencies to the version specified by the `latest`
tag (potentially upgrading the packages across major versions).

```sh
yarn upgrade --latest
```

```
yarn upgrade vx.x.x
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
success Saved lockfile.
success Saved 867 new dependencies.
[...]
├─ jest-cli@16.0.1
│ ├─ yargs-parser@3.2.0
│ └─ yargs@5.0.0
├─ jest-diff@16.0.0
│ └─ diff@3.0.1
[...]
└─ yargs@4.8.1
✨ Done in 20.79s.
```

##### `yarn upgrade [package]` <a class="toc" id="toc-yarn-upgrade-package" href="#toc-yarn-upgrade-package"></a>

This upgrades a single named package to the version specified by the `latest`
Expand Down