spotifycl

raw JSON →
1.3.3 verified Sat May 09 auth: no python

A command-line interface for Spotify that controls playback, manages playlists, and displays current track info. Version 1.3.3, updated August 2024. Maintenance frequency is low; no recent activity.

pip install spotifycl
error ModuleNotFoundError: No module named 'spotifycl'
cause Package not installed.
fix
Run: pip install spotifycl
error AttributeError: module 'spotifycl' has no attribute '__author__'
cause Upgrading from <1.3.2 where __author__ was not exposed.
fix
Update to v1.3.2+: pip install --upgrade spotifycl
error spotipy.SpotifyException: HTTP Error 401: Unauthorized
cause Spotify API credentials missing or invalid.
fix
Set environment variables SPOTIPY_CLIENT_ID, SPOTIPY_CLIENT_SECRET, and SPOTIPY_REDIRECT_URI. See https://developer.spotify.com/documentation/web-api/concepts/apps
breaking Cache path changed in v1.3.0 from CWD to spotifyCL directory. Old cache will be ignored.
fix Delete old .cache files in project directories. Reauthenticate.
gotcha The library name is 'spotifycl' not 'spotify' or 'spotipy'. Installing 'spotify' will get a different package.
fix Run: pip install spotifycl
deprecated Support for termcolor was removed in v1.3.1. If you wrote custom code relying on termcolor, it will break.
fix Use rich for colored output. Example: from rich import print

Run the interactive CLI after installing. Requires Spotify API credentials set via environment variables or config file.

import spotifycl

# Check version
print(spotifycl.__version__)

# Launch the interactive CLI
spotifycl.run()