LPM CLI

Commands

Every LPM CLI 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 fetchDownload lockfile packages into the store without installing
lpm tidyFind unused dependency declarations and undeclared imports
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 versionBump package.json version, optionally commit and tag
lpm releasePlan, apply, and publish workspace releases in dependency order
lpm publish (p)Publish to LPM.dev Registry (or --npm / --github)
lpm stageStage, inspect, approve, or reject npm staged publishes
lpm upgradeUpgrade eligible LPM.dev Registry and npm dependencies, optionally scoped by package
lpm outdatedShow dependencies with newer versions available
lpm auditSecurity + quality audit, with direct-dependency fixes
lpm searchSearch npm, custom registries, or LPM.dev Registry by query route
lpm infoMetadata for a package from npm, custom registries, or LPM.dev Registry
lpm qualityQuality report for a package
lpm queryCSS-like selector queries on installed packages
lpm graph (ls)Dependency tree (--format dot, mermaid, json, stats, html)
lpm whyExplain why a package is installed
lpm rebuildRun or rerun dependency lifecycle scripts
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 licensesInventory dependency licenses and enforce compliance policy
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 <file> / lpm execRun JS/TS files directly, or run project-local binaries
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 plugin)
lpm packProject-local tsdown
lpm checkTypeScript (tsc --noEmit) / tsgo (managed engine)
lpm plugin listShow installed tools
lpm plugin outdatedCheck managed tool updates
lpm plugin updateUpdate managed 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 CLI-managed local-domain hosts-file entries
lpm portsDev-service port management

Workspaces and deployment

CommandWhat it does
lpm filterPreview the workspace set a --filter expression selects
lpm catalogInspect catalog declarations and resolved lockfile snapshots
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 policyList, diagnose, and test local install policy extensions
lpm store verifyVerify package store integrity
lpm cacheManage ephemeral caches and prune the global package store
lpm self-updateUpdate LPM CLI 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 ci npmrcGenerate .npmrc for CI/CD
lpm setup ci <platform>Print OIDC workflow snippets
lpm setup localRead-only .npmrc token for local development
lpm ciFrozen lockfile install for CI
lpm initCreate a new package manifest
lpm configCLI configuration
lpm securityTemporary approvals: unlock / lock / status / repair
lpm poolPool revenue stats
lpm skillsPackage-published and standalone AI agent skills
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 CLI 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 an explicitly configured plain-HTTP non-localhost registry; HTTPS redirects still cannot downgrade to HTTP