stella version
Print the installed stella version and exit.
Prints the version of your installed stella binary, then exits.
Synopsis
stella versionTwo other flags also print the version, but they don't print the same thing:
stella -V # one line, just the version number
stella --version # three lines, with the build's target and profileOutput
The version subcommand prints a line starting with v:
stella v0.9.86stella -V prints the short form: the binary name, a space, then the version number with no v in front:
stella 0.9.86stella --version prints the long form: the same first line, then the target platform and the build profile the binary was built with.
stella 0.9.86
target: aarch64-apple-darwin
profile: releaseThe number you see matches the release you installed. A binary built in dev mode (using scripts/dev.sh) adds a git-sha tag at the end, for example stella v0.9.86-dev.abc1234. A released binary just shows the plain version number.
Use this command to confirm an install or upgrade, or to save the version in a CI log. It needs no provider or API key.
Examples
Confirm what you just installed:
stella versionCapture just the version number for a CI log or a build label. Use -V, not --version: the long form's extra lines would also get piped through cut, giving you the version, then a blank line, then the profile.
stella -V | cut -d' ' -f2Or take just the first line from either flag:
stella --version | head -1 | cut -d' ' -f2Check that stella is installed and on your PATH before a script depends on it:
stella version >/dev/null 2>&1 || { echo "stella is not installed"; exit 1; }