{"id":19573526,"url":"https://github.com/muchobien/env-cmd","last_synced_at":"2026-05-16T05:41:03.695Z","repository":{"id":57472378,"uuid":"526416584","full_name":"muchobien/env-cmd","owner":"muchobien","description":"A simple program for executing commands using an environment from an env file.","archived":false,"fork":false,"pushed_at":"2023-03-06T22:12:35.000Z","size":112,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T07:17:01.425Z","etag":null,"topics":["command-line-tool","cross-platform","env-cmd","enviroment-variables","environment","nodejs","utilities","variables"],"latest_commit_sha":null,"homepage":"","language":"Go","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/muchobien.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-19T00:46:45.000Z","updated_at":"2022-08-31T01:15:59.000Z","dependencies_parsed_at":"2024-11-11T06:34:38.712Z","dependency_job_id":null,"html_url":"https://github.com/muchobien/env-cmd","commit_stats":{"total_commits":42,"total_committers":2,"mean_commits":21.0,"dds":"0.19047619047619047","last_synced_commit":"ab8a88624c6abe288009c6bb2f99a1ff21938a60"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fenv-cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fenv-cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fenv-cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/muchobien%2Fenv-cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/muchobien","download_url":"https://codeload.github.com/muchobien/env-cmd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240840104,"owners_count":19866168,"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":["command-line-tool","cross-platform","env-cmd","enviroment-variables","environment","nodejs","utilities","variables"],"created_at":"2024-11-11T06:34:31.802Z","updated_at":"2026-05-16T05:40:58.654Z","avatar_url":"https://github.com/muchobien.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n   \u003ca aria-label=\"NPM Package\" href=\"https://www.npmjs.com/package/@muchobien/env-cmd\" target=\"_blank\"\u003e\n      \u003cimg alt=\"npm\" src=\"https://img.shields.io/npm/v/@muchobien/env-cmd?color=success\u0026logo=npm\u0026style=flat-square\"\u003e\n   \u003c/a\u003e\n\u003c/P\u003e\n\n# env-cmd\n\nA simple program for executing commands using an environment from an env file.\n\n## 💾 Install\n\n`npm install @muchobien/env-cmd -D` or `yarn add @muchobien/env-cmd -D`\n\n## ⌨️ Basic Usage\n\n**Environment file `./.env`**\n\n```text\n# This is a comment\nENV1=THANKS\nENV2=FOR ALL\nENV3=THE FISH\n```\n\n**Package.json**\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"env-cmd jest\"\n  }\n}\n```\n\n**Terminal**\n\n```sh\nyarn env-cmd node index.js\n```\n\n```sh\nnpx env-cmd node index.js\n```\n\n### Using custom env file path\n\nTo use a custom env filename or path, pass the `-f` flag.\n\n**Terminal**\n\n```sh\nyarn env-cmd -f ./custom/path/.env -f ./other/path/.env node index.js\n```\n\n```sh\nnpx env-cmd -f ./custom/path/.env -f ./other/path/.env node index.js\n```\n\n## 📜 Help\n\n```text\nNAME:\n   env-cmd - Load environment variables from .env file and execute commands\n\nUSAGE:\n   env-cmd [global options] command [command options] [arguments...]\n\nVERSION:\n   0.0.0\n\nCOMMANDS:\n   list, l  List environment variables\n   help, h  Shows a list of commands or help for one command\n\nGLOBAL OPTIONS:\n   --env value, -e value [ --env value, -e value ]    Additional environment variables\n   --file value, -f value [ --file value, -f value ]  Paths to env files (default: \".env\")\n   --help, -h                                         show help (default: false)\n   --interpolate, -i                                  Interpolate environment variables in command arguments (default: false)\n   --override, -o                                     Override existing environment variables with new ones (default: true)\n   --prefix value, -p value                           Prefix for environment variables\n   --silent, -s                                       Ignore errors if .env file is not found (default: false)\n   --version, -v                                      print the version (default: false)\n   --watch, -w                                        Watch for changes in .env files and reload them (default: false)\n```\n\n## 🧬 Related Projects\n\n[`toddbluhm/env-cmd`](https://github.com/toddbluhm/env-cmd) - Orginal project that inspired this one.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchobien%2Fenv-cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmuchobien%2Fenv-cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmuchobien%2Fenv-cmd/lists"}