Skip to content

jabed-web-dev/gitdown-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gitdown-cli (CLI Tool)

A CLI tool to download GitHub repository files or folders
Download a repository, folder, subfolder, or file from a GitHub repository URL or Path.

Install

npm install -g gitdown-cli
deno install -g -RWN -n gitdown npm:gitdown-cli

Usage in CLI Command

gitdown -h|--help

Usage:
  gitdown <url> <path>?
  <url>   GitHub repository URL: <https://github.com/>?user/repo/<tree|blob>/branch/path/<folder|file>
          Use folder path: user/repo/<folder>                     Default branch: main
  <path>? Local directory path or filename: new-dir|new-filename  Default path: cwd+urlPath

          Download a repository, folder, subfolder or file from a GitHub repository URL or Path.

Download commands

# Download folder with url
gitdown https://github.com/nodejs/node/tree/main/doc/api node-api
# with path
gitdown nodejs/node/tree/main/doc/api
gitdown nodejs/node/doc/api #(default branch main) work with folder path

# Download file with url
gitdown https://github.com/nodejs/node/blob/main/doc/api/index.md node-api.md
# with path
gitdown nodejs/node/blob/main/doc/api/index.md

About

download github files and folders

Resources

License

Stars

Watchers

Forks

Packages

No packages published