snippetbashTip
pkl — Manage, evaluate, and test Pkl configuration modules. More information: <https://pkl-lang.org/main/c
Viewed 0 times
commandevaluateandpklclimanagetest
Problem
How to use the
pkl command: Manage, evaluate, and test Pkl configuration modules. More information: <https://pkl-lang.org/main/current/pkl-cli/>.Solution
pkl — Manage, evaluate, and test Pkl configuration modules. More information: <https://pkl-lang.org/main/current/pkl-cli/>.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 serverEvaluate Pkl modules as tests and produces a report:
pkl test {{module.pkl}}Start a REPL session:
pkl replPrepare 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}}Code Snippets
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 serverEvaluate Pkl modules as tests and produces a report
pkl test {{module.pkl}}Start a REPL session
pkl replPrepare a Pkl project for publishing as a package
pkl project package {{path/to/project_directory}}Context
tldr-pages: common/pkl
Revisions (0)
No revisions yet.