Skip to main content
Deno 2 is finally here 🎉️
Learn more

deno-envconf

An interactive command line interface for setting up and syncing env files based on a template.

Usage

Requirements

# create or sync environment variable files from template
deno run --allow-read --allow-write --allow-env https://deno.land/x/envconf/src/mod.ts

Configuration

# create a new config file
deno run --allow-read --allow-write --allow-env https://deno.land/x/envconf/src/mod.ts init
Field Type Description
template string Template env file to create from. This can contain default values, which will be copied on create as-is
output string The resulting output env file
allow-empty string[] | undefined Environment variable keys that can be empty. When creating a new env file from the template, it will populate it as empty.
force-prompt-on-create string[] | undefined Keys that are forced to be prompted for on creation, regardless of if it’s pre-filled or not.

Note: To specify multiple configurations, copy the entire [[file]] section Note: template and output is relative to the configuration file

Development

deno task dev