yarn version apply — Yarn CLI reference

Apply deferred version decisions

Docs/Reference/CLI/version/apply

yarn version apply

Apply deferred version decisions

yarn version apply

This command applies deferred version changes and removes their definitions from the repository.

If --prerelease is set, the given prerelease identifier (by default rc.%n) is used for all new versions and the version definitions are kept.

By default only the current workspace will be bumped, but you can configure this behavior by using one of:

  • --recursive to also apply the version bump on its dependencies - --all to apply the version bump on all packages in the repository

This command also updates local workspace: references so they keep pointing to the same workspaces after the version bump.

#--allboolean

Apply deferred version changes for all workspaces

#--dry-runboolean

Print the version changes without writing them

#--prereleaseboolean

Apply versions as prereleases using this identifier pattern

#--recursive, -Rboolean

Release the transitive workspaces as well

#--jsonboolean

Format the output as an NDJSON stream