Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nrwl/nx/llms.txt
Use this file to discover all available pages before exploring further.
nx release is a set of subcommands for managing the full release lifecycle: bumping versions, generating changelogs, and publishing to a registry.
Subcommands
nx release (full workflow)
nx release (full workflow)
Runs version bumping, changelog generation, and optionally publishing in a single command.Positional argumentOptions
Exact version or semver keyword to apply (e.g.,
major, minor, patch, prerelease, or 1.2.3).Prerelease identifier to append when using
prerelease as the specifier, or when using conventional commits (e.g., alpha, beta).Automatically answer yes to the publish confirmation prompt. Alias:
-y. Mutually exclusive with --skip-publish.Skip publishing by automatically answering no to the publish confirmation. Mutually exclusive with
--yes.One-time password for publishing to a registry that requires 2FA.
Indicates this is the first release for the selected release group. Uses the version on disk as a fallback when the current version cannot be determined, and skips checking for existing tags or packages.
nx release version
nx release version
Bump the version of one or more projects without running changelog or publish steps.Positional argumentOptions
Exact version or semver keyword (e.g.,
major, minor, patch, 1.2.3).Prerelease identifier (e.g.,
alpha, beta).Stage the changes made by this command. Useful when combining with changelog generation.
Automatically commit the changes made by this command.
Custom commit message. Use
{version} as a placeholder for the version.Additional arguments to pass to
git commit.Automatically create a git tag after versioning.
Custom message for the git tag.
Automatically push commits and tags to the remote repository.
The git remote to push to.
Indicates this is the first release for the selected release group.
nx release changelog
nx release changelog
Generate a changelog for one or more projects and optionally create a GitHub/GitLab release.Positional argumentOptions
The version to generate the changelog for.
Git ref to use as the start of the changelog range. Defaults to the latest matching tag.
Git ref to use as the end of the changelog range.
Open changelogs in your editor before applying. Choices:
all, workspace, projects. Alias: -i.Overwrite the existing changelog file contents instead of prepending to them.
How to resolve version plan files for changelog generation. Choices:
all, using-from-and-to.Indicates this is the first release; skips checking for existing git tags.
nx release publish
nx release publish
Publish versioned projects to a package registry.Options
The registry URL to publish to.
The distribution tag to apply to the published package (e.g.,
latest, next, beta).Access level for the published package. Choices:
public, restricted. Unscoped packages cannot be set to restricted.One-time password for registries that require 2FA.
Skip checking for the existence of the package before publishing.
nx release plan
nx release plan
Create a version plan file specifying the desired semver bump and a changelog entry for one or more projects or groups.Positional argumentOptions
Semver keyword. Choices:
major, premajor, minor, preminor, patch, prepatch, prerelease.Custom message to use as the changelog entry. Alias:
-m.Only include projects affected by current changes.
nx release plan:check
nx release plan:check
Verify that all touched projects have an applicable version plan file. Exits with a non-zero code if any are missing.
Global release options
These options apply to allnx release subcommands.
Preview changes without updating files, creating releases, or publishing packages. Alias:
-d.Print additional information about the release process.
One or more release groups to target (comma-separated). Defined in
nx.json. Aliases: --group, -g. Mutually exclusive with --projects.Comma or space-separated project names or patterns to target. Alias:
-p. Mutually exclusive with --groups.Print the resolved
nx release configuration for the current command and exit.Examples
Release groups
Release groups let you version and publish different subsets of your workspace independently. Define groups innx.json:
