{"id":15504633,"url":"https://github.com/djfarly/ghcd","last_synced_at":"2025-06-11T19:07:30.643Z","repository":{"id":60081728,"uuid":"540956017","full_name":"djfarly/ghcd","owner":"djfarly","description":"📂 GitHub Clone Directory — ghcd","archived":false,"fork":false,"pushed_at":"2023-04-23T06:57:29.000Z","size":331,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-26T13:53:43.379Z","etag":null,"topics":["cli","clone","command-line-tool","directory","github"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/djfarly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-09-24T20:17:07.000Z","updated_at":"2023-04-11T15:54:53.000Z","dependencies_parsed_at":"2025-03-04T18:42:53.129Z","dependency_job_id":null,"html_url":"https://github.com/djfarly/ghcd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/djfarly/ghcd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djfarly%2Fghcd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djfarly%2Fghcd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djfarly%2Fghcd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djfarly%2Fghcd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djfarly","download_url":"https://codeload.github.com/djfarly/ghcd/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djfarly%2Fghcd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259320537,"owners_count":22840003,"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","clone","command-line-tool","directory","github"],"created_at":"2024-10-02T09:19:20.496Z","updated_at":"2025-06-11T19:07:30.625Z","avatar_url":"https://github.com/djfarly.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📂 GitHub Clone Directory — `ghcd`\n\n\u003e A CLI to _clone_[^1] a subdirectory of a GitHub repository\n\n```sh\nnpx ghcd@latest [options] \u003curl\u003e [dir]\n```\n\n## Usage\n\nOpen the subdirectory you want to clone in GitHub, and copy the URL. Then run:\n\n```sh\nnpx ghcd@latest https://github.com/vercel/next.js/tree/canary/packages/create-next-app\n```\n\nThis will download `create-next-app` directory of the `vercel/next.js` repository into a new folder.\n\nThe `https://github.com/` part is optional, so you can also run:\n\n```sh\nnpx ghcd@latest vercel/next.js/tree/canary/packages/create-next-app\n```\n\n### Specifying the output directory\n\nYou can specify the output directory by passing directory name as the second argument:\n\n```sh\nnpx ghcd@latest vercel/next.js/tree/canary/packages/create-next-app my-copy-of-create-next-app\n```\n\n## Options\n\n### `--init` / `-i`\n\nInitialize a new git repository in the downloaded directory.\n\n[^1]: The term _clone_ is used loosely here. 🫣 The CLI does not actually clone the repository, but rather downloads the files into a new folder.\n\n### `--help` / `-h`\n\nShow help.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjfarly%2Fghcd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjfarly%2Fghcd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjfarly%2Fghcd/lists"}