{"id":22930884,"url":"https://github.com/zewebdev1337/new-repo-from-template","last_synced_at":"2025-04-01T17:21:36.519Z","repository":{"id":233125042,"uuid":"723212402","full_name":"zewebdev1337/new-repo-from-template","owner":"zewebdev1337","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-25T00:33:16.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T11:16:51.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","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/zewebdev1337.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":"2023-11-25T00:33:14.000Z","updated_at":"2023-11-25T03:36:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"657b095a-108f-4844-b202-235166aa44b8","html_url":"https://github.com/zewebdev1337/new-repo-from-template","commit_stats":null,"previous_names":["zewebdev1337/new-repo-from-template"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fnew-repo-from-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fnew-repo-from-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fnew-repo-from-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zewebdev1337%2Fnew-repo-from-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zewebdev1337","download_url":"https://codeload.github.com/zewebdev1337/new-repo-from-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246679068,"owners_count":20816402,"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":[],"created_at":"2024-12-14T10:30:37.082Z","updated_at":"2025-04-01T17:21:36.502Z","avatar_url":"https://github.com/zewebdev1337.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# New Repo from Template\n\n## Overview\n\nNew Repo from Template is a command line utility designed to simplify the process of creating a new GitHub repo from your existing template repositories. This tool leverages the GitHub CLI to get a new repo up and running with one command. Perfect for devs who frequently initialize new projects based on predefined templates.\n\n### NOTE: No git LFS support.\n\n## Features\n\n- **Interactive Mode**: Guided prompts to select a template, define repository details, and set the local repository path.\n- **Command-Line Arguments**: Support for creating a repository with parameters for template, name, description, destination, and visibility.\n- **Visibility Inheritance**: Option to inherit visibility settings from the template repository.\n- **Extended Repository Support**: Ability to create a repository from any GitHub repository, not limited to owned templates or template repositories (via parameters only).\n\n## Install\n\n1. Clone the repository or download the `new-repo-from-template.sh` and `install.sh` scripts to your local machine.\n2. Navigate to the directory containing the scripts.\n3. :\n   ```bash\n   sudo ./install.sh\n   ```\n\n## Usage\n\nTo create a new repository from a template, you can use the tool in interactive mode or pass parameters directly:\n\n### Interactive Mode\n\nSimply run the command without arguments:\n\n```bash\nnew-repo-from-template\n```\n\nFollow the interactive prompts to select a template repository, define the new repository details, and set the local repository path.\n\n### Command-Line Arguments\n\nTo create a repository with parameters:\n\n```bash\nnew-repo-from-template --template=\u003ctemplate-repo\u003e --name=\u003cnew-repo-name\u003e [--description=\u003cdescription\u003e] [--destination=\u003cdirectory\u003e] [--visibility=\u003cpublic|private|inherit\u003e]\n```\n\n- `--template`, `-t`: Specify the template repository (mandatory if using options).\n- `--name`, `-n`: Specify the name of the new repository (mandatory if using options).\n- `--description`, `-d`: Specify the description of the new repository (optional).\n- `--destination`, `-D`: Specify the destination directory for the local repository (optional).\n- `--visibility`, `-v`: Specify the visibility of the new repository (`public`, `private`, `inherit`) (optional).\n\n### Help\n\nTo display the help message:\n\n```bash\nnew-repo-from-template --help\n```\n\n## Uninstall\n\n```bash\nsudo ./uninstall.sh\n```\n\n## Dependencies\n\n- Git\n- GitHub CLI\n\n## Support\n\nFor support, questions, or contributions, please open an issue or submit a pull request.\n\n## TODO\n\n- Code cleanup and refactoring.\n- Group functionality into functions for better maintainability.\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewebdev1337%2Fnew-repo-from-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzewebdev1337%2Fnew-repo-from-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzewebdev1337%2Fnew-repo-from-template/lists"}