Skip to content
pubscout

pub_version_plus

3.1.3, released 2 years ago by mrgnhnt.com

Command-line tool to easily increment version numbers in pubspec.yaml files.

$ flutter pub add pub_version_plus
Source repository

What it does

Pub_version_plus provides a command-line utility to increment major, minor, patch, and build numbers within a pubspec.yaml file. It supports flags for handling pre-releases and customizing build number modifications.

AI-written summary of version 3.1.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to automate version bumping in your CI/CD pipelines.
  • You need a quick CLI command to increment pubspec.yaml versions locally.

Skip it when

  • You need a version management library that works programmatically inside your application runtime rather than as a build/dev tool.

Strengths

  • Supports multiple increment types (major, minor, patch, build).
  • Can be used globally or as a dev dependency in CI/CD.
  • Provides flexible build number options (reset, remove, increment, none).

Weaknesses

  • Limited to modifying pubspec.yaml version formats.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
7

Install globally via pub/flutter or add it as a dev dependency in pubspec.yaml.

pubversion major --pre-release beta

Alternatives

Packages that do the same job and could replace pub_version_plus.

  • config

    Typed CLI argument and config file parser with env support

  • mime

    Utilities to resolve MIME types from file names, magic bytes, and to parse multipart streams.

  • yaml_modify

    A library for modifying YAML files.

  • pubspec_manager

    Type-safe API to read, modify, and write pubspec.yaml while preserving comments.

Works with

Packages commonly used together with pub_version_plus: ones it builds on, ones built on it, and its own family.