🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@marswave/listenhub-cli

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@marswave/listenhub-cli

Command-line interface for ListenHub

Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
319
60.3%
Maintainers
5
Weekly downloads
 
Created
Source

ListenHub CLI

Command-line interface for ListenHub — create podcasts, text-to-speech, explainer videos, slides, AI images, and music from your terminal.

中文文档

Built on @marswave/listenhub-sdk.

Install

npm install -g @marswave/listenhub-cli

Requires Node.js >= 20.

Quick Start

# Log in via browser
listenhub auth login

# Create a podcast
listenhub podcast create --query "AI agent trends in 2026" --mode quick

# Generate music
listenhub music generate --prompt "Chill lo-fi beats" --style "lo-fi" --title "Study Session"

# Create a cover from local audio
listenhub music cover --audio ./song.mp3 --title "My Cover"

# Generate an AI image with a local reference
listenhub image create --prompt "a dragon in watercolor style" --reference ./sketch.png

# Text-to-speech
listenhub tts create --text "Hello, world" --lang en

Commands

Auth

CommandDescription
listenhub auth loginLog in via browser OAuth
listenhub auth logoutLog out and revoke tokens
listenhub auth statusShow current login status

Music

CommandDescription
listenhub music generateGenerate music from a text prompt
listenhub music coverCreate a cover from reference audio
listenhub music listList music tasks
listenhub music get <id>Get music task details

Content Creation

CommandDescription
listenhub podcast createCreate a podcast episode
listenhub podcast listList podcast episodes
listenhub tts createCreate text-to-speech audio
listenhub tts listList TTS creations
listenhub explainer createCreate an explainer video
listenhub explainer listList explainer videos
listenhub slides createCreate a slide deck
listenhub slides listList slide decks

Images

CommandDescription
listenhub image createGenerate an AI image
listenhub image listList AI images
listenhub image get <id>Get image details

Other

CommandDescription
listenhub speakers listList available speakers
listenhub creation get <id>Get creation details
listenhub creation delete <id...>Delete creations

Run listenhub <command> --help for full options.

Common Options

All commands support:

  • --json / -j — Output JSON instead of human-readable text
  • --help / -h — Show help

Creation commands also support:

  • --no-wait — Return the ID immediately without polling
  • --timeout <seconds> — Polling timeout (default varies by command)

Local File Upload

music cover and image create support local file references. The CLI automatically detects local paths, validates format and size, and uploads to cloud storage before passing to the API.

# Local audio file for cover (mp3, wav, flac, m4a, ogg, aac; max 20MB)
listenhub music cover --audio ./song.mp3

# Local image for reference (jpg, png, webp, gif; max 10MB)
listenhub image create --prompt "inspired by this" --reference ./photo.jpg

# URLs are passed through directly
listenhub music cover --audio https://example.com/song.mp3

Authentication

ListenHub CLI uses OAuth. Run listenhub auth login to open a browser window for authorization. Tokens are stored at ~/.config/listenhub/credentials.json (or $XDG_CONFIG_HOME/listenhub/).

Tokens auto-refresh when nearing expiry. Run listenhub auth status to check.

Examples

Music generation

# Generate with style and title
listenhub music generate --prompt "Upbeat electronic dance" --style "EDM" --title "Night Drive"

# Instrumental only
listenhub music generate --prompt "Peaceful piano melody" --instrumental

# Cover from local file
listenhub music cover --audio ./original.mp3 --title "My Remix"

# Get task ID without waiting
ID=$(listenhub music generate --prompt "test" --no-wait --json | jq -r '.taskId')
listenhub music get "$ID" --json

Podcast with reference material

listenhub podcast create \
  --query "Climate change solutions" \
  --mode deep \
  --source-url https://example.com/article \
  --lang en

Image with local reference

listenhub image create \
  --prompt "A landscape painting in this style" \
  --reference ./sketch.jpg \
  --reference ./palette.png \
  --aspect-ratio 16:9 --size 4K

JSON output for scripting

# Get episode ID without waiting
ID=$(listenhub podcast create --query "test" --no-wait --json | jq -r '.episodeId')

# Poll status later
listenhub creation get "$ID" --json

Development

git clone https://github.com/marswaveai/listenhub-cli.git
cd listenhub-cli
pnpm install
pnpm run dev    # TypeScript watch mode
pnpm run build  # Build for distribution
pnpm test       # Lint with xo

License

MIT

FAQs

Package last updated on 19 Apr 2026

Did you know?

Socket

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.

Install

Related posts