top of page

How to download files from GitHub with PowerShell

The first thing we need to know is the GitHub user name and repository name. In this example I made a public repository I created.

GitHub Username: citlead-cit-devops

GitHub Repository: CIT-DevOPS-Public

Lets now use the Invoke-RestMethod to get some details about the GitHub Repository using GitHub's API.

Tip: You can also get the same information with your web browser.


We need to copy the value for download_url


Here is a example code:

73 views0 comments

Recent Posts

See All


bottom of page