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:65

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:88

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:52

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:27

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:39

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:15

Handles spotify track <id>. Outputs track details.

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