2025-12-16 10:20:31 -07:00
|
|
|
# pkl
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Manage, evaluate, and test Pkl configuration modules.
|
|
|
|
|
> More information: <https://pkl-lang.org/main/current/pkl-cli/>.
|
2025-12-16 10:20:31 -07:00
|
|
|
|
|
|
|
|
- Evaluate the given Pkl modules and produce their rendering results:
|
|
|
|
|
|
|
|
|
|
`pkl eval {{module.pkl}}`
|
|
|
|
|
|
|
|
|
|
- Run as a server that communicates over `stdin` and `stdout`:
|
|
|
|
|
|
|
|
|
|
`pkl server`
|
|
|
|
|
|
|
|
|
|
- Evaluate Pkl modules as tests and produces a report:
|
|
|
|
|
|
|
|
|
|
`pkl test {{module.pkl}}`
|
|
|
|
|
|
|
|
|
|
- Start a REPL session:
|
|
|
|
|
|
|
|
|
|
`pkl repl`
|
|
|
|
|
|
|
|
|
|
- Prepare a Pkl project for publishing as a package:
|
|
|
|
|
|
|
|
|
|
`pkl project package {{path/to/project_directory}}`
|
|
|
|
|
|
|
|
|
|
- Resolve project dependencies and writes the resolved versions to a file at path `PklProject.deps.json`:
|
|
|
|
|
|
|
|
|
|
`pkl project resolve {{path/to/project_directory}}`
|