pkl: add page (#18024)

* Add Pkl CLI documentation

New TLDR proposed page for the Pkl CLI, an embedded configuration language with rich support for validation and tooling.

* Apply suggestion from @TheRootDaemon

Co-authored-by: Harshavardhan <harshath3018@gmail.com>

* Improve clarity in Pkl CLI documentation

Updated markdown formatting for Pkl command line interface documentation.

* Revise Pkl documentation for clarity

* Update pages/common/pkl.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

* Update pages/common/pkl.md

Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>

---------

Co-authored-by: Harshavardhan <harshath3018@gmail.com>
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
Samuel Breton
2025-09-12 00:07:35 -04:00
committed by GitHub
parent de6367dacf
commit e2b2df3aa6
+28
View File
@@ -0,0 +1,28 @@
# pkl
> Manages, evaluates, and tests 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 standard input/output:
`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}}`