Skip to main content

Command Syntax

The basic syntax for cloneit is:
cloneit [OPTIONS] <url>... [path]

Arguments

URL(s)

The URL to the GitHub directory or file you want to download. This argument is required.
cloneit https://github.com/alok8bb/cloneit
You can pass multiple comma-delimited URLs to download multiple directories or files in a single command:
cloneit https://github.com/fpic/linpeace.py,https://github.com/s0xf/r2gihdra.c,https://github.com/fpic/defpol/master

Path (Optional)

An optional destination path where the downloaded content will be saved.
cloneit https://github.com/alok8bb/cloneit ./my-downloads
If not specified, content is downloaded to the current directory.

Available Options

  • -z, --zip - Download and zip directories
  • -q, --quiet - Disable verbose logging
  • -h, --help - Print help information
  • -V, --version - Print version information
For detailed information about each flag, see the Flags reference.

Examples

Download a Repository

cloneit https://github.com/alok8bb/cloneit

Download a Specific Folder

cloneit https://github.com/alok8bb/cloneit/tree/master/src

Download a Single File

cloneit https://github.com/alok8bb/cloneit/tree/master/src/main.rs

Download Multiple Resources

cloneit https://github.com/user/repo1,https://github.com/user/repo2/tree/main/folder

Download with Options

cloneit -z https://github.com/alok8bb/cloneit
This downloads the repository and creates a ZIP archive.
cloneit -q https://github.com/alok8bb/cloneit
This downloads the repository with minimal console output.

Build docs developers (and LLMs) love