Below is a complete, standalone Product Requirements Document (PRD) for ToneForge CLI, written to integrate cleanly with the ToneForge ecosystem and support automation, CI/CD, and large‑scale procedural audio workflows.
ToneForge CLI
ToneForge CLI is the command‑line interface for the ToneForge ecosystem. It provides a scriptable, automatable, and deterministic way to generate, analyze, classify, explore, stack, export, and manage procedural sound effects at scale.
ToneForge CLI is designed for:
- build pipelines
- CI/CD systems
- batch asset generation
- headless environments
- power users and technical sound designers
It is the primary automation surface for ToneForge.
ToneForge CLI spans the entire lifecycle:
Author → Generate → Stack → Analyze → Classify → Explore → Store → Integrate → Ship
Its purpose is to:
- expose all ToneForge capabilities non‑interactively
- enable reproducible builds
- support large‑scale sound generation
- integrate with existing toolchains
- automate placeholder asset generation
- Deterministic, repeatable execution
- Script‑friendly interface
- Clear, composable commands
- JSON‑based configuration
- CI‑safe operation
- Cross‑platform support
- Interactive sound editing
- GUI replacement
- Real‑time audio playback
- AI model training
ToneForge CLI uses a verb‑first command structure:
toneforge <command> [options]
Commands are:
- composable
- idempotent where possible
- explicit in side effects
All commands support:
- inline flags
- JSON config files
- environment variables
Configuration precedence:
- CLI flags
- Config file
- Environment variables
- Defaults
Generates procedural or hybrid sound effects.
toneforge generate \
--recipe footstep \
--variant gravel \
--count 1000 \
--seed-range 1000:2000--recipe--variant--count--seed--seed-range--duration--samples
Renders layered sound events using ToneForge Stack.
toneforge stack \
--preset explosion_heavy.json \
--export wavRuns ToneForge Analyze on audio assets.
toneforge analyze \
--input ./renders \
--output ./analysisRuns ToneForge Classify on analyzed sounds.
toneforge classify \
--analysis ./analysis \
--output ./classificationPerforms procedural sound exploration.
toneforge explore \
--recipe creature \
--seed-range 0:10000 \
--keep-top 200Manages ToneForge Library assets.
toneforge library list --category ui
toneforge library export --format wavCompiles a curated library into production assets.
toneforge compile \
--category footsteps \
--format wav \
--validateToneForge CLI is designed for large‑scale batch execution.
- parallel processing
- resumable jobs
- progress reporting
- partial failure recovery
ToneForge CLI guarantees:
- same inputs → same outputs
- explicit version locking
- deterministic seed handling
- reproducible builds across machines
Each run records:
- ToneForge version
- command invocation
- configuration hash
- timestamps
Depending on command, outputs may include:
- WAV files
- JSON presets
- analysis metadata
- classification metadata
- logs and reports
All outputs are:
- structured
- machine‑readable
- versioned
- clear exit codes
- descriptive error messages
- non‑fatal warnings where possible
- human‑readable console output
- optional JSON logs for CI
- verbosity levels
ToneForge CLI is safe for:
- headless execution
- sandboxed environments
- automated builds
Supports:
- fail‑fast validation
- artifact caching
- incremental builds
- No dynamic code execution
- Explicit file access
- Predictable resource usage
- Safe for shared build agents
- Fast startup time
- Efficient batch processing
- Scales to tens of thousands of sounds
- Minimal memory overhead
ToneForge CLI supports:
- plugin commands
- custom recipes
- external integrations
- future module expansion
Built‑in help system:
toneforge help
toneforge generate --helpIncludes:
- command descriptions
- option explanations
- usage examples
Without a CLI:
- procedural audio cannot scale
- automation breaks down
- reproducibility is fragile
ToneForge CLI turns ToneForge into a production‑grade audio pipeline, enabling:
- massive asset generation
- deterministic builds
- seamless integration into modern workflows
ToneForge CLI is the automation backbone of the ToneForge ecosystem.
It exposes every major capability through a clean, scriptable interface—making procedural audio generation reliable, scalable, and production‑ready.
If you want next, the natural follow‑ups are:
- a CLI command reference spec
- CI pipeline examples
- or a plugin architecture design