{"id":16632714,"url":"https://github.com/benwebber/envredis","last_synced_at":"2026-04-22T11:01:43.642Z","repository":{"id":20491995,"uuid":"23770243","full_name":"benwebber/envredis","owner":"benwebber","description":"Load process environments from Redis.","archived":false,"fork":false,"pushed_at":"2014-09-10T02:32:16.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-26T22:45:49.755Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/benwebber.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}},"created_at":"2014-09-07T20:31:29.000Z","updated_at":"2019-01-21T11:40:44.000Z","dependencies_parsed_at":"2022-09-09T11:40:54.275Z","dependency_job_id":null,"html_url":"https://github.com/benwebber/envredis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/benwebber/envredis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fenvredis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fenvredis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fenvredis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fenvredis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/benwebber","download_url":"https://codeload.github.com/benwebber/envredis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/benwebber%2Fenvredis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32132973,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T08:34:57.708Z","status":"ssl_error","status_checked_at":"2026-04-22T08:34:55.583Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-10-12T05:09:55.617Z","updated_at":"2026-04-22T11:01:38.617Z","avatar_url":"https://github.com/benwebber.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envredis\n\nenvredis runs processes in a modified environment by reading environment variables from a [Redis](http://redis.io/) database.\n\nenvredis is directly inspired by [envconsul](https://github.com/hashicorp/envconsul), and indirectly by [envdir](http://cr.yp.to/daemontools/envdir.html) and its [multiple ports](https://github.com/search?utf8=%E2%9C%93\u0026q=envdir).\n\n**envredis is not production-ready.**\n\n## Installation\n\nenvredis is written in Go. Check out the [official documentation](https://golang.org/doc/install) for how to get started with the Go toolchain.\n\n```\ngo get github.com/benwebber/envredis\ngo build github.com/benwebber/envredis\ncp envredis /path/in/$PATH\n```\n\n## Usage\n\nenvredis stores configuration in a Redis [hash](http://redis.io/topics/data-types#hashes). Choose a name for the hash and set some initial variables:\n\n```\n$ envredis -k app set ENVIRONMENT=staging\n$ envredis -k app set RATE_LIMIT=0\n```\n\nRun the process using the new configuration.\n\n```\n$ envredis -k app run env\n...\nENVIRONMENT=staging\nRATE_LIMIT=0\n```\n\nOf course, envredis doesn't care where the environment variables came from. We can configure the environment using any Redis client.\n\n\n```\n$ redis-cli HSET app AWS_ACCESS_KEY_ID AKIAIOSFODNN7EXAMPLE\n```\n\n```\n$ envredis -k app list\nENVIRONMENT=staging\nRATE_LIMIT=0\nAWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE\n```\n\nFinally, envredis assumes `run` is the default action, so the following works just as well:\n\n```\n$ envredis -k app env\n...\nENVIRONMENT=staging\nRATE_LIMIT=0\nAWS_ACCESS_KEY_ID=AKIAIOSFODNN7EXAMPLE\n```\n\n## Configuration\n\n| Parameter | Environment Variable | Description | Example |\n|------------|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------|\n| `-u/--url` | `ENVREDIS_REDIS_URL` | URL of Redis instance | `redis://localhost:6379` (default) |\n| `-k/--key` | `ENVREDIS_REDIS_KEY` | name of key storing application configuration | `next-big-thing-production` (default: current directory) |\n| `--posix` | `ENVREDIS_POSIX` | transform variable names to adhere to the [POSIX standard](http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html#tag_08) (valid for `set`, `list`, and `run`) | `--posix` or `ENVREDIS_POSIX=1` |\n\n## Managing the environment\n\nenvredis provides a number of commands to manage an application's environment.\n\n### set\n\nSet an environment variable.\n\n`set` accepts variables as `NAME=value` or `NAME value`.\n\n```\n$ envredis set FOO=bar\n$ envredis set BAR baz\n```\n\n### get\n\nReturn the value of an environment variable.\n\n```\n$ envredis set BAZ=quux\n$ envredis get BAZ\nquux\n```\n\n### list\n\nList environment variables.\n\n```\n$ envredis list\nFOO=bar\nBAR=baz\nBAZ=quux\n```\n\n### delete\n\nDelete an environment variable.\n\n```\n$ envredis delete FOO\n$ envredis list\nBAR=baz\nBAZ=quux\n```\n\n### clear\n\nClear all environment variables.\n\n```\n$ envredis clear\n$ envredis list\n```\n\n## Contributing\n\nenvredis is very rough around the edges. Feel free to open [issues](/benwebber/envredis/issues) for bugs or questions.\n\nPull requests are more than welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fenvredis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenwebber%2Fenvredis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenwebber%2Fenvredis/lists"}