Skip to content

Commands Reference ​

Every command accepts the global --profile NAME option before the subcommand.

tunesync auth ​

Authenticate with Spotify or YouTube Music.

bash
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-know

tunesync lists ​

List playlists on Spotify, YouTube Music, or both.

bash
tunesync lists
tunesync lists --service spotify
tunesync lists --service ytmusic --json

When a service endpoint does not return per-playlist song counts (such as Spotify's web libraryV3), Songs displays —.

Pair playlists across services for two-way sync.

bash
# 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 1

If 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.

bash
tunesync pairs
tunesync pairs --json

tunesync sync ​

Run a three-way sync across all linked pairs (or one --pair ID).

bash
tunesync sync --dry-run
tunesync sync
tunesync sync --pair 1 --json
tunesync sync --force    # bypass bulk-deletion safety caps

tunesync import ​

One-way additive import of an Exportify CSV into YouTube Music.

bash
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-found

tunesync review ​

Interactively resolve not_found tracks from the latest import report CSV or a linked pair.

bash
tunesync review --target "My Playlist" --limit 10
tunesync review --report path/to/import_report.csv --target "My Playlist"
tunesync review --pair 1

tunesync watch ​

Run sync periodically until interrupted (Ctrl+C).

bash
tunesync watch --interval 30
tunesync watch --interval 15 --pair 1 --dry-run --json
tunesync watch --interval 1 --max-runs 1 --dry-run

tunesync doctor ​

Validate active profile, config, and service credentials.

bash
tunesync doctor
tunesync doctor --json

tunesync mcp ​

Start the stdio JSON-RPC 2.0 MCP server for AI agents. See AI Agents & MCP.