> ## 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 export

> Emit the Package's Input schema (JSON Schema / OpenAPI)

```sh theme={null}
akua pkg export [flags]
```

| Flag | Type | Description |
| - | - | - |
| `--package` | string | Path to the `package.k` file |
| `--format` | choice | JSON Schema 2020-12, or OpenAPI 3.1 with Input under `components.schemas` (choices: json-schema, openapi) |
| `--out` | string | Write the schema to this path instead of stdout |

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.