Installation & Setup
Follow these steps to install the repotographer CLI and configure your environment.
1. Prerequisites
-
Install and authenticate GitHub CLI (
gh)repotographerinvokesghto retrieve public repository metadata from GitHub.Terminal window brew install ghgh auth loginTerminal window sudo apt install ghgh auth loginTerminal window winget install --id GitHub.cligh auth loginVerify authentication before running repotographer:
Terminal window gh auth status -
Install Graphviz (Optional, for PNG rendering)
repotographerrenders static.pngdiagrams when thedotcommand is present on your PATH. When Graphviz is missing, the tool generates.dotand interactive.htmlfiles without halting.Terminal window brew install graphvizTerminal window sudo apt install graphviz -
Configure Gemini or Vertex AI (Optional, for AI taxonomy)
repotographerusesgemini-3.7-flashto organize repositories into high-level domain pillars.Obtain an API key from Google AI Studio and export it:
Terminal window export GEMINI_API_KEY="your-gemini-api-key"Authenticate with Google Cloud and specify your project:
Terminal window export GOOGLE_GENAI_USE_VERTEXAI="true"export GOOGLE_CLOUD_PROJECT="your-project-id" # Or PROJECT_ID / GCP_PROJECTexport GOOGLE_CLOUD_LOCATION="global"
2. Install repotographer
Install directly with Go 1.23+ or clone the source repository:
Download the latest release archive for macOS (Apple Silicon or Intel), Linux, or Windows from the GitHub Releases page, unpack the binary, and move it to your $PATH.
go install github.com/ghchinoy/repotographer@latestgit clone https://github.com/ghchinoy/repotographer.gitcd repotographermake build# Binary is created in ./bin/repotographerVerify the binary is available:
repotographer versionOutput:
repotographer v0.2.1