How do I use Line CLI in GitHub Actions or another CI system?
A typical step:
curl -fsSL https://install.clatterlabs.xyz/line | LINE_NO_MODIFY_PATH=1 sh
export PATH="$HOME/.line/bin:$PATH"
line -p "Review the diff in this PR for bugs. Don't edit files." \
--permission-mode dont-ask --output-format json --max-turns 30 > review.json
Tips#
--permission-mode dont-ask(orplan) keeps a review read-only; add--allowed-toolsfor what it may run.--max-turnsand--max-budget-usdcap the run.--sandbox onon Linux runners confines writes.- Check the exit code (0, 1, 2, 130).
- Line needs a signed-in Clatter Labs account. Device sign-in needs a person to confirm a code, so plan how the runner gets a sign-in and keep it secret. Usage counts toward that account's plan.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.