Prerequisites
You need Bun installed (v1.2+):Setup
Install the CLI
From the Trilo monorepo:This makes the
trilo command available globally.Verify it works:Log in
What’s Next?
Authentication
OAuth login, PAT tokens, CI/CD setup, and environment variables.
Commands Reference
All 19 commands with examples and scripting patterns.
Common Workflows
Quick task check
Create a task from terminal
Pipe JSON to other tools
Trigger a workflow
Troubleshooting
trilo login fails with 'Port 9876 is already in use'
trilo login fails with 'Port 9876 is already in use'
The CLI needs port 9876 for the OAuth callback. Check what’s using it:Kill the process or wait for it to finish, then retry
trilo login.'Authentication failed. Run: trilo login'
'Authentication failed. Run: trilo login'
Your token may have expired and refresh failed. Run
trilo login again to get a fresh token.If using a PAT, check that TRILO_TOKEN is set correctly and the token hasn’t been revoked.Commands return empty results
Commands return empty results
Make sure you have the right workspace selected:
'Could not connect' errors
'Could not connect' errors
Check that you can reach the API:If using a custom API URL, verify
TRILO_API_URL is correct.