- Visit developer.spotify.com and create an app.
- Enter the client ID and redirect URL in the config.yml file.
- Specify the name of a playlist to read from and/or write to.
- Specify the path to a file with songs (search strings or Spotify IDs; empty file if no songs are to be added).
- Specify the path to a file where the Spotify IDs of all songs of the playlist are to be written to.
- Run the app with
go run .\cmd\main.go
and follow the instructions.