> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# nsc version ensure

Ensures the current binary is at least a given version, updating if needed.

`version ensure` compares the installed `nsc` binary against a minimum
version you specify with `--at_least`. If the installed binary is already at
or above that version, it does nothing. Otherwise it downloads and installs
the required version in place, the same way `nsc version update` does.

This is useful in scripts and CI pipelines that depend on a minimum CLI
version being available: rather than failing outright when the installed
`nsc` is too old, `version ensure` self-updates it to a version that
satisfies the constraint before the rest of the script runs.

## Usage

```bash theme={null}
nsc version ensure [--at_least <version>]
```

### Example

```bash theme={null}
nsc version ensure --at_least 0.0.481
```

## Options

<h3 id="--at_least">
  \--at\_least
</h3>

Minimum required version (e.g. `0.0.481`). If the current `nsc` binary is
older than this version, `nsc` updates itself before continuing.

## Related Topics

* [nsc version](/docs/reference/cli/version)
* [nsc version check](/docs/reference/cli/version-check) - Check whether the current binary is up to date
* [nsc version update](/docs/reference/cli/version-update) - Update the current binary to the latest version
