Hi,
I took a look at Atlassian Stash REST Plugin resources - https://developer.atlassian.com/static/rest/stash/3.11.3/stash-rest.html - and it seems there is no command to create a repo by CLI: is it correct? is there another way to create a repo by command line?
Thanks a lot.
Best regards.
Matteo
Community moderators have prevented the ability to post new answers.
POSTing to the /rest/api/1.0/projects/{projectKey}/repos
endpoint will create a repository. For example:
curl -u <ADMIN> -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{ "name": "rest-api" }' "https://stash.company.com/rest/api/1.0/projects/<PROJECT>/repos"
This will create a repository called rest-api
in the <PROJECT>
project.
You can also use createRepository from Bitbucket Command Line Interface (CLI). In this case, it would not add value over Jeff's answer unless you had other similar automation you wanted to take advantage of.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.