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

# akua pkg fmt

> Format a package.k via KCL's canonical formatter

```sh
akua pkg fmt [flags]
```

| Flag | Type | Description |
| - | - | - |
| `--package` | string | Path to the `package.k` file |
| `--check` | boolean | Exit 1 if the file would change; don't write |
| `--stdout` | boolean | Print formatted source to stdout; don't write |

Every command also accepts the [universal flags](https://docs.akua.dev/akua/cli#universal-flags).

## Related topics

> [card] [akua pkg commands](https://docs.akua.dev/akua/cli.md)
>
> Every command, the universal flags and the exit codes.

> [card] [Error codes](https://docs.akua.dev/akua/errors.md)
>
> What each structured error means and how to resolve it.
