Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I'm trying to download bitbucket repo using powershell

chandra mouli 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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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