Commands Reference
Every command accepts the global --profile NAME option before the subcommand.
tunesync auth
Authenticate with Spotify or YouTube Music.
tunesync auth ytmusic # browser-window login
tunesync auth ytmusic --refresh # silent background refresh
tunesync auth ytmusic --clipboard # read copied cURL from clipboard
tunesync auth ytmusic --file request.txt # read copied cURL from file
tunesync auth spotify # official PKCE (requires SPOTIFY_CLIENT_ID)
tunesync auth spotify --method web # experimental web backend (sp_dc)
tunesync auth spotify --method web --sp-dc "<value>" --i-knowtunesync lists
List playlists on Spotify, YouTube Music, or both.
tunesync lists
tunesync lists --service spotify
tunesync lists --service ytmusic --jsonWhen a service endpoint does not return per-playlist song counts (such as Spotify's web libraryV3), Songs displays —.
tunesync link & tunesync unlink
Pair playlists across services for two-way sync.
# Interactive pairing
tunesync link
# Link two existing playlists by name or ID
tunesync link --source spotify:jowi --target ytmusic:jowi
# Create a new target playlist with the same name (or custom name)
tunesync link --source spotify:jowi --target ytmusic --create
tunesync link --source spotify:jowi --target ytmusic:MyCopy --create
# Link Liked songs
tunesync link --likes
# Unlink interactively (shows playlist names + IDs) or by pair ID
tunesync unlink
tunesync unlink --pair 1If multiple playlists share the same name, link stops and prints all matching IDs instead of guessing.
tunesync pairs
Show currently linked playlist pairs without modifying anything.
tunesync pairs
tunesync pairs --jsontunesync sync
Run a three-way sync across all linked pairs (or one --pair ID).
tunesync sync --dry-run
tunesync sync
tunesync sync --pair 1 --json
tunesync sync --force # bypass bulk-deletion safety capstunesync import
One-way additive import of an Exportify CSV into YouTube Music.
tunesync import playlist.csv --target new --name "My Playlist" --limit 20 --dry-run
tunesync import playlist.csv --target new --name "My Playlist"
tunesync import playlist.csv --target new --name "My Playlist" --retry-not-foundtunesync review
Interactively resolve not_found tracks from the latest import report CSV or a linked pair.
tunesync review --target "My Playlist" --limit 10
tunesync review --report path/to/import_report.csv --target "My Playlist"
tunesync review --pair 1tunesync watch
Run sync periodically until interrupted (Ctrl+C).
tunesync watch --interval 30
tunesync watch --interval 15 --pair 1 --dry-run --json
tunesync watch --interval 1 --max-runs 1 --dry-runtunesync doctor
Validate active profile, config, and service credentials.
tunesync doctor
tunesync doctor --jsontunesync mcp
Start the stdio JSON-RPC 2.0 MCP server for AI agents. See AI Agents & MCP.