
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
applemusic-cli
Advanced tools
Control Apple Music from the terminal using AppleScript (macOS only).
bun install
# Using alias (add to fish config)
alias am "bun run /path/to/src/index.ts"
# Playback
am play # Start playback
am pause # Pause
am toggle # Toggle play/pause
am next # Next track
am prev # Previous track
# Now playing
am now # Show current track info
# Volume
am vol # Get volume
am vol 50 # Set volume to 50%
# Playlists
am playlists # List all playlists
am playlist "My Playlist" # Play a playlist
am tracks "My Playlist" # List tracks in playlist
# Library
am songs # List all songs
am search nirvana # Search library
am song "Come As You Are" # Play a song by name
# Options
am shuffle on # Enable shuffle
am repeat all # Set repeat mode (off/one/all)
# Pagination (works with playlists, tracks, songs, search)
am songs --limit 20 --offset 40
am search rock --limit 10
src/
├── index.ts # CLI entry point - parses command and dispatches
├── osascript.ts # AppleScript execution helpers
├── args.ts # Command-line argument parsing utilities
├── pagination.ts # Pagination utilities for list commands
└── commands/
├── index.ts # Command registry - maps names to handlers
├── playback.ts # play, pause, stop, next, prev, toggle
├── now.ts # Current track info display
├── volume.ts # Volume get/set
├── playlists.ts # Playlist listing and playback
├── library.ts # Library browsing and search
├── options.ts # Shuffle and repeat settings
└── help.ts # Help text display
| Module | Description |
|---|---|
osascript | Low-level AppleScript execution via osascript command |
args | Parses --flag value and positional arguments |
pagination | Generic pagination with limit/offset support |
commands/* | Individual command implementations |
src/commands/ (or add to existing file)Command type signaturesrc/commands/index.tssrc/commands/help.tsExample:
// src/commands/mycommand.ts
import { osascript } from "../osascript";
export async function myCommand(): Promise<void> {
const result = await osascript('tell application "Music" to ...');
console.log(result);
}
// src/commands/index.ts
import { myCommand } from "./mycommand";
export const commands: Record<string, Command> = {
// ...
mycommand: () => myCommand(),
};
FAQs
Control Apple Music from the terminal (macOS)
We found that applemusic-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.