# Install pkl with Homebrew, MacPorts, Nix, winget

CLI for the Pkl programming language. Version 0.31.1 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:pkl
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install pkl
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install pkl
```

  Evidence: MacPorts ports tree: lang/pkl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#pkl
```

  Evidence: nixpkgs package indexes: pkgs/by-name/pk/pkl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id Apple.Pkl -e
```

  Evidence: Windows Package Manager source index: Apple.Pkl from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:pkl
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/pkl>
- **Version:** 0.31.1
- **Source summary:** CLI for the Pkl programming language
- **Homepage:** <https://pkl-lang.org>
- **Repository:** <https://github.com/apple/pkl>
- **Upstream docs:** <https://pkl-lang.org/main/current>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/apple/pkl/archive/refs/tags/0.31.1.tar.gz>
- **Last updated:** 2026-06-22T14:05:55-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- pkl (cli)
- pkl (alias)

## Build dependencies

- gradle
- openjdk@21

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.31.1
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/apple/pkl
- Upstream latest detected: 0.31.1 (current)

## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: PklProject, PklProject.deps.json, ~/.pkl/settings.pkl
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** pkl
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - pkl: normalized package name match | nixpkgs package indexes: pkgs/by-name/pk/pkl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - pkl: normalized package name match | MacPorts ports tree: lang/pkl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - Apple.Pkl: normalized package name match | Windows Package Manager source index: Apple.Pkl from https://cdn.winget.microsoft.com/cache/source.msix


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [gradle](https://www.automicvault.com/pkg/brew/gradle/) - Build dependency declared by Homebrew.
- [openjdk@21](https://www.automicvault.com/pkg/brew/openjdk-21/) - Build dependency declared by Homebrew.
- [hk](https://www.automicvault.com/pkg/brew/hk/) - Popular package that depends on this formula.
- [go-jsonnet](https://www.automicvault.com/pkg/brew/go-jsonnet/) - Shares av.db curated category or tags: cli, configuration, configuration-language, developer-tools.
- [jrsonnet](https://www.automicvault.com/pkg/brew/jrsonnet/) - Shares av.db curated category or tags: cli, configuration, configuration-language, developer-tools.
- [jsonnet](https://www.automicvault.com/pkg/brew/jsonnet/) - Shares av.db curated category or tags: cli, configuration, configuration-language, developer-tools.
- [aiken](https://www.automicvault.com/pkg/brew/aiken/) - Shares av.db curated category or tags: cli, developer-tools, programming-language.
- [aliae](https://www.automicvault.com/pkg/brew/aliae/) - Shares av.db curated category or tags: cli, configuration, developer-tools.
- [butane](https://www.automicvault.com/pkg/brew/butane/) - Shares av.db curated category or tags: cli, configuration, developer-tools.
- [config-file-validator](https://www.automicvault.com/pkg/brew/config-file-validator/) - Shares av.db curated category or tags: cli, configuration, developer-tools.
- [configen](https://www.automicvault.com/pkg/brew/configen/) - Shares av.db curated category or tags: cli, configuration, developer-tools.
- [pkl-lsp](https://www.automicvault.com/pkg/brew/pkl-lsp/) - Package names and metadata indicate a similar tool family. Shared terms: cli, developer, developer-tools, language, pkl.

## Combined YAML source

View the package source record on GitHub. [combined/pkl.yml](https://github.com/automic-vault/db/blob/main/combined/pkl.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
