> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# fly consul attach

Attach Consul cluster to an app, and setting the FLY\_CONSUL\_URL secret

## Usage

```
fly consul attach [flags]
```

## Options

```
  -a, --app string             Application name
  -c, --config string          Path to application configuration file
  -h, --help                   help for attach
      --variable-name string   The environment variable name that will be added to the consuming app. (default "FLY_CONSUL_URL")
```

## Global Options

```
  -t, --access-token string   Fly API Access Token
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly consul](/flyctl/cmd/fly_consul)	 - Enable and manage Consul clusters
