# spotcli

> spotify command line interface

Latest version **1.0.5** (published 2020-05-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install spotcli
pnpm add spotcli
yarn add spotcli
bun add spotcli
```

Provides the command `spotcli`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2020-05-19 |
| First published | 2020-05-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 77.3 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | yes |
| GitHub stars | 0 |
| Author | Mark B |
| Maintainers | hypedis |
| Keywords | spotify, cli |

## Links

- npm: https://www.npmjs.com/package/spotcli
- Repository: https://github.com/HypeDis/spotcli
- Homepage: https://github.com/HypeDis/spotcli#readme
- Issues: https://github.com/HypeDis/spotcli/issues
- npm.io page: https://npm.io/package/spotcli

## Dependencies (8)

- [esm](https://npm.io/package/esm.md) ^3.2.25
- [axios](https://npm.io/package/axios.md) ^0.19.2
- [chalk](https://npm.io/package/chalk.md) ^4.0.0
- [dotenv](https://npm.io/package/dotenv.md) ^8.2.0
- [inquirer](https://npm.io/package/inquirer.md) ^7.1.0
- [commander](https://npm.io/package/commander.md) ^5.1.0
- [@types/inquirer](https://npm.io/package/@types/inquirer.md) ^6.5.0
- [spotify-web-api-node](https://npm.io/package/spotify-web-api-node.md) ^4.0.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 1.0.5 (latest) — 2020-05-19
- 1.0.4 — 2020-05-19
- 1.0.3 — 2020-05-19
- 1.0.2 — 2020-05-19
- 1.0.1 — 2020-05-19
- 1.0.0 — 2020-05-19

## README

# Spotify cli

Nodejs based Spotify command line interface heavily inspired by
https://github.com/ohmyzsh/ohmyzsh/blob/master/plugins/osx/spotify<br>
NOTE: Only works with osx (mac)<br>

## To use:

Install the package globally<br>

```
npm i -g spotcli
```

use the `spotcli` command to use the CLI <br>

Example:<br>

```
# reduce the volume<br>
spotcli vol down

# get artist info for currently playing track
spotcli show artist
```

## Commands:

\<\> = required<br>
[] = optional<br>

`show` \<artist|album|stats|uri\> Show info on the currenty playing track.<br>
`play` [artist|track|album|list|uri] Resume playback or play a specific artist, track, album, playlist, or uri<br>
`pause` Toggle between play/pause<br>
`quit` Quit Spotify<br>
`next` Go to the next track<br>
`prev` Go to the previous track<br>
`replay` Replay current track<br>
`pos <position>` Move to a specific position in a song (given in seconds)<br>
`ff <seconds>` Fast forward by a given amount of seconds<br>
`rw <seconds>` Rewind by a given amount of seconds<br>
`vol <position>` Move the volume slider to the desired position. Range: integer [0, 100]<br>
`vol up` Increases volume by 10%<br>
`vol down` Decreases volume by 10%<br>
`toggle <shuffle|repeat>` Toggle shuffle/repeat on and off
`register` spotcli will prompt you to enter your clientId and clientSecret
`help [command]` display help for command<br>

## Aliases for bash/zsh (optional):

```
alias sshow="spotcli show"
alias sshowar="spotcli show artist"
alias sshowal="spotcli show album"
alias sshowst="spotcli show stats"
alias sshowur="spotcli show uri"
alias spl="spotcli play"
alias splar="spotcli play artist"
alias splal="spotcli play album"
alias spltr="spotcli play track"
alias splli="spotcli play list"
alias splur="spotcli play uri"
alias spau="spotcli pause"
alias squit="spotcli quit"
alias snxt="spotcli next"
alias sprev="spotcli prev"
alias srep="spotcli replay"
alias spos="spotcli pos"
alias sff="spotcli ff"
alias srw="spotcli rw"
alias sv="spotcli vol"
alias svd="spotcli vol down"
alias svu="spotcli vol up"
alias sts="spotcli toggle shuffle"
alias str="spotcli toggle repeat"
```

---
_Source: https://npm.io/package/spotcli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
