{"id":20618202,"url":"https://github.com/tddschn/gh-utils","last_synced_at":"2026-02-23T12:05:59.984Z","repository":{"id":37484857,"uuid":"498784934","full_name":"tddschn/gh-utils","owner":"tddschn","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-16T14:33:45.000Z","size":375,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T13:58:16.790Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/tddschn.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":"2022-06-01T15:07:14.000Z","updated_at":"2024-05-16T14:33:49.000Z","dependencies_parsed_at":"2025-04-15T11:49:10.116Z","dependency_job_id":null,"html_url":"https://github.com/tddschn/gh-utils","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/tddschn/gh-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fgh-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fgh-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fgh-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fgh-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tddschn","download_url":"https://codeload.github.com/tddschn/gh-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tddschn%2Fgh-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263557153,"owners_count":23480113,"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-11-16T12:07:33.674Z","updated_at":"2026-02-23T12:05:54.925Z","avatar_url":"https://github.com/tddschn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GH Utilities\n\nA collection of useful utilities that work with GitHub CLI `gh`.\n\n- [GH Utilities](#gh-utilities)\n  - [Installation](#installation)\n    - [pipx](#pipx)\n    - [pip](#pip)\n  - [Utilities](#utilities)\n    - [ghcrar](#ghcrar)\n      - [Features](#features)\n      - [Usage](#usage)\n      - [Screenshots](#screenshots)\n    - [ghshs](#ghshs)\n      - [Usage](#usage-1)\n      - [Screenshot](#screenshot)\n  - [Develop](#develop)\n\n## Installation\n\n### pipx\n\nThis is the recommended installation method.\n\n```\n$ pipx install gh-utils\n```\n\n### [pip](https://pypi.org/project/gh-utils/)\n\n```\n$ pip install gh-utils\n```\n\n## Utilities\n\n### ghcrar\n\nShort for `gh_create_repo_and_add_to_remote`\n\n#### Features\n- Custom GitHub instance hostname support with `--hostname`\n- Supports both `ssh` and `https` protocols\n\n#### Usage\n\n```\n$ ghcrar --help\n\nusage: ghcrar [-h] [-a SUFFIX] [-n GITHUB REPO NAME] [--public] [--overwrite-remote-origin] [-H {ssh,https}] [-p PROTOCOL] [-S] [-V]\n\nCreate a GitHub repo with gh and add it as a remote\n\noptions:\n  -h, --help            show this help message and exit\n  -a SUFFIX, --append SUFFIX\n                        String to append to the repo name (default: None)\n  -n GITHUB REPO NAME, --name GITHUB REPO NAME\n                        The string to use as GitHub repo name, or \u003cuser|org\u003e/\u003crepo-name\u003e with a slash (default: None)\n  --public              Create a public repository (default: False)\n  --overwrite-remote-origin, --force\n                        Overwrites remote origin if exists (default: False)\n  -H {ssh,https}, --hostname {ssh,https}\n                        GitHub hostname, default to use the first entry in hosts.yml (default: github.com)\n  -p PROTOCOL, --protocol PROTOCOL\n                        git protocol (default: ssh)\n  -S, --no-set-default  Do not run `gh repo set-default` (default: False)\n  -V, --version         show program's version number and exit\n```\n\n#### Screenshots\n\n![ghcrar-public](images/ghcrar-public.png)\n\n![](images/ghcrar-dupe-url-and-set-default.png)\n\n\n### ghshs\n\n\u003c!-- cSpell:disable --\u003e\n**gh** **s**witch between **h**ttps and **s**sh\n\u003c!-- cSpell:enable --\u003e\n\n#### Usage\n\n```\n$ ghshs --help\n\nusage: ghshs [-h] [-r REMOTE] [-V]\n\nSwitch between HTTPS and SSH types of GitHub remotes\n\noptions:\n  -h, --help            show this help message and exit\n  -r REMOTE, --remote REMOTE\n                        Name of the remote to switch (default: origin)\n  -V, --version         show program's version number and exit\n\n```\n\n#### Screenshot\n\n![](./images/ghshs.png)\n\n## Develop\n\n```\n$ git clone https://github.com/tddschn/gh-utils.git\n$ cd gh-utils\n$ poetry install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fgh-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftddschn%2Fgh-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftddschn%2Fgh-utils/lists"}