GithubHelp home page GithubHelp logo

trakt-cli's Introduction

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

trakt-cli's People

Contributors

angristan avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.