gh curl Get an individual file's contents from a repository with the GitHub CLI Installation gh extension install spenserblack/gh-curl Usage # in a repo gh my-file # to specify a different repo gh user/other-repo my-file