Skip to content

geoffjay/linear-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cargo build


Linear CLI

Warning

This is a WIP, might 🔥 your 🏠 down, don't use it

A simple CLI for managing issues and pull requests in Linear using GraphQL.

Prerequisites

Development

Updating the GraphQL Schema

Note

The generate might not be necessary if the schema is handled by the client in queries.rs

cargo install graphql_client_cli
graphql-client introspect-schema https://api.linear.app/graphql --output schema.json
graphql-client generate \
  --schema-path=schema.json \
  --custom-scalars-module='crate::graphql::custom_scalars' \
  --response-derives='Debug' \
  --output-directory src/ \
  src/*.graphql

Environment Variables

cp .env.example .env

Installation

macOS

Currently there are builds in the release for x86_64 and aarch64.

This assumes that ~/.local/bin exists, is in your PATH, and is where you want them to go. Adjust the command for your environment if this is not what's desired.

x86_64
curl -LO https://github.com/geoffjay/linear-cli/releases/latest/download/linear-cli-v0.1.1-darwin-x86_64.tar.gz
tar -xf linear-cli-v0.1.1-darwin-x86_64.tar.gz -C ~/.local/bin
rm linear-cli-v0.1.1-darwin-x86_64.tar.gz
aarch64
curl -LO https://github.com/geoffjay/linear-cli/releases/latest/download/linear-cli-v0.1.1-darwin-aarch64.tar.gz
tar -xf linear-cli-v0.1.1-darwin-aarch64.tar.gz -C ~/.local/bin
rm linear-cli-v0.1.1-darwin-aarch64.tar.gz

Linux

Currently there are only builds in the release for x86_64, arm64 is planned.

This assumes that ~/.local/bin exists, is in your PATH, and is where you want them to go. Adjust the command for your environment if this is not what's desired.

curl -LO https://github.com/geoffjay/linear-cli/releases/latest/download/linear-cli-v0.1.1-linux-x86_64.tar.gz
tar -xf linear-cli-v0.1.1-linux-x86_64.tar.gz -C ~/.local/bin
rm linear-cli-v0.1.1-linux-x86_64.tar.gz

Windows

There is a build for Windows, but I don't have a way to test that so this section will be left as-is for the foreseeable future.

Usage

List Issues

linear-cli issues --list

License

Licensed under the MIT license, see here.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages