Skip to content

Targets

Targets are optional sinks. Source of truth stays in your primary store.

Targets live in .lazyenv/config.json:

{
"targets": [
{
"kind": "github",
"name": "ci",
"repo": "owner/repo",
"secrets": ["DOPPLER_TOKEN"]
},
{
"kind": "store",
"name": "child-api",
"store": "infisical",
"projectId": "child-project-id",
"environment": "dev",
"secretPath": "/api",
"secrets": ["JWT_SECRET", "DATABASE_URL"]
}
]
}
Terminal window
# Run all targets after sync
lazyenv sync --targets
# Run specific targets after sync
lazyenv sync --target ci
# Run target directly
lazyenv targets run child-api --env dev