# atmos terraform metadata

Use this command to retrieve Terraform metadata functions for an Atmos component in a stack.

## Usage

Execute the `terraform metadata` command like this:

```shell
atmos terraform metadata <component> -s <stack> [options]
```

This command provides metadata functions for Terraform configurations. This is primarily used for advanced Terraform Cloud operations.

:::info Atmos Behavior
Atmos provides standard setup for this command including automatic `terraform init` and workspace selection. The metadata operations are handled by native Terraform.
:::

## Examples

### Metadata Functions

```shell
# Access metadata functions
atmos terraform metadata vpc -s dev functions
```

## Arguments

- **`component` (required)**

  Atmos component name.

## Flags

- **`--stack` / `-s` (required)**

  Atmos stack name where the component is defined.
- **`--skip-init` (optional)**

  Skip running `terraform init` before executing the command.
  ```shell
  atmos terraform metadata vpc -s dev --skip-init
  ```
- **`--dry-run` (optional)**

  Show what would be executed without actually running the command.
  ```shell
  atmos terraform metadata vpc -s dev --dry-run
  ```

## Native Terraform Flags

This command supports native `terraform metadata` flags such as Subcommands include `functions` for function metadata..

## Related Commands

- [`atmos terraform plan`](/cli/commands/terraform/plan) - Generate execution plan
- [`atmos terraform apply`](/cli/commands/terraform/apply) - Apply changes
- [`atmos terraform init`](/cli/commands/terraform/init) - Initialize working directory
