{"id":13590457,"url":"https://github.com/wickes1/envex","last_synced_at":"2026-02-24T01:35:18.003Z","repository":{"id":233336551,"uuid":"787011201","full_name":"wickes1/envex","owner":"wickes1","description":"Dotenv sample made easy!","archived":false,"fork":false,"pushed_at":"2024-04-16T02:24:48.000Z","size":21,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T10:45:44.516Z","etag":null,"topics":["cli","dotenv","golang"],"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/wickes1.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":"2024-04-15T18:09:03.000Z","updated_at":"2024-04-16T22:15:57.000Z","dependencies_parsed_at":"2024-04-15T21:34:08.921Z","dependency_job_id":"64f42bf6-ef34-4998-bddd-b5ef02ddb933","html_url":"https://github.com/wickes1/envex","commit_stats":null,"previous_names":["wickes1/envex"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickes1%2Fenvex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickes1%2Fenvex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickes1%2Fenvex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wickes1%2Fenvex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wickes1","download_url":"https://codeload.github.com/wickes1/envex/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247851519,"owners_count":21006772,"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","golang"],"created_at":"2024-08-01T16:00:45.700Z","updated_at":"2026-02-24T01:35:17.962Z","avatar_url":"https://github.com/wickes1.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# Envex\n\nEnvex (Env Example) is a command-line tool written in Go for generating sample dotenv files from existing `.env` files. It helps streamline the process of creating sample environment configuration files for your projects.\n\n## Installation\n\n### Go\n\nYou can install Envex directly from Go:\n\n```bash\ngo install github.com/wickes1/envex@latest\n```\n\n### Arch User Repository (AUR)\n\nIf you're using an Arch-based Linux distribution, you can install Envex from the AUR:\n\n```bash\nyay -S envex-bin\n```\n\n## Usage\n\n```bash\ngo install github.com/wickes1/envex\n\nenvex generate\n# Sample dotenv file has been saved to: .env.example\n\n# Specify input and output files\nenvex generate -f .env -o .env.sample\n\n# Retain comments\nenvex generate -c\n```\n\n## Example\n\nGiven the following `.env` file:\n\n```env\n# Example dotenv\n\n# Database\n\nDB_HOST=localhost\nDB_USER=root\nDB_PASS=secret\nDB_NAME=database\n\n# App\n\nAPP_NAME=MyApp\nAPP_ENV=development\nAPP_DEBUG=true\nAPP_URL=http://localhost:8000\n```\n\nRunning `envex generate` will generate the following `.env.example` file:\n\n```env\nDB_HOST=\nDB_USER=\nDB_PASS=\nDB_NAME=\nAPP_NAME=\nAPP_ENV=\nAPP_DEBUG=\nAPP_URL=\n```\n\nRunning `envex generate -c` will retain the comments:\n\n```env\n# Example dotenv\n\n# Database\n\nDB_HOST=\nDB_USER=\nDB_PASS=\nDB_NAME=\n\n# App\n\nAPP_NAME=\nAPP_ENV=\nAPP_DEBUG=\nAPP_URL=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwickes1%2Fenvex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwickes1%2Fenvex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwickes1%2Fenvex/lists"}