{"id":22055466,"url":"https://github.com/calasanmarko/group-dotenv","last_synced_at":"2025-03-23T16:14:49.656Z","repository":{"id":199841477,"uuid":"704030165","full_name":"calasanmarko/group-dotenv","owner":"calasanmarko","description":"Centrally manage multiple .env files","archived":false,"fork":false,"pushed_at":"2023-10-31T00:49:01.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-01T23:17:29.968Z","etag":null,"topics":["bash","cli","dotenv","env","environment","environment-variables","shell","variables"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/group-dotenv","language":"Shell","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/calasanmarko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-12T11:51:16.000Z","updated_at":"2023-10-12T14:43:54.000Z","dependencies_parsed_at":"2023-11-19T12:43:45.676Z","dependency_job_id":null,"html_url":"https://github.com/calasanmarko/group-dotenv","commit_stats":{"total_commits":15,"total_committers":2,"mean_commits":7.5,"dds":"0.33333333333333337","last_synced_commit":"3237e4eea45b2a6a1d2d21653d7684d612aaf525"},"previous_names":["calasanmarko/group-dotenv"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calasanmarko%2Fgroup-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calasanmarko%2Fgroup-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calasanmarko%2Fgroup-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/calasanmarko%2Fgroup-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/calasanmarko","download_url":"https://codeload.github.com/calasanmarko/group-dotenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245128129,"owners_count":20565206,"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":["bash","cli","dotenv","env","environment","environment-variables","shell","variables"],"created_at":"2024-11-30T16:07:22.630Z","updated_at":"2025-03-23T16:14:49.633Z","avatar_url":"https://github.com/calasanmarko.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# group-dotenv\n*Centrally manage multiple .env files*\n\n# Installation\nAvailable as a npm package\n```\nnpm install --global group-dotenv\n```\n\n# Usage\nInserts environment variables in multiple `.env` files based on a centrally-managed YAML configuration file.\n\n```\nUsage:\n  group-dotenv [-q]\n  group-dotenv \u003cconfig-file\u003e [-q]\n  group-dotenv pull \u003cfile1\u003e \u003cfile2\u003e ... [-q] [-o output-file]\n\nOptions:\n  -q: Quiet mode (suppress output except for errors)\n  -o: Specify output file for the 'pull' command. Default is 'group-dotenv.yaml'.\n\nApplies the given environment variables to the .env files specified in the config file.\nBy default, the script looks for 'group-dotenv.yaml' in the current directory.\n```\n\n# Configuration\nThe general format of the YAML config file is as follows:\n```\nvariables:\n- name: NODE_ENV\n  values:\n  - \"./.env\": development\n    \"./.env.staging\": staging\n    \"./.env.production\": production\n- name: ANOTHER\n  values:\n  - \"./.env\": v1\n    \"./.env.staging\": v2\n    \"./.env.production\": v3\n```\n\nRunning `group-dotenv` with this configuration will result in the following file at `./.env`\n```\nNODE_ENV=development\nANOTHER=v1\n```\n...and so forth for the other `.env` files mentioned in the script.\n\n# Pull\nThe pull functionality reverses the process, generating a `group-dotenv.yaml` file from the passed `.env` files.\n\nFor instance, running\n```\ngroup-dotenv pull .env .env.staging .env.production\n```\n\nafter running the example under **Configuration** will reverse the process and regenerate the sample `group-dotenv.yaml` file.\n\n# License\nMade by Marko Calasan, 2023.\n\nThis product is licensed under the **MIT License**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalasanmarko%2Fgroup-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcalasanmarko%2Fgroup-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcalasanmarko%2Fgroup-dotenv/lists"}