{"id":20341265,"url":"https://github.com/pomdtr/dotenv","last_synced_at":"2026-05-07T12:33:36.184Z","repository":{"id":104154093,"uuid":"600087389","full_name":"pomdtr/dotenv","owner":"pomdtr","description":"Run a command with env vars injected from one or more .env files","archived":false,"fork":false,"pushed_at":"2023-02-10T15:04:36.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-14T18:51:02.382Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pomdtr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-02-10T14:57:42.000Z","updated_at":"2023-04-19T08:05:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"7897451d-9e43-47ad-916b-b0185d004f24","html_url":"https://github.com/pomdtr/dotenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomdtr%2Fdotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomdtr%2Fdotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomdtr%2Fdotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pomdtr%2Fdotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pomdtr","download_url":"https://codeload.github.com/pomdtr/dotenv/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241868233,"owners_count":20033818,"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":[],"created_at":"2024-11-14T21:26:42.041Z","updated_at":"2026-05-07T12:33:31.120Z","avatar_url":"https://github.com/pomdtr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dotenv - Run a command with env vars injected from one or more .env files\n\n## Installation\n\n```bash\ngo install github.com/pomdtr/dotenv\n```\n\n## Usage\n\n```text\nRun a command with env vars injected from one or more .env files\n\nUsage:\n  dotenv [flags] command [args...]\n\nExamples:\ndotenv -- YOUR_COMMAND --YOUR-FLAG\ndotenv --command \"YOUR_COMMAND \u0026\u0026 YOUR_OTHER_COMMAND\"\n\nFlags:\n  -c, --command string      command to run\n      --completion string   generate completion script\n  -e, --env strings         env files to load\n  -h, --help                help for dotenv\n      --preserve-env        preserve existing environment variables\n```\n\n\u003e **Note**\n\u003e If you pass the `--command` flag, the command will be executed in a subshell. The shell will be determined by the `SHELL` environment variable. If it is not set, `sh` will be used as a fallback. If you want to use a different shell, try: `dotenv -- zsh -c \"YOUR_COMMAND\"`.\n\n## Shell Completions\n\n### Bash\n\n```bash\ndotenv --completion bash \u003e /etc/bash_completion.d/dotenv # Linux\ndotenv --completion bash \u003e $(brew --prefix)/etc/bash_completion.d/dotenv # macOS\n```\n\n### Zsh\n\n```zsh\ndotenv completion zsh \u003e \"${fpath[1]}/_dotenv\" # Linux\ndotenv completion zsh \u003e $(brew --prefix)/share/zsh/site-functions/_dotenv # macOS\n```\n\n### Fish\n\n```fish\ndotenv --completion fish \u003e ~/.config/fish/completions/dotenv.fish\n```\n\n### Powershell\n\n```powershell\ndotenv --completion powershell | Out-String | Invoke-Expression\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomdtr%2Fdotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpomdtr%2Fdotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpomdtr%2Fdotenv/lists"}