HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pkl — Manage, evaluate, and test Pkl configuration modules. More information: <https://pkl-lang.org/main/c

Submitted by: @import:tldr-pages··
0
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 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}}

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 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}}

Context

tldr-pages: common/pkl

Revisions (0)

No revisions yet.