FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

Commandbox-EnvFile

v0.0.1 Public

commandbox-envfile

This module is a wrapper for the propertyFile functionality built into CommandBox but exclusively on creating, modifying and displaying .env files.

Installation

box install commandbox-envfile

Usage

envfile show - Accepts a folder and a filename and displays the contents in the CLI

envfile set - Accepts and name and a value and adds it to the local .env file. Alternately accepts a folder and filename to receive the addition. Gives the option to create the file if it does not exist which can be bypassed with the --force flag.

envfile get - Accepts a name and displays the value of it if it exists.

envfile PopulateFromExample - Accepts the name of a file (defaults to .env) and an example (defaults to .env.example) and then loops through the example and asks the user for a value for each item in the example which is then written to the target file.

Notes

The values in the .env file are case sensitive so technically there can be a db_name key and a DB_NAME key. However, using this tool to edit keys with the same name but different capitalization can lead to unintentional overwriting of differently capitalized keys of that name.

Here are all the versions for this package. Please note that you can leverage CommandBox package versioning to install any package you like. Please refer to our managing package version guide for more information.

Version Created Last Update Published By Stable Actions
Current
0.0.1 Mar 25 2020 02:33 PM Mar 26 2020 02:43 PM

 

$ box install commandbox-envfile

No collaborators yet.
     
  • Mar 25 2020 02:32 PM
  • Mar 26 2020 02:43 PM
  • 36
  • 0
  • 18