akua pkgakua pkg export
akua pkg export [flags]
FlagTypeDescription
--packagestringPath to the package.k file
--formatchoiceJSON Schema 2020-12, or OpenAPI 3.1 with Input under components.schemas (choices: json-schema, openapi)
--outstringWrite the schema to this path instead of stdout

Every command also accepts the universal flags.