open-consul/website/content/commands/join.mdx
Zachary Shilton 5b53b5aef5
website: implement mktg 032 (#9953)
* website: migrate to new nav-data format

* website: clean up unused intro content

* website: remove deprecated sidebar_title from frontmatter

* website: add react-content to fix global style import issue
2021-04-07 15:50:38 -04:00

40 lines
1.3 KiB
Plaintext

---
layout: commands
page_title: 'Commands: Join'
description: >-
The `join` command tells a Consul agent to join an existing cluster. A new
Consul agent may join any node in the existing cluster. After joining with one
member, the gossip communication will propagate the updated membership state
across the cluster.
---
# Consul Join
Command: `consul join`
The `join` command tells a Consul agent to join an existing cluster.
A new Consul agent may join any node in the existing cluster. After joining
with one member, the gossip communication will propagate the updated membership
state across the cluster.
An agent which is already part of a cluster may join an agent in a different
cluster, causing the two clusters to be merged into a single cluster.
## Usage
Usage: `consul join [options] address ...`
You may call join with multiple addresses if you want to try to join
multiple clusters. Consul will attempt to join all addresses, and the join
command will fail only if Consul was unable to join with any.
#### API Options
@include 'http_api_options_client.mdx'
#### Command Options
- `-wan` - For agents running in server mode, the agent will attempt to join
other servers gossiping in a WAN cluster. This is used to form a bridge between
multiple datacenters.