A CLI tool to migrate your Spotify "Liked Songs" and playlists to YouTube Music.
- .NET 8.0 SDK or later
- A Spotify Account
- A Google Account (YouTube)
- Go to the Spotify Developer Dashboard.
- Log in and click "Create App".
- Fill in the App Name (e.g., "Spotube CLI") and Description.
- In the "Redirect URIs" field, add
http://127.0.0.1:5000/callback. - Save the app.
- Note down the Client ID and Client Secret.
- Go to the Google Cloud Console.
- Create a new project.
- Enable the YouTube Data API v3.
- Go to "Credentials" -> "Create Credentials" -> "OAuth client ID".
- Select "Desktop app" as the application type.
- Note down the Client ID and Client Secret.
- Download the JSON file and save it as
client_secrets.jsonin the project root (optional, or just use the ID/Secret).
You can use .NET User Secrets to store your credentials securely.
Run the following commands in the src/Spotube.CLI directory:
dotnet user-secrets init
dotnet user-secrets set "Spotify:ClientId" "<your-spotify-client-id>"
dotnet user-secrets set "Spotify:ClientSecret" "<your-spotify-client-secret>"
dotnet user-secrets set "YouTube:ClientId" "<your-google-client-id>"
dotnet user-secrets set "YouTube:ClientSecret" "<your-google-client-secret>"Run the application:
dotnet run --project src/Spotube.CLIFollow the on-screen instructions to authenticate and migrate your music.