Installation
Requirements
- Node.js >= 20.0.0
- npm (comes with Node.js) or pnpm
Global Installation
Install globally via npm to use the music-getter or mg command from anywhere:
Verify the installation:
Use Without Installing
If you prefer not to install globally, you can use npx to run it directly:
Build from Source
If you want to use the latest development version or modify the code yourself, clone the repository and build:
After building, you can run it with:
Or link it globally:
Development Mode
During development, you can use tsx to run TypeScript source directly without recompiling after each change:
Verify Installation
Run the following command to see the help information and confirm successful installation:
You should see output similar to:
Next Steps
- Check out Download Song to learn how to download a single song
- Check out Download Playlist to learn about batch downloading
- Check out Search Music to learn how to search for songs
