Skip to main content

Manage Jira from the Terminal

Project description

The Jira CLI - Manage Jira from the Terminal

Jira Logo

The Jira CLI allows you to configure and manage your Jira instance using simple commands from your terminal.

Installation

You can install the Jira CLI using pip. Check us out on PyPI.

pip install the-jira-cli

TODO: Explain how to manage environment variables when installed

Usage

The Jira CLI comes with built-in help to explain how you can use each command.

jira --help

To get an overview of the commands that are available, you can use the tree command.

jira tree

This will output a tree of the commands available to you.

All output to stdout will be in json format, so that the cli can be consumed easily by other systems. A powerful command line tool for dealing with json is jq. The Jira CLI and jq go hand-in-hand together.

For instance, you can pass a user from the Jira CLI to jq to extract and transform information after you've retrieved it from Jira. Here's a simple transformation you might do before passing the user on to another command.

jira user get --username mproust | jq '{"email": .emailAddress, "displayName": .displayName, "isActive": .active}'

Development

We strongly recommend that you use either a docker container or a python virtual environment to separate your configuration from your host.

To use a virtual environment, you can follow the steps below.

Where possible, we're going to use make, which wraps up some standard commands for us and helps us run through the same steps every time. Standardization comes in handy.

First, we need to set up and activate the virtual environment.

make setup
source .venv/bin/activate

After this, we are going to install our dependencies.

Note: You have to have your virtual environment activated before running this command.

make install

There is a file called .example.env that contains a template for environment variables that are going to be used by the CLI. Using make, we're going to copy it, and then you should fill it in with values for your instance of Jira.

make environment

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

the-jira-cli-0.0.3.1.tar.gz (20.0 kB view hashes)

Uploaded Source

Built Distribution

the_jira_cli-0.0.3.1-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page