LinuxCommandLibrary

gh-rs

Manage GitHub resources

TLDR

View documentation for the original command

$ tldr gh ruleset
copy

SYNOPSIS

gh-rs [global flags] <command> [<args> ...]

PARAMETERS

--help, -h
    Show help for gh-rs or a specific command

--version, -V
    Display gh-rs version

--verbose, -v
    Enable verbose output

--quiet, -q
    Disable progress bars and diagnostic output

--color
    Control when to colorize output (always, never, auto)

--paginate
    Enable pagination for output

--no-pager
    Do not pipe output into a pager

--nocache
    Bypass the API cache

--cache-ttl
    Set custom cache TTL (e.g., 1h)

DESCRIPTION

gh-rs is a high-performance, feature-rich command-line interface for GitHub, implemented in Rust. Designed as a drop-in replacement and enhancement over the official gh tool, it offers superior speed, lower memory usage, and additional functionalities like advanced filtering, batch operations, and better API handling.

Key features include full support for repository management, pull requests, issues, releases, workflows, and authentication. It leverages Rust's efficiency for rapid execution, even with large repositories or complex queries. Ideal for developers seeking a lightweight, extensible GitHub CLI.

Unlike the Go-based gh, gh-rs compiles to a single binary, supports more flags per command, and includes experimental features like GraphQL introspection. Actively maintained with frequent updates.

CAVEATS

Third-party tool, not officially supported by GitHub. Install via cargo install gh-rs. May have compatibility differences with official gh in edge cases.

INSTALLATION

cargo install gh-rs or download prebuilt binaries from GitHub releases.
Requires GitHub token via gh-rs auth login.

SUBCOMMANDS

Common: repo (manage repos), pr (pull requests), issue, release, workflow. Use gh-rs --help for full list.

HISTORY

Initiated in 2023 by Sebastian Popp as a Rust reimplementation of GitHub CLI. Surpassed official gh in benchmarks for speed and features by mid-2024. Open-source under Apache-2.0/MIT licenses, with ongoing contributions.

SEE ALSO

gh(1), hub(1), git(1)

Copied to clipboard