Skip to content

[feat] tauri version subcommand to sync versions across all config files #15264

@CBx0-dev

Description

@CBx0-dev

Describe the problem

Bumping the app version in a Tauri project requires manually editing multiple files that must stay in sync:

  • tauri.conf.json
  • package.json + package-lock.json
  • src-tauri/Cargo.toml + Cargo.lock

There is no built-in command to do this automatically, which is error-prone and slows down both local development and CI/CD pipelines (e.g., automated release workflows that need a single version bump step).

Describe the solution you'd like

Add a tauri version subcommand to the Tauri CLI, similar to npm version:

# sets exact version
npm run tauri version 2.1.0

# bumps patch (1.2.3 → 1.2.4)
npm run tauri version patch

# bumps minor (1.2.3 → 1.3.0)
npm run tauri version minor

# bumps major (1.2.3 → 2.0.0)
npm run tauri version major

The command should update all version fields atomically:

  • version in tauri.conf.json
  • version in package.json and package-lock.json
  • version in src-tauri/Cargo.toml and src-tauri/Cargo.lock

Alternatives considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions