Skip to content

spotify-cli


spotify-cli / commands/playlists

commands/playlists

CLI command handlers for playlist operations.

Variables

playlistAddCommand

const playlistAddCommand: CommandHandler

Defined in: src/commands/playlists.ts:53

Handles spotify playlist add <playlist_id> <uri...> [--position N].

Adds one or more tracks to a playlist at an optional position.


playlistCommand

const playlistCommand: CommandHandler

Defined in: src/commands/playlists.ts:15

Handles spotify playlist <id>. Outputs playlist details.


playlistCreateCommand

const playlistCreateCommand: CommandHandler

Defined in: src/commands/playlists.ts:168

Handles spotify playlist create <name> [--description ...] [--public].

Creates a new playlist for the current user.


playlistRemoveCommand

const playlistRemoveCommand: CommandHandler

Defined in: src/commands/playlists.ts:102

Handles spotify playlist remove <playlist_id> [uri...] [--match name] [--index N].

Removes tracks by URI, name substring match, or 1-based index. --match and --index can be repeated. URIs can also be passed as positional args.


playlistsCommand

const playlistsCommand: CommandHandler

Defined in: src/commands/playlists.ts:27

Handles spotify playlist list [--limit N] [--offset N].

Lists the current user's playlists.


playlistTracksCommand

const playlistTracksCommand: CommandHandler

Defined in: src/commands/playlists.ts:39

Handles spotify playlist tracks <id> [--limit N] [--offset N].

Lists the tracks in a playlist with optional pagination.

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