{"id":16485338,"url":"https://github.com/jparise/gh-cat","last_synced_at":"2026-05-09T20:32:31.464Z","repository":{"id":165014600,"uuid":"637226122","full_name":"jparise/gh-cat","owner":"jparise","description":"Concatenate and print the contents of files from a remote GitHub repository","archived":false,"fork":false,"pushed_at":"2024-08-30T13:46:29.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T14:46:11.742Z","etag":null,"topics":["cli","gh-extension","github"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jparise.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"jparise"}},"created_at":"2023-05-06T22:32:56.000Z","updated_at":"2024-08-30T13:46:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"4e5c7396-f86b-4086-9bd9-e065a374e418","html_url":"https://github.com/jparise/gh-cat","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fgh-cat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fgh-cat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fgh-cat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jparise%2Fgh-cat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jparise","download_url":"https://codeload.github.com/jparise/gh-cat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241261990,"owners_count":19936046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gh-extension","github"],"created_at":"2024-10-11T13:25:29.639Z","updated_at":"2026-05-09T20:32:26.428Z","avatar_url":"https://github.com/jparise.png","language":"Shell","funding_links":["https://github.com/sponsors/jparise"],"categories":[],"sub_categories":[],"readme":"# gh-cat\n\nConcatenate and print the contents of files from a remote GitHub repository\n\n```\nUsage: gh cat repo path ...\n\nConcatenate and print the contents of files in a GitHub repo\n\nArguments:\n    repo            like: username/repo\n    path            file path within the repo\n\nOptions:\n    -b, --branch    branch or tag name\n    -c, --cmd       cat-style output command\n    -h, --help      print usage\n    -v, --version   print version\n    -V, --verbose   enable debug output\n\nDependencies: curl\n\nExamples:\n    gh cat jparise/gh-cat README.md\n    gh cat jparise/gh-cat README.md LICENSE \u003e file\n    gh cat jparise/gh-cat -c \"bat --number\" README.md\n    gh cat cli/cli -b trunk README.md\n```\n\nIt can be run as a standalone executable (`gh-cat`) or as a\n[GitHub CLI extension](https://cli.github.com/manual/gh_extension).\n\nFiles will be piped to a cat-style command for printing. The first available of\n`batcat`, `bat`, or `cat` will be used by default, but this command can also be\nexplicitly specified using the `--cmd` option.\n\nWhen [bat][] is used, its `--file-name` argument will be added automatically.\n\n[bat]: https://github.com/sharkdp/bat\n\n## Installation\n\n```sh\ngh extension install jparise/gh-cat\n```\n\n### Dependencies\n\n* [`curl`](https://curl.se/)\n* [`gh`](https://cli.github.com/)\n* [`bat`](https://github.com/sharkdp/bat) (optional)\n\n## Examples\n\n```sh\n# Print the contents of README.md from the jparise/gh-cat repository\n$ gh cat jparise/gh-cat README.md\n\n# Print the concatenated contents of README.md and LICENSE and redirect that\n# output to `file`\n$ gh cat jparise/gh-cat README.md LICENSE \u003e file\n\n# Print the contents of README.md using the command `bat --number`.\n$ gh cat jparise/gh-cat -c \"bat --number\" README.md\n\n# Print the contents of README.md from the cli/cli repository's `trunk` branch\n$ gh cat cli/cli -b trunk README.md\n```\n\n## License\n\nThis code is released under the terms of the MIT license.\nSee [`LICENSE`](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjparise%2Fgh-cat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjparise%2Fgh-cat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjparise%2Fgh-cat/lists"}