2018-05-29 21:07:40 +00:00
---
2020-09-01 15:14:13 +00:00
layout: commands
2020-04-06 20:27:35 +00:00
page_title: 'Commands: Connect'
2023-01-26 18:42:13 +00:00
description: >-
The `consul connect` command interacts with Consul's service mesh features. It exposes top-level commands for interacting with the internal CA and service mesh proxies, exposing services through ingress gateways, and applying iptables rules.
2018-05-29 21:07:40 +00:00
---
# Consul Connect
Command: `consul connect`
2023-05-05 17:41:40 +00:00
The `connect` command is used to interact with the connect subsystem
that provides Consul's [service mesh](/consul/docs/connect) capabilities.
It exposes commands for running service mesh proxies and
for viewing/updating the service mesh Certificate Authority (CA) configuration.
2018-05-29 21:07:40 +00:00
## Usage
Usage: `consul connect <subcommand>`
For the exact documentation for your Consul version, run `consul connect -h` to view
the complete list of subcommands.
```text
Usage: consul connect <subcommand> [options] [args]
2023-05-05 17:41:40 +00:00
This command has subcommands for interacting with Consul service mesh.
2018-05-29 21:07:40 +00:00
Here are some simple examples, and more detailed examples are available
in the subcommands or the documentation.
2023-05-05 17:41:40 +00:00
Run the production service mesh proxy
2018-05-29 21:07:40 +00:00
2023-05-05 17:41:40 +00:00
$ consul connect envoy
2018-05-29 21:07:40 +00:00
For more examples, ask for subcommand help or view the documentation.
Subcommands:
2023-05-05 17:41:40 +00:00
ca Interact with the Consul service mesh Certificate Authority (CA)
envoy Runs or configures Envoy as a service mesh proxy
expose Expose a mesh-enabled service through an Ingress gateway
proxy Runs a non-production, built-in service mesh sidecar proxy
2021-04-09 18:48:10 +00:00
redirect-traffic Applies iptables rules for traffic redirection
2018-05-29 21:07:40 +00:00
```
For more information, examples, and usage about a subcommand, click on the name
2020-04-06 20:27:35 +00:00
of the subcommand in the sidebar.