top of page
Search

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.


ree

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

ree

We need to copy the value for download_url


ree

Here is a example code:


ree

 
 
 

Comments


bottom of page