2016-08-30 02:09:57 +00:00
|
|
|
---
|
|
|
|
layout: "docs"
|
|
|
|
page_title: "Commands: Operator"
|
|
|
|
sidebar_current: "docs-commands-operator"
|
|
|
|
description: >
|
|
|
|
The operator command provides cluster-level tools for Consul operators.
|
|
|
|
---
|
|
|
|
|
|
|
|
# Consul Operator
|
|
|
|
|
|
|
|
Command: `consul operator`
|
|
|
|
|
|
|
|
The `operator` command provides cluster-level tools for Consul operators, such
|
|
|
|
as interacting with the Raft subsystem. This was added in Consul 0.7.
|
|
|
|
|
|
|
|
~> Use this command with extreme caution, as improper use could lead to a Consul
|
|
|
|
outage and even loss of data.
|
|
|
|
|
2016-11-16 09:01:51 +00:00
|
|
|
If ACLs are enabled then a token with operator privileges may be required in
|
2016-08-30 02:09:57 +00:00
|
|
|
order to use this command. Requests are forwarded internally to the leader
|
|
|
|
if required, so this can be run from any Consul node in a cluster. See the
|
2019-06-13 21:57:39 +00:00
|
|
|
[ACL Guide](https://learn.hashicorp.com/consul/security-networking/production-acls) for more information.
|
2016-08-30 02:09:57 +00:00
|
|
|
|
2019-05-15 15:49:41 +00:00
|
|
|
See the [Outage Recovery](https://learn.hashicorp.com/consul/day-2-operations/outage) guide for some examples of how
|
2018-03-19 16:56:00 +00:00
|
|
|
this command is used. For an API to perform these operations programmatically,
|
2017-04-04 16:33:22 +00:00
|
|
|
please see the documentation for the [Operator](/api/operator.html)
|
2016-08-30 02:09:57 +00:00
|
|
|
endpoint.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2017-02-15 21:30:07 +00:00
|
|
|
```text
|
|
|
|
Usage: consul operator <subcommand> [options]
|
2016-08-30 02:09:57 +00:00
|
|
|
|
2017-02-15 21:30:07 +00:00
|
|
|
# ...
|
2016-08-30 02:09:57 +00:00
|
|
|
|
2017-02-15 21:30:07 +00:00
|
|
|
Subcommands:
|
2016-08-30 02:09:57 +00:00
|
|
|
|
2017-03-28 17:31:56 +00:00
|
|
|
area Provides tools for working with network areas (Enterprise-only)
|
2017-02-25 00:55:44 +00:00
|
|
|
autopilot Provides tools for modifying Autopilot configuration
|
|
|
|
raft Provides cluster-level tools for Consul operators
|
2016-08-30 02:09:57 +00:00
|
|
|
```
|
|
|
|
|
2017-02-15 21:30:07 +00:00
|
|
|
For more information, examples, and usage about a subcommand, click on the name
|
|
|
|
of the subcommand in the sidebar or one of the links below:
|
2016-08-30 20:15:37 +00:00
|
|
|
|
2017-03-28 17:31:56 +00:00
|
|
|
- [area] (/docs/commands/operator/area.html)
|
2017-02-25 00:55:44 +00:00
|
|
|
- [autopilot] (/docs/commands/operator/autopilot.html)
|
2017-02-15 21:30:07 +00:00
|
|
|
- [raft] (/docs/commands/operator/raft.html)
|