Neofetch-style CLI for music
Featured on
- Beautiful terminal display with album cover art and artist photos
- Comprehensive metadata including tracks, albums, and artist information
- Interactive clickable links for Spotify URLs and cover art
- Responsive sizing via customizable image dimensions
- Cross-platform support, works in all modern terminals
Type | Metadata Displayed |
---|---|
Tracks | Name, Artist, Album, Duration, Track Number, Explicit, Release Date, Popularity, Genres |
Albums | Name, Artist, Type, Release Date, Track Count, Duration, Popularity, Genres, Label, Top Tracks |
Artists | Name, Followers, Popularity, Genres, Albums & Singles Count, Top Tracks |
nix run nixpkgs#mufetch
go install github.com/ashish0kumar/mufetch@latest
git clone https://github.com/ashish0kumar/mufetch.git
cd mufetch/
go build
sudo mv mufetch /usr/local/bin/
mufetch --help
For the best image rendering quality, install chafa
:
# Ubuntu/Debian
sudo apt install chafa
# macOS
brew install chafa
# Arch Linux
sudo pacman -S chafa
# Fedora/RHEL
sudo dnf install chafa
# Nix
nix-env -iA nixpkgs.chafa
Note
mufetch
works without chafa using colorized Unicode blocks, but chafa
provides significantly better image quality with enhanced detail.
- Go to Spotify Developer Dashboard
- Log in with your Spotify account
- Click "Create an App"
- Fill in app name and description
- Copy your Client ID and Client Secret
Run the authentication setup
mufetch auth
Enter your Spotify Client ID: your_client_id_here
Enter your Spotify Client Secret: your_client_secret_here
mufetch search "Bohemian Rhapsody"
mufetch search "Smells Like Teen Spirit"
mufetch search "Let It Happen"
mufetch search "Hotel California" --type track
mufetch search "Pink Floyd" --type artist
mufetch search "Ok Computer" --type album
mufetch search "All I Need" --size 25
mufetch search "Holland, 1945" -s 40
track
- Search for specific songsalbum
- Search for albums or EPsartist
- Search for musicians and bands
- Default:
20x20
pixels - Range:
20-50
pixels
mufetch stores configuration in ~/.config/mufetch/config.yaml
:
spotify_client_id: "your_client_id"
spotify_client_secret: "your_client_secret"
You can also set credentials via environment variables:
export MUFETCH_SPOTIFY_CLIENT_ID="your_client_id"
export MUFETCH_SPOTIFY_CLIENT_SECRET="your_client_secret"
Contributions are always welcome! Whether you want to:
- Report bugs or issues
- Suggest new features
- Improve the visual design
- Enhance documentation
- Submit code improvements
Please feel free to open an issue or submit a pull request.
- Cobra - CLI framework and command structure
- Viper - Configuration management
- Imaging - Image processing and resizing
- Inspired by neofetch for system information display
- Thanks to Spotify Web API for music metadata
- Unicode block art technique inspired by various terminal image viewers
© 2025-present Ashish Kumar