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


v0.0.1 Public


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


box install commandbox-envfile


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.


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.

Dependencies (0)

Dev Dependencies (1)

$ box install commandbox-envfile

No collaborators yet.
  • {{ getFullDate("2020-03-25T14:32:06Z") }}
  • {{ getFullDate("2020-03-26T14:43:20Z") }}
  • 1,193
  • 188