This tool provides a shortcut to opening a linear issue in the desktop app or browser.
?
The name of the linear workspace is required. It can be provided in one of three ways.
- The CLI accepts a
-workspaceflag. - The current git repo can provide a
linear.workspaceconfig value. This setting only functions when executed from a git repository, or when the-repoflag is provided. - Set the
LINEAR_WORKSPACEenvironment variable.
These three locations are checked in order, and the first to be found is preferred.
$ git config --add linear.workspace <my-workspace>When run from a git repository where the current branch name contains a linear issue name:
$ open-in-linear -workspace <my-workspace>Or to use a git repo in a different directory:
$ open-in-linear -workspace <my-workspace>Or to open any issue by its name:
$ open-in-linear
$ open-in-linear -workspace <my-workspace> -issue DEV-1