Skip to main content

emby-cli

PyPI License: CC BY-NC 4.0

CLI to list, search, play, and download/backup original media files from an Emby server via its REST API. Only HTTP access is required (default port 8096) — no SSH or rsync.

Install

pip install emby-cli

Development (from a clone of this repo):

python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"

Configuration

Set environment variables (or pass CLI flags):

Variable Description
EMBY_SERVER Server URL (required)
EMBY_API_KEY API key (or use username/password)
EMBY_USERNAME / EMBY_PASSWORD Name/password auth
EMBY_OUTPUT Download directory (default ./downloads)
EMBY_METHOD download, stream, or hls
EMBY_PLAYER External player for play

See .env.example. The app does not load .env itself — source it or export vars.

Usage

emby-cli list
emby-cli search "Title"
emby-cli download -i <itemId> -o ./downloads
emby-cli sync -l "Movies"
emby-cli batch -F titles.txt -n
emby-cli play "Movie (2010)"

Download methods (-m / EMBY_METHOD):

  • downloadGET /Items/{id}/Download
  • stream — DirectStreamUrl / original.* (Emby Web style)
  • hls — HLS segments remuxed to .mkv (needs static-ffmpeg)

Development

pip install -e ".[dev]"
pytest -q
python -m build && twine check dist/*

To publish a release, tag vX.Y.Z and push it (or create a GitHub Release). CI builds the package and publishes to PyPI via Trusted Publisher.

License

CC BY-NC 4.0

Release files for emby-cli 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for emby-cli 0.1.1
File Size Uploaded
emby_cli-0.1.1.tar.gz 19.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emby-cli 0.1.1
File Interpreter ABI Platform
emby_cli-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.5 kB

Release files / emby_cli-0.1.1.tar.gz

Download URL emby_cli-0.1.1.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b116269beaf8dbf9fae6a8db19f9f48cc82f922e83feb4da5d8e6942027662da
BLAKE2b-256 checksum
How to use checksums
8ee1543451293e9e1e48638bb025fede93b3452a425adac384b2c3b3d53411ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log

Release files / emby_cli-0.1.1-py3-none-any.whl

Download URL emby_cli-0.1.1-py3-none-any.whl
Size 45.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccda3b6aa618de770c6dff3aed93f77adb563efbd01bc762522e69dec78164f3
BLAKE2b-256 checksum
How to use checksums
80eba2717544fc950ba492bb63b2ceb200977ecbc2d08aacbe1394a482b506a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 6, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page