LPM-cli

Commands

Every LPM command on one page, grouped by category.

A flat reference of every top-level command. Each row links to the command's detail page; aliases are noted in parentheses.

Package management

CommandWhat it does
lpm install (i)Install dependencies from package.json, or add new ones
lpm addSource delivery — copy package source into your project (any registry)
lpm remove (rm)Remove a package previously brought in via lpm add
lpm uninstall (un, unlink)Remove from dependencies and node_modules
lpm publish (p)Publish to lpm.dev (or --npm / --github)
lpm stageStage, inspect, approve, or reject npm staged publishes
lpm upgradeUpgrade eligible LPM and npm dependencies
lpm outdatedShow dependencies with newer versions available
lpm auditSecurity + quality audit, with direct-dependency fixes
lpm searchSearch npm, custom registries, or lpm.dev by query route
lpm infoMetadata for a package from npm, custom registries, or lpm.dev
lpm qualityQuality report for a package
lpm queryCSS-like selector queries on installed packages
lpm rebuildRun lifecycle scripts (second step of install)
lpm approve-scriptsApprove packages blocked by the default-deny script policy
lpm trustManage trustedDependencies in package.json
lpm patchGenerate a local patch (patch-package style)
lpm patch-commitFinalize a patch staging directory
lpm patch-removeRemove registered local patches
lpm sbomExport a CycloneDX or SPDX Software Bill of Materials
lpm migrateMigrate from npm / yarn / pnpm / bun

Scripts and execution

CommandWhat it does
lpm runRun scripts (parallel -p, cached, --watch)
lpm devZero-config dev server with HTTPS, tunnel, and orchestration
lpm execRun a JS/TS file directly (no transpile step)
lpm dlx (lpx)Run a package without installing it
lpm testAuto-detect and run the project's test runner
lpm benchAuto-detect and run the project's benchmark runner

Built-in tools and managed engines

CommandBacked by
lpm lintOxlint
lpm fmtBiome
lpm bundleRolldown (managed engine)
lpm packProject-local tsdown
lpm checkTypeScript (tsc --noEmit) / tsgo (managed engine)
lpm plugin listShow installed tools
lpm plugin updateUpdate tools

Runtime and environment

CommandWhat it does
lpm useInstall and pin managed Node.js or Bun versions
lpm envPer-project secrets — set / get / list / push / pull / pair / OIDC, with end-to-end-encrypted cloud sync
lpm globalManage globally-installed CLIs (~/.lpm/global/)

Dev infrastructure

CommandWhat it does
lpm tunnelExpose localhost; claim domains; inspect & replay webhooks
lpm certLocal HTTPS certificate management
lpm proxyInspect and run the local-domain proxy daemon
lpm hostsRemove LPM-managed local-domain hosts-file entries
lpm graphDependency tree (--format dot, mermaid, json, stats, html)
lpm portsDev-service port management

Workspaces and deployment

CommandWhat it does
lpm filterPreview the workspace set a --filter expression selects
lpm deployMaterialize a member's deploy closure for COPY --from=pruned

Project health

CommandWhat it does
lpm doctorProject + environment health check (--fix to auto-repair)
lpm healthCheck registry health
lpm store verifyVerify package store integrity
lpm cacheManage ephemeral caches and prune the global package store
lpm self-updateUpdate LPM to the latest version
lpm completionsEmit a shell completion script (bash, zsh, fish, powershell, elvish)
lpm schema <kind>Emit the JSON Schema for a config file (lpm.json or lpm.config.json)

Debug and inspection

CommandWhat it does
lpm downloadDownload and extract a tarball (no install side-effects)
lpm resolvePrint a resolved dependency tree without installing

Auth and config

CommandWhat it does
lpm login (l)Authenticate against a registry
lpm logout (lo)Clear stored auth state
lpm whoamiShow the current user
lpm token-rotateRotate your auth token
lpm setup ciGenerate .npmrc for CI/CD
lpm setup localRead-only .npmrc token for local development
lpm ciCI/CD helpers (env, OIDC, workflow YAML)
lpm initCreate a new package
lpm configCLI configuration
lpm securityTemporary approvals: unlock / lock / status / repair
lpm poolPool revenue stats
lpm skillsAI agent skills (install, list, …)
lpm swift-registryConfigure SPM integration (SE-0292)
lpm mcp setupConfigure MCP server for AI editors

Global flags

These work on every command:

FlagEffect
-V, -v, --versionPrint the LPM version and exit
--token <TOKEN>Use a specific auth token instead of the stored one (env: LPM_TOKEN)
--registry <URL>Override the registry URL for this command (env: LPM_REGISTRY_URL)
--jsonEmit JSON output (for CI / scripting)
--verboseDebug logging
--insecureAllow plain HTTP to non-localhost registries