Summary
When the user runs envilder without --map, the CLI should automatically look for envilder.json in the current working directory. Similarly, --envfile should default to .env.
This enables the zero-config experience:
# Before (explicit paths required)
envilder --map=envilder.json --envfile=.env
# After (convention-based defaults)
envilder
Behavior
- If
--map is not provided → look for envilder.json in cwd
- If
envilder.json does not exist → clear error: No map file found. Provide --map or create envilder.json in the current directory.
- If
--envfile is not provided → default to .env
Context
Follows from #216 (naming convention) and future SchemaStore integration (#222). Once envilder.json is the recognized standard name, the CLI should leverage it as the default.
Acceptance Criteria
Summary
When the user runs
envilderwithout--map, the CLI should automatically look forenvilder.jsonin the current working directory. Similarly,--envfileshould default to.env.This enables the zero-config experience:
Behavior
--mapis not provided → look forenvilder.jsonincwdenvilder.jsondoes not exist → clear error:No map file found. Provide --map or create envilder.json in the current directory.--envfileis not provided → default to.envContext
Follows from #216 (naming convention) and future SchemaStore integration (#222). Once
envilder.jsonis the recognized standard name, the CLI should leverage it as the default.Acceptance Criteria
envilderwith no args findsenvilder.jsonand generates.envenvilder --pushwith no--mapfindsenvilder.jsonenvilder.jsonexists and--mapis omitted--mapflag still overrides the default--mapdocs/pull-command.mdanddocs/push-command.mdto document the new defaultsREADME.mdusage examples to show the zero-config experiencegithub-action/README.mdif applicableGetStarted,HowItWorks) to reflect simpler commands