New:Socket for Asana Is Now Available.Learn more
Get Started

asyq

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asyq

Generate .env.example from your project's env usage

latest
Source
npmnpm
Version
8.3.5
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Asyq CLI — Environment Variable Scanner & .env Generator with AI

Read the Full Documentation (Wiki)

Automatically generate .env.example files by scanning your codebase for environment variable usage.

asyqcli.gif

Stop letting your environment templates fall out of sync.
Asyq scans your source code to detect variable usage and automatically generates a complete .env.example file—ensuring your team never struggles with missing configuration keys again.

Installation

npm install -D asyq
# or
pnpm add -D asyq
# or
yarn add -D asyq

Usage

npx asyq init

Choose between two modes:

  • Default - Fast generation with variable names only
  • AI-assisted - Adds descriptions and example values (requires OpenAI API key)

Commands

CommandDescription
npx asyq initInteractive setup
npx asyq init --forceOverwrite existing files
npx asyq init --monorepoGenerate for each workspace
npx asyq init --debugShow scan diagnostics

Options

OptionDescription
--root <dir>Project root to scan (default: .)
--out <file>Output filename (default: .env.example)
--forceOverwrite without confirmation
--include-lowercaseInclude mixed-case variables
--debugPrint detailed diagnostics
--monorepoGenerate for root + workspaces

Examples

# Basic usage
npx asyq init

# Force overwrite
npx asyq init --force

# Monorepo project
npx asyq init --monorepo

# Custom output
npx asyq init --out .env.template

# Scan specific directory
npx asyq init --root ./packages/api

Set your OpenAI API key:

export OPENAI_API_KEY=sk-...
npx asyq init

Or enter it when prompted (not saved to disk).

Keywords

env

FAQs

Package last updated on 06 Jan 2026

Related posts