Can I run Line CLI on a schedule?
Yes. On a machine where Line is signed in, call print mode from your scheduler:
0 7 * * 1 cd /srv/repo && /home/me/.line/bin/line -p "List outdated dependencies and write a short report to reports/deps.md" --permission-mode accept-edits --max-turns 20 --output-format json >> /var/log/line-deps.log 2>&1
Tips#
- Use the full path to
line; schedulers often have a minimal PATH. - Choose permissions carefully:
dont-askfor read-only jobs,accept-editsto allow file changes,--allowed-toolsfor specific commands. - Set
--max-turnsand--max-budget-usd. - Usage counts toward the signed-in 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.