# atmos stack format

Format the manifest files that define the selected component in place, preserving
comments, anchors, YAML functions, and templates. Atmos uses provenance to find the
files that contribute effective component values.

:::info
`atmos stack format` is an alias for [`atmos stack config format`](/cli/commands/stack/config/format), the canonical form.
:::

## Usage

```shell
atmos stack format -s <stack> -c <component> [--file <manifest>]
```

The `fmt` alias is also accepted.

## Examples

```shell
atmos stack format -s plat-ue2-prod -c vpc
atmos stack format -s plat-ue2-prod -c vpc --file stacks/catalog/vpc.yaml
```

## Flags

- **`--stack` / `-s` (string, required)**
  The stack name.
- **`--component` / `-c` (string, required)**
  The component name.
- **`--file` (string)**
  Format this manifest file explicitly instead of resolving all provenance-contributing files.

## Related

- Canonical form: [`atmos stack config format`](/cli/commands/stack/config/format)
