{"repo":"cuducos/createnv","free":true,"listed":false,"github":"https://github.com/cuducos/createnv","clone":"git clone https://github.com/cuducos/createnv.git","description":"🧞‍♀️Automagically creates .env files","language":"Rust","stars":57,"topics":["developer-tools","dotenv","cli","devtools","dev","hacktoberfest"],"license":"BSD-3-Clause","category":"dev-tools","readme_excerpt":"Createnv A simple CLI to create .env files. Motivation I use .env file to decouple configuration from application in many projects, and I see that many newcomers might struggle in creating this file. Thus, I created this package to offer a better user interface for creating configuration files in the format of .env . Example Using the sample .env.sample in this repository: You can now experiment by yourself, or try more advanced .env.sample such as the tests/.env.sample or Bot Followers's .env.sample . Install You can download the binary for your platform from the releases page, for example: Compile from source It is simple with Rust's cargo : Usage To use the default values (reads the sample from .env.sample and write the result into .env ): Options Option Description Default --- --- --- --target File to write the result .env --source File to use as a sample .env.sample --chars-for-random-string Characters used to create random strings All ASCII letters, numbers and a few extra characters ( !@#$%^& (- =+) ) Flags Option Description --- --- --stdout Write to stdout instead of a file --overwrite Do not ask before overwriting files --use-default Do not ask for input on fields that have a default value Format of sample files Createnv reads the sample file and separate lines in blocks, splitting at empty lines. It follows a few rules: 1. The first line is required to be a title 2. The second line might be a description or a variable 3. The remaining lines should be variables Titl","default_branch":null,"files":null,"tree":[],"storefront":"/r/cuducos","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cuducos/createnv/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}