Install LPM CLI
LPM CLI is a native Rust executable. You can install it with npm, Homebrew, or a standalone installer. Each channel installs the same lpm command.
npm
npm install -g @lpm-registry/cli
The npm package lists one native package for each platform in optionalDependencies. npm installs only the package for your platform. During installation, the npm package runs the executable and compares its version. This channel needs Node.js 18 or later. LPM CLI itself is a native executable.
Do not turn off optional dependencies. With an option such as --omit=optional, npm does not install the platform binary.
To run LPM CLI once without a global install, use npx:
npx --package @lpm-registry/cli@latest lpm --version
Homebrew
brew tap lpm-dev/lpm
brew install lpm
The Homebrew formula works on macOS and Linux. Each LPM CLI release updates the formula.
Standalone installer
curl -fsSL https://cli.lpm.dev/install | sh
If a macOS or Linux machine has no Node.js, use the standalone installer. For example, use it in a CI runner or a container image without Node.js. The standalone installer does not support Windows. On Windows, use npm.
Supported prebuilt platforms
| Operating system | Architecture | npm platform package |
|---|---|---|
| macOS | Apple Silicon | darwin-arm64 |
| macOS | Intel | darwin-x64 |
| Linux, glibc | x86_64 | linux-x64 |
| Linux, musl | x86_64 | linux-x64-musl |
| Linux, glibc | ARM64 | linux-arm64 |
| Windows | x86_64 | win32-x64 |
Test the installation
lpm --version
lpm doctor
lpm doctor checks the local project and the development environment. It does not use the network. It skips the LPM.dev Registry, authentication, tunnel, and other extended checks.
After you sign in, run every check:
lpm login
lpm doctor --all
lpm doctor --all also checks that LPM.dev Registry responds and that it accepts your credential.
Update LPM CLI
lpm self-update
lpm self-update finds the channel that installed LPM CLI and updates through that channel. You can also update through the channel yourself:
npm install -g @lpm-registry/cli@latest
brew upgrade lpm
The LPM CLI installation guide covers installation details, checksum and signature checks, shell configuration, platform notes, and uninstallation.
Continue
- Authentication shows how to sign in and how to choose a local or CI credential.
- Publishing shows how to prepare and publish a package to LPM.dev Registry.
- LPM CLI documentation covers package installs, registry routing, lockfiles, workspaces, and the command reference.