Skip to content
Proyek

Tentang

A music-first terminal experience. YouTube Music, your lossless library, and precise audio control built in Rust for Windows, Linux, and macOS.

Desain dan media

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
Mengumpulkan riwayat
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

LastWave CLI — Your music. One terminal.

Release v1.0.0 Build status Rust 1.90 or newer for source builds GPL v3 license

Discover a track. Build a queue. Follow the lyrics.
YouTube Music in your terminal, with companion commands for your own music library.

Install · First listen · Keybindings · Commands · Configuration · Release notes


LastWave CLI home screen with library, recommendations, artwork and playback controls

Made for the way you listen

What you can do
Discover & play Browse YouTube Music Home, search songs, open albums and artists, explore playlists and start a radio. Browse and play signed out; sign in for your library.
Stay in the music Manage the queue, shuffle and repeat, follow lyrics, and control playback with the keyboard or mouse.
Bring your collection Scan local files or connect your Subsonic-compatible and Jellyfin servers through lastwave source. Play owned audio through lastwave audio.
Shape your sound Select an output device, inspect audio telemetry, or apply parametric EQ, normalization, speed, silence removal and a sleep timer to owned-file playback.
Make it yours Choose six palettes, preview settings live, follow cover-art accents or create a TOML theme. Text icons and block artwork work without extra fonts.
Use your platform Native builds for Windows, macOS and Linux, on both x86_64 and ARM64. Linux also includes desktop launcher and Omarchy integration commands.

Before you install

No npm install is needed. LastWave is a Rust application; Node.js and npm are not required. Downloading a release also avoids installing Rust or a compiler.

Dependency When you need it Purpose
mpv Any audio playback Plays YouTube Music and owned audio; provides output device and decoder information.
yt-dlp, 2025.11.12+ (optional) Fallback & browser cookie import Backup stream resolution and reading browser sign-in cookies; primary YouTube Music streams resolve natively via InnerTube + in-process QuickJS (.qbc).
quickjs-ng (qjs) (optional) Fallback stream challenges Lightweight JS runtime used if yt-dlp fallback runs; Deno is not required.
Rust 1.90+ and Cargo Building from source only Compiles and installs LastWave.
Native C/C++ build tools Building from source only Windows: MSVC and Windows SDK. Linux: C compiler, CMake, pkg-config and OpenSSL development headers. macOS: Xcode Command Line Tools.

Install the playback tools separately and make their executables available on PATH. Release archives contain LastWave and its documentation; they do not bundle these tools. lastwave demo lets you try the interface without playback tools or an account.

Use a truecolor terminal, at least 80 × 24. A Nerd Font and terminal image support are optional.

Installation

One-command install (recommended)

Installs lastwave, companion playback tools (mpv, yt-dlp, qjs), and registers lastwave on your PATH:

Windows (PowerShell):

irm https://raw.githubusercontent.com/Clash-Projects/LastWave-CLI/main/scripts/install.ps1 | iex

macOS & Linux:

curl -fsSL https://raw.githubusercontent.com/Clash-Projects/LastWave-CLI/main/scripts/install.sh | sh

Then open a new terminal and run lastwave.

Download v1.0.0

Choose your operating system and CPU. Windows uses .zip; macOS and Linux use .tar.gz.

Platform Intel / AMD · x86_64 ARM64
Windows Download ZIP Download ZIP
macOS Download Intel Download Apple silicon
Linux Download TAR.GZ Download TAR.GZ
  1. Install the playback tools.
  2. Download your archive and compare its SHA-256 hash with the matching .sha256 file or SHA256SUMS.
  3. Extract the archive and put lastwave (lastwave.exe on Windows) in a directory on PATH.
  4. Open a terminal and run lastwave --version, then lastwave doctor --offline.

See the installation guide for checksum commands and details. Updates in v1.0.0 are manual: replace the binary with a newer release or reinstall from source.

Build and install from source

Install Rust and your platform's native build tools first, then use a complete checkout including vendor/:

git clone https://github.com/Clash-Projects/LastWave-CLI.git
cd LastWave-CLI
cargo install --locked --path crates/lastwave

Cargo installs lastwave into its bin directory; make sure that directory is on PATH. To build without installing:

cargo build --release --locked -p lastwave

Run target/release/lastwave, or target/release/lastwave.exe on Windows.

The repository also includes installers for the current checkout: sh scripts/install.sh or ./scripts/install.ps1. They build locally; they do not install dependencies or change PATH. See custom install roots and preview options.

First listen

lastwave demo                  # Explore a sample library; nothing plays
lastwave doctor --offline      # Check tools, saved sign-in, devices and configuration
lastwave                       # Open YouTube Music, signed out by default

Press / to search, use the arrows to select a result, and press Enter to open or play it. Press Space to pause, z for now playing and lyrics, or ? for help.

Sign in when you want your library and account actions:

lastwave login ytmusic
lastwave login ytmusic --check  # Exit 0 if signed in, 1 otherwise
lastwave logout ytmusic        # Remove the saved sign-in

lastwave doctor adds online checks for discovery and stream resolution. A network or service failure can make this command return a nonzero result. Credential storage and browser imports are documented separately.

Keyboard & mouse

Letter shortcuts apply outside text fields. The bottom hint row and ? show actions available in your current view.

Navigation Action Playback Action
1 Home Space Play / pause
/ or 2 Search ] / [ Next / previous track
3 Library Shift+→ / Shift+← or L / H Seek forward / back 5 seconds
Arrow keys Move selection + / - Raise / lower volume
Enter Open or play selection s Toggle shuffle
Esc Go back / close overlay r Cycle repeat
Ctrl+K or : Command palette z Now playing & lyrics
, Settings Q Open queue
? Contextual help q Add selection to queue
Ctrl+C or Ctrl+Q Quit . Selection actions

Use f to like/save a selection and a to add it to a playlist where supported; account changes require sign-in. Mouse clicks, wheel scrolling and dragging the seek/volume controls work in terminals that report mouse events. See all keyboard and mouse controls.

Command reference

Command What it does
lastwave Open the YouTube Music interface.
lastwave demo Try a sample interface without account requests or audio.
lastwave play "<YouTube Music URL or URI>" Open and play a song, album, playlist or artist; add --shuffle to shuffle.
lastwave login ytmusic Sign in; --force signs in again, --check checks saved sign-in.
lastwave logout ytmusic Remove the saved YouTube Music sign-in.
lastwave doctor Diagnose installed tools, sources, output devices and online service access; --offline skips network probes.
lastwave audio devices List mpv output device IDs and descriptions.
lastwave audio inspect "<file>" Decode a file without hardware output and show metadata and observed audio properties.
lastwave audio play "<file>" Play an owned file, with optional output and processing controls.
lastwave source scan "<folder>" Scan local audio metadata and report unreadable files.
lastwave source list List the sources configured in sources.toml.
lastwave source search <source-id> "<query>" Search a configured local, Subsonic or Jellyfin source; supports --offset and --limit.
lastwave source play <source-id> "<track-id>" Play a track returned by a configured source.
lastwave update Explain manual updating; automatic checks and self-install are disabled in v1.0.0.
lastwave launcher install / remove Add or remove the desktop app-menu entry on Linux.
lastwave omarchy install / status / remove Manage Omarchy integration on Linux.

Run lastwave --help or add --help to any subcommand for its arguments.

Your own files and servers

lastwave source scan "/path/to/Music"
lastwave audio play "/path/to/track.flac"
lastwave audio play "/path/to/track.flac" --eq 1000:-3:1 --normalize --sleep 1800
lastwave audio devices

On Windows, use paths such as "D:\Music\track.flac". The --sleep value is in seconds; repeat --eq frequency:gain:Q for more bands. Playback also accepts --device, --volume, --speed and --skip-silence. Audio controls cover each option.

Configure local, Subsonic-compatible or Jellyfin sources in sources.toml; server credentials come from environment variables. Follow the owned sources guide for examples. These libraries currently use the command line; integration into the music browser is deferred.

Make it yours

Press , → Display → Theme to preview LastWave, Pure black, Daylight, Ocean, Ember or Orchid. Use a fixed accent or let it follow the cover art. A separate theme.toml supports custom colors and reloads while the app runs.

# config.toml
colors = "ocean"
accent = "theme"
icons = "text"
images = "blocks"
power_saving = "on"

Settings live beneath %APPDATA%\lastwave on Windows and $XDG_CONFIG_HOME/lastwave or ~/.config/lastwave on Linux and macOS. Configuration lists all settings and Themes explains custom palettes.

Release scope

YouTube Music streams are lossy. Owned files can provide lossless and Hi-Res source audio; actual decoder and output properties are reported separately. --bit-perfect requests exclusive/direct output and rejects processing, but hardware bit-perfect output is not verified. Signed-in account operations and exclusive output need validation with your account and device.

Scrobbling, Discord presence, crossfade, listening statistics, offline downloads and automix are deferred. The feature matrix and verification log record implemented behavior, tests and remaining limits.

Documentation

Start listening Go deeper
Installation & dependencies Owned libraries & servers
Keyboard & mouse Audio output & processing
Configuration Architecture
Themes Security & credential storage
Changelog Release validation

Development

From a complete checkout, run the checks for your platform:

sh scripts/check.sh --release
./scripts/check.ps1 -Release

These run formatting, strict Clippy, workspace tests and a release build. Also check the service-free build with cargo check -p lastwave --no-default-features --locked. Set LASTWAVE_REQUIRE_MPV=1 to require real mpv integration tests. Online tests are opt-in: cargo test -p lastwave-ytmusic --test live -- --ignored.

Contributions and reproducible bug reports are welcome. Include your platform, the command you ran and its result. Keep browser cookies, account tokens and private server credentials out of issues, logs and fixtures.


LastWave CLI
GPL v3 · License · Notices · Third-party licenses
Report an issue · All releases

Jelajahi proyek terkait

Memuat…