yarn up | Yarn (2024)

Upgrade dependencies across the project.

Usage

$ yarn up ...

Examples

Upgrade all instances of lodash to the latest release:

yarn up lodash

Upgrade all instances of lodash to the latest release, but ask confirmation for each:

yarn up lodash -i

Upgrade all instances of lodash to 1.2.3:

yarn up [email protected]

Upgrade all instances of packages with the @babel scope to the latest release:

yarn up @babel/*

Upgrade all instances of packages containing the word jest to the latest release:

See Also
Yarn

yarn up *jest*

Upgrade all instances of packages with the @babel scope to 7.0.0:

yarn up @babel/*@7.0.0

Details

This command upgrades the packages matching the list of specified patterns totheir latest available version across the whole project (regardless of whetherthey're part of dependencies or devDependencies - peerDependencies won'tbe affected). This is a project-wide command: all workspaces will be upgraded inthe process.

If -R,--recursive is set the command will change behavior and no other switchwill be allowed. When operating under this mode yarn up will force all rangesmatching the selected packages to be resolved again (often to the highestavailable versions) before being stored in the lockfile. It however won't touchyour manifests anymore, so depending on your needs you might want to run bothyarn up and yarn up -R to cover all bases.

If -i,--interactive is set (or if the preferInteractive settings is toggledon) the command will offer various choices, depending on the detected upgradepaths. Some upgrades require this flag in order to resolve ambiguities.

The, -C,--caret, -E,--exact and -T,--tilde options have the same meaningas in the add command (they change the modifier used when the range is missingor a tag, and are ignored when the range is explicitly set).

If the --mode=<mode> option is set, Yarn will change which artifacts aregenerated. The modes currently supported are:

  • skip-build will not run the build scripts at all. Note that this isdifferent from setting enableScripts to false because the latter willdisable build scripts, and thus affect the content of the artifacts generatedon disk, whereas the former will just disable the build step - but not thescripts themselves, which just won't run.

  • update-lockfile will skip the link step altogether, and only fetch packagesthat are missing from the lockfile (or that have no associated checksums).This mode is typically used by tools like Renovate or Dependabot to keep alockfile up-to-date without incurring the full install cost.

Generally you can see yarn up as a counterpart to what was yarn upgrade --latest in Yarn 1 (ie it ignores the ranges previously listed in yourmanifests), but unlike yarn upgrade which only upgraded dependencies in thecurrent workspace, yarn up will upgrade all workspaces at the same time.

This command accepts glob patterns as arguments (if valid Descriptors andsupported by micromatch). Make sureto escape the patterns, to prevent your own shell from trying to expand them.

Note: The ranges have to be static, only the package scopes and names cancontain glob patterns.

Options

DefinitionDescription

-i,--interactive

Offer various choices, depending on the detected upgrade paths

-F,--fixed

Store dependency tags as-is instead of resolving them

-E,--exact

Don't use any semver modifier on the resolved range

-T,--tilde

Use the ~ semver modifier on the resolved range

-C,--caret

Use the ^ semver modifier on the resolved range

-R,--recursive

Resolve again ALL resolutions for those packages

--mode #0

Change what artifacts installs generate
yarn up | Yarn (2024)
Top Articles
How to give an employee a bonus without taxes
Is 72 Hours Enough For Muscle Recovery?
Automated refuse, recycling for most residences; schedule announced | Lehigh Valley Press
Frederick County Craigslist
CHESAPEAKE WV :: Topix, Craigslist Replacement
Achivr Visb Verizon
Craigslist Phoenix Cars By Owner Only
Tiraj Bòlèt Florida Soir
Jscc Jweb
Zendaya Boob Job
OpenXR support for IL-2 and DCS for Windows Mixed Reality VR headsets
WWE-Heldin Nikki A.S.H. verzückt Fans und Kollegen
Leeks — A Dirty Little Secret (Ingredient)
Hijab Hookup Trendy
Suffix With Pent Crossword Clue
1v1.LOL - Play Free Online | Spatial
Charter Spectrum Store
Accident On 215
Sullivan County Image Mate
Dcf Training Number
Craigslist Org Appleton Wi
Company History - Horizon NJ Health
Walgreens Bunce Rd
Surplus property Definition: 397 Samples | Law Insider
Top 20 scariest Roblox games
How do you get noble pursuit?
Mcclendon's Near Me
Healthy Kaiserpermanente Org Sign On
Used Safari Condo Alto R1723 For Sale
Vitals, jeden Tag besser | Vitals Nahrungsergänzungsmittel
AI-Powered Free Online Flashcards for Studying | Kahoot!
Bella Thorne Bikini Uncensored
Legit Ticket Sites - Seatgeek vs Stubhub [Fees, Customer Service, Security]
877-292-0545
How to Print Tables in R with Examples Using table()
Hazel Moore Boobpedia
Umd Men's Basketball Duluth
Saline Inmate Roster
21 Alive Weather Team
Silicone Spray Advance Auto
Craigslist Minneapolis Com
Online-Reservierungen - Booqable Vermietungssoftware
Kenwood M-918DAB-H Heim-Audio-Mikrosystem DAB, DAB+, FM 10 W Bluetooth von expert Technomarkt
Dobratz Hantge Funeral Chapel Obituaries
Plumfund Reviews
Lightfoot 247
Dolce Luna Italian Restaurant & Pizzeria
Definition of WMT
Mkvcinemas Movies Free Download
Amourdelavie
Aspen.sprout Forum
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 5912

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.