Run Anything

pkgx is a blazingly fast, standalone, cross‐platform binary that runs anything

It’s npx for everything else

$ bun run
command not found: bun

$ pkgx bun run
running `bun run`…

Bun: a fast JavaScript runtime, package manager, bundler and test runner.
# …
Run Any Version

node 16? python 2? postgres 12? nps.

$ pkgx node@16
Node.js v16.20.1
>
Zero System Impact

We don’t install packages. We cache them. Just like npx caches & executes node packages, pkgx caches everything else (including npx).

$ pkgx rustc --version
rustc 1.72.1

$ which rustc
command not found: rustc
# ^^ still not installed!
Whatever you want to run
Just type it

pkgx can optionally integrate with your shell giving it pkging powers.

When our investors ask why this is cool we just shrug and say “do you even dev?”.

$ deno
command not found: deno
^^ type `x` to run that

$ x
env +deno && deno

Deno 1.37.1
>
Or Just Install Stuff
$ pkgx install gh
installed ~/.local/bin/gh

Explore the docs

“Max Howell, the mind behind Homebrew, is shaking up the foundation of development once again with his new creation, pkgx

Run Anywhere

Wherever you work, pkgx works too.
macOS

  • >= 11
  • Intel and Apple Silicon

Linux

  • glibc >=2.28
  • x86_64 & arm64

Windows

  • WSL2
  • Native coming soon!

Docker

Sure you could memorize the weird naming conventions of apt.

But wouldn’t you rather just run?

FROM ubuntu
RUN curl https://pkgx.sh | sh
RUN pkgx python@3.12 -m http.server 8000
CI/CD
- uses: pkgxdev/setup@v1
- run: pkgx npm@10 start

Other CI/CD Providers

Editors

Just Works™ in VSCode? nps.

The Deets on That

Scripts

Isn’t it time you had more than just Bash and POSIX in your scripts?

We got you.

#!/usr/bin/env -S pkgx +gh +gum fish

if gum confirm "Are you sure you want to deploy?"
  gh release create v1.0.0
end

Explore the docs

The Foundation of your Toolset

The tools you need for work, where and when you need them.
$ cd myproj

myproj $ dev
found cargo.toml, package.json; env +cargo +npm

$ cargo build
Compiling myproj v0.1.0
# …
  • Charm
  • Node.js
  • OpenAI
  • Python
  • Rust
  • Deno
  • Go
  • PHP
All the tools you need for work? Check.
Developer Environments

Developer environments provide the tools you need when working in those directories. When you step away—so do they.

dev docs

Reading your Keyfiles

dev works by examining the keyfiles in your project root. If we see cargo.toml we know that means you want Rust. If we see pyproject.toml we know you want Python, but also we read the TOML to determine what package manager you want.

Constraining Your Dependencies

You can constrain your dependencies to a specific version, or a range of versions by adding YAML front matter to your project keyfiles.

Keyfile YAML Front Matter

Explore the docs

Trusted by 15k Engineers

And built by them too.
pkgx is open source through and through.
Packagers Who Care ❤️

We go the extra mile so you don’t have to.

  • Our git is configured to ignore .DS_Store files 😍
  • We configure package managers to install to ~/.local/bin (and ensure that’s in the PATH) unless they can write to /usr/local/bin
  • We codesign all our packages with both GPG and the platform code-signing engine
  • We automatically install great git extensions like git absorb when you type them
  • We configure other version managers like pyenv to automatically install the Pythons you ask for
  • We build new releases almost immediately
  • We add everything that people want without qualms. If people want it we want it too. We love open source.
“The UNIX Philosophy” is in our DNA

We study and preach it, worship and practice it. It’s 100% who we are and everything we believe in and pkgx is UNIX through and through.

Open Source is in our DNA too

Our founder, Max Howell, created Homebrew the package manager used by tens of millions of developers around the world. He understands how important community is to open source.

He built it before.

He’s building it again.

pkgx is a core contributor to the tea protocol

Learn More
©2024 PKGX INC. All Rights Reserved.