mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
a9df6ac50b
- moved and renamed files/folders based on new structure - updated docs navigation based on new structure - moved CLI to top nav (created commands.jsx and commands-navigation.js) - updated and added redirects - updating to be consistent with standalone categories - changing "overview" link in top nav to lead to where intro was moved (docs/intro) - adding redirects for intro content - deleting old intro folders - format all data/navigation files - deleting old commands folder - reverting changes to glossary page - adjust intro navigation for removal of 'vs' paths - add helm page redirect - fix more redirects - add a missing redirect - fix broken anchor links and formatting mistakes - deleted duplicate section, added redirect, changed link - removed duplicate glossary page
46 lines
968 B
Plaintext
46 lines
968 B
Plaintext
---
|
|
layout: commands
|
|
page_title: 'Commands: Version'
|
|
sidebar_title: version
|
|
description: >-
|
|
The `version` command prints the version of Consul and the protocol versions
|
|
it understands for speaking to other agents.
|
|
---
|
|
|
|
# Consul Version
|
|
|
|
Command: `consul version`
|
|
|
|
The `version` command prints the version of Consul and the protocol versions it understands for speaking to other agents.
|
|
|
|
## Usage
|
|
|
|
Usage: `consul version [options]`
|
|
|
|
### Command Options
|
|
|
|
- `-format={pretty|json}` - Command output format. The default value is `pretty`.
|
|
|
|
## Plain Output
|
|
```shell-session
|
|
$ consul version
|
|
Consul v1.7.0
|
|
Revision d1fc59061
|
|
Protocol 2 spoken by default, understands 2 to 3 (agent will automatically use protocol >2 when speaking to compatible agents)
|
|
```
|
|
|
|
## JSON Output
|
|
```shell-session
|
|
$ consul version -format=json
|
|
{
|
|
"Version": "1.8.0",
|
|
"Revision": "d1fc59061",
|
|
"Prerelease": "dev",
|
|
"RPC": {
|
|
"Default": 2,
|
|
"Min": 2,
|
|
"Max": 3
|
|
}
|
|
}
|
|
```
|