https://github.com/geowatson/spotify-cli
Use Spotify in CLI to scroll through music while not switching to the other tabs!
https://github.com/geowatson/spotify-cli
go spotify spotify-api spotify-cli
Last synced: 27 days ago
JSON representation
Use Spotify in CLI to scroll through music while not switching to the other tabs!
- Host: GitHub
- URL: https://github.com/geowatson/spotify-cli
- Owner: geowatson
- License: mit
- Created: 2020-07-19T10:51:32.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-26T12:20:09.000Z (over 5 years ago)
- Last Synced: 2024-06-20T06:25:38.457Z (over 1 year ago)
- Topics: go, spotify, spotify-api, spotify-cli
- Language: Go
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotify CLI
Minimalist Spotify playback from CLI written in Go.
# Disclaimer
This product is currently under heavy development, use with caution! Bugs
are inevitable, feel free to report anything you found.
# Installation
Download latest from releases.
In this README we run binary from CWD, but you can install it to your
*$PATH* using either `go install` or moving to one of your *$PATH*'s locations
# Usage
* `./spotify login` - logins you to spotify app
* `./spotify` - toggles play/pause for current playback
* `./spotify random` - play random song!
* `./spotify next` - scrobble to next song (in current random context you are in) if you are bored
* `./spotify device` - change playback device if you have more than 1
# Development
In code, you can find this line:
```go
const ClientToken = "" // can be retrieved from https://developer.spotify.com/dashboard/applications
```
This means you need to specify token provided by Spotify Apps. Steps to get things done:
1. Create new appication
2. Specify redirect URI to the following: http://localhost:7911 (you can change port in code and use it instead)
3. Save changes
4. Retrieve your client_id from dashboard and paste it into ClientToken variable
Now you are ready to go! Try `./spotify login`