README.md
1# Sensu CLI
2
3`sensuctl` is the command line interface for managing your Sensu cluster.
4
5## Auto-Completion
6
7### Installation (Bash Shell)
8
9Make sure bash completion is installed. If you use a current Linux
10in a non-minimal installation, bash completion should be available.
11On a Mac, install with:
12
13```sh
14brew install bash-completion
15```
16
17Then add the following to your `~/.bash_profile`:
18
19```bash
20if [ -f $(brew --prefix)/etc/bash_completion ]; then
21. $(brew --prefix)/etc/bash_completion
22fi
23```
24
25When bash-completion is available we can add the following to your `~/.bash_profile`:
26
27```bash
28source <(sensuctl completion bash)
29```
30
31You can now source your `~/.bash_profile` or launch a new terminal to utilize completion.
32
33```sh
34source ~/.bash_profile
35```
36
37### Installation (ZSH)
38
39Add the following to your `~/.zshrc`:
40
41```bash
42source <(sensuctl completion zsh)
43```
44
45You can now source your `~/.zshrc` or launch a new terminal to utilize completion.
46
47```sh
48source ~/.zshrc
49```
50
51### Usage
52
53sensuctl:
54> $ sensuctl <kbd>Tab</kbd>
55```
56check configure event user
57asset completion entity handler
58```
59
60sensuctl:
61> $ sensuctl check <kbd>Tab</kbd>
62```
63create delete import list
64```
65
66## Contributing
67
68[UX Guidelines](GUIDELINES.md)
69