angristan / trakt-cli

A CLI for trakt.tv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

trakt-cli


████████╗██████╗  █████╗ ██╗  ██╗████████╗     ██████╗██╗     ██╗
╚══██╔══╝██╔══██╗██╔══██╗██║ ██╔╝╚══██╔══╝    ██╔════╝██║     ██║
   ██║   ██████╔╝███████║█████╔╝    ██║       ██║     ██║     ██║
   ██║   ██╔══██╗██╔══██║██╔═██╗    ██║       ██║     ██║     ██║
   ██║   ██║  ██║██║  ██║██║  ██╗   ██║       ╚██████╗███████╗██║
   ╚═╝   ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝        ╚═════╝╚══════╝╚═╝

This is a CLI for trakt.tv using the trakt.tv API.

Installation

Grab a binary build from the releases.

Development

git clone https://github.com/angristan/trakt-cli
cd trakt-cli
go build

Usage

➜  trakt
Source code: https://github.com/angristan/trakt-cli

Usage:
  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 history

Flags:
  -h, --help     help for trakt-cli

Use "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

About

A CLI for trakt.tv

License:MIT License


Languages

Language:Go 100.0%