48e26332a3b1a0a24f5b75b9a4ebcd9591e442e8
Yarr
A Terminal User Interface (TUI) for managing Sonarr.
Features
- View system status and health
- Browse series and episodes
- Monitor download queue
- View download history
- Interactive TUI interface
- Configurable via config files, environment variables, or CLI arguments
Installation
cargo install --path .
Configuration
Yarr supports multiple configuration methods with the following priority order (highest to lowest):
- Command line arguments
- Environment variables
- Configuration file
- Default values
Configuration File
Create a configuration file in one of these locations:
./yarr.toml(current directory)~/.config/yarr/config.toml(user config directory)
Example configuration:
[sonarr]
url = "http://localhost:8989"
api_key = "your-api-key-here"
Environment Variables
Set these environment variables:
export YARR_SONARR_URL="http://localhost:8989"
export YARR_SONARR_API_KEY="your-api-key-here"
Command Line Arguments
yarr --sonarr-url="http://localhost:8989" --sonarr-api-key="your-api-key"
Usage
TUI Mode (Default)
Launch the interactive TUI:
yarr
# or explicitly
yarr tui
Command Line Mode
List all series:
yarr list
List only monitored series:
yarr list --monitored
Add a new series:
yarr add --name "Series Name"
Configuration Management
Create a sample config file:
yarr config init
Create config file at specific location:
yarr config init --path /path/to/config.toml
Show current configuration:
yarr config show
Show configuration file search paths:
yarr config paths
Shell Completions
Generate shell completions:
# Bash
yarr completions bash > /etc/bash_completion.d/yarr
# Zsh
yarr completions zsh > ~/.zfunc/_yarr
# Fish
yarr completions fish > ~/.config/fish/completions/yarr.fish
# PowerShell
yarr completions powershell > yarr.ps1
TUI Controls
q- Quit↑/↓orj/k- Navigate up/downEnter- Select/expandTab- Switch between panelsr- Refresh data
Getting Started
- Install yarr
- Create a configuration file:
yarr config init - Edit the configuration file to set your Sonarr URL and API key
- Launch the TUI:
yarr
Finding Your Sonarr API Key
- Open your Sonarr web interface
- Go to Settings > General
- Find the "Security" section
- Copy the "API Key" value
License
MIT
Description
Languages
Rust
94.7%
Nix
5.3%