The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events