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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file the-jira-cli-0.0.3.1.tar.gz.

File metadata

  • Download URL: the-jira-cli-0.0.3.1.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for the-jira-cli-0.0.3.1.tar.gz
Algorithm Hash digest
SHA256 b90d76a116878835f50e9c5d61dff49fcf3b2739322e8719f36d33137a844f8c
MD5 aef11c4825e1c29ef4c376acfcf07900
BLAKE2b-256 51840177fd5497559dc72fc981e9a31ed53464f8772e5466427c82e840642541

See more details on using hashes here.

File details

Details for the file the_jira_cli-0.0.3.1-py3-none-any.whl.

File metadata

  • Download URL: the_jira_cli-0.0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 14.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for the_jira_cli-0.0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6f8aaed23e7a79a70cd164e17b3dd854e3ef1d1e2ca9825815f50575c7237b34
MD5 e7854496da572ffb922059d655443c4e
BLAKE2b-256 79a1ec3e58a76f6dea6bb324804bb588cc9bb44e641990e24b112dfd49f867dc

See more details on using hashes here.

Supported by

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