{"id":15148774,"url":"https://github.com/joseluisq/enve","last_synced_at":"2025-03-28T23:32:10.057Z","repository":{"id":57519939,"uuid":"249561391","full_name":"joseluisq/enve","owner":"joseluisq","description":"A cross-platform tool to run a program in a modified environment providing a .env file.","archived":false,"fork":false,"pushed_at":"2024-09-24T21:09:12.000Z","size":71,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-29T22:44:34.170Z","etag":null,"topics":["cli-tool","dotenv","env","env-file","env-loader","environment-variables","freebsd","golang","json-export","linux","macos","openbsd","windows","xml-export"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-03-23T22:49:35.000Z","updated_at":"2024-09-24T21:07:24.000Z","dependencies_parsed_at":"2024-01-03T22:28:39.487Z","dependency_job_id":"ce9c72a4-ac97-4e0e-8f5f-0c8df06ad38c","html_url":"https://github.com/joseluisq/enve","commit_stats":{"total_commits":40,"total_committers":3,"mean_commits":"13.333333333333334","dds":0.09999999999999998,"last_synced_commit":"76e2c51d6dc5618148a40cb4c6b18ac92dfd255e"},"previous_names":["joseluisq/fenv"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fenve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fenve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fenve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fenve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/enve/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222183012,"owners_count":16944872,"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-tool","dotenv","env","env-file","env-loader","environment-variables","freebsd","golang","json-export","linux","macos","openbsd","windows","xml-export"],"created_at":"2024-09-26T13:22:52.524Z","updated_at":"2024-10-30T08:06:01.053Z","avatar_url":"https://github.com/joseluisq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enve ![devel](https://github.com/joseluisq/enve/workflows/devel/badge.svg) [![PkgGoDev](https://pkg.go.dev/badge/github.com/joseluisq/enve)](https://pkg.go.dev/github.com/joseluisq/enve)\n\n\u003e Run a program in a modified environment providing a `.env` file.\n\n**Enve** is a cross-platform tool that can load environment variables from a [`.env` file](https://www.ibm.com/docs/en/aix/7.2?topic=files-env-file) and execute a given command.\nIt also can output environment variables in `text`, `json` or `xml` format.\n\nIt can be considered as a counterpart of [GNU env](https://www.gnu.org/software/coreutils/manual/html_node/env-invocation.html) command.\n\n## Install\n\n- **Platforms supported:** `linux`, `darwin`, `windows`, `freebsd`, `openbsd`\n- **Architectures supported:** `amd64`, `386`, `arm`, `arm64`, `ppc64le`\n\n```sh\ncurl -sSL \\\n   \"https://github.com/joseluisq/enve/releases/download/v1.5.1/enve_v1.5.1_linux_amd64.tar.gz\" \\\n   | sudo tar zxf - -C /usr/local/bin/ enve\n```\n\nUsing Go:\n\n```sh\ngo install github.com/joseluisq/enve@latest\n```\n\nPre-compiled binaries also available on [joseluisq/enve/releases](https://github.com/joseluisq/enve/releases)\n\n## Usage\n\nBy default, **enve** will print all environment variables like `env` command. \n\n```sh\nenve\n# Or its equivalent\nenve --output text\n```\n\n### Executing commands\n\nBy default, an optional `.env` file can be loaded from the current working directory.\n\n```sh\nenve test.sh\n```\n\nHowever it's possible to specify a custom `.env` file using the `--file` or `-f` flags.\n\n```sh\nenve --file dev.env test.sh\n```\n\n### Printing environment variables\n\n**enve** supports `text`, `json` and `xml` formats.\n\n```sh\nenve --output text # or just `enve`\nenve --output json\nenve --output xml\n```\n\n## Options\n\n```\n$ enve 1.5.1\nRun a program in a modified environment using .env files\n\nUSAGE:\n   enve [OPTIONS] COMMAND\n\nOPTIONS:\n   -f --file        Load environment variables from a file path (optional) [default: .env]\n   -o --output      Output environment variables using text, json or xml format [default: text]\n   -w --overwrite   Overwrite environment variables if already set [default: false]\n   -h --help        Prints help information\n   -v --version     Prints version information\n```\n\n## Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/enve/pulls) or file an [issue](https://github.com/joseluisq/enve/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020-present [Jose Quintana](https://joseluisq.net)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fenve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fenve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fenve/lists"}