CLI Configuration
Automatic Setup
The easiest way to configure your environment:
lpm setup
This adds the @lpm.dev scope registry to your .npmrc file.
Manual .npmrc Configuration
If you prefer to configure manually:
@lpm.dev:registry=https://lpm.dev/api/registry
For authenticated access (CI/CD environments):
@lpm.dev:registry=https://lpm.dev/api/registry
//lpm.dev/api/registry/:_authToken=${LPM_TOKEN}
Place this in your project root or in ~/.npmrc for global configuration.
Environment Variables
| Variable | Description |
|---|---|
LPM_TOKEN | Auth token (overrides stored credentials) |
LPM_REGISTRY_URL | Override the default registry URL |
Managing Configuration
Use lpm config to view or update CLI settings:
lpm config
CI/CD
For automated environments, set LPM_TOKEN as a secret and run lpm setup before installing:
export LPM_TOKEN=$YOUR_SECRET
lpm setup
npm install
See CI/CD Integrations for complete examples with GitHub Actions, GitLab CI, and other providers.