spotctl

A command-line interface to Spotify, written in Go

  • 所有者: owenthereal/spotctl
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Spotctl

spotctl is command-line interface to control Spotify from your favorite terminal.

Demo

One of the highlights is that spotctl player shows a real-time Spotify player that allows you to control it, right in your terminal!

asciicast

Installation

Homebrew

If you're on a Mac, you can install with Homebrew:

brew install https://raw.githubusercontent.com/jingweno/spotctl/master/Formula/spotctl.rb

Download

You can download the latest release for your operating system here.

Manual Installation

spotctl needs to connect to Spotify's API in order to control it.
To manually build it, you first need to sign up (or into) Spotify's developer site and create an Application.
Once you've done so, you can find its Client ID and Client Secret values and run the following command:

SPOTIFY_CLIENT_ID=XXX SPOTIFY_CLIENT_SECRET=YYY ./bin/build

Running

Please make sure the Spotify app is opened before running any spotctl commands, since it talks to the Spotify API which in turns talks to the Spotify app in your local box.
Here is a list of available commands:

$ spotctl -h
A command-line interface to Spotify.

Usage:
  spotctl [command]

Available Commands:
  help        Help about any command
  login       Login with your Spotify credentials
  logout      Clear your local Spotify credentials
  next        Skip to the next track
  pause       Pause Spotify playback
  play        Resume playback or play a track, album, artist or playlist by name
  player      Show the live player panel
  prev        Return to the previous track
  repeat      Toggle repeat playback mode
  shuffle     Toggle shuffle playback mode
  status      Show the current player status
  version     Show version.
  vol         Set or return volume percentage

Flags:
  -h, --help   help for spotctl

Use "spotctl [command] --help" for more information about a command.

License

MIT

主要指标

概览
名称与所有者owenthereal/spotctl
主编程语言Go
编程语言Go (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2017-12-21 06:00:01
推送于2018-06-28 21:41:47
最后一次提交2018-01-10 10:11:16
发布数2
最新版本名称v1.0.1 (发布于 )
第一版名称v1.0.0 (发布于 )
用户参与
星数241
关注者数8
派生数16
提交数27
已启用问题?
问题数16
打开的问题数10
拉请求数4
打开的拉请求数1
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?