spc

command module
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

spc

Go rpmbuild Ubuntu

A lightweight mutliplatform CLI for Spotify

Installation

macOS
brew install dvdmuckle/tap/spc
Ubuntu Linux
sudo add-apt-repository ppa:dvdmuckle/spc
sudo apt-get update
sudo apt-get install spc
Fedora Linux
sudo dnf copr enable dvdmuckle/spc
sudo dnf install spc
Other Platforms

Download one of the releases and unarchive the spc binary somewhere in your PATH. Alternatively, download and install with:

go install github.com/dvdmuckle/spc@latest

Make sure $GOPATH/bin is in your PATH for this to work.

Setup

To set up the app, run spc config to generate a skeleton config file at ~/.config/spc/config.yaml or .config/spc/config.yaml in your user directory on Windows. Next, head to http://developer.spotify.com/dashboard to create a new Spotify app. Make sure to set a callback URL for http://localhost:8888/callback. Paste the ClientID and ClientSecret in the newly created config file as noted. Make sure the ClientSecret is base64 encoded. You can now run spc auth to start the OAuth2 flow, which will have you grant the Spotify app you created, and thus spc, the correct API permissions.

This app requires a Spotify Premium account for any commands involving playback.

Running

Check out either spc help or the docs pages for help on how to use spc.

Goals

The goal of this project is to present a simple, lightweight command line interface for Spotify, inspired by spotify-tui. Support for play, pause, volume, and a simple search are all that are considered right now. More complicated tasks like managing playlists are not considered at this time.

Contributing

For feature requests, feel free to create an issue or submit a PR with your changes.

Documentation

Overview

Copyright © 2024 David Muckle <dvdmuckle@dvdmuckle.xyz>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL