1. Sterling Camden
  2. bbnew

Overview

HTTPS SSH
bbnew - create a new BitBucket repository

Chip Camden	January, 2011

USAGE: bbnew [OPTIONS] <NAME>
    -c, --conf=FILE                  Specify a custom config file.
    -d, --desc=DESCRIPTION           Specify a project description.
    -l, --lang=LANGUAGE              Specify a programming language.
    -p, --pass=PASSWORD              Specify a Bitbucket password.
    -u, --user=USERNAME              Specify a Bitbucket user name.
    -s, --site=URI                   Specify a project website URI.
    -h, --help                       Display this help text and exit.


This script creates the repository on BitBucket.org using credentials stored in
a file ~/.bitbucket (which you should chmod 600 so nobody but root can read
it).  This file is expected to contain the BitBucket username and password,
separated by a colon (':').  Use of the file is optional; command line options
may be used and, in the absence of both approaches, interactive authentication
is used.

The new repository will be created under the user's account.  If successful, it
will also be cloned under the current directory.

KNOWN ISSUES

Password input for interactive authentication is not echoed to the terminal so
that shoulder surfing will not be much of a problem, but the password is stored
in a data structure (and thus in RAM) when using the "-p" option (though not
when using interactive input) and there is no built-in protection against
keyboard input sniffing or swapping to disk.

We also get some extraneous terminal output in the successful case.  But hey,
it works!