<a id="hook-command-leader-get"></a>

# `leader-get`

## Summary

Print application leadership settings.

## Usage

` leader-get [options] [<key>]`

### Options

| Flag             | Default   | Usage                                   |
|------------------|-----------|-----------------------------------------|
| `--format`       | smart     | Specify output format (json|smart|yaml) |
| `-o`, `--output` |           | Specify an output file                  |

## Examples

```none
ADDRESSS=$(leader-get cluster-leader-address)
```

## Details

leader-get prints the value of a leadership setting specified by key. If no key
is given, or if the key is “-”, all keys and values will be printed.
