Description
This is a command line interface (CLI) for remotely accessing Atlassian products. This provides a convenient way to automate administration tasks and content for Atlassian products. Examples are build and test automation or other business processes. This is a working command line client that can be used directly with your installation. This distribution makes it convenient to have a single installation to access all your Atlassian products. For each product, it is functionally equivalent to the individual product (at the same release level) as it is derived from the built individual CLI product.
All CLI tools have standard interfaces and implementations. They share common components that can be used to build additional CLI-like tools.
Entry details
The Atlassian CLI debuted in Codegeist 2008. It has been significantly enhanced since then and now covers all Atlassian (server) products. The following describes the enhancements made to the Atlassian Command Line Interface since Codegiest 2008.
Atlassian CLI
JIRA CLI
Confluence CLI
|
Crowd CLI
Bamboo CLI
FishEye CLI
Crucible CLI
|
Coverage
| Product | Product CLI page | Type | CLI coverage of available APIs |
Remote API coverage of product capability |
|---|---|---|---|---|
| Confluence | Confluence Command Line Interface | SOAP REST |
good | good |
| JIRA | JIRA Command Line Interface | SOAP REST |
good | good |
| Bamboo | Bamboo Command Line Interface | REST | good | limited |
| Fisheye | FishEye Command Line Interface | REST | good | limited |
| Crucible | Crucible Command Line Interface | REST | limited | minimal |
| Crowd | Crowd Command Line Interface | REST | limited | minimal |
Installation
- Unzip the distribution package and put the enclosed directory in a convenient location
- Ensure the Remote API capability is enabled for any product you wish to access with the client.
Usage
- On a command line, cd to the directory where you installed the client
- On Windows
- Run the product specific (confluence, jira, bamboo, fisheye, crucible, crowd) bat file
- On Linux, Mac, or Unix
- Run the product specific .sh file
- On any system supporting JAVA
- Run java -jar release/<product>-cli-1.x.x.jar
- This will show help text for the command line interface client
- The client defaults to use a user of automation. Either add this user with all the authorities required to do the actions you want or specify a different user parameter
- It is recommended that you open each product bat file with an editor and customize it for your environment by adding server, user, and password parameters. Follow the example in the comments and make sure you do not remove the %* at the end of the line.
Examples
Each CLI client has documented examples:
- Confluence Command Line Interface#examples
- JIRA Command Line Interface#examples
- Bamboo Command Line Interface#examples
- FishEye Command Line Interface#examples
- Crucible Command Line Interface#examples
- Crowd Command Line Interface#examples
Help text
Each CLI client has documented help text:
- Confluence Command Line Interface#helptext
- JIRA Command Line Interface#helptext
- Bamboo Command Line Interface#helptext
- FishEye Command Line Interface#helptext
- Crucible Command Line Interface#helptext
- Crowd Command Line Interface#helptext
Each client comes with standard help text displayed by the default command or using --help. This gives the precise definition of parameters. The product specific CLI pages have a copy of the online help. All follow standards and all have consistent parameters for cross product functions like action, server, user, password, file, ...
Tips
|
Error handling
Care is taken to return the appropriate exit codes to the command processor. This makes it possible do error handling in automation scripts. Error and error logging output is directed to standard error.
| Error type | Exit code | Description |
|---|---|---|
| SUCCESS | 0 | Normal exit |
| CLIENT_EXCEPTION | -1 | The client has found a problem with the request and is reporting an error with a message. |
| PARAMETER_PROBLEM | -2 | The client processed the command parameters and found a syntax error or missing required parameters according to the parameter definition |
| REMOTE_EXCEPTION | -3 | The remote system has reported an error. The error message comes from the server. |
| FAILURE | -99 | The client program failed in an unexpected way.; |
License
- The software provided for this tool has a BSD style license
- The distribution ships binaries with various licenses (BSD, LGPL, and Apache)
- Look in the license directory for detailed license information
Release history
| Version | Date | State | License | Price |
|
|
17 Oct 2009 | Stable | Freeware / Open Source (BSD) | Free |
|
|
27 Sep 2009 | Stable | Freeware / Open Source (BSD) | Free |
|
|
04 Sep 2009 | Stable | Freeware / Open Source (BSD) | Free |
|
|
18 Aug 2009 | Prerelease | Freeware / Open Source (BSD) | Free |
Screenshots
