{"id":22396955,"url":"https://github.com/atrox/sync-dotenv","last_synced_at":"2025-07-01T01:35:38.598Z","repository":{"id":40668892,"uuid":"187808485","full_name":"Atrox/sync-dotenv","owner":"Atrox","description":":twisted_rightwards_arrows: Keep your .env.example in sync with changes to your .env file","archived":false,"fork":false,"pushed_at":"2023-05-19T12:57:34.000Z","size":147,"stargazers_count":6,"open_issues_count":8,"forks_count":14,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-22T09:23:32.470Z","etag":null,"topics":["dotenv","environment","environment-variables","sync","sync-dotenv","synchronization"],"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/Atrox.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":"2019-05-21T09:44:23.000Z","updated_at":"2025-03-08T05:21:16.000Z","dependencies_parsed_at":"2024-06-19T01:48:20.398Z","dependency_job_id":"ce57a827-b1ee-467c-9d88-e6ac0c7d9c09","html_url":"https://github.com/Atrox/sync-dotenv","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Atrox/sync-dotenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fsync-dotenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fsync-dotenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fsync-dotenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fsync-dotenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Atrox","download_url":"https://codeload.github.com/Atrox/sync-dotenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Atrox%2Fsync-dotenv/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262879741,"owners_count":23378667,"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":["dotenv","environment","environment-variables","sync","sync-dotenv","synchronization"],"created_at":"2024-12-05T06:10:00.810Z","updated_at":"2025-07-01T01:35:38.564Z","avatar_url":"https://github.com/Atrox.png","language":"Go","readme":"# sync-dotenv\n\n[![Release](https://img.shields.io/github/release/atrox/sync-dotenv.svg?style=flat-square)](https://github.com/atrox/sync-dotenv/releases/latest)\n[![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fatrox%2Fsync-dotenv%2Fbadge\u0026style=flat-square)](https://actions-badge.atrox.dev/atrox/sync-dotenv/goto)\n[![Coverage Status](https://img.shields.io/codecov/c/github/atrox/sync-dotenv.svg?style=flat-square)](https://codecov.io/gh/Atrox/sync-dotenv)\n[![Go Report Card](https://goreportcard.com/badge/github.com/atrox/sync-dotenv?style=flat-square)](https://goreportcard.com/report/github.com/atrox/sync-dotenv)\n\nKeep your `.env.example` in sync with changes to your `.env` file.\n\n## Installation\n\n### macOS (homebrew)\n```sh\nbrew install atrox/tap/sync-dotenv\n```\n\n### Windows (scoop)\n```ps\nscoop bucket add sync-dotenv https://github.com/atrox/scoop-bucket\nscoop install sync-dotenv\n```\n\n### Linux (deb/rpm)\n\nDownload the `.deb` or `.rpm` from the [releases page](https://github.com/atrox/sync-dotenv/releases) and install with `dpkg -i` and `rpm -i` respectively.\n\n### Manually\n\nDownload the pre-compiled binaries from the [releases page](https://github.com/atrox/sync-dotenv/releases) and copy to the desired location.\n\n\n## Usage\n\n`sync-dotenv`, by default, looks for a `.env` file in your working directory and synchronizes those keys with your `.env.example` file.  Values will **not** be synchronized but existing ones in your example file will be kept.\n\nIf your files have different names, you can use the flags `--env .secrets` and `--example .secrets.example`.\n\nIf the flag `--watch` is provided, `sync-dotenv` will watch for changes in your working directory and automatically updates your example file.\n\n## CLI\n\n```sh\nsync-dotenv helps you to keep your .env.example in sync with your .env file\n\nUsage:\n  sync-dotenv [flags]\n\nFlags:\n      --base string      base path for all paths (default \".\")\n      --env string       path to your env file (default \".env\")\n      --example string   path to your example env file (default \".env.example\")\n  -h, --help             help for sync-dotenv\n  -v, --verbose          enable verbose messages\n      --version          version for sync-dotenv\n  -w, --watch            watch for file changes and update the example file automatically\n```\n\n## Jetbrains IDE\n\n\u003cimg align=\"right\" height=\"200\" src=\"/assets/jetbrains.png?raw=true\"\u003e\n\nYou can automatically call `sync-dotenv` via [File Watchers](https://plugins.jetbrains.com/plugin/7177-file-watchers). Enable the plugin, import the [following XML](/assets/watchers.xml) and your `.env.example` now automatically updates if you change your `.env` file.\n\u003cbr\u003e\u003cbr\u003e\n\n## Contributing\n\nEveryone is encouraged to help improve this project. Here are a few ways you can help:\n\n- [Report bugs](https://github.com/atrox/sync-dotenv/issues)\n- Fix bugs and [submit pull requests](https://github.com/atrox/sync-dotenv/pulls)\n- Write, clarify, or fix documentation\n- Suggest or add new features\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fsync-dotenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatrox%2Fsync-dotenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatrox%2Fsync-dotenv/lists"}