Import Commands
import user-favorite-songs maps CSV columns to artists, albums, and songs,
then adds matching songs to a user’s favorites.
mcli import favorites.csv user-favorite-songs \
USER_API_KEY ArtistColumn AlbumColumn SongColumn --pretend
The positional values are:
- CSV filename
- User API key (GUID)
- Artist-name column
- Album-name column
- Song-name column
Run with --pretend first. It performs matching and reports what would happen
without changing favorites. Column names must match the CSV header, and the CLI
must have local access to PostgreSQL and the CSV file.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.