# atmos stack config 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. This is the canonical form;
[`atmos stack format`](/cli/commands/stack/stack-format) is a convenience alias for
this command.

## Usage

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

The `fmt` alias is also accepted.

## Examples

```shell
atmos stack config format -s plat-ue2-prod -c vpc
atmos stack config 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

- Alias: [`atmos stack format`](/cli/commands/stack/stack-format)
