Skip to content

spotify-cli


spotify-cli / commands/tracks

commands/tracks

CLI command handlers for track operations.

Variables

audioFeaturesCommand

const audioFeaturesCommand: 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

const recommendationsCommand: 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

const removeTracksCommand: 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

const savedTracksCommand: CommandHandler

Defined in: src/commands/tracks.ts:28

Handles spotify track saved [--limit N] [--offset N].

Lists the current user's saved tracks.


saveTracksCommand

const saveTracksCommand: 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

const trackCommand: CommandHandler

Defined in: src/commands/tracks.ts:16

Handles spotify track <id>. Outputs track details.


trackFindCommand

const trackFindCommand: 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.

MIT Licensed. Not affiliated with or endorsed by Spotify AB.