xenvsync

Integrations

Practical snippets to integrate xenvsync into common engineering stacks.

Node.js / Next.js

In-memory inject for dev serverbash
$ xenvsync run -- npm run dev
$ xenvsync run -- npm test

Python

Inject into Python appbash
$ xenvsync run -- python app.py
$ xenvsync run -- pytest

Docker Compose

Compose with injected envbash
$ xenvsync run -- docker compose up --build
Prefer in-memory injection for local workflows when possible to avoid writing plaintext .env files.

Kubernetes

Export to yaml and applybash
$ xenvsync export --format=yaml > secrets.yaml
$ kubectl apply -f secrets.yaml

Terraform

Generate tfvarsbash
$ xenvsync export --format=tfvars > secrets.auto.tfvars
$ terraform apply

CI/CD

For production pipelines, use the provider-specific recipes in CI/CD Recipes.

Keep decryption keys in CI secret stores and load them only at runtime for jobs that need secrets.