Quick Start
This guide gets lazyenv running in a repo with one or more .env.example files.
Prerequisites
Section titled “Prerequisites”- Node.js 20+
- lazyenv installed
- A supported secret store (Infisical, Doppler, Bitwarden, or 1Password)
Step 1: Set Auth Env Vars
Section titled “Step 1: Set Auth Env Vars”Export credentials for your chosen store:
# Infisicalexport INFISICAL_API_TOKEN="..."
# Dopplerexport DOPPLER_TOKEN="..."
# Bitwardenexport BITWARDEN_ACCESS_TOKEN="..."
# 1Passwordexport OP_SERVICE_ACCOUNT_TOKEN="..."Store‑specific setup lives under Stores.
Step 2: Initialize Your Project
Section titled “Step 2: Initialize Your Project”Run init and pick a store:
lazyenv init --store <infisical|doppler|bitwarden|onepassword>Interactive mode walks you through selecting (or creating) a project when supported by the store.
Step 3: Sync secrets
Section titled “Step 3: Sync secrets”Push keys from .env.example into your store:
lazyenv syncStep 4: Pull secrets locally
Section titled “Step 4: Pull secrets locally”Fetch secrets into .env files:
lazyenv pullStep 5: Run commands with secrets
Section titled “Step 5: Run commands with secrets”Execute commands with secrets injected as environment variables:
lazyenv run npm run devIf the store is unavailable, lazyenv run can fall back to local .env files.
What’s Next?
Section titled “What’s Next?”- Learn the model: Core Concepts
- Pick your store: Stores
- See commands: CLI Overview