PHPackages                             danj/spotify-cli-remote - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. danj/spotify-cli-remote

ActiveProject[CLI &amp; Console](/categories/cli)

danj/spotify-cli-remote
=======================

A CLI tool for controlling Spotify on all platforms

v0.1(9y ago)019PHP

Since Apr 18Pushed 9y agoCompare

[ Source](https://github.com/danjohnson95/spotify-cli-remote)[ Packagist](https://packagist.org/packages/danj/spotify-cli-remote)[ RSS](/packages/danj-spotify-cli-remote/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

spotify-cli-remote
==================

[](#spotify-cli-remote)

A CLI tool for controlling Spotify playback on **any** platform

Requirements
------------

[](#requirements)

- [PHP](https://php.net)
- [Spotify Premium](https://www.spotify.com/uk/premium)
- [Composer](https://getcomposer.org)

Installation
------------

[](#installation)

### Composer

[](#composer)

```
$ composer global require danj/spotify-cli-remote

```

Oh, and ensure that your composer vendor/bin directory is in your PATH:

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

```

### Build from source

[](#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.

Usage
-----

[](#usage)

### Authentication

[](#authentication)

First, you must authenticate the CLI remote with your Spotify account.

```
$ 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.

You will need to copy and paste this authorisation code into the CLI when requested.

Once authenticated, you can now control Spotify using your CLI!

### Commands

[](#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?
-----------------

[](#whats-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.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3359d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6871504?v=4)[Dan](/maintainers/danjohnson95)[@danjohnson95](https://github.com/danjohnson95)

---

Top Contributors

[![danjohnson95](https://avatars.githubusercontent.com/u/6871504?v=4)](https://github.com/danjohnson95 "danjohnson95 (6 commits)")

### Embed Badge

![Health badge](/badges/danj-spotify-cli-remote/health.svg)

```
[![Health](https://phpackages.com/badges/danj-spotify-cli-remote/health.svg)](https://phpackages.com/packages/danj-spotify-cli-remote)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13045.3M6.2k](/packages/illuminate-console)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
