CLI Overview
The lazyenv CLI manages secrets using a pluggable store (Infisical, Doppler, Bitwarden, 1Password).
Start here:
- CLI Options for shared flags and how lazyenv resolves store/project/env
- CLI Commands for every command in one file
- Shell Completions to enable
TABcompletion
Common options
Section titled “Common options”See CLI Options for how lazyenv resolves store/project/env and the shared flags.
Usage patterns
Section titled “Usage patterns”Interactive Mode
Section titled “Interactive Mode”Commands prompt for input when needed:
lazyenv init# Prompts for store + project
lazyenv sync# Prompts for each secret valueNon‑interactive mode
Section titled “Non‑interactive mode”Use flags to skip prompts (ideal for CI/CD):
lazyenv init --store <store> --project my-app --create --yeslazyenv sync --env prod --yeslazyenv add API_KEY "value" --yesEnvironment‑specific
Section titled “Environment‑specific”Target specific environments:
lazyenv sync --env staginglazyenv pull --env prodlazyenv run --env dev npm startFolder‑specific (monorepos)
Section titled “Folder‑specific (monorepos)”Work with specific workspace folders:
lazyenv sync --folder apps/weblazyenv pull --folder apps/apilazyenv list --folder packages/sharedAuto‑detection
Section titled “Auto‑detection”lazyenv automatically detects:
- Current workspace folder from your working directory
- Project ID from
.lazyenv/config.json - Available environments from config
JSON output
Section titled “JSON output”Many commands support JSON for scripting.
Command chaining
Section titled “Command chaining”Combine commands in CI/CD workflows:
lazyenv init --yes && lazyenv sync --yes && lazyenv pullGetting Help
Section titled “Getting Help”View help for any command:
lazyenv --help # List all commandslazyenv init --help # Help for init commandlazyenv sync --help # Help for sync command