CLI Referenceauth
auth
One-time auth helpers for external provider setup.
auth spotify-refresh-token
Runs a local Spotify authorization-code flow and prints a refresh token for the repo-owned metrics-music.svg supplemental card.
uv run readme auth spotify-refresh-token \
--client-id "$SPOTIFY_CLIENT_ID" \
--client-secret "$SPOTIFY_CLIENT_SECRET"By default the helper:
- listens on
http://127.0.0.1:8888/callback - opens the Spotify authorize URL in your default browser
- requests the
user-read-recently-playedscope - prints the refresh token after a successful callback
If you need to copy the authorize URL manually instead of auto-opening the browser:
uv run readme auth spotify-refresh-token \
--client-id "$SPOTIFY_CLIENT_ID" \
--client-secret "$SPOTIFY_CLIENT_SECRET" \
--no-open-browserRequired inputs:
SPOTIFY_CLIENT_IDor--client-idSPOTIFY_CLIENT_SECRETor--client-secret
After the helper prints a refresh token, store it in GitHub Actions as SPOTIFY_REFRESH_TOKEN.