Registry workflows
This page lists the LPM CLI commands that use LPM.dev Registry services. For every command and flag, see cli.lpm.dev/docs/commands.
Sign in and out
lpm login
lpm whoami
lpm logout
lpm login opens a browser. Before the browser authorizes the device, it asks for a fresh passkey, authenticator, or password check. An account without any of these must instead have signed in during the last five minutes. The check is bound to the current browser session and this login request. It works only once.
LPM CLI stores the session in the operating system keychain. If no keychain is available, it uses an encrypted file. lpm whoami shows the active account and plan.
By default, lpm logout clears only the session that is stored on this machine. It does not revoke anything on LPM.dev Registry.
To also revoke the CLI session and every browser paired with the secrets dashboard, add --revoke:
lpm logout --revoke
If a revocation request fails, LPM CLI still clears the local session. Then it reports the failure and exits with an error.
To replace the current token with a new one and revoke the old one, run:
lpm token-rotate
See LPM CLI authentication and token rotation.
Connect npm-compatible tools
LPM CLI uses its stored session directly. If npm, pnpm, Yarn 1, or another npm-compatible tool also needs @lpm.dev/* packages, generate a project .npmrc.
For local development:
lpm setup local
lpm setup local --days 7
lpm setup local creates a read-only token, writes the scoped registry configuration, and adds .npmrc to .gitignore. The token is valid for 30 days unless --days sets another value from 1 to 90.
For CI:
lpm setup ci npmrc
lpm setup ci npmrc --oidc
lpm setup ci github-actions
lpm setup ci gitlab
lpm setup ci npmrc writes the scoped registry configuration with a literal token. With --oidc, the token comes from an OIDC exchange in the CI job. The github-actions and gitlab targets print a starter workflow that runs lpm env pull --oidc. They do not write .npmrc.
See CLI configuration and the canonical lpm setup reference.
Publish and install packages
lpm publish
lpm install @lpm.dev/acme.private-utils
lpm publish targets LPM.dev Registry by default. LPM.dev Registry stores each new version as private first. If the package uses Free, Pool, or Marketplace distribution, the version then enters publication review.
lpm install selects the registry for each package. It sends @lpm.dev/* packages to LPM.dev Registry. Public npm packages and scopes mapped in .npmrc use their own registries.
lpm uninstall @lpm.dev/acme.private-utils
To remove a dependency, use lpm uninstall. lpm remove is a different command. It reverses lpm add, which copies the source files of a package into your project.
For a source-delivered package:
lpm add @lpm.dev/acme.login-form
lpm remove @lpm.dev/acme.login-form
See the LPM CLI references for lpm publish, lpm install, lpm uninstall, lpm add, and lpm remove.
Find package information
lpm search @lpm.dev/design
lpm info @lpm.dev/acme.design-system
lpm quality @lpm.dev/acme.design-system
To search LPM.dev Registry, start the query with @lpm.dev/. Other queries follow the .npmrc routing of the project to npm or a private registry.
lpm info shows the metadata of a published package. lpm quality shows the quality report for the latest version of an LPM.dev Registry package.
See lpm search, lpm info, and lpm quality.
Pool and Marketplace access
lpm pool
lpm pool shows an author the weighted downloads and estimated Pool earnings of the current month. Distribution changes and Marketplace purchases happen on lpm.dev. After a consumer has access, they install the package with lpm install.
See Pool, Marketplace, and the lpm pool reference.
Environments
lpm env set DATABASE_URL=postgres://...
lpm env push
lpm env pull
LPM CLI keeps secrets encrypted on your machine. lpm env push and lpm env pull sync them, still encrypted, through LPM.dev Registry. Organization sharing, platform delivery, and CI OIDC use the same lpm env commands.
See Environments for the hosted service and the LPM CLI environment reference for every command and flag.
Tunnels
lpm dev --tunnel
lpm tunnel 3000
lpm tunnel 3000 acme-api.lpm.llc
To start a development server and a tunnel together, run lpm dev --tunnel. To expose a local service that already runs, pass its port to lpm tunnel. Before you use a stable domain, claim it with lpm tunnel claim.
See Tunnels for the hosted service and the LPM CLI tunnel reference for command details.
Swift Package Registry
lpm swift-registry
lpm install @lpm.dev/acme.swift-logger
lpm swift-registry configures the Swift Package Manager registry scope, authentication, and signing trust for LPM.dev Registry. If a Swift project is not configured yet, lpm install runs this setup automatically.
See Swift Package Registry and the lpm swift-registry reference.
Agent Skills and MCP
lpm skills list
lpm skills install
lpm mcp setup
Packages can publish Agent Skills with their code. LPM CLI can install and manage those skills. lpm mcp setup adds the LPM.dev Registry MCP server to the editor configurations that already exist on your machine.
See Agent Skills, MCP Server, and the LPM CLI skills reference.
Complete CLI reference
LPM CLI also has npm-compatible package management, workspaces, lockfiles, and security tools. Its local tools include a development server, task and test runners, local HTTPS, dependency graphs, and plugins.
cli.lpm.dev documents those features. cli.lpm.dev/docs/commands lists every command on one page.