https://github.com/hypervideo/linear-cli
A linear.app API client for the command line
https://github.com/hypervideo/linear-cli
Last synced: 4 months ago
JSON representation
A linear.app API client for the command line
- Host: GitHub
- URL: https://github.com/hypervideo/linear-cli
- Owner: hypervideo
- Created: 2024-09-01T13:20:19.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T19:07:44.000Z (about 1 year ago)
- Last Synced: 2025-04-14T20:23:46.975Z (about 1 year ago)
- Language: Rust
- Size: 147 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# linear client
A simple cli utility to interact with the linear API.
## Usage
Get an API key from the linear app and set it as an environment variable `LINEAR_API_KEY`.
```
Usage: lr [OPTIONS]
Commands:
init Initialize the configuration of `lr`. Will prompt for the API key and write $XDG_CONFIG_HOME/linear-cli/config.toml
me Show information about the authenticated user
team
issue
debug
help Print this message or the help of the given subcommand(s)
Options:
--api-key [env: LINEAR_API_KEY]
-h, --help Print help
```
### Command: init
```
Initialize the configuration of `lr`. Will prompt for the API key and write $XDG_CONFIG_HOME/linear-cli/config.toml
Usage: lr init
Options:
-h, --help Print help
```
### Command: me
```
Show information about the authenticated user
Usage: lr --api-key me [OPTIONS]
Options:
--json
-h, --help Print help
```
### Command: team
```
Usage: lr team
Commands:
list List teams
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
```
### Command: issue
```
Usage: lr issue
Commands:
show Show details about a single issue
list List issues
update List issues
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
```
#### Examples
List todo items assigned to a user, sorted by updated date:
```
lr issue list --not-state completed,canceled --assignee robert --sort-by updated
```