Bundled command-line interface
The CLI is part of every distribution release and pulled during installation.
It runs on demand; do not use docker compose --profile tools up. The ./melodee
launcher runs the pinned CLI image with --rm --no-deps, a host-user UID/GID,
private workspace and a TLS-validated server URL. It passes the argument vector
without shell interpolation. It does not mount the database, media, Docker socket,
host keyring or home directory. It is not a privilege boundary: Docker host
operators are already trusted.
./melodee --help
./melodee doctor
./melodee server status -o json
The local cli-work/ directory is mapped to /workspace. Input and output paths
passed to CLI commands must be container paths relative to this workspace, e.g.
/workspace/playlist.json. Files created by the default launcher are owned by the
invoking host UID/GID. Separate installations/operators should use separate private
workspaces and appropriate host permissions.
Authentication limitation
The upstream CLI currently uses Linux user-scoped systemd-creds (systemd 256+)
with no plaintext fallback for interactive login. A minimal ordinary container
cannot be assumed to have that OS integration. Until the contract is qualified,
use the upstream native binary for interactive login and store access. For scoped
unattended commands only, create a credential through authorized account UI,
write it directly to a private regular file in the CLI workspace (0600), and
reference the file rather than placing the secret in command arguments:
./melodee --token-file /workspace/token favorite list
./melodee --token-file /workspace/token admin jobs list --state failed
The latter requires the relevant scope and account capability. Automation tokens cannot substitute for interactive sessions on session-only routes. Revoke/rotate credentials when appropriate. For container TLS, the hostname resolves to the HTTPS edge through Docker DNS; the certificate must be trusted inside the CLI image as well as on the host. Private CA trust, interactive credential storage, UID/GID behavior, TTY passthrough and import/export are release gates.
A fully pinned disposable candidate requires ./melodee --system-candidate ....
This is not a switch to bypass authentication or trust verification.