Last Updated: January 19, 2018
·
465
· ekinertac

Create bitbucket.org repository from command line

#!/bin/bash
function bitbucket_create_repo () {
    curl -k -X POST --user username:password "https://api.bitbucket.org/1.0/repositories" -d "name=$1&is_private=true"
}

Usage

$ bitbucket_create_repo REPO_NAME