Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/masroorhasan/spotifycli
CLI to manage Spotify playlists.
https://github.com/masroorhasan/spotifycli
Last synced: 3 months ago
JSON representation
CLI to manage Spotify playlists.
- Host: GitHub
- URL: https://github.com/masroorhasan/spotifycli
- Owner: masroorhasan
- License: mit
- Created: 2018-04-06T03:59:37.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-03T02:18:15.000Z (about 4 years ago)
- Last Synced: 2024-02-17T09:36:30.665Z (9 months ago)
- Language: Go
- Size: 401 KB
- Stars: 17
- Watchers: 5
- Forks: 9
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Spotifycli
[![CircleCI](https://circleci.com/gh/masroorhasan/spotifycli/tree/master.svg?style=svg)](https://circleci.com/gh/masroorhasan/spotifycli/tree/master)
A command line interface to manage Spotify playlists.
## Install
To use `spotifycli` you have to register the application on Spotify's developer platform. Sign up or login available [here](https://beta.developer.spotify.com/dashboard/login). Set the following environment variables with the client Id and secret.
```
export SPOTIFY_ID=xxx
export SPOTIFY_SECRET=xxx
```## Usage
### Commands
List of available commands:
```
$ ./spotifycli --help
A command line interface to manage Spotify playlists.Usage:
spotifycli [command]Available Commands:
add Add track by name to playlist
aid Add track by ID to playlist
ato Add currently playing track to playlist
del Delete a playlist
help Help about any command
list List tracks in playlist
login Login to authenticate Spotify account
logout Logout from Spotify account
new Create new playlist
now Displays the currently playing track
playlists Show all playlists
rm Remove track from playlist
search search tracks, albums, artists, playlists by name
show Display information about a track by IDFlags:
-h, --help help for spotifycliUse "spotifycli [command] --help" for more information about a command.
```### Search
Search using query terms on top of tracks (`tr`), albums (`al`), artists (`ar`) or playlists (`pl`) by name.```
./spotifycli search --help
search tracks, albums, artists, playlists by nameUsage:
spotifycli search --t [SEARCH_TYPE] --q [SEARCH_QUERY] [flags]Flags:
-h, --help help for search
--q string The search query term.
--t string The search type (tr, al, ar, pl).
```Sample search for type `tr` (track).
```
./spotifycli search --t "tr" --q "one step closer - live"
```