From ebd66b3255e8ab4551eae0d42750773a84099bc0 Mon Sep 17 00:00:00 2001 From: Fedor Suchkov Date: Sat, 1 Aug 2026 23:58:50 +0300 Subject: [PATCH] docs(commands): add version command documentation --- docs/commands/version.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 docs/commands/version.md diff --git a/docs/commands/version.md b/docs/commands/version.md new file mode 100644 index 0000000..68d396b --- /dev/null +++ b/docs/commands/version.md @@ -0,0 +1,16 @@ +# `jig version` + +Print the current jig version and exit. This command does not load or +validate any configuration file, so it works even when `jig.toml` is +broken or missing. + +``` +jig version +``` + +The output depends on how the binary was built: + +- **Release build** — stamped semantic version (e.g. `jig 2.1.0`). +- **Built from a git checkout** — `jig dev (commit abc123def456)`, or `jig dev (commit abc123def456+dirty)` when the working tree has uncommitted changes. +- **`go install` at a specific version** — the module version from the build info. +- **Plain `go build` / `go install` without version info** — `jig dev`.