A collection of example commands to get you started with FMAG CLI.
fmag generate calm_rain_officeCreates a 2-minute ambient loop with rain sounds.
fmag generate forest_cafe --duration 3Creates a 3-minute forest cafe ambience.
fmag generate ocean_meditation -d 5Creates a 5-minute ocean meditation soundscape.
fmag generate night_coding_lofi --provider audiogenExplicitly uses the AudioGen provider for generation.
fmag generate deep_focus_spaceship --provider barkUses the open-source Bark model for generation.
fmag generate forest_cafe -p bark -d 2Combines short flags for provider and duration.
fmag generate calm_rain_office --output ./my-soundsSaves the generated audio to a custom directory.
fmag generate ocean_meditation -o ~/Music/ambience -d 3Saves to your Music folder with 3-minute duration.
fmag generate "peaceful zen garden with wind chimes, bamboo water fountain, and distant temple bells" -d 5Creates a custom zen garden soundscape.
fmag generate "crackling fireplace in a winter cabin, gentle snowfall outside, warm and cozy atmosphere" --duration 4Creates a winter cabin ambience.
fmag generate forest_cafe --debugShows detailed provider logs and processing steps.
fmag generate night_coding_lofi --no-fadeDisables fade-in and fade-out effects.
fmag generate ocean_meditation --no-loopDisables crossfade loop optimization.
fmag generate calm_rain_office \
--duration 4 \
--provider audiogen \
--output ./focus-sessions \
--debug \
--no-fadeFull control over all generation parameters.
fmag moodsDisplays all available mood presets with descriptions.
fmag providersShows available audio providers and their status.
fmag --versionDisplays the FMAG version.
fmag --help
fmag generate --helpShows help for main command or generate subcommand.
fmagLaunches the guided interactive mode for beginners.
fmag generateRuns generate command which falls back to interactive mode if no mood is specified.
After generating, play your ambient audio:
# macOS
afplay ./output/fmag-forest_cafe-*.mp3
# Loop playback (requires mpv)
mpv --loop ./output/fmag-forest_cafe-*.mp3
# VLC loop
vlc --loop ./output/fmag-forest_cafe-*.mp3
# ffplay (comes with FFmpeg)
ffplay -loop 0 ./output/fmag-forest_cafe-*.mp3# Generate calm rain for morning work
fmag generate calm_rain_office -d 5 -o ~/Music/focus
# Play on loop while working
mpv --loop ~/Music/focus/fmag-calm_rain_office-*.mp3# Generate spaceship ambience for intense focus
fmag generate deep_focus_spaceship --duration 5
# Play without distractions
afplay ./output/fmag-deep_focus_spaceship-*.mp3# Generate lofi vibes for evening coding
fmag generate night_coding_lofi -d 4 -p audiogen
# Loop for extended session
mpv --loop ./output/fmag-night_coding_lofi-*.mp3Happy focusing! 🎧✨