Installation
824e49fddb4dcc071fc8e72558aadea224704447. Version 2026.11.0-rc.1. License MIT. Status: source candidate; complete gate and disposable live suite are the qualification authority; not published and not production-qualified. This is the component's committed documentation, not proof of a distribution release or production qualification.
The CLI is a native Rust binary named melodee. Linux x86_64 and aarch64
(GNU libc) are the primary release targets. macOS, Windows and musl builds are
not advertised or qualified.
Binary archive (recommended)
Each release archive contains bin/melodee, documentation, the release metadata,
SHA256SUMS, and shell completions for bash, zsh, fish, elvish and PowerShell.
archive=melodee-cli-2026.11.0-rc.1-linux-x86_64.tar.gz
# Acquire the archive and its .sha256 from the release channel you trust.
sha256sum -c "${archive}.sha256"
tar -xzf "$archive"
install -D -m 0755 "melodee-cli-2026.11.0-rc.1/bin/melodee" ~/.local/bin/melodee
melodee --version
melodee version -o json
The archive is not signed yet. Verify the SHA-256 published alongside it and use a transport you trust. Signing preparation is documented in release/README; do not treat an unsigned artifact as a verified release.
To install shell completions:
# bash (user)
install -D -m 0644 melodee-cli-*/completions/melodee.bash \
~/.local/share/bash-completion/completions/melodee
# zsh (user)
install -D -m 0644 melodee-cli-*/completions/melodee.zsh \
~/.local/share/zsh/site-functions/_melodee
# fish (user)
install -D -m 0644 melodee-cli-*/completions/melodee.fish \
~/.config/fish/completions/melodee.fish
Alternatively generate the current script directly:
melodee completion bash > ~/.local/share/bash-completion/completions/melodee
Secure credential store prerequisite
Stored device/session credentials require Linux with user-scoped
systemd-creds 256 or newer (systemd-creds --user encrypt). Without it,
auth login fails explicitly; there is no plaintext fallback. Automation via
--token-file or MELODEE_AUTOMATION_TOKEN remains available when the operator
supplies a private credential through another secure mechanism.
systemd-creds --version # 256+
The credential directory is
$XDG_STATE_HOME/melodee/cli-credentials (or
$HOME/.local/state/melodee/cli-credentials), mode 0700, with 0600 ciphertext
files. Never copy those files to another host; the host/TPM key will not decrypt
them there.
Build from source
Prerequisites: Rust 1.100.1 (pinned by rust-toolchain.toml), a C toolchain and
OpenSSL/rustls build prerequisites as needed by the locked dependency graph.
cargo build --locked --release --bin melodee
install -D -m 0755 target/release/melodee ~/.local/bin/melodee
For a reproducible release archive from this checkout:
SOURCE_DATE_EPOCH=0 ./scripts/package-release.sh
scripts/package-release.sh --target aarch64-unknown-linux-gnu prepares a
cross-build only when the target toolchain and linker are installed. A
cross-built binary is not runtime-qualified; execute the artifact on the target
architecture and record the result.
Upgrade and rollback
- Keep the current binary until the new one is verified.
- Verify the new archive's SHA-256 and extract it.
- Install the new binary under a versioned path, then atomically switch a stable launcher:
install -D -m 0755 melodee-cli-<new>/bin/melodee ~/.local/lib/melodee/melodee-<new>
ln -sfn ~/.local/lib/melodee/melodee-<new> ~/.local/bin/melodee.new
mv -Tf ~/.local/bin/melodee.new ~/.local/bin/melodee
melodee --version
- Roll back by re-pointing the launcher to the previous versioned binary:
ln -sfn ~/.local/lib/melodee/melodee-<old> ~/.local/bin/melodee.new
mv -Tf ~/.local/bin/melodee.new ~/.local/bin/melodee
The CLI has no auto-updater and never replaces its own binary. Configuration schema and stored credential schema are forward-compatible; a control-plane change that cannot read a newer schema fails explicitly rather than deleting it.
Unsupported platforms
Do not advertise or install the release archive on macOS, Windows, musl-only systems or non-GNU libc distributions without separate qualification. The CLI is Linux-first because secure OS credential storage is currently implemented with systemd-creds only.