{"id":15503198,"url":"https://github.com/rickmoynihan/wrapenv","last_synced_at":"2026-05-18T15:05:29.230Z","repository":{"id":66459065,"uuid":"82938384","full_name":"RickMoynihan/wrapenv","owner":"RickMoynihan","description":"Simple utility to wrap a command with an environment defined in an env file","archived":false,"fork":false,"pushed_at":"2017-07-14T20:27:26.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-20T01:38:24.728Z","etag":null,"topics":["bash","command-line","environment-variables","shell","unix"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/RickMoynihan.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}},"created_at":"2017-02-23T15:01:50.000Z","updated_at":"2017-02-23T17:27:57.000Z","dependencies_parsed_at":"2023-02-28T19:45:57.149Z","dependency_job_id":null,"html_url":"https://github.com/RickMoynihan/wrapenv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RickMoynihan/wrapenv","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickMoynihan%2Fwrapenv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickMoynihan%2Fwrapenv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickMoynihan%2Fwrapenv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickMoynihan%2Fwrapenv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RickMoynihan","download_url":"https://codeload.github.com/RickMoynihan/wrapenv/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RickMoynihan%2Fwrapenv/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272443796,"owners_count":24936008,"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-08-28T02:00:10.768Z","response_time":74,"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":["bash","command-line","environment-variables","shell","unix"],"created_at":"2024-10-02T09:12:27.923Z","updated_at":"2026-05-18T15:05:29.178Z","avatar_url":"https://github.com/RickMoynihan.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wrapenv\n\nWrap a command with an environment defined in an env file.  `wrapenv` is implemented as a light weight super simple 13 line bash script.\n\n# Installation \u0026 Upgrading\n\nCopy the line below and run it at a terminal to install wrapenv in\n`~/bin`.\n\n```\n$ mkdir -p ~/bin \u0026\u0026 curl https://raw.githubusercontent.com/RickMoynihan/wrapenv/master/wrapenv \u003e ~/bin/wrapenv \u0026\u0026 chmod +x ~/bin/wrapenv\n```\n\n## Create some environments\n\nCreate a directory in `~/.wrapenv` for your project environments.\n\n`$ mkdir -p ~/.wrapenv/\u003cproject-name\u003e`\n\nCreate an env file in the project directory:\n\n`echo MY_PROJET_ENV=foo \u003e ~/.wrapenv/my-project/test.env`\n\n# Usage\n\n```\n$ wrapenv\nUsage: wrapenv \u003cproject-namespace\u003e \u003cenv_name\u003e\n\nAvailable environments:\n\n└── my-project\n    └── test\n\n```\n\nRunning a process with wrapenv (as an example we run the `env` program to print the environment)\n\n```\n$ wrapenv my-project test env\nTERM=xterm-256color\nSHELL=/bin/bash\n...\nMY_PROJECT_ENV=foo\n```\n\n# License\n\nLicensed under the [MIT license](https://opensource.org/licenses/MIT).\n\n(c) 2017 Swirrl IT Ltd\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickmoynihan%2Fwrapenv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickmoynihan%2Fwrapenv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickmoynihan%2Fwrapenv/lists"}