Skip to main content

Installation

This guide explains how to install dotenv-gad in your Node.js or TypeScript project.

Requirements

  • Node.js ≥ 18
  • npm, yarn, or pnpm

Install dotenv-gad using your preferred package manager:

npm install dotenv-gad

Verify Installation

After installation, verify that the package is available:

npx dotenv-gad --help

You should see the list of available CLI commands.

What's included

  • dotenv-gad — core library (loadEnv, EnvValidator, defineSchema, composeSchema)
  • dotenv-gad/vite — Vite plugin for build-time validation and client-safe env filtering
  • dotenv-gad/client — typed client entry point for Vite projects
  • CLI (npx dotenv-gad) — check, sync, types, init, fix, docs commands