spotify-cli / commands/playlists
commands/playlists
CLI command handlers for playlist operations.
Variables
playlistAddCommand
constplaylistAddCommand: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
constplaylistCommand:CommandHandler
Defined in: src/commands/playlists.ts:15
Handles spotify playlist <id>. Outputs playlist details.
playlistCreateCommand
constplaylistCreateCommand:CommandHandler
Defined in: src/commands/playlists.ts:168
Handles spotify playlist create <name> [--description ...] [--public].
Creates a new playlist for the current user.
playlistRemoveCommand
constplaylistRemoveCommand: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
constplaylistsCommand:CommandHandler
Defined in: src/commands/playlists.ts:27
Handles spotify playlist list [--limit N] [--offset N].
Lists the current user's playlists.
playlistTracksCommand
constplaylistTracksCommand: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.