GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - flexstack/envtpl: A CLI tool for generating .env files from .env.template files via prompt

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
pkg/nanoid
pkg/nanoid
 
 
testdata
testdata
 
 
.gitignore
.gitignore
 
 
.goreleaser.yaml
.goreleaser.yaml
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 
install
install
 
 
main.go
main.go
 
 

Repository files navigation

envtpl

A CLI tool for generating .env files from .env.template files via prompts and random values.

Installation

Using curl:

curl -sfL https://raw.githubusercontent.com/flexstack/envtpl/main/install | bash

Using go install:

go install github.com/flexstack/envtpl

Usage

envtpl [template-file] -o [output-file]

Supported types

# .env.template
UUID=<uuid>
PASSWORD=<alpha:24>
ENCRYPTION_KEY=<ascii85:32>
ENCRYPTION_IV=<base64:16>
ENCRYPTION_SALT=<hex:16>
PORT=<int:1024-65535>
ENUM=<enum:development,production>
PROMPT=<text:Enter your name>
SECRET_PROMPT=<password:Enter your password>
PROMPT_2= # Empty values elicit a prompt
Type Description Example
alpha Random alphanumeric characters PASSWORD=<alpha:24>
ascii85 Random ASCII characters ENCRYPTION_KEY=<ascii85:32>
base64 Random base64 characters ENCRYPTION_IV=<base64:16>
hex Random hexadecimal characters ENCRYPTION_SALT=<hex:16>
uuid Random UUIDv4 UUID=<uuid>
enum Enumerated list of values ENUM=<enum:development,production>
int Random integer PORT=<int:1024-65535>
text Prompt user for text input PROMPT1=<text:Enter your name>
password Prompt user for secret input SECRET_PROMPT=<password:Enter your API key>

About

A CLI tool for generating .env files from .env.template files via prompt

Topics

dotenvdotenv-clidotenv-editordotenv-template

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.