Codebase-CLI is a command line interface for codebasehq.com.
$ pip install codebase-cli
Initialisation will run the first time a command is used. You will be asked a set of questions pertaining to your codebasehq.com setup.
For automatic discovery the name of the branch is important as it will map to the ticket that you are working on. Either ticket-xxx- or xxx- are valid.
$ cd ticket-1234-my-awesome-code
If you are not working on a branch that can be used for automatic discovery you can manually set the ticket that you are working on.
$ cb ticket set 1234
Automatic discovery always trumps a manually set ticket.
To get the status of the current ticket.
$ cb status
To get the status of a ticket explicitly.
$ cb status 1234
To set the status via interface.
$ cb status update
Explicitly set status straight away.
$ cb status update 1
The id for the statuses can be retrieved via.
$ cb statuses
To get the currently assigned user.
$ cb assigned
To set the assigned user via interface.
$ cb assigned update
To get a log of comments.
$ cb comments
To create a comment via interface.
$ cb comment update
To create a comment straight away.
$ cb comment update 'This is my new comment that I would like to make'
To get the description of the current ticket.
$ cb description
To open the current ticket in a browser window.
$ cb open
To checkout a branch and mark a ticket as "In Review". This will try to autodiscover the ticket you want to work on but will let you choose if it is ambiguous.
$ cb review 1234
To update multiple values at once (notes, status, assignee).
$ cb ticket update
$ cb ticket number