W3cubDocs

/Nushell

inc for default

Increment a value or version. Optionally use the column of a table.

Signature

> inc (cell_path) --major --minor --patch

Parameters

  • cell_path: cell path to update
  • --major (-M): increment the major version (eg 1.2.1 -> 2.0.0)
  • --minor (-m): increment the minor version (eg 1.2.1 -> 1.3.0)
  • --patch (-p): increment the patch version (eg 1.2.1 -> 1.2.2)

Input/output types:

input output
any any

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/inc.html