Spotify CLI
Spotify Client which runs in the terminal.
How does it look like?
How does it work?
What are the components of spotify-cli?
How components talk with each other?
How to run it?
Prerequisites
- Linux/MacOS operating system
- Google Chrome browser installed
- Premium Spotify Account
- Created Spotify Application under https://beta.developer.spotify.com/dashboard/applications (set redirect URI to http://localhost:8888/spotify-cli)
Go to https://beta.developer.spotify.com/dashboard/applications, find created earlier Spotify Application, find Client ID and Client Secret, and put them in environment variables
export SPOTIFY_CLIENT_ID=xxxxxxxxxxxxx
export SPOTIFY_SECRET=yyyyyyyyyyyyyyyy
Running from release
- Download release for your OS/architecture under https://github.com/jedruniu/spotify-cli/releases
- Unpack it (i.e. with
tar -xvf spotify-cli_1.0.1_Darwin_x86_64.tar spotify
) - Run it (
./spotify-cli
)
Building from sources
Additional prerequisities
- Go language installed (version 1.12 or higher)
Steps
- Clone this repository outside your GOPATH, and cd into it.
- Build application
make build
- Run application
./bin/spotify-cli
Running tests
make test
Releasing
Before releasing set GITHUB_TOKEN environment variable and run:
make release
Unfortunately for releases to work files generated by packr are added to repo.