# spotify-tui

> Spotify for the terminal written in Rust

- Type: agent or tool
- Field: Audio & Video
- Repository: https://github.com/Rigellute/spotify-tui
- GitHub stars: 19380
- Licence: MIT
- Language: Rust
- Last push: 2024-04-04
- Page: https://imutechz.in/agents/spotify-tui

## What it is
Spotify TUI is a Spotify client for the terminal written in Rust. It connects to Spotify's API so you can find music by name and play tracks from a text interface. It is aimed at people who prefer working in a terminal and want to control Spotify without leaving it. Setup requires creating a Spotify developer app and entering its client ID and secret on first run.

## Features
- Terminal-based Spotify client written in Rust
- Search for music by name and play tracks
- Guided first-run setup for Spotify API credentials
- Installable via Homebrew, Snap, AUR, Nix, Cargo and Scoop
- Can be used together with spotifyd
- Binary executable is named spt

## Best for
- Controlling Spotify playback from a terminal
- Keyboard-driven music browsing on Linux or macOS
- Pairing with spotifyd for terminal playback

## Pros
- Written in Rust and available through many package managers
- Setup instructions are shown when you first run the app
- Works on macOS, Linux and Windows 10

## Cons
- Requires creating a Spotify developer app with a client ID and secret
- Needs a redirect URI of configured
- Building from source on Linux requires libssl development packages and pkg-config

## Install
```
brew install spotify-tui
```

## Usage
```
spt
```

Tags: spotify, terminal, tui, rust, music, cli, media-player
