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.
- Linear API Token (https://linear.app/settings/api)
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
cp .env.example .env
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.
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
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
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
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.
linear-cli issues --list
Licensed under the MIT license, see here.