spotify-cli / config
config
Application configuration constants for the Spotify CLI.
Variables
CACHE_MAX_SIZE
constCACHE_MAX_SIZE:500=500
Defined in: src/config.ts:26
Maximum number of entries stored in the metadata cache.
CACHE_PATH
constCACHE_PATH:string
Defined in: src/config.ts:23
Path to the metadata cache file.
CALLBACK_PORT
constCALLBACK_PORT:8888=8888
Defined in: src/config.ts:41
Port used by the local OAuth callback server.
CONFIG_DIR
constCONFIG_DIR:string
Defined in: src/config.ts:14
Directory where CLI configuration and tokens are stored (~/.spotify-cli).
CONFIG_PATH
constCONFIG_PATH:string
Defined in: src/config.ts:20
Path to the general config file (stores client ID, etc.).
REDIRECT_URI
constREDIRECT_URI:"http://127.0.0.1:8888/callback"="http://127.0.0.1:8888/callback"
Defined in: src/config.ts:38
OAuth redirect URI for the local callback server.
SCOPES
constSCOPES:string
Defined in: src/config.ts:44
Space-separated list of OAuth scopes requested during login.
SPOTIFY_API_BASE
constSPOTIFY_API_BASE:"https://api.spotify.com/v1"="https://api.spotify.com/v1"
Defined in: src/config.ts:35
Spotify Web API v1 base URL.
SPOTIFY_AUTH_URL
constSPOTIFY_AUTH_URL:"https://accounts.spotify.com/authorize"="https://accounts.spotify.com/authorize"
Defined in: src/config.ts:29
Spotify Accounts authorization endpoint.
SPOTIFY_TOKEN_URL
constSPOTIFY_TOKEN_URL:"https://accounts.spotify.com/api/token"="https://accounts.spotify.com/api/token"
Defined in: src/config.ts:32
Spotify Accounts token exchange endpoint.
TOKENS_PATH
constTOKENS_PATH:string
Defined in: src/config.ts:17
Path to the stored OAuth tokens file.
VERSION
constVERSION:"0.2.0"="0.2.0"
Defined in: src/config.ts:11
CLI version, kept in sync with package.json.