Skip to main content

Download GitHub files and directories with ease

cloneit is a fast, lightweight CLI tool that downloads specific GitHub directories or files without cloning the entire repository.

Quick start

Get up and running with cloneit in three simple steps.

1

Install cloneit

Install cloneit using Cargo:
cargo install --git https://github.com/alok8bb/cloneit
2

Run your first command

Download a specific directory from any GitHub repository:
cloneit https://github.com/username/repo/tree/main/src
The directory will be downloaded to your current working directory.
3

Explore advanced features

Download and zip a directory in one command:
cloneit -z https://github.com/username/repo/tree/main/docs
Download multiple URLs at once:
cloneit https://github.com/user/repo1/tree/main/src,https://github.com/user/repo2/blob/main/README.md

Key features

Everything you need to download GitHub content efficiently.

Selective downloads

Download specific directories without cloning the entire repository, saving time and bandwidth.

File-level precision

Download individual files from any branch or commit with a single command.

ZIP archives

Automatically create ZIP archives of downloaded content with the -z flag.

Batch downloads

Download multiple URLs in a single command using comma-separated values.

GitHub API integration

Leverage the GitHub API for reliable downloads with optional token authentication.

Cross-platform

Works seamlessly on Windows, macOS, and Linux systems.

Ready to get started?

Install cloneit and start downloading GitHub content efficiently in just a few minutes.

Get started now