Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

I'm trying to download bitbucket repo using powershell

chandra mouli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2022

I tried using 

invoke-webrequest , invoke-restmethod and i passed Uri and the credential object, but i get 401 unauthorized. but when i try to access in browser i'm able to download the code.

 

any help is much appreciated.

 

Thanks 

chandramouli

1 answer

0 votes
Pramodh M
Community Champion
January 30, 2022

Hi @chandra mouli 

Welcome to the Community!!

There is no API to download the Repo

You need git tool to clone the repo

Here's the Script to download the all repo in a project

https://gist.github.com/eeichinger/babbdf99d8fe21fef8634d56f29defba

Thanks,
Pramodh

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events