beginner3 minutesevnx v0.2.0+

evnx init

Reference documentation for the evnx init command: modes, options, and project setup.

Prerequisites

evnx init — Command Reference

Initialize .env.example and .env files using Blank, Blueprint, or Architect modes with schema-driven variable generation.

Before you start


Command signature

Bash
evnx init [OPTIONS]

Options reference

FlagTypeDefaultDescription
--path, -pstring.Output directory for generated files
--yes, -yboolfalseSkip prompts, use defaults (non-interactive)
--verbose, -vboolfalseEnable detailed debug output
--help, -hboolfalseDisplay help information

Initialization modes

ModeTriggerBehaviorBest for
BlankInteractive → SelectCreates minimal .env templatesNew projects, manual config
BlueprintInteractive → Select / --yes defaultPre-configured stack (e.g., T3, FastAPI)Quick start with known stacks
ArchitectInteractive → SelectStep-by-step: language → framework → services → infraCustom stack composition

Exit codes

CodeMeaningUse case
0✅ Initialization completed successfullySuccess in scripts/CI
1🚨 Init failed (schema error, write failure)Fail pipeline on setup issues
2+⚠️ Runtime errors (IO, parsing, validation)Debug tooling or schema issues

Basic usage examples

Interactive setup (recommended)

Bash
# Launch mode selector with guided prompts
evnx init

Non-interactive default (Blueprint mode)

Bash
# Skip prompts, use first available blueprint
evnx init --yes

Custom output path

Bash
# Generate files in ./config directory
evnx init --path ./config --yes

Verbose debugging

Bash
# Show selection summary and resolution steps
evnx init -v

Combine flags for CI/CD

Bash
# Silent init with custom path for automation
evnx init --yes --path /app/config --verbose

Generated files

FilePurposeOverwrite behavior
.env.exampleTeam template with placeholders + docsAlways updated
.envLocal secrets (gitignored)Created only if missing
.gitignoreAuto-appends .env* patternsAppends if patterns missing

Environment variables

VariableValuesDefaultDescription
NO_COLOR1, truefalseDisable colored output for terminals
CI1, truefalseAuto-enable non-interactive defaults

See also