{"id":29296992,"url":"https://github.com/fatehak/genzo-cli","last_synced_at":"2025-07-06T16:08:54.746Z","repository":{"id":65186346,"uuid":"585125642","full_name":"FatehAK/genzo-cli","owner":"FatehAK","description":"Rapidly scaffold projects with custom templates ⚡️","archived":false,"fork":false,"pushed_at":"2025-06-21T05:46:17.000Z","size":2111,"stargazers_count":23,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-29T10:01:58.311Z","etag":null,"topics":["boilerplate","cli","cli-tool","generator","scaffold"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/FatehAK.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,"zenodo":null}},"created_at":"2023-01-04T11:37:12.000Z","updated_at":"2025-06-21T05:46:20.000Z","dependencies_parsed_at":"2023-12-01T22:26:54.136Z","dependency_job_id":"6ddabcfc-f7d1-4734-9053-1207eaf41807","html_url":"https://github.com/FatehAK/genzo-cli","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/FatehAK/genzo-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FatehAK%2Fgenzo-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FatehAK%2Fgenzo-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FatehAK%2Fgenzo-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FatehAK%2Fgenzo-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FatehAK","download_url":"https://codeload.github.com/FatehAK/genzo-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FatehAK%2Fgenzo-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263932070,"owners_count":23531715,"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":["boilerplate","cli","cli-tool","generator","scaffold"],"created_at":"2025-07-06T16:08:52.056Z","updated_at":"2025-07-06T16:08:54.734Z","avatar_url":"https://github.com/FatehAK.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/genzo\"\u003e\n    \u003cimg width=\"120\" height=\"120\" hspace=\"10\" src=\"https://images2.imgbox.com/bc/cd/sxR54KnL_o.png\" alt=\"genzo logo\" /\u003e\n  \u003c/a\u003e\n  \u003ch1\u003egenzo\u003c/h1\u003e\n  \u003cp\u003eRapidly scaffold your projects for development with custom templates\u003c/p\u003e\n  \u003cimg src=\"https://img.shields.io/node/v/genzo\" alt=\"node-current\" /\u003e\n  \u003cimg alt=\"GitHub Workflow Status\" src=\"https://img.shields.io/github/actions/workflow/status/fatehak/genzo-cli/validate_build.yaml\" /\u003e\n  \u003cimg src=\"https://img.shields.io/github/v/release/fatehak/genzo-cli\" alt=\"GitHub release\" /\u003e\n  \u003cimg src=\"https://img.shields.io/npm/l/genzo\" alt=\"licence\" /\u003e\n\u003c/div\u003e\n\n\u003cp\u003e\u0026nbsp;\u003c/p\u003e\n\n## Features\n\n- Fetch your custom templates stored in GitHub or your local file system.\n- Fuzzy searches your list of templates for convenience and ease of use.\n- Interactive prompts using [Inquirer](https://www.npmjs.com/package/inquirer) to automate common tasks in repository setup.\n- Can detect a Monorepo template and install deps in all packages.\n- Checks the presence of [Husky](https://www.npmjs.com/package/husky) scripts and makes them executable so you don't have to!\n- Make use of slots to quickly replace repeated patterns in the generated repository.\n- Supports CLI arguments to automatically initialize Git, install packages and open your preferred code editor.\n\n## Motivation\n\nAs we gain experience with various projects and tools, we tend to maintain opinionated templates to bootstrap new projects. Maybe you have a customized setup for building a production-grade Web project, or you got some handy templates for experiments or even some for your technical interviews.\n\nWith `genzo`, you can rapidly scaffold projects using your custom templates from local and remote sources. It automates the most common tasks involved in setting up a JavaScript-based project.\n\nIf you find the tool useful, consider showing your support by giving a ⭐\n\nContributions are most welcome! We follow [conventional-commits](https://www.conventionalcommits.org/en/v1.0.0/)\n\n## Demo\n\n- Fetching templates from GitHub\n\n![general usage](https://images2.imgbox.com/27/68/DqPhlgQc_o.gif)\n\n- Using a local Monorepo template and auto-setup git and packages without prompting the user with the `-gi` flag\n\n![monorepo usage](https://images2.imgbox.com/bd/12/7Qwxmkql_o.gif)\n\nTemplates created by me for reference - https://github.com/FatehAK/dev-templates\n\n## Installation\n\n```shell\nnpm install -g genzo\n```\n\nCreate a `.genzorc.js` file in your `$HOME` directory. Refer [config](#configuration) for more details.\n\n## Usage\n\n```console\ngen [OPTIONS] | genzo [OPTIONS]\n\nOPTIONS:\n  -h, --help             show this message and exit\n  -v, --version          print the version string\n  -g, --git              auto-initialize a git repository\n  -i, --install          auto-install packages\n  -e, --editor           opens the editor defined in config\n  -e, --editor \u003cstring\u003e  opens the specified editor\n\nEXAMPLES:\n  gen -g                 # auto-initializes a git repository without querying the user\n  gen -i                 # auto-installs packages without querying the user\n  gen -e                 # opens the generated repository in the editor defined in config\n  gen -e code            # opens the generated repository in the specified editor (i.e VSCode)\n  gen -gie               # does git init, installs packages and opens the editor defined in config\n  gen -gi -e code        # does git init, installs packages and opens the specified editor (i.e VSCode)\n```\n\n## Configuration\n\nThe configuration must be defined in `.genzorc.js` and placed in the system's `$HOME` directory.\n\nAn example configuration:\n\n```js\nmodule.exports = {\n  templatePath: 'https://api.github.com/repos/fatehak/dev-templates/contents/templates',\n  githubToken: 'aNoiceToken',\n  authorName: 'YOUR_NAME',\n  slotPaths: ['**/.github/**', '**/package.json', '**/README.md'],\n  slots: {\n    '[SOME_VAR]': 'some_value',\n  },\n  editorBinary: 'code',\n};\n```\n\n### `templatePath`\n\nType: `String` Default: `undefined`\n\nAccepts a GitHub repository path or an absolute path to the templates in your local system.\n\nThe GitHub repository path must in the format `https://api.github.com/repos/${USER}/${REPO}/contents/path_to_templates`\n\n```js\ntemplatePath: 'https://api.github.com/repos/fatehak/dev-templates/contents/templates'\n```\n\nOr you can pass an absolute path to your templates stored locally\n\n```js\ntemplatePath: '/Users/myuser/Dev/my-templates'\n```\n\n### `githubToken`\n\nType: `String` Default: `undefined`\n\nOptionally pass a GitHub token to avoid hitting GitHub's rate limiter. Only required if `templatePath` is a GitHub repository. It is mandatory to pass the token for private repositories.\n\nCheck this [link](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) for details on creating a token.\n\n### `authorName`\n\nType: `String` Default: `undefined`\n\nThe default author name to be used while creating the repository. If this value is present then the CLI will skip asking the author name query.\n\n### `slotPaths`\n\nType: `Array[String]` Default: `[]`\n\nAn array of minimatch glob patterns that point to files with slots to replace.\n\n```js\nslotPaths: ['**/.github/**', '**/package.json']\n```\n\nThe above example will replace slots defined in `.github` folder and `.package.json`\n\n### `slots`\n\nType: `Object` Default: `undefined`\n\nAn object with slot name-value mapping. The CLI will replace these slots with their corresponding values within files.\n\n```js\nslots: {\n  '[AUTHOR_NAME]': 'your_name'\n}\n```\n\nThe above example will replace all occurences of `[AUTHOR_NAME]` with `your_name` in matching files defined in `slotPaths`\n\nBy default, `[AUTHOR_NAME]` and `[REPO_NAME]` slots will be replaced in the generated repository based on user input.\n\n### `editorBinary`\n\nType: `String` Default: `undefined`\n\nPath to an editor binary. This will be used to optionally open the repository at the end of the genzo session.\n\n```js\neditorBinary: '/Users/my_user/Library/Application Support/JetBrains/Toolbox/scripts/webstorm'\n```\n\nor you can also specify an alias to an editor binary, for example to open VSCode\n\n```js\neditorBinary: 'code'\n```\n\n## License\n\n[MIT](./LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatehak%2Fgenzo-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatehak%2Fgenzo-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatehak%2Fgenzo-cli/lists"}