Home Explore Blog CI



nushell

commands/docs/inc.md
cffb1a7afc04610cbbbe711bfbee8576b99cd9bdc6fbb89d0000000300000492
---
title: inc
categories: |
  default
version: 0.104.0
default: |
  Increment a value or version. Optionally use the column of a table.
usage: |
  Increment a value or version. Optionally use the column of a table.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `inc` for [default](/commands/categories/default.md)

<div class='command-title'>Increment a value or version. Optionally use the column of a table.</div>

::: warning This command requires a plugin
The `inc` command resides in the `inc` plugin.
To use this command, you must install and register `nu_plugin_inc`.
See the [Plugins](/book/plugins.html) chapter in the book for more information.
:::


## Signature

```> inc {flags} (cell_path)```

## Flags

 -  `--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)

## Parameters

 -  `cell_path`: cell path to update


## Input/output types:

| input | output |
| ----- | ------ |
| any   | any    |

Chunks
bb6f8e82 (1st chunk of `commands/docs/inc.md`)
Title: inc command documentation
Summary
This documentation describes the `inc` command, which increments a value or version. It can optionally use a column of a table. The command requires the `nu_plugin_inc` plugin to be installed and registered. The documentation outlines the command's signature, available flags for incrementing major, minor, or patch versions, and the cell_path parameter for specifying the target cell to update. It also describes the input and output types of the command.