Forums

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

Set bit bucket permission through commandline

Jayesh Mahajan May 25, 2018

Dear Team,

How to set permission and merge checks through command line in bit bucket cloud.

Thanks you

1 answer

0 votes
Prashant Mali
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2018

Try below command :

--action grantPermissions --permission "PROJECT_CREATE" --group "testgroup1"

 

--action grantPermissions --permission "ADMIN" --userId "testuser1"

 

--action mergePullRequest  --project "zbitbucketcli"  --repository "zbitbucketcli-repo"  --pullRequest "pr2"

 

Thanks,

Prashant

Jayesh Mahajan May 25, 2018

Thanks for quick update!!

For this any CLI i need to install ? and It will work for bit bucket cloud right??

Prashant Mali
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 25, 2018

Yes exactly. Bitbucket CLI is built for server and cloud. refer below link.https://bobswift.atlassian.net/wiki/spaces/SCLI/overview

 

Thanks,

Prashant

Jayesh Mahajan May 27, 2018

Hi Prashant,

As checked, bit bucket CLI is not for cloud service. Please refer attached snap for same.chrome_2018-05-28_10-29-44.png

Do you have any other alternative to use commandline for bit bucket??

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events