{"name":"pkgx: Run Anything, Any Version, Anywhere with Ease","description":"pkgx is a lightweight, standalone binary that empowers developers to run any command or tool without traditional installation, keeping their system clean and unpolluted. It provides effortless execution of specific software versions across macOS, Linux, and Windows, making it an ideal solution for managing project dependencies and accessing a vast ecosystem of tools.","github":"https://github.com/pkgxdev/pkgx","url":"https://osrepos.com/repo/pkgxdev-pkgx","source":"osrepos.com","sourceDescription":"This repository profile is provided by osrepos.com, an open source repository discovery platform.","repositoryProfile":"https://osrepos.com/repo/pkgxdev-pkgx","generatedFor":"open source discovery and AI-assisted research","markdown":"https://osrepos.com/repo/pkgxdev-pkgx.md","json":"https://osrepos.com/repo/pkgxdev-pkgx.json","topics":["environment-manager","package-manager","package-runner","Rust","developer-tools","cli","devops"],"keywords":["environment-manager","package-manager","package-runner","Rust","developer-tools","cli","devops"],"stars":null,"summary":"pkgx is a lightweight, standalone binary that empowers developers to run any command or tool without traditional installation, keeping their system clean and unpolluted. It provides effortless execution of specific software versions across macOS, Linux, and Windows, making it an ideal solution for managing project dependencies and accessing a vast ecosystem of tools.","content":"## Introduction\n\npkgx is a powerful, 4 MiB standalone binary built in Rust that allows you to run virtually any command or tool without needing to install it globally on your system. Its core philosophy is to provide tools that \"just work,\" enabling developers to focus on building rather than worrying about dependency management and system pollution.\n\nWith pkgx, you can:\n\n*   **Run Anything**: Execute commands like `deno` even if they're not installed.\n*   **Run Any Version**: Easily specify and run different versions of tools, such as `node@14` or `python@2`.\n*   **Run Anywhere**: It supports macOS, Linux, Windows, Docker, and integrates seamlessly into CI/CD pipelines and scripts.\n\nThis approach ensures your wider system remains untouched, as tools are downloaded to `~/.pkgx` rather than being globally installed.\n\n## Installation\n\nGetting started with pkgx is straightforward. Choose the method that suits your operating system:\n\n**macOS / Linux:**\n\nsh\nbrew install pkgx || curl https://pkgx.sh | sh\n\n\n**Windows 10+:**\n\npwsh\nirm https://pkgx.sh | iex\n\n\nFor more detailed installation options, including installing without Homebrew, refer to the [official documentation](https://docs.pkgx.sh/installing-w/out-brew).\n\n## Examples\n\nExperience the simplicity of pkgx with these quick examples:\n\n**Running a command not installed on your system:**\n\nsh\n$ deno\ncommand not found: deno\n\n$ pkgx deno\nDeno 2.1.4\n> ^D\n\n$ deno\ncommand not found: deno\n# ^^ nothing was installed; your wider system is untouched\n\n\n**Running specific versions of tools:**\n\nsh\n$ pkgx node@14 --version\nNode.js v14.21.3\n\n$ pkgx python@2 --version\nPython 2.7.18\n\n\n## Why Use pkgx\n\npkgx offers significant advantages for developers and teams:\n\n*   **Clean System**: Tools are run on demand and cached locally, but never globally installed, preventing system clutter and conflicts.\n*   **Effortless Version Management**: Switch between tool versions instantly without complex environment setups.\n*   **Cross-Platform Compatibility**: Consistent behavior across macOS, Linux, and Windows, including WSL2 and Docker environments.\n*   **CI/CD Integration**: Easily incorporate specific tool versions into your continuous integration and deployment workflows.\n*   **Powerful Scripting**: Enhance your shell scripts by declaring dependencies directly in the shebang, ensuring all necessary tools are available.\n*   **Ecosystem Tools**: pkgx is part of a broader ecosystem including:\n    *   [`dev`](https://github.com/pkgxdev/dev): Creates virtual environments for projects, automatically determining and utilizing dependencies.\n    *   [`pkgm`](https://github.com/pkgxdev/pkgm): Installs pkgx packages to `/usr/local` for more permanent integration when needed.\n    *   [`pkgo`](https://github.com/pkgxdev/pkgo): Simplifies the setup of complex open-source projects with tedious installation instructions.\n*   **Recursive Run**: Easily execute tools from other language ecosystems, such as Python (via `uvx`) or JavaScript (via `bunx`), directly through pkgx.\n\n## Links\n\n*   **GitHub Repository**: [pkgxdev/pkgx](https://github.com/pkgxdev/pkgx)\n*   **Official Documentation**: [docs.pkgx.sh](https://docs.pkgx.sh)\n*   **Package Listing**: [pkgx.dev/pkgs](https://pkgx.dev/pkgs)\n*   **Discord Community**: [Join the Discord](https://discord.gg/rNwNUY83XS)","metrics":{"detailViews":3,"githubClicks":3},"dates":{"published":null,"modified":"2026-01-19T00:00:31.000Z"}}