{"id":15704916,"url":"https://github.com/schpet/envset","last_synced_at":"2025-05-06T21:07:45.603Z","repository":{"id":255735221,"uuid":"853548204","full_name":"schpet/envset","owner":"schpet","description":"set values in .env files the fun way","archived":false,"fork":false,"pushed_at":"2025-02-06T05:02:27.000Z","size":216,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-06T21:07:29.272Z","etag":null,"topics":["cli","dotenv","env","envvars"],"latest_commit_sha":null,"homepage":"https://schpet.com/linklog/envset-updates-env-files","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schpet.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-09-06T22:09:19.000Z","updated_at":"2025-02-08T20:54:44.000Z","dependencies_parsed_at":"2024-11-15T01:30:53.092Z","dependency_job_id":null,"html_url":"https://github.com/schpet/envset","commit_stats":{"total_commits":194,"total_committers":2,"mean_commits":97.0,"dds":0.005154639175257714,"last_synced_commit":"0849f0e798c8bd0c94878ca6c49a186f2d6648e2"},"previous_names":["schpet/envset"],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schpet%2Fenvset","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schpet%2Fenvset/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schpet%2Fenvset/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schpet%2Fenvset/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schpet","download_url":"https://codeload.github.com/schpet/envset/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252769420,"owners_count":21801378,"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","env","envvars"],"created_at":"2024-10-03T20:14:19.123Z","updated_at":"2025-05-06T21:07:45.575Z","avatar_url":"https://github.com/schpet.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envset\n\n`envset` is a CLI for setting environment variables in .env files.\n\nthis is something you may have never considered needing a specialized tool for.\nand you don't.\nbut just like updating a git config it's more fun with a command.\n\n## installation\n\ncurrently available on homebrew and [crates.io](https://crates.io/crates/envset)\n\n```bash\nbrew install schpet/tap/envset\n```\n\n```bash\ncargo install envset\n```\n\notherwise, grab the [latest release](https://github.com/schpet/envset/releases/latest).\n\n## usage\n\n### set vars\n\n```bash\n# basic usage, FYI that it prints a diff of the changes to stdout\nenvset KEY1=value1 KEY2=value2\n\n# some env vars are normally very annoying to set, like json or multiline strings.\n# but envset has your back!\nenvset JSON=\"$(cat credentials.json)\" PRIVATE_KEY=\"$(openssl genrsa -out /dev/stdout 2048)\"\n\n# pipe in stdin, useful for copying stuff from one env to another\necho -e \"KEY1=value1\\nKEY2=value2\" | envset\n\n# heroku users can easily copy parts of their config\nheroku config -s | grep \"^AWS_\" | envset\n\n# override the default path to a .env file\nenvset -f .env.test KEY1=value1\n```\n\n### read vars\n\n```bash\n# a few ways to print the current .env\nenvset\nenvset print --json\n\n# grab a single value\nenvset get KEY1\n\n# keys only, thanks\nenvset keys\n```\n\n### delete vars\n\n```bash\nenvset delete KEY1 KEY2\n```\n\n## about\n\nthis cli was thrown together quickly with [aider](https://aider.chat/),\ni also put up [a blog post](https://schpet.com/linklog/envset-updates-env-files) explaining why i made this.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschpet%2Fenvset","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschpet%2Fenvset","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschpet%2Fenvset/lists"}