diff --git a/website/source/docs/commands/node-status.html.md b/website/source/docs/commands/node-status.html.md index b8c85443f..70ab7c56f 100644 --- a/website/source/docs/commands/node-status.html.md +++ b/website/source/docs/commands/node-status.html.md @@ -34,6 +34,7 @@ displayed. List view: ``` +$ nomad node-status ID DC Name Drain Status a72dfba2-c01f-49de-5ac6-e3391de2c50c dc1 node1 false ready 1f3f03ea-a420-b64b-c73b-51290ed7f481 dc1 node2 false ready @@ -42,6 +43,7 @@ a72dfba2-c01f-49de-5ac6-e3391de2c50c dc1 node1 false ready Single-node view: ``` +$ nomad node-status 1f3f03ea-a420-b64b-c73b-51290ed7f481 ID = 1f3f03ea-a420-b64b-c73b-51290ed7f481 Name = node2 Class = diff --git a/website/source/docs/commands/version.html.md b/website/source/docs/commands/version.html.md new file mode 100644 index 000000000..c6c9f7a64 --- /dev/null +++ b/website/source/docs/commands/version.html.md @@ -0,0 +1,31 @@ +--- +layout: "docs" +page_title: "Commands: version" +sidebar_current: "docs-commands-version" +description: > + Display the version and build data of Nomad +--- + +# Command: version + +The `version` command displays build information about the running binary, +including the release version and the exact revision. + +## Usage + +``` +nomad version +``` + +## Output + +This command prints both the version number as well as the exact commit SHA used +during the build. The SHA may also have a the string `+CHANGES` appended to the +end, indicating that local, uncommitted changes were detected at build time. + +## Examples + +``` +$ nomad version +Nomad v0.0.0-615-gcf3c6aa-dev (cf3c6aa8a75a689987b689d75ae2ba73458465cb+CHANGES) +``` diff --git a/website/source/layouts/docs.erb b/website/source/layouts/docs.erb index 56c369d7b..a5d77e405 100644 --- a/website/source/layouts/docs.erb +++ b/website/source/layouts/docs.erb @@ -109,6 +109,9 @@ > stop + > + version +