download-git-repo-cli

Download and extract a git repository (GitHub, Gitlab, Bitbucket) from node CLI.

Usage no npm install needed!

<script type="module">
  import downloadGitRepoCli from 'https://cdn.skypack.dev/download-git-repo-cli';
</script>

README

download-git-repo-cli

Download and extract a git repository (GitHub, Bitbucket) from node CLI.

See download-git-repo for the API and issue tracker.

Install

Require Node.js and Git.

$ npm install download-git-repo-cli -g

Usage

  Usage
    $ download-git-repo <url>
    $ download-git-repo <url> <directory>
    $ download-git-repo <url> <directory> --clone

  Example
    $ download-git-repo -h
    $ download-git-repo flippidippi/download-git-repo-fixture
    $ download-git-repo flippidippi/download-git-repo-fixture test/tmp
    $ download-git-repo gitlab:flippidippi/download-git-repo-fixture
    $ download-git-repo gitlab:custom.com:flippidippi/download-git-repo-fixture
    $ download-git-repo bitbucket:flippidippi/download-git-repo-fixture#my-branch test/tmp --clone

  Options
    -h, --help          Show help
    -c, --clone         Use git clone instead of an http download.

License

MIT