https://github.com/angristan/trakt-cli
A CLI for trakt.tv
https://github.com/angristan/trakt-cli
cli go golang movies series trakt trakt-api trakt-tv tv
Last synced: 6 months ago
JSON representation
A CLI for trakt.tv
- Host: GitHub
- URL: https://github.com/angristan/trakt-cli
- Owner: angristan
- License: mit
- Created: 2022-02-17T13:47:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-06T09:11:29.000Z (over 1 year ago)
- Last Synced: 2025-04-02T13:12:45.839Z (6 months ago)
- Topics: cli, go, golang, movies, series, trakt, trakt-api, trakt-tv, tv
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 12
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trakt-cli
```
████████╗██████╗ █████╗ ██╗ ██╗████████╗ ██████╗██╗ ██╗
╚══██╔══╝██╔══██╗██╔══██╗██║ ██╔╝╚══██╔══╝ ██╔════╝██║ ██║
██║ ██████╔╝███████║█████╔╝ ██║ ██║ ██║ ██║
██║ ██╔══██╗██╔══██║██╔═██╗ ██║ ██║ ██║ ██║
██║ ██║ ██║██║ ██║██║ ██╗ ██║ ╚██████╗███████╗██║
╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚══════╝╚═╝
```This is a CLI for [trakt.tv](https://trakt.tv) using the [trakt.tv API](https://trakt.docs.apiary.io/).

## Installation
Grab a binary build from the [releases](https://github.com/angristan/trakt-cli/releases).
## Development
```
git clone https://github.com/angristan/trakt-cli
cd trakt-cli
go build
```## Usage
```
➜ trakt
Source code: https://github.com/angristan/trakt-cliUsage:
trakt-cli [command]Available Commands:
auth Authenticate with trakt.tv
completion Generate the autocompletion script for the specified shell
help Help about any command
history Show your watched historyFlags:
-h, --help help for trakt-cliUse "trakt-cli [command] --help" for more information about a command.
```## Authentication
You need to create a _Trakt API app_ to use the API.
Go to https://trakt.tv/oauth/applications/new and create a new app.
This will give you a _Client ID_ and _Client secret_ for your app.
You can now log in with the CLI:
```
➜ trakt auth --client-id xxx --client-secret yyy
Please go to https://trakt.tv/activate and enter the following code: XXXXXXXX
Successfully authenticated, creds written to ~/.trakt.yaml
```