{"id":24042122,"url":"https://github.com/enescang/envar-cli","last_synced_at":"2026-04-15T16:32:15.654Z","repository":{"id":48865357,"uuid":"358022396","full_name":"enescang/envar-cli","owner":"enescang","description":"Manage .env variables using CLI","archived":false,"fork":false,"pushed_at":"2021-07-08T02:32:51.000Z","size":32,"stargazers_count":4,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-02T12:07:37.635Z","etag":null,"topics":["cli","env","npm","npm-package"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/envar-cli","language":"JavaScript","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/enescang.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}},"created_at":"2021-04-14T19:39:41.000Z","updated_at":"2022-05-04T23:46:58.000Z","dependencies_parsed_at":"2022-09-26T20:20:28.321Z","dependency_job_id":null,"html_url":"https://github.com/enescang/envar-cli","commit_stats":null,"previous_names":["kodcanlisi/envar-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/enescang/envar-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescang%2Fenvar-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescang%2Fenvar-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescang%2Fenvar-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescang%2Fenvar-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/enescang","download_url":"https://codeload.github.com/enescang/envar-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/enescang%2Fenvar-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31849733,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["cli","env","npm","npm-package"],"created_at":"2025-01-08T22:37:00.084Z","updated_at":"2026-04-15T16:32:15.639Z","avatar_url":"https://github.com/enescang.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# envar-cli\n![](https://img.shields.io/github/issues/kodcanlisi/envar-cli)\n\n## Getting Started\nenvar-cli is lightweight global package for managing .env variables using cli. \nYou can add, update, remove or list environment variables.\n\n## 💻Install\n``` shell\n# with npm\nnpm install -g envar-cli\n```\n\n## 📒Usage\nOpen your terminal on project folder and check the below instructions. To get help please write **envar-cli --help** on terminal.\n\n### Specify The .env File Extension\nThere are several .env file extension. \nDefault file is **.env** for **envar-cli**.\n\n **envar-cli** supports:\n* .env\n* .env.example\n* .env.local\n* .env.dev\n* .env.development\n* .env.prod\n* .env.production\n* .env.staging\n* .env.preview\n\nPlease specify the extension end of the command with --[fileSpecifier]\n#### Select The File Extension\n``` shell\nenvar-cli [command] [value] [extension]\n\n# Select .env (do not write anything)\n#.env is default. No need to write anything.\n\n# .env.example\nenvar-cli [command] [value] --example\n\n# .env.local\nenvar-cli [command] [value] --local\n\n# .env.dev\nenvar-cli [command] [value] --dev\n\n# .env.development\nenvar-cli [command] [value] --development\n\n# .env.prod\nenvar-cli [command] [value] --prod\n\n# .env.production\nenvar-cli [command] [value] --production\n\n# .env.staging\nenvar-cli [command] [value] --staging\n\n# .env.preview\nenvar-cli [command] [value] --preview\n```\n\n### Add Variable\nIf .env file is not exists **envar-cli** will create a blank .env file.\n\n``` shell\nenvar-cli add \"PORT=9000\"\n# or\nenvar-cli add PORT=9000\n\n#with specific .env file --[extension]\nenvar-cli add PORT=3000 --dev\nenvar-cli add PORT=8080 --prod\n```\n\n#### Result:\n**.env**:\n``` txt\nPORT=9000\n```\n\n**.env.dev**:\n``` txt\nPORT=3000\n```\n\n**.env.prod**:\n``` txt\nPORT=8080\n```\n\n### Add Variable With Comment\nIf you want to add a comment to your .env file, please use **--comment** option. It will be add your comment line before the variable. Currently, it works only if variable is newly added.\n\n``` shell\nenvar-cli add \"SECRET_KEY=github\" --comment \"# SECRET KEYS\"\n#or\n#with specific .env file --[extension]\nenvar-cli add \"SECRET_KEY=google\" --comment \"# SECRET KEYS\" --prod\n```\n#### Result:\n**.env**:\n``` txt\n# SECRET KEYS\nSECRET_KEY=github\n```\n\n**.env.prod**:\n``` txt\n# SECRET KEYS\nSECRET_KEY=google\n```\n\n### Update Variable\nTo update a variable you can use **update** command.\n\n``` shell\nenvar-cli update SECRET_KEY=github\n#or\nenvar-cli update \"SECRET_KEY=github\"\n\n#with specific .env file --[extension]\nenvar-cli update SECRET_KEY=github --prod\n```\n\nIf variable not exists you will see a message like this:\n**❗: \u003cMY_VAR\u003e not found in .env**\n\n### Remove Variable\nDeleting is also simple. Just use **remove**, **del** or **delete**  command.\nAnd please:\n* Write only variable name not with value.\n* Pay attention to case sensitivity\n\n``` shell\nenvar-cli remove SECRET_KEY\n#or\nenvar-cli del \"SECRET_KEY\"\n\n#with specific .env file --[extension]\nenvar-cli delete SECRET_KEY --staging\n```\n\n### List Variables\nTo count and see your environment values please use **list** command.\n\n``` shell\nenvar-cli list\n\n#with specific .env file --[extension]\nenvar-cli list --development\n```\n\n#### Example Result:\n``` txt\n1. PORT=8080\n2. SECRET_KEY=github\n📄  : 2 variables found in .env\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenescang%2Fenvar-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fenescang%2Fenvar-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fenescang%2Fenvar-cli/lists"}