## NAME

`gcluster export-outputs` - exports outputs from a deployment group.

## SYNOPSIS

```
gcluster export-outputs DEPLOYMENT_GROUP_DIRECTORY [FLAGS]
```

## DESCRIPTION

The `gcluster export-outputs` command exports output values from a specific
deployment group to other deployment groups that depend on them. This command
passes values, such as IP addresses or resource IDs, between modules in a
sequential deployment. To import these values in dependent groups, use the
[`gcluster import-inputs`](https://docs.cloud.google.com/cluster-toolkit/docs/reference/gcluster-import-inputs.md.txt)
command.

> [!NOTE]
> **Note:** This command is supported for Terraform modules only. Packer modules don't have similar outputs.

## FLAGS

- `-a`, `--artifacts ARTIFACTS_DIR`: The directory where deployment artifacts are stored. If you omit this flag, then the `gcluster` CLI configures the directory automatically.
- `--parallelism N`: Limits the number of concurrent
  Terraform operations. Specify an integer of `0` or greater:

  - `1` or greater: passes `N` to Terraform and overrides the `GCLUSTER_TERRAFORM_PARALLELISM` environment variable.
  - `0` or omitted: uses the `GCLUSTER_TERRAFORM_PARALLELISM` environment variable if set to a positive integer, or falls back to the Terraform default of `10`.

## EXAMPLES

To export outputs from a deployment group directory:

```bash
gcluster export-outputs ./my-deployment/primary-cluster
```

To export outputs specifying a custom artifacts directory:

```bash
gcluster export-outputs ./my-deployment/primary-cluster \
    --artifacts=./my-deployment/.artifacts
```