> ## Documentation Index
> Fetch the complete documentation index at: https://akua-1dce587a.mintlify.site/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 theme={null}
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://akua-1dce587a.mintlify.site/akua/cli.md#universal-flags).

## Related topics

> **[akua pkg commands](https://akua-1dce587a.mintlify.site/akua/cli.md)**
>
> Every command, the universal flags and the exit codes.

> **[Error codes](https://akua-1dce587a.mintlify.site/akua/errors.md)**
>
> What each structured error means and how to resolve it.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.