LPM CLI
LPM CLI is a native package manager and development toolkit. It installs packages from npm, private npm-compatible registries, JSR, and LPM.dev Registry.
lpm install
In an existing JavaScript project, this command reads package.json and resolves each dependency from its configured registry. Then it creates the project lockfile and install layout.
Install LPM CLI
npm install -g @lpm-registry/cli
LPM CLI also installs through Homebrew or a standalone installer. See Install LPM CLI for supported platforms and verification steps.
Use LPM.dev Registry
Before you publish, install private packages, or use another hosted LPM.dev Registry feature, sign in:
lpm login
lpm install @lpm.dev/acme.private-utils
LPM CLI recognizes @lpm.dev/* as the LPM.dev Registry scope. Public npm packages still come from npm. Scopes mapped in .npmrc still use their configured registries.
Publish the current package to LPM.dev Registry:
lpm publish
Every new LPM.dev Registry package starts private. Its owner can later choose Free, Pool, or Marketplace distribution in the package settings.
Hosted workflows
LPM CLI is the command-line entry point for these LPM.dev Registry workflows:
| Workflow | What LPM CLI does |
|---|---|
| Accounts and packages | Signs in, publishes packages, installs licensed versions, and shows package metadata. |
| Pool and Marketplace | Installs packages that a Pool subscription or a Marketplace license covers. Shows Pool revenue to authors. |
| Environments | Keeps secrets encrypted on your machine. Can sync them through LPM.dev Registry. |
| Tunnels | Exposes a local service through the hosted tunnel relay and shows the requests it receives. |
| Swift packages | Configures Swift Package Manager for packages published to LPM.dev Registry. |
See Registry workflows for the commands of each workflow.
LPM.dev docs and CLI docs
These docs explain LPM.dev Registry accounts, publishing, distribution, billing, organizations, environments, and tunnels.
The complete LPM CLI documentation is at cli.lpm.dev. Use it for these topics:
- npm and private-registry compatibility
- installation and dependency resolution
- lockfiles, workspaces, and
node_moduleslayouts - lifecycle scripts and the package store
- the development server, runners, and local tools
- every command, flag, configuration file, and environment variable
The LPM CLI registry guide shows how one project uses npm, LPM.dev Registry, and private registries together.