This is a fork of the appleMusic-cli-player tool by talz-a. It was made to extend the original tool's features to include these new abilities:
- add songs to playlists
- make new playlists
- go back to the previous song
- build and run the tool with Docker
- (Possibly later) gaming controller support
All credit for creating the project, the original commands, and the album art features goes to talz-a.
[FROM OG REPO]
appleMusic-cli-player is a command-line interface (CLI) tool designed to control music playback on Apple Music. Built using Go and the Cobra CLI library, it allows you to manage your music without leaving the terminal. With commands for playing, pausing, skipping tracks, and more, this tool offers seamless control over your Apple Music experience.
-
List of Commands:
music [command]
completion- Generate the autocompletion script for the specified shellcurrent- Display currently playing song informationhelp- Get help about any commandnext- Skip to the next track in Apple Musicopen- Open Apple Musicpause- Pause music playbackplay- Play the current song in Apple Musicplaylists- Choose a playlist to playshuffle- Toggle shuffle mode in Apple Musicvolume- Set the volume for Apple Music
back- Go back to the previous songadd- Add the song that is currently playing to a playlistnew- Create a new playlist
-
Flags:
-h, --help Help for music -t, --toggle Help message for toggle
Use music [command] --help for more information about a specific command.
-
Clone the (fork) repository
git clone https://github.com/ofdryads/am-cli.git
-
Navigate to the project directory
cd am-cli -
Build the project
go build
-
Run the CLI
./music
In the project directory,
- Build
docker build -t am-cli .- Run
docker run am-cli ./music [command-here]
