πŸ›‘οΈ EnvShield

From Local Chaos to
Environment Governance.

EnvShield is a security-first CLI that brings professional governance to your local development lifecycle. Define your environment as a schema, eliminate drift, and prevent secret leaks before they happen.

Read the Docs
pip install envshield
EnvShield automatically blocking a git commit containing a secret API key

Treat Your Environment Like Code.

Secret leaks and configuration bugs happen because `.env` files are an afterthought. EnvShield makes them a core, governed part of your project with a single source of truth: the `env.schema.toml` file.

πŸ“ Define Your Contract

Explicitly define every environment variable your project needs in a simple, version-controlled schema. No more guessing what `API_KEY` is for.

πŸ”„ Automate Documentation

Say goodbye to outdated `.env.example` files. `envshield schema sync` generates a perfect, commented example file directly from your schema, every time.

βœ… Enforce Consistency

`envshield check` and `envshield scan` ensure that every local setup and every line of code adheres to the contract, eliminating drift and "shadow" variables.

A Secure Foundation, From First Commit to Production

EnvShield transforms your most painful workflows into a secure, automated process.

πŸ—οΈ Bootstrap a Secure Project in Seconds

Run `envshield init` in a new or existing project. EnvShield intelligently detects your framework (Next.js, Django, Flask) and scaffolds a complete, best-practice foundation: a schema, a `.gitignore` update, and an automated security hook, all in one command.

envshield init
EnvShield initializing a new project

A Complete Governance Toolkit

All the commands you need to enforce a secure and consistent local workflow.

πŸ—οΈ `init` - The Architect

Scaffolds a new project with a schema, config, and security hook in one command.

🚚 `import` - The Migrator

Intelligently converts a messy, existing `.env` file into a clean `env.schema.toml` in seconds.

πŸ’ͺ `scan` - The Bodyguard

Scans for hardcoded secrets and undeclared variables used in your code, preventing leaks.

πŸ“š `schema sync` - The Librarian

Auto-generates a perfect `.env.example` from your schema, keeping documentation in sync.

πŸͺ„ `setup` - The Assistant

An interactive wizard to help new developers create their local `.env` file in minutes.

βœ… `check` - The Validator

Validates your local `.env` file against the schema, catching typos and missing variables.

🩺 `doctor` - The Medic

Runs a full health check on your setup and provides interactive fixes with the `--fix` flag.

Why EnvShield?

A scanner is a smoke detector. A cloud vault is a bank. EnvShield is the fireproof, self-organizing house you should have been living in all along.

Developer Pain Point πŸ›‘οΈ EnvShield TruffleHog / Gitleaks Doppler / Infisical
Preventing Secret Commits βœ… Built-in Hook βœ… Core Feature ❌ Indirectly
Migrating Existing Projects βœ… `import` command ❌ Not Addressed ❌ Not Addressed
New Developer Setup βœ… `setup` command ❌ Not Addressed βœ… Via Cloud
Handling Config Drift βœ… Solved via Schema ❌ Not Addressed βœ… Solved via Cloud
Primary Focus Complete Local Workflow Secret Detection Engine Cloud-Based Secret Vault

Works With Your Stack

Python Node.js Next.js Django Flask

The Future is Collaborative & Automated

Phase 1 is the free, powerful "Local Guardian." Upcoming paid tiers will turn EnvShield into a complete collaboration and automation platform for teams and enterprises.

Phase 2: The Team Collaborator

  • `envshield use`: Instantly switch between `dev`, `staging`, etc.
  • `envshield onboard`: Run setup scripts for a true one-command setup.
  • `envshield share`: Securely share secrets with teammates.

Phase 3: The Enterprise System

  • Central Secret Vault: A fully managed, encrypted cloud backend.
  • `envshield pull/push`: Sync secrets directly with the cloud.
  • `envshield export`: Securely inject secrets into CI/CD pipelines.
  • Audit Logs & RBAC: Full compliance and access control.