A simple Node.JS program to control current playback
- Node version >= Node v20
Run npm install -g spo-cli
If you want to run it from source, downlaod it simply install all dependencies with npm/yarn (with yarn install
).
The program needs to connect to Spotify API so it needs a valid access token provided after via the Spotify.com website. An ExpressJS web server is disposed in order to recieve the token and the program itself (after having checked its validity) use it to control the playback. If the token is not valid anymore, the user is prompted to authorization again
The syntax is pretty simple. It's node app.js
or spo-cli
(if installed from npm) followed by one of the next arguments. If you grabbed the binaries, execute the program with one of the next arguments.