09-cli
CLI コマンド
このページは自動生成です。直接編集しないこと。
python tools/gen_manual_ref.pyで再生成する。内容を変えたいときは下の生成元を直す。
生成元
crates/melodear-cli/src/main.rscrates/melodear-cli/src/cmd_*.rs
melodear-cli は開発・検証用。GUI でできることを CLI から確かめたり、まとめて処理したりするのに使う。実行は cargo run -p melodear-cli -- --library "X:\Music" <コマンド>。各コマンドの引数は --help が正本で、ここは索引。
グローバルオプション
| オプション | 説明 | global |
|---|---|---|
-q / --quiet | Suppress progress and informational messages (errors still on stderr). | はい |
--color | Color output: auto (TTY), always, or never. | はい |
--no-color | Disable ANSI colors (same as --color never). | はい |
-0 / --null | NUL separator: stdin paths (info -) and list / compare --csv output. | はい |
コマンド(49)
| コマンド | 説明 | サブコマンド / 引数 |
|---|---|---|
melodear backends | List available audio output backends. | |
melodear play | Play an audio file. | 8 個のオプション |
melodear cue | User cue points and A-B loops (DB-backed). | サブコマンド → CueCommand |
melodear info | Show metadata (codec / sample rate / tags / ...) for an audio file. | 3 個のオプション |
melodear compare | Compare analysis values across tag sources for one file (or - for stdin paths). | 2 個のオプション |
melodear metadata | DB metadata revision history (ADR-0010; file tags remain read-only). | サブコマンド → MetadataCommand |
melodear forensics | Detect software signatures from embedded tags (read-only). | 1 個のオプション |
melodear diagnose | Diagnose audio issues (clipping, DC offset, silence, loudness). | 引数は DiagnoseArgs |
melodear repair | Apply non-destructive repair (writes new WAV; never modifies source). | 引数は RepairArgs |
melodear chain-override | Set or clear per-track plugin chain override. | 引数は ChainOverrideArgs |
melodear waveform | Generate or inspect waveform peak/RMS cache (Phase 3d WFM1). | |
melodear analyze | Re-probe file(s) and apply ADR-0004 resolution (optional DB upsert). | 7 個のオプション |
melodear transcribe | Whisper speech-to-text for library assets (requires whisper-cpp feature for real decode). | 引数は TranscribeArgs |
melodear emotion | Emotion to mood batch (text/speech-aware, emotion-01). | 引数は EmotionArgs |
melodear scan | Recursively scan a folder and import all audio files into <folder>/melodear.db. | 3 個のオプション |
melodear list | Show the contents of a library's melodear.db as a table. | 5 個のオプション |
melodear rediscover | Suggest tracks you haven't played recently. | 引数は RediscoverArgs |
melodear doctor | Library health / integrity checks. | 引数は DoctorArgs |
melodear watch | Watch a folder and auto-import new audio files. | 引数は WatchArgs |
melodear tag | User tag CRUD (M:N). | サブコマンド → TagCommand |
melodear love | Mark track(s) as Loved. | 引数は LoveArgs |
melodear unlove | Remove Loved flag from track(s). | 引数は UnloveArgs |
melodear rate | Set track rating (0–100, DB only). | 引数は RateArgs |
melodear history | Play history and stats. | 引数は HistoryArgs |
melodear export | Export library (playlist M3U8/JSON/CSV) or view export job history. | サブコマンド → ExportCommand |
melodear separate | 4-stem source separation (Demucs / ONNX). | 引数は SeparateArgs |
melodear export-stems | Export separated stems to WAV/FLAC (Phase 8d). | 引数は ExportStemsArgs |
melodear render | Offline render with plugin chain (Phase 8d). | 引数は RenderArgs |
melodear mixdown | Mix stems to one file (Phase 8d). | 引数は MixdownArgs |
melodear playlist | Smart playlist CRUD (Phase 4f). | サブコマンド → PlaylistCommand |
melodear similar | Find similar tracks by feature vector (Phase 4e / 5f). | 引数は SimilarArgs |
melodear journey | Build a playlist along BPM / mood curves (Phase 5f). | 引数は JourneyArgs |
melodear mood | Search tracks by natural-language mood phrase (Phase 5f). | 引数は MoodArgs |
melodear voice | Doujin voice metadata: products / actors / tags (voice-01). | 引数は VoiceArgs |
melodear mood-search | Search tracks by valence / arousal ranges (Phase 5e). | 引数は MoodSearchArgs |
melodear collate-artist | Per-artist mood / genre / BPM statistics (Phase 5f). | 引数は CollateArtistArgs |
melodear stats | Library-wide analysis coverage and distributions (Phase 5f). | 引数は StatsArgs |
melodear lookup | Search external metadata (MusicBrainz / Last.fm) and optionally apply to DB. | 引数は LookupArgs |
melodear consensus | Recompute genre consensus from stored sources (Phase 6g.5). | 引数は ConsensusArgs |
melodear models | ONNX model install / verify (Phase 5c.5). | サブコマンド → ModelsCommand |
melodear search | Search library by ML genre/style tags. | 引数は GenreSearchArgs |
melodear samples | List DTM samples by ML category (Phase 5d). | 引数は SamplesArgs |
melodear ucs | UCS master search and per-asset UCS tag operations (Phase 6f). | 引数は UcsArgs |
melodear project | Project CRUD and project.json import/export (Phase 6f). | 引数は ProjectArgs |
melodear fingerprint | Fingerprint audio (Chromaprint, no AcoustID API). | 引数は FingerprintArgs |
melodear identify | Identify track via AcoustID fingerprint (opt-in API). | 引数は IdentifyArgs |
melodear plugins | Plugin registry: list / paths / scan / remove (Phase 7a). | 引数は PluginsArgs |
melodear chain | Master plugin chain CRUD (Phase 7d). | 引数は ChainArgs |
melodear preset | Chain preset save / load / list (Phase 7e). | 引数は PresetArgs |
サブコマンド
| enum | 定義 | サブコマンド |
|---|---|---|
ChainCommand | cmd_chain.rs | list, show, create, set-master, add, remove-slot, move-slot, bypass-slot, dry-wet, delete |
ConsensusCommand | cmd_consensus.rs | recompute |
CueCommand | cmd_cue.rs | list, set, clear, export |
ExportCommand | cmd_export.rs | playlist, history |
MetadataCommand | cmd_metadata.rs | log, set, revert |
ModelsCommand | cmd_models.rs | list, install, verify |
PlaylistCommand | cmd_playlist.rs | list, show, eval, create, delete |
PluginsCommand | cmd_plugins.rs | list, paths, scan, remove |
PresetCommand | cmd_preset.rs | list, save, load, delete, show, export, import, templates |
TemplatesCommand | cmd_preset.rs | list, install |
ProjectCommand | cmd_project.rs | list, create, show, add, missing, export, import |
SamplesCommand | cmd_samples.rs | list, show |
TagCommand | cmd_tag.rs | list, add, remove, rename, attach, detach, of, tracks |
UcsCommand | cmd_ucs.rs | search, tag, untag, list |
VoiceCommand | cmd_voice.rs | scan, fetch, products, show, actors, tags, search, list, migrate, interactions, import-dom, backfill-circle-codes |