mirror of
https://github.com/hanzoskill/trakt.git
synced 2026-10-30 21:09:45 +00:00
1.3 KiB
1.3 KiB
name, description, homepage, metadata
| name | description | homepage | metadata | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| trakt | Track and view your watched movies and TV shows via trakt.tv. Use when user asks about their watch history, what they've been watching, or wants to search for movies/shows. | https://trakt.tv |
|
Trakt CLI
Query your trakt.tv watch history and search for movies/TV shows.
Installation
npm install -g trakt-cli
Setup
- Create an app at https://trakt.tv/oauth/applications/new
- Run:
trakt-cli auth --client-id <id> --client-secret <secret> - Visit the URL shown and enter the device code
- Credentials saved to
~/.trakt.yaml
Commands
Watch History
trakt-cli history # Recent history (default: 10 items)
trakt-cli history --limit 25 # Show more
trakt-cli history --page 2 # Paginate
Search
trakt-cli search "Breaking Bad"
trakt-cli search "The Matrix"
Usage Examples
User: "What have I been watching lately?"
trakt-cli history
User: "Show me my last 20 watched items"
trakt-cli history --limit 20
User: "Find info about Severance"
trakt-cli search "Severance"
Notes
- Search works without authentication
- History requires authentication
- Read-only access to watch history