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
nsc version ensure [--at_least <version>]Example
$ nsc version ensure --at_least 0.0.481Options
--at_least
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
- nsc version check - Check whether the current binary is up to date
- nsc version update - Update the current binary to the latest version