Skip to content

Commit fc03d51

Browse files
committed
Add note to docs about autocompletion
1 parent cc7154b commit fc03d51

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

website/source/docs/commands/index.html.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,23 @@ Command Options
7979
Joins a server to another server in the WAN pool.
8080
```
8181

82+
## Autocompletion
83+
84+
The `consul` command features opt-in subcommand autocompletion that you can
85+
enable for your shell with `consul -autocomplete-install`. After doing so,
86+
you can invoke a new shell and use the feature.
87+
88+
For example, assume a tab is typed at the end of each prompt line:
89+
90+
```
91+
$ consul e
92+
event exec
93+
94+
$ consul r
95+
raft reload rtt
96+
97+
```
98+
8299
## Environment Variables
83100

84101
In addition to CLI flags, Consul reads environment variables for behavior

0 commit comments

Comments
 (0)