npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@musicflowai/cli

v0.1.3

Published

Command-line client for the MusicFlow agent API

Downloads

319

Readme

MusicFlow CLI

@musicflowai/cli is the command-line client for the MusicFlow agent API. It is designed to be small, scriptable, and safe to automate against. The CLI talks only to the public v1 API and stores local auth state in ~/.config/musicflow/config.json.

Install

npm install @musicflowai/cli

Global install is also supported:

npm install -g @musicflowai/cli

Authentication

There are two ways to authenticate.

Interactive login

Use musicflow login to open a browser-based login flow. After you approve the request, the CLI stores a local app-managed API key and reuses it for future requests.

musicflow login

API key

Set MUSICFLOW_API_KEY for non-interactive use:

export MUSICFLOW_API_KEY=mf_xxxxxxxxxxxxxxxxxxxx

By default, the CLI talks to the production API at https://api.musicflowai.com. Override the API base URL only if you are testing against a local or alternate environment:

export MUSICFLOW_APP_URL=https://api.musicflowai.com

Commands

  • musicflow login
  • musicflow logout
  • musicflow whoami
  • musicflow account
  • musicflow auth status
  • musicflow capabilities
  • musicflow song create
  • musicflow video from-song
  • musicflow publish create
  • musicflow plan create
  • musicflow job get

Examples

Create a song draft:

musicflow song create \
  --prompt "Write a reflective indie song about starting over" \
  --producer-id 7d6b7b2a-7f1d-4f6d-bf4e-66ff5d9f0f4a \
  --generate-audio

Create a song and wait for audio completion:

musicflow song create \
  --prompt "Write a reflective indie song about starting over" \
  --generate-audio \
  --sync

Create a single video from a song:

musicflow video from-song \
  --song-id 6c4ab1b7-b8b4-4c1f-9c8f-4c33b0ed7a83 \
  --caption-mode auto \
  --caption-style alexHormozi \
  --aspect-ratio 9:16

Publish an existing video:

musicflow publish create \
  --content-id 0d7df30d-4f42-4db5-b00d-43d48f8dc2f7 \
  --youtube-channel-id 0b5b8ad0-4c6f-4b9f-8f08-dfe4e5f0f2d2 \
  --privacy-status unlisted

Inspect a queued job:

musicflow job get --id render:4e6c6fd2-1ad4-4b89-8145-21c64f2c3e19

Development

This package is authored in src/ and built to dist/.

cd packages/musicflow-cli
npm install
npm run build

For iterative development:

npm run dev -- song create --prompt "..."

If you want to lint or type-check the package only:

npm run check

Release Notes

0.1.3

  • Changed the default API host to https://api.musicflowai.com.
  • Removed the localhost fallback from the published CLI default configuration.

0.1.0

  • Initial standalone package extraction.
  • Added browser-based login.
  • Added support for whoami, capabilities, song creation, video creation, publishing, plan creation, and job polling.
  • Switched published entrypoint to dist/cli.js.