Skip to content

spotify-cli


spotify-cli / config

config

Application configuration constants for the Spotify CLI.

Variables

CACHE_MAX_SIZE

const CACHE_MAX_SIZE: 500 = 500

Defined in: src/config.ts:26

Maximum number of entries stored in the metadata cache.


CACHE_PATH

const CACHE_PATH: string

Defined in: src/config.ts:23

Path to the metadata cache file.


CALLBACK_PORT

const CALLBACK_PORT: 8888 = 8888

Defined in: src/config.ts:41

Port used by the local OAuth callback server.


CONFIG_DIR

const CONFIG_DIR: string

Defined in: src/config.ts:14

Directory where CLI configuration and tokens are stored (~/.spotify-cli).


CONFIG_PATH

const CONFIG_PATH: string

Defined in: src/config.ts:20

Path to the general config file (stores client ID, etc.).


REDIRECT_URI

const REDIRECT_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

const SCOPES: string

Defined in: src/config.ts:44

Space-separated list of OAuth scopes requested during login.


SPOTIFY_API_BASE

const SPOTIFY_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

const SPOTIFY_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

const SPOTIFY_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

const TOKENS_PATH: string

Defined in: src/config.ts:17

Path to the stored OAuth tokens file.


VERSION

const VERSION: "0.2.0" = "0.2.0"

Defined in: src/config.ts:11

CLI version, kept in sync with package.json.

MIT Licensed. Not affiliated with or endorsed by Spotify AB.