{"id":19232266,"url":"https://github.com/flexstack/envtpl","last_synced_at":"2025-07-25T08:10:23.418Z","repository":{"id":256148788,"uuid":"854299507","full_name":"flexstack/envtpl","owner":"flexstack","description":"A CLI tool for generating .env files from .env.template files via prompt","archived":false,"fork":false,"pushed_at":"2024-09-29T19:10:23.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-23T11:32:15.030Z","etag":null,"topics":["dotenv","dotenv-cli","dotenv-editor","dotenv-template"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexstack.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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-08T22:35:51.000Z","updated_at":"2024-09-29T19:09:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3e976a43-98e4-4dfa-9db9-95af9e9e17a6","html_url":"https://github.com/flexstack/envtpl","commit_stats":null,"previous_names":["flexstack/envtpl"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/flexstack/envtpl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fenvtpl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fenvtpl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fenvtpl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fenvtpl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexstack","download_url":"https://codeload.github.com/flexstack/envtpl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexstack%2Fenvtpl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266978069,"owners_count":24015488,"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-07-25T02:00:09.625Z","response_time":70,"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":["dotenv","dotenv-cli","dotenv-editor","dotenv-template"],"created_at":"2024-11-09T16:05:49.383Z","updated_at":"2025-07-25T08:10:23.409Z","avatar_url":"https://github.com/flexstack.png","language":"Go","readme":"# envtpl\n\nA CLI tool for generating .env files from .env.template files via prompts and random values.\n\n## Installation\n\nUsing `curl`:\n  \n ```sh\n curl -sfL https://raw.githubusercontent.com/flexstack/envtpl/main/install | bash\n ```\n\nUsing `go install`:\n\n```sh\ngo install github.com/flexstack/envtpl\n```\n\n## Usage\n\n```sh\nenvtpl [template-file] -o [output-file]\n```\n\n### Supported types\n\n```sh\n# .env.template\nUUID=\u003cuuid\u003e\nPASSWORD=\u003calpha:24\u003e\nENCRYPTION_KEY=\u003cascii85:32\u003e\nENCRYPTION_IV=\u003cbase64:16\u003e\nENCRYPTION_SALT=\u003chex:16\u003e\nPORT=\u003cint:1024-65535\u003e\nENUM=\u003cenum:development,production\u003e\nPROMPT=\u003ctext:Enter your name\u003e\nSECRET_PROMPT=\u003cpassword:Enter your password\u003e\nPROMPT_2= # Empty values elicit a prompt\n```\n\n| Type | Description | Example |\n| --- | --- | --- |\n| alpha | Random alphanumeric characters | `PASSWORD=\u003calpha:24\u003e` |\n| ascii85 | Random ASCII characters | `ENCRYPTION_KEY=\u003cascii85:32\u003e` |\n| base64 | Random base64 characters | `ENCRYPTION_IV=\u003cbase64:16\u003e` |\n| hex | Random hexadecimal characters | `ENCRYPTION_SALT=\u003chex:16\u003e` |\n| uuid | Random UUIDv4 | `UUID=\u003cuuid\u003e` |\n| enum | Enumerated list of values | `ENUM=\u003cenum:development,production\u003e` |\n| int | Random integer | `PORT=\u003cint:1024-65535\u003e` |\n| text | Prompt user for text input | `PROMPT1=\u003ctext:Enter your name\u003e` |\n| password | Prompt user for secret input | `SECRET_PROMPT=\u003cpassword:Enter your API key\u003e` |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Fenvtpl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexstack%2Fenvtpl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexstack%2Fenvtpl/lists"}