2022-08-31 16:58:41 +00:00
|
|
|
---
|
|
|
|
layout: commands
|
|
|
|
page_title: 'Commands: Peering'
|
|
|
|
---
|
|
|
|
|
|
|
|
# Consul Peering
|
|
|
|
|
|
|
|
Command: `consul peering`
|
|
|
|
|
|
|
|
Use the `peering` command to create and manage peering connections between Consul clusters, including token generation and consumption. Refer to
|
2023-01-25 16:52:43 +00:00
|
|
|
[Create and Manage Peerings Connections](/consul/docs/connect/cluster-peering/create-manage-peering) for an
|
2022-08-31 16:58:41 +00:00
|
|
|
overview of the CLI workflow for cluster peering.
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```text
|
|
|
|
Usage: consul peering <subcommand> [options]
|
|
|
|
|
|
|
|
# ...
|
|
|
|
|
|
|
|
Subcommands:
|
|
|
|
|
|
|
|
delete Close and delete a peering connection
|
|
|
|
establish Consume a peering token and establish a connection with the accepting cluster
|
|
|
|
generate-token Generate a peering token for use by a dialing cluster
|
|
|
|
list List the local cluster's peering connections
|
|
|
|
read Read detailed information on a peering connection
|
|
|
|
```
|
|
|
|
|
|
|
|
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:
|
|
|
|
|
2023-01-25 16:52:43 +00:00
|
|
|
- [delete](/consul/commands/peering/delete)
|
|
|
|
- [establish](/consul/commands/peering/establish)
|
|
|
|
- [generate-token](/consul/commands/peering/generate-token)
|
|
|
|
- [list](/consul/commands/peering/list)
|
|
|
|
- [read](/consul/commands/peering/read)
|
2022-08-31 16:58:41 +00:00
|
|
|
|
|
|
|
|
|
|
|
|