GitHub CLI Utilities
Project description
GH Utilities
A collection of useful utilities that work with GitHub CLI gh.
Installation
pipx
This is the recommended installation method.
$ pipx install gh-utils
pip
$ pip install gh-utils
Utilities
ghcrar
Short for gh_create_repo_and_add_to_remote
Features
- Custom GitHub instance hostname support with
--hostname - Supports both
sshandhttpsprotocols
Usage
$ ghcrar --help
usage: ghcrar [-h] [-a SUFFIX] [-n GITHUB REPO NAME] [--public] [--overwrite-remote-origin] [-H {ssh,https}] [-p PROTOCOL] [-S] [-V]
Create a GitHub repo with gh and add it as a remote
options:
-h, --help show this help message and exit
-a SUFFIX, --append SUFFIX
String to append to the repo name (default: None)
-n GITHUB REPO NAME, --name GITHUB REPO NAME
The string to use as GitHub repo name, or <user|org>/<repo-name> with a slash (default: None)
--public Create a public repository (default: False)
--overwrite-remote-origin, --force
Overwrites remote origin if exists (default: False)
-H {ssh,https}, --hostname {ssh,https}
GitHub hostname, default to use the first entry in hosts.yml (default: github.com)
-p PROTOCOL, --protocol PROTOCOL
git protocol (default: ssh)
-S, --no-set-default Do not run `gh repo set-default` (default: False)
-V, --version show program's version number and exit
Screenshots
ghshs
gh switch between https and ssh
Usage
$ ghshs --help
usage: ghshs [-h] [-r REMOTE] [-V]
Switch between HTTPS and SSH types of GitHub remotes
options:
-h, --help show this help message and exit
-r REMOTE, --remote REMOTE
Name of the remote to switch (default: origin)
-V, --version show program's version number and exit
Screenshot
Develop
$ git clone https://github.com/tddschn/gh-utils.git
$ cd gh-utils
$ poetry install
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gh_utils-1.0.0.tar.gz
(6.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gh_utils-1.0.0.tar.gz.
File metadata
- Download URL: gh_utils-1.0.0.tar.gz
- Upload date:
- Size: 6.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.8.20 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cccba2f454806df076bb7f45e76065d3b07a2987bb3130708ce4613dba51df5
|
|
| MD5 |
19a7b03e8c54e3f526d5e45ff4a40c16
|
|
| BLAKE2b-256 |
abdb0dcc753787776d4ed216e95f3866e1615f7a084f8145a3a5f39d06adf38d
|
File details
Details for the file gh_utils-1.0.0-py3-none-any.whl.
File metadata
- Download URL: gh_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.8.20 Darwin/25.1.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e34424753ca68847558f44a8e96d5fcfefd9ac2335e003fd49f18a47e370ca71
|
|
| MD5 |
3ae9296f16607c59fe19c923b0996827
|
|
| BLAKE2b-256 |
a5071a90de5efa9cf39212fb292134ccff8ce4ca1e0ae81dfc2a68d9d04868c4
|