Forrest logo
back to the standard-version tool

standard-version:tldr:15073

standard-version: Tag a release committing all staged changes, not just files affected by `standard-version`.
$ standard-version --commit-all
try on your machine

The command standard-version --commit-all is used to automatically update the version number of a project and create a commit with the updated version.

Here is a breakdown of the command:

  • standard-version: This is the main command that is executed. It is typically a CLI tool or a script that helps with versioning in a project.

  • --commit-all: This is an option or flag provided to the standard-version command. In this particular case, --commit-all informs the standard-version command to create a commit with all the changes made by the versioning process, including updating the version number.

When standard-version --commit-all is executed, the following typically occurs:

  1. The version number of the project is automatically updated based on specific rules or a configuration file.

  2. All the changes for the new version, including updated files and potentially generated release notes, are staged for a commit.

  3. A new commit is created with these staged changes.

By using --commit-all, you are instructing standard-version to commit all the changes instead of selective changes, ensuring that you have a complete history of the version updates in your project's source control.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the standard-version tool