akua / cli / fmt

akua fmt

Format KCL and Rego sources in place.

akua fmt [path] [flags]

Uses embedded kcl fmt for .k files and embedded opa fmt for .rego files. Idempotent; safe to run in CI.

Flags

flagdescription
--checkexit 1 if anything would change (CI gate); do not modify files
--diffprint unified diff of changes without applying

Exit codes

0 success, 1 formatting needed (with --check), 2 parse error.