Docs menuQuick start

Get started with LPM.dev Registry

Install LPM CLI, sign in, and publish a private package. Moving a package to the Pool or the Marketplace, or making it Free on a Pro or Organization plan, is a separate choice after the first publish.

1. Install LPM CLI

npm install -g @lpm-registry/cli

You can also install LPM CLI with Homebrew or the standalone installer. Installation lists every channel and supported platform.

2. Sign in

lpm login
lpm whoami

lpm login opens a browser to sign in. LPM CLI stores the LPM.dev Registry session in the operating-system keychain, or in an encrypted file if no keychain is available. LPM CLI uses this session directly. You do not need a project .npmrc to publish or install with LPM CLI.

3. Prepare a package

JavaScript

LPM.dev Registry package names use @lpm.dev/<owner>.<package>:

{
  "name": "@lpm.dev/your-username.my-utils",
  "version": "1.0.0",
  "description": "Small utilities shared across my projects"
}

The owner must be your LPM.dev username or an organization where you can publish.

Swift

A Swift package needs two files at the project root. Package.swift describes the Swift package. package.json gives the LPM.dev Registry name and version:

{
  "name": "@lpm.dev/your-username.my-swift-library",
  "version": "1.0.0"
}

LPM CLI detects Package.swift, reads the manifest with Swift Package Manager, and publishes the package as Swift.

4. Publish the package

lpm publish --check
lpm publish

lpm publish --check packs the package, validates it, scans it for secrets, and computes the quality score. It does not upload anything. lpm publish then uploads the package. LPM.dev Registry validates its ownership, version, manifest, storage, and distribution.

New packages are private. Only you, or the members of the owning organization, can access a private package. After the publish, the package page is at:

https://lpm.dev/your-username.my-utils

Pool and Marketplace packages also go through a publication review. An upload to such a package enters the review. A version becomes public only after the review approves it.

5. Install the package

In another project, run this command:

lpm install @lpm.dev/your-username.my-utils

Use the same command for a Swift dependency. LPM CLI adds the dependency to Package.swift, or to the Xcode project if there is no Package.swift. It configures the lpmdev Swift Package Manager registry scope when needed and resolves the dependency.

If a JavaScript project must also work with npm, pnpm, or Yarn 1, create a read-only .npmrc token:

lpm setup local

Authentication explains how the LPM CLI session and .npmrc tokens differ. It also shows the hand-written .npmrc that Bun needs.

Test the setup

lpm doctor
lpm doctor --all

lpm doctor runs the fast checks of local health. lpm doctor --all runs every check, which includes LPM.dev Registry connectivity and authentication.

Continue

  • Installation covers installation channels, supported platforms, updates, and verification.
  • Authentication covers LPM CLI sessions, .npmrc tokens, CI credentials, and sign-out.
  • Publishing covers package identity, publish checks, limits, and public-package review.
  • LPM CLI documentation is the reference for commands, configuration, installs, lockfiles, and workspaces.