Skip to main content

An ai based cli for interacting with linear.Use the power of AI to interface with your issue tracking system in natural language right from your terminal

Project description

linear-cli-ai

An AI based CLI for the linear app Use the power of AI to interface with your issue tracking system in natural language right from your terminal

Installation

Installation of linear-cli-ai and its dependencies require python and pip. To ensure smooth installation, it's recommended to use:

  • python: 3.8.10 or greater
  • pip: 9.0.2 or greater

The safest way to install globally is to use


   $ python -m pip install linear-cli-ai

or for your user:


   $ python -m pip install --user linear-cli-ai

If you have the linear-cli-ai package installed and want to upgrade to the latest version, you can run:


   $ python -m pip install --upgrade linear-cli-ai

Configuration

Before using linear-cli-ai, you need to configure a few keys. You can do this in several ways:

  • Configuration command
  • Environment variables
  • Config file

The quickest way to get started is to run the linear configure command:

$ linear configure
  Provide the following details : 
   Linear API Token : MY_LINEAR_TOKEN
   OpenAI API Key : MY_OPENAI_KEY
   Select the model you will use : gpt4 or gpt-3.5-turbo-0613

To use environment variables, do the following:


   $ export LINEAR_TOKEN=<linear_token>
   $ export GPT_MODEL=<gpt_model>
   $ export OPENAI_API_KEY=<openai_api_key>

To use a config file, create an INI formatted file like this:


  [linear]
  token = <linear_token>
  
  [gpt]
  token = <openai_api_key>
  model = <gpt_model>

and place it in ~/.linear-cli-ai.ini (or in %UserProfile%\.linear-cli-ai.ini on Windows).

Sample Usage

linear-cli-ai is available in the commandline with the command linear

To view help documentation type :

$ linear help

To use ai to perform actions on linear:

$ linear ai

To create an issue via options on linear :

$ linear create-issue

Sample ai prompt for creating an issue on linear

Create an issue with description 'Rewrite the print service with queue system' and title as 'Print Service v2.0' and team as 'engineering' and assign it to 'Rohan' and add labels 'bug' and 'high priority' and add it to project 'Print Service'

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

linear_cli_ai-0.1.5.tar.gz (12.5 kB view hashes)

Uploaded Source

Built Distribution

linear_cli_ai-0.1.5-py3-none-any.whl (13.7 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