mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 20:11:19 +08:00
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:
@@ -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}}`
|
||||
Reference in New Issue
Block a user