spotify-launcher(1)
Launch Spotify desktop application from the command line with optional arguments.
Synopsis
spotify-launcher [OPTIONS] [ARGUMENTS]Description
spotify-launcher is a command-line wrapper that starts the Spotify desktop client application. It allows you to launch Spotify from the terminal with support for URI schemes, making it easy to open specific playlists, albums, or tracks directly from scripts or other applications.
The launcher handles initialization of the Spotify application and passes through arguments such as Spotify URIs (spotify:track:... format) for direct content playback.
Common options
| Flag | What it does |
|---|---|
--help | Display help message and exit |
--version | Show version information |
--no-daemon | Run Spotify in foreground instead of background |
--uri | Open specified Spotify URI (e.g., spotify:track:ID) |
--username | Pass username for automatic login |
--password | Pass password for automatic login (not recommended) |
Examples
Launch Spotify desktop application normally
spotify-launcherLaunch Spotify and play a specific track by its Spotify URI
spotify-launcher spotify:track:4cOdkLwLK6i33zt0BV2WT3Open Spotify to a specific playlist directly
spotify-launcher spotify:playlist:37i9dQZF1DXcBWIGoYKl37Launch Spotify in foreground mode for debugging or keeping terminal open
spotify-launcher --no-daemonLaunch Spotify in background and open a specific album
spotify-launcher spotify:album:0VjIjW4GlUZAMYd2vXMwbp &