Install in seconds
Install this skill
Copy the command and run it in your terminal. You can review the source before installing.
terminal
git clone https://github.com/magnus919/agent-skills

Works with Git. The repository opens in your current directory.

🎬
AutomationPython

ARR CLI

by magnus919

CLI tool for managing Radarr (movies) and Sonarr (TV series) media libraries. Use for listing, adding, searching, checking queues, quality profiles, and more.

10 stars0 forksAdded 2026/07/18
agent-skillsagentskillsai-agentsautomationllm

Documentation

README

arr-cli — Radarr + Sonarr Media Library Management

Two CLIs, one skill wrapper. radarr-cli for movies, sonarr-cli for TV series.

Quick Setup

# Radarr
export ARR_SERVER_RADARR="http://localhost:7878"
export ARR_KEY_RADARR="your-radarr-api-key"

# Sonarr
export ARR_SERVER_SONARR="http://localhost:8989"
export ARR_KEY_SONARR="your-sonarr-api-key"

--help and --dry-run work without credentials.

When to Use Which

User says... Load...
"list my movies", "what's in Radarr", "show me the library" radarr-cli movies [--limit N] [--status released|inCinemas|announced]
"add this movie", "is this in Radarr", "search for a movie" radarr-cli lookup --term "title" then radarr-cli add --tmdb-id N --root /movies
"what's coming up", "upcoming releases" radarr-cli calendar or sonarr-cli calendar
"what's in the queue", "download progress" radarr-cli queue or sonarr-cli queue
"show me history", "what was downloaded" radarr-cli history or sonarr-cli history
"list my series", "what's on Sonarr" sonarr-cli series [--limit N] [--status continuing|ended|upcoming]
"add this series", "find a TV show" sonarr-cli lookup --term "title" then sonarr-cli add --tvdb-id N --root /tv
"what's missing", "wanted episodes" sonarr-cli wanted
"check quality profiles", "what profiles exist" radarr-cli quality-profile or sonarr-cli quality-profile
"search for a movie/series" (already added) radarr-cli search --movie-id N or sonarr-cli search --series-id N
"where are my root folders", "storage paths" radarr-cli root-folder or sonarr-cli root-folder
"what episodes are downloaded", "episode files" sonarr-cli episode-file --series-id N

Quick Reference

Global flags (work anywhere in arg list): --json, --dry-run, --force, --quiet, --verbose

# System info
radarr-cli status
sonarr-cli status

# List with filters and JSON output (pipe to jq for scripting)
radarr-cli movies --limit 5 --status released --json | jq '.movies[].title'
sonarr-cli series --limit 5 --status continuing --json | jq '.series[].title'

# Discover and add a movie (always use TMDb ID, not title)
radarr-cli lookup --term "Dune"
radarr-cli add --tmdb-id 12345 --root /movies --quality-profile 4 --search

# Add with specific availability (for unreleased films)
radarr-cli add --tmdb-id 99999 --root /movies --quality-profile 5 --availability announced

# Discover and add a series (always use TVDb ID)
sonarr-cli lookup --term "Severance"
sonarr-cli add --tvdb-id 77526 --root /tv --quality-profile 4 --series-type Standard --search

# Add an anime series (flat episode storage, absolute numbering)
sonarr-cli add --tvdb-id 12345 --root /tv --quality-profile 4 --series-type Anime --no-season-folder --search

# Preview before adding (no side effects)
radarr-cli --dry-run add --tmdb-id 550 --root /movies --quality-profile 4

# Trigger a search for something already in your library
radarr-cli search --movie-id 5
sonarr-cli search --series-id 5

# Queue and history
radarr-cli queue --limit 10
radarr-cli history --limit 5 --event-type grabbed

# Discover root folder paths before adding
radarr-cli root-folder
sonarr-cli root-folder

# Quality profiles
radarr-cli quality-profile           # list all
radarr-cli quality-profile 4         # inspect HD-1080p details with tier checkmarks

IMPORTANT — lookup side effect: radarr-cli lookup --tmdb-id N silently adds an unmonitored record. For pure existence checks, use radarr-cli --json movies | jq '.[] | select(.tmdbId == N)' instead.

Default quality profile: HD-1080p (id: 4). Override with --quality-profile N.

Reference Files

File Contents
references/radarr-commands.md Full Radarr command reference with all flags and examples
references/sonarr-commands.md Full Sonarr command reference with all flags and examples
references/media-discovery.md Cross-referencing TMDb/Trakt discovery results against your library
references/troubleshooting.md Pitfalls, FAQs, and when NOT to use

When NOT to Use

  • Media playback — use Jellyfin for watching content. This CLI only manages the library.
  • *First-time arr setup — this skill assumes Radarr/Sonarr are already installed and configured. See radarr.video or sonarr.tv for installation guides.
  • Bulk imports — for large-scale library migrations, prefer Radarr/Sonarr's built-in import features or manual disk operations.

First-Time Loading

  1. Set the env vars above (API keys from each app's Settings → General)
  2. Test with radarr-cli status — you should see version and OS info
  3. Browse your library: radarr-cli movies --limit 5
  4. For cross-reference workflows (discovering new content via TMDb/Trakt), see references/media-discovery.md

More from magnus919

Other Claude Code skills by this author in the directory.

📝
2w ago

ADR Authoring

Write, review, and maintain architecture decision records with clear context, alternatives, consequences, and lifecycle governance. Use when a consequential technical decision must remain understandable.
Writing
+67%100
⚖️
2w ago

Agent Council

Spawn a panel of expert AI agents to debate any question using a structured protocol with iterative cross-examination and convergence detection, producing a decision landscape with confidence diagnostics.
AI Engineering
+67%100
🔍
2w ago

Agent Evals and Observability

Design, run, review, or release framework- and vendor-neutral evaluations and observability for AI agents. Use when defining agent evals, datasets, graders, trajectory review, regression analysis, release gates, production traces, or privacy-aware telemetry.
Quality
+67%100
📘
2w ago

Agent Skills

Defines the Agent Skills open format, including directory structure, SKILL.md schema, naming conventions, and progressive disclosure model. Use this reference when creating, reviewing, or editing agent skills to follow the standard.
AI Engineering
+67%100
📡
2w ago

API Design and Evolution

Guides the design, documentation, review, and evolution of consumer-facing APIs and event interfaces, including contract authoring, compatibility assessment, and deprecation planning.
DevOps
+67%100
🏛️
2w ago

Artifact Pyramids

Organize durable agent research outputs as summaries, analysis, and evidence dossiers. Use when producing multi-layer research artifacts or coordinating research handoffs.
AI Engineering
+67%100