Available Flags
cloneit supports several command-line flags to customize its behavior.Core Flags
Download and zip directories into a compressed archive.When this flag is enabled, cloneit will download the specified GitHub directory or file and automatically create a ZIP archive of the downloaded content. The archive will be named after the downloaded directory with a This creates a
.zip extension.Example:cloneit.zip file containing the downloaded repository.Example with long form:The zip feature is particularly useful when you need to archive or share the downloaded content.
Disable verbose logging and show only warnings and errors.By default, cloneit displays informative messages about each step of the download process (validation, downloading, completion). When quiet mode is enabled, only warning and error messages are shown.Example:Example with long form:
Optional destination path where the downloaded content will be saved.Specify a custom directory path where you want to save the downloaded GitHub content. If not provided, content is downloaded to the current working directory.Example:This downloads the repository to the
./downloads directory.Example with absolute path:The directory will be created if it doesn’t exist.
System Flags
Print help information and exit.Displays the command usage, available options, and examples.Example:
Print version information and exit.Displays the current version of cloneit.Example:
Combining Flags
You can combine multiple flags in a single command:- Downloads the repository
- Creates a ZIP archive (
-z) - Runs in quiet mode (
-q) - Saves to the
./my-projectsdirectory