{"id":50215727,"url":"https://github.com/rpothin/gh-template","last_synced_at":"2026-06-01T01:32:54.057Z","repository":{"id":358522115,"uuid":"1240331090","full_name":"rpothin/gh-template","owner":"rpothin","description":"A GitHub CLI extension to snapshot existing repositories' configuration, enhance the experience of provisioning repositories from templates also applying comprehensive configurations, detect configuration drift and apply remediation.","archived":false,"fork":false,"pushed_at":"2026-05-17T20:38:12.000Z","size":115,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-17T20:48:14.839Z","etag":null,"topics":["developer-experience","gh-extension","github-cli","go","repository-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/rpothin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-16T02:41:36.000Z","updated_at":"2026-05-17T20:37:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rpothin/gh-template","commit_stats":null,"previous_names":["rpothin/gh-template"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rpothin/gh-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpothin%2Fgh-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpothin%2Fgh-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpothin%2Fgh-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpothin%2Fgh-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rpothin","download_url":"https://codeload.github.com/rpothin/gh-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rpothin%2Fgh-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33756575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":["developer-experience","gh-extension","github-cli","go","repository-template"],"created_at":"2026-05-26T09:00:28.553Z","updated_at":"2026-06-01T01:32:54.051Z","avatar_url":"https://github.com/rpothin.png","language":"Go","funding_links":[],"categories":["🆕 Recently Updated"],"sub_categories":[],"readme":"# gh-template\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n[![Go version](https://img.shields.io/github/go-mod/go-version/rpothin/gh-template)](go.mod)\n\nA GitHub CLI extension to snapshot repository configuration, create repositories\nfrom template manifests, audit drift, and sync live repositories back to a known\nconfiguration.\n\n`gh-template` helps individual developers and maintainers avoid ClickOps by\ncapturing repository settings, topics, GitHub Actions environments, variables,\nsecrets, Actions permissions, and security settings in `template-metadata.yml`.\n\n## Installation\n\nPrerequisites:\n\n- [GitHub CLI](https://cli.github.com/) authenticated with `gh auth login`\n- Git, for installing GitHub CLI extensions\n\nInstall the extension:\n\n```sh\ngh extension install rpothin/gh-template\ngh template --help\n```\n\nFor source builds and troubleshooting, see [Installation](docs/installation.md).\n\n## Quick start\n\nCapture a repository as a reusable manifest:\n\n```sh\ngh template snapshot --repo owner/source-repo --output ./template-metadata.yml\n```\n\nReview and customize the manifest, then create a new repository from it:\n\n```sh\ngh template create my-new-repo --manifest ./template-metadata.yml\n```\n\nAudit or reconcile an existing repository:\n\n```sh\ngh template audit --repo owner/target-repo --manifest ./template-metadata.yml\ngh template sync --repo owner/target-repo --manifest ./template-metadata.yml\n```\n\nSee the full walkthrough in [Getting started](docs/getting-started.md).\n\n## Commands\n\n| Command | Description |\n|---|---|\n| `gh template create \u003cname\u003e` | Create a repository from a template manifest |\n| `gh template snapshot` | Capture a live repository's settings as YAML |\n| `gh template audit` | Detect configuration drift between a manifest and live state |\n| `gh template sync` | Reconcile a live repository to match a manifest |\n| `gh template list` | List template repositories you own, with optional org templates |\n| `gh template search [query]` | Search public template repositories on GitHub |\n| `gh template fetch` | Fetch a template's recommended manifest locally |\n| `gh template explain [field]` | Show descriptions for manifest fields |\n| `gh template completion [shell]` | Generate shell completion scripts |\n\nEvery command and flag is documented in [Commands](docs/commands.md).\n\n## Manifest\n\nThe `template-metadata.yml` manifest is the source of truth for `create`,\n`audit`, and `sync`. It supports:\n\n- Repository settings and visibility\n- Topics\n- GitHub Actions environments, reviewers, branch policies, variables, and secrets\n- Repository-level Actions variables and secrets\n- Actions workflow permissions\n- Dependabot and secret-scanning settings\n\nRead [Manifest reference](docs/manifest-reference.md) for the complete schema,\nor run:\n\n```sh\ngh template explain --all\n```\n\n## Examples\n\nCommon workflows and manifest examples are available in [Examples](docs/examples.md).\n\n## Contributing\n\nIssues are used for reproducible bugs. Questions and feature ideas belong in\nGitHub Discussions. Please read [Contributing](CONTRIBUTING.md) before opening\nan issue or proposing changes.\n\n## License\n\nMIT. See [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpothin%2Fgh-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frpothin%2Fgh-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frpothin%2Fgh-template/lists"}