{"id":27948453,"url":"https://github.com/twilio-labs/configure-env","last_synced_at":"2025-05-07T14:58:47.244Z","repository":{"id":40291188,"uuid":"222765422","full_name":"twilio-labs/configure-env","owner":"twilio-labs","description":"Configures your project's environment by creating a .env file.","archived":false,"fork":false,"pushed_at":"2024-09-06T02:09:42.000Z","size":1508,"stargazers_count":6,"open_issues_count":37,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T14:58:41.502Z","etag":null,"topics":["cli","dotenv","nodejs","twilio-labs"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/twilio-labs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-19T18:45:28.000Z","updated_at":"2023-04-20T03:34:33.000Z","dependencies_parsed_at":"2023-02-03T03:31:53.417Z","dependency_job_id":null,"html_url":"https://github.com/twilio-labs/configure-env","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fconfigure-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fconfigure-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fconfigure-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/twilio-labs%2Fconfigure-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/twilio-labs","download_url":"https://codeload.github.com/twilio-labs/configure-env/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252902618,"owners_count":21822258,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","dotenv","nodejs","twilio-labs"],"created_at":"2025-05-07T14:58:46.516Z","updated_at":"2025-05-07T14:58:47.233Z","avatar_url":"https://github.com/twilio-labs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003econfigure-env\u003c/h1\u003e\n\u003cp align=\"center\"\u003eCLI tool to generate and populate \u003ccode\u003e.env\u003c/code\u003e files from \u003ccode\u003e.env.example\u003c/code\u003e templates.\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://www.npmjs.com/package/configure-env\"\u003e\u003cimg alt=\"npm (scoped)\" src=\"https://img.shields.io/npm/v/configure-env.svg?style=flat-square\"\u003e\u003c/a\u003e \u003ca href=\"https://www.npmjs.com/package/configure-env\"\u003e\u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/dt/configure-env.svg?style=flat-square\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/twilio-labs/configure-env/blob/master/LICENSE\"\u003e\u003cimg alt=\"GitHub\" src=\"https://img.shields.io/github/license/twilio-labs/configure-env.svg?style=flat-square\"\u003e\u003c/a\u003e\u003ca href=\"https://github.com/twilio-labs/configure-env/blob/master/CODE_OF_CONDUCT.md\"\u003e\u003cimg alt=\"Code of Conduct\" src=\"https://img.shields.io/badge/%F0%9F%92%96-Code%20of%20Conduct-blueviolet.svg?style=flat-square\"\u003e\u003c/a\u003e \u003ca href=\"https://github.com/twilio-labs/configure-env/blob/master/CONTRIBUTING.md\"\u003e\u003cimg src=\"https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square\" alt=\"PRs Welcome\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003chr\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-)\n\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n## About\n\n`configure-env` will read a `.env.example` or any other similar `.env` file and prompt for values for each variable that has a comment header above it. Afterwards it will generate a `.env` file out of it.\n\nIt works as a more user-friendly approach to:\n\n```\ncp .env.example .env\n```\n\n## Installation\n\nYou can install the CLI tool via `npm` or another package manager. Ideally install it as a dev dependency instead of global:\n\n```bash\n# Install it as a dev dependency\nnpm install configure-env --save-dev\n\n# Afterwards you can use by using:\nnode_modules/.bin/configure-env\n\nnpx configure-env\n\n# Or inside your package.json scripts section as \"configure-env\"\n```\n\n## Usage\n\nIn a project that contains a `.env.example` file, run:\n\n```bash\n$ npx configure-env --help\nPrompts user for environment variables and generates .env files based on a\n.env.example file\n\nUsage:\n  configure-env.js -o [outputFile] -i [exampleFile]\n\nOptions:\n  --help        Show help                                              [boolean]\n  --version     Show version number                                    [boolean]\n  --output, -o  Location of the .env file that should be written\n                                                      [string] [default: \".env\"]\n  --input, -i   Location of input .env.example file for prompts\n                                              [string] [default: \".env.example\"]\n  --verbose                                           [boolean] [default: false]\n\nExamples:\n  npx configure-env       Reads a .env.example file in the current directory and\n                          creates a .env file\n  configure-env.js | cat  The output can be either written to a file or piped to\n                          another process\n\nThis project is part of Twilio Labs. Please file any issues\ngithub.com/twilio-labs/configure-env\n\n```\n\n## Contributing\n\nThis project welcomes contributions from the community. Please see the [`CONTRIBUTING.md`](CONTRIBUTING.md) file for more details.\n\n### Code of Conduct\n\nPlease be aware that this project has a [Code of Conduct](CODE_OF_CONDUCT.md). The tldr; is to just be excellent to each other ❤️\n\n## Contributors\n\nThanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://dkundel.com\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/1505101?v=4\" width=\"80px;\" alt=\"Dominik Kundel\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDominik Kundel\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/twilio-labs/configure-env/commits?author=dkundel\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-enable --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fconfigure-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwilio-labs%2Fconfigure-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwilio-labs%2Fconfigure-env/lists"}