spotify-cli / commands/tracks
commands/tracks
CLI command handlers for track operations.
Variables
audioFeaturesCommand
constaudioFeaturesCommand:CommandHandler
Defined in: src/commands/tracks.ts:66
Handles spotify track features <id>.
Outputs audio analysis features (danceability, energy, tempo, etc.) for a track.
recommendationsCommand
constrecommendationsCommand:CommandHandler
Defined in: src/commands/tracks.ts:117
Handles spotify track recommendations --seed-tracks <ids> | --seed-artists <ids> | --seed-genres <genres> [--limit N].
Gets track recommendations based on seed tracks, artists, and/or genres. At least one seed type is required.
removeTracksCommand
constremoveTracksCommand:CommandHandler
Defined in: src/commands/tracks.ts:53
Handles spotify track remove <id...>.
Removes one or more tracks from the current user's library.
savedTracksCommand
constsavedTracksCommand:CommandHandler
Defined in: src/commands/tracks.ts:28
Handles spotify track saved [--limit N] [--offset N].
Lists the current user's saved tracks.
saveTracksCommand
constsaveTracksCommand:CommandHandler
Defined in: src/commands/tracks.ts:40
Handles spotify track save <id...>.
Saves one or more tracks to the current user's library.
trackCommand
consttrackCommand:CommandHandler
Defined in: src/commands/tracks.ts:16
Handles spotify track <id>. Outputs track details.
trackFindCommand
consttrackFindCommand:CommandHandler
Defined in: src/commands/tracks.ts:91
Handles spotify track find --title <title> --artist <artist>.
Looks up a single canonical track by title + artist using Spotify's track:"X" artist:"Y" filter syntax. Returns the top match (the same shape as spotify track <id>), or throws if no match is found.
