{"id":30713130,"url":"https://github.com/gera2ld/denv","last_synced_at":"2025-10-30T09:46:31.512Z","repository":{"id":292854575,"uuid":"982080855","full_name":"gera2ld/denv","owner":"gera2ld","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-22T03:47:35.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-29T03:48:33.526Z","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/gera2ld.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,"zenodo":null}},"created_at":"2025-05-12T10:48:59.000Z","updated_at":"2025-07-22T03:47:26.000Z","dependencies_parsed_at":"2025-05-12T14:41:41.269Z","dependency_job_id":"059fd657-1198-40d7-8321-766f3f46e381","html_url":"https://github.com/gera2ld/denv","commit_stats":null,"previous_names":["gera2ld/denv"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gera2ld/denv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fdenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fdenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fdenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fdenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gera2ld","download_url":"https://codeload.github.com/gera2ld/denv/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gera2ld%2Fdenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273382209,"owners_count":25095415,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-09-03T03:12:28.208Z","updated_at":"2025-10-30T09:46:26.463Z","avatar_url":"https://github.com/gera2ld.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# denv\n\ndenv is a command-line tool for managing environment variables in a secure and efficient manner. It allows users to set, get, delete, and import/export environment variables, while also supporting encryption for sensitive data.\n\n## Features\n\n- Manage environment variables with ease\n- Support for encryption of sensitive data\n- Import and export environment variables from/to files\n- Command-line interface for easy usage\n\n## Prerequisites\n\nBefore using `denv`, ensure the following tools are installed on your system:\n\n- **[age](https://github.com/FiloSottile/age)**: A simple, modern, and secure encryption tool used by `denv` to encrypt environment variable data.\n\n## Usage\n\n### Running Commands\n\nYou can run commands using the following syntax:\n\n```bash\n./denv run -e key1 -e key2 -- command arg1 arg2\n# or\nDENV_KEYS=key1,key2 ./denv run -- command arg1 arg2\n```\n\n### Show Environment Variables\n\nTo display the environment variables, use:\n\n```bash\n./denv run -e key1 -e key2 --export\n```\n\n### Importing Environment Variables\n\nTo import environment variables from a directory:\n\n```bash\n./denv import \u003csource\u003e\n```\n\n### Exporting Environment Variables\n\nTo export all environment variables to a directory:\n\n```bash\n./denv export -o \u003coutDir\u003e\n```\n\n### Managing Recipients\n\nYou can manage encryption recipients with the following commands:\n\n- List recipients: `./denv recipients`\n- Add a recipient: `./denv recipientAdd \u003crecipient\u003e`\n- Remove a recipient: `./denv recipientDel \u003crecipient\u003e`\n\n## Data Storage\n\nThe `denv` tool organizes user data under the `DENV_ROOT` directory. Here's how the data is structured:\n\n- **`DENV_ROOT`**: The root directory where all `denv` data is stored.\n  - **`config.yml`**: A configuration file located at the root of `DENV_ROOT`. This file contains settings and metadata required for `denv` operations.\n  - **`env/`**: A subdirectory where all environment variable data is securely stored. Each file in this directory is encrypted using `age` for enhanced security.\n    - **`UNIQUIE_ID.age`**: Encrypted files representing individual environment variable sets. Each file is uniquely identified by a `UNIQUIE_ID`.\n\nTo customize the location of the root directory, you can set the `DENV_ROOT` environment variable. By default, it is set to `~/.config/denv`.\n\nAll data is encrypted and can be safely managed with version control tools like Git, ensuring both security and traceability.\n\n## Contributing\n\nContributions are welcome! Please open an issue or submit a pull request for any enhancements or bug fixes.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fdenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgera2ld%2Fdenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgera2ld%2Fdenv/lists"}