This document details the available commands, arguments, and flags for the tidal-sync CLI.
Most commands accept a profile flag. This allows you to manage multiple Tidal accounts simultaneously without constantly logging in and out.
--profile,-p: Specifies the account profile to use. If omitted, the tool defaults to thedefaultprofile.
Authenticates a Tidal account and saves the session token to a local profile. Running this command opens your default web browser for standard OAuth approval.
Usage:
uv run tidal-sync login [OPTIONS]Securely deletes session credentials for a specific profile. It overwrites the local token file with null bytes before deleting it from the disk, preventing standard data recovery.
Usage:
uv run tidal-sync logout [OPTIONS]Imports CSV files into your Tidal library. If you point it at a directory, it recursively finds and imports all CSV files. The tool checks your existing library first and automatically skips tracks you already own.
Usage:
uv run tidal-sync import TARGET_PATH [OPTIONS]Arguments:
TARGET_PATH(Required): The path to a specific CSV file or a directory containing multiple CSVs.
Options:
--name,-n: Overrides the target playlist name. This only applies when importing a single file; directory imports use the filenames automatically.
Downloads your entire Tidal library (playlists, liked songs, saved albums, and followed artists) to local CSV files. It builds a categorised folder structure at the target destination.
Usage:
uv run tidal-sync export [OPTIONS]Options:
--out,-o: The directory where the backup folders will be created. Defaults to./exports.
Destructively wipes data from a Tidal account. Unless you provide the force flag, the tool asks for manual confirmation before making any permanent deletions.
Usage:
uv run tidal-sync clear TARGET [OPTIONS]Arguments:
TARGET(Required): The category to clear. Valid options areall,tracks,albums,artists, orplaylists.
Options:
--force,-f: Skips the manual confirmation prompt. Useful for automated scripts.
Lists all authenticated Tidal profiles currently saved on your machine, displaying the profile names alongside their associated Tidal User IDs.
Usage:
uv run tidal-sync profiles