2017 © Pedro Peláez
 

project spotify-cli-remote

A CLI tool for controlling Spotify on all platforms

image

danj/spotify-cli-remote

A CLI tool for controlling Spotify on all platforms

  • Tuesday, April 18, 2017
  • by danjohnson95
  • Repository
  • 1 Watchers
  • 0 Stars
  • 8 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 14 % Grown

The README.md

spotify-cli-remote

A CLI tool for controlling Spotify playback on any platform, (*1)

Requirements

Installation

Composer

$ composer global require danj/spotify-cli-remote

Oh, and ensure that your composer vendor/bin directory is in your PATH:, (*2)

$ export PATH=~/.composer/vendor/bin:$PATH

Build from source

$ git clone https://github.com/danjohnson95/spotify-cli-remote

$ cd spotify-cli-remote

$ composer install

$ chmod +x spotify

And now put this directory in your PATH., (*3)

Usage

Authentication

First, you must authenticate the CLI remote with your Spotify account., (*4)

$ spotify login

You'll need to visit http://spotify-cli-remote.danjohnson.xyz to grant access, and you'll be redirected to a page displaying an authorisation code., (*5)

You will need to copy and paste this authorisation code into the CLI when requested., (*6)

Once authenticated, you can now control Spotify using your CLI!, (*7)

Commands

spotify play      # Resumes/starts playback
spotify pause     # Pauses playback
spotify next      # Skips the current track
spotify prev      # Plays the previous track

What's the point?

I built this because I primarily work in a Windows environment with no media hotkeys. Switching over to the Spotify window was time consuming, and since I do pretty much everything else in the terminal, I figured controlling Spotify in the CLI would save me time. Hope it saves you time too., (*8)

The Versions

18/04 2017

dev-master

9999999-dev

A CLI tool for controlling Spotify on all platforms

  Sources   Download

The Requires

 

18/04 2017

v0.1

0.1.0.0

A CLI tool for controlling Spotify on all platforms

  Sources   Download

The Requires