ghqc Installation
CLI Installation
Section titled “CLI Installation”These commands should be run in your terminal or PowerShell session to install ghqc.
Unix-Like Systems (Linux, macOS)
Section titled “Unix-Like Systems (Linux, macOS)”Install the latest GitHub release to ~/.local/bin:
curl -fsSL https://raw.githubusercontent.com/a2-ai/ghqctoolkit/main/scripts/install.sh | bashghqc --versionInstall a specific released version:
curl -fsSL https://raw.githubusercontent.com/a2-ai/ghqctoolkit/main/scripts/install.sh | bash -s -- v0.4.0ghqc --versionWindows
Section titled “Windows”The PowerShell installer downloads the matching Windows release, installs it to %LOCALAPPDATA%\Programs\ghqc, and adds that directory to your user PATH.
If you already have the repository checked out locally:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1ghqc --versionInstall a specific released version:
powershell -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Version v0.4.0ghqc --versionIf you do not have the repository checked out locally, you can run the installer directly:
irm https://raw.githubusercontent.com/a2-ai/ghqctoolkit/main/scripts/install.ps1 | iexIf PowerShell installation is not an option, you can still install manually from the GitHub releases page:
- Download the Windows zip asset for your architecture.
- Extract it to
%LOCALAPPDATA%\Programs\ghqc. - Open a new PowerShell window.
- Run
ghqc --version.
ghqc expects Git to be available on PATH, so install Git for Windows if it is not already present.
R package
Section titled “R package”ghqc also has a lightweight wrapper R package that installs, launches, and manages the ghqc CLI from an R session.
To install the R package:
options("repos" = c("PRISM" = "https://prism.dev.a2-ai.cloud/rpkgs/ghqc/latest", getOption("repos")))install.packages("ghqc")#install.packages("pak")pak::pak("a2-ai/ghqc")rv configure repository add PRISM --url https://prism.dev.a2-ai.cloud/rpkgs/ghqc/latest --firstrv add ghqcrv add ghqc --git https://github.com/a2-ai/ghqc --branch mainAfter installing the R package, use ghqc::ghqc_install() to install or upgrade the CLI on macOS, Linux, or Windows, then launch the UI with ghqc::ghqc(). You can also request a specific release with ghqc::ghqc_install(version = "v0.4.1").
For more information regarding the ghqc R package, continue to the R package reference.