Perfect for the engineers who love building, but hate having to track everything.
Feels like you are just using git, but you are also keeping those Linear issues nice and tidy!
This CLI runs 100% locally, you just provide your Linear Key via env variable
lit-checkout-trimmed.mov
lit-switch-demo.mov
In this version 0.1, only two commands are supported
lit switch "description of issue"- Runs a search through Linear for issues matching the description
- If multiple hits, will ask to disambiguate
- Assigns issue to you, marks as in progress
- git checkout the branch name (creaets it if it doesn't exist)
lit commit "commit message/issue comment"- Figures out correct issue based on branch
- leaves a comment on the issue
- git commit -m
lit checkout "Issue Title" -d "Description of Issue" -t f- Parses arguments: title, description (optional), issye type [bug, feature, improvement] (optional)
- Creates new Linear Issue
- Generates the Linear automation friendly branch name (exactly how Linear does it in the UI)
- Does git checkout -b LinearbranchName
After cloning the repo, build and link with:
npm run install-global
You'll need just one API key:
Linear API Key:
- Go to Linear Settings > Security/Access
- Create a personal API key
- Set environment variable:
export LINEAR_API_KEY=<your_key>
Alternatively, add to a .env file in the project root and the CLI will load them automatically.
That's it. You're ready to use lit!