Skip to content

🔃 Save and restore playlists

💾 Backup (save) a playlist

Store and get basic statistics of an existing playlist with the backup command.

$ chopin backup --name "rock" --output data/

📝 Describing . . .
Wrote playlist rock in data/rock.json

If you don't specify a name, all your playlists will be saved

If you specify an output directory, the entrypoint will dump all the tracks data in a readable JSON.

$ chopin backup --output data/ 

📝 Describing . . .
Wrote playlist pop in data/pop.json
Wrote playlist rock in data/rock.json
Wrote playlist electro in data/electro.json

🆙 Restore playlist

Use a playlist backup created with the backup entrypoint to restore a playlist, and upload it back to Spotify.

$ chopin restore playlists/my_playlist.json 

You can give a new name to your playlist:

$ chopin restore playlists/my_playlist.json --name new_name