LinuxCommandLibrary

pkl

Programmable configuration language from Apple

TLDR

Evaluate Pkl file

$ pkl eval [config.pkl]
copy
Output as JSON
$ pkl eval -f json [config.pkl]
copy
Output as YAML
$ pkl eval -f yaml [config.pkl]
copy
Check syntax
$ pkl check [config.pkl]
copy
Start REPL
$ pkl repl
copy

SYNOPSIS

pkl [command] [options] [file]

DESCRIPTION

pkl is a programmable configuration language developed by Apple. It evaluates .pkl files and generates output in multiple formats including JSON, YAML, XML, and property lists, combining the readability of static configuration with the power of a programming language.
Pkl provides type safety, validation, and code reuse through classes and modules, catching configuration errors at evaluation time rather than at deployment. The REPL mode allows interactive exploration and testing of configuration expressions.

PARAMETERS

eval FILE

Evaluate configuration.
check FILE
Validate syntax.
repl
Start interactive mode.
-f FORMAT
Output format.
--help
Display help.

CAVEATS

Apple-developed. Supports multiple output formats.

HISTORY

Pkl was created by Apple as a programmable configuration language.

SEE ALSO

jsonnet(1), dhall(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community