jellyfin-sdk-kotlin/samples/kotlin-console
2020-08-15 11:57:34 +02:00
..
src/main/kotlin/org/jellyfin/sample/console Support json bodies in the garbage http client ✔ 2020-08-07 20:59:53 +02:00
build.gradle.kts Add buildSrc gradle project which contains build logic and dependencies 2020-08-15 11:57:34 +02:00
README.md Add listing users to cli 2020-08-05 00:27:49 -04:00
test.sh Add listing users to cli 2020-08-05 00:27:49 -04:00

Kotlin Console Example

This sample project uses the kotlinx-cli library to build a command line tool that uses the Jellyfin library. It's used as a showcase of the libraries abilities and is not meant for general use.

Features include:

  • Server discovery
  • List public users
  • Authenticate
  • List libraries

Basic usage

Assuming the binary is called jellyfin the following sample will list all libraries in the demo instance:

jellyfin libraries --server https://demo.jellyfin.org/stable --token $(jellyfin login --server https://demo.jellyfin.org/stable --username demo)

This command is also provided in the test.sh file. It requires a local install first using ./gradlew installDist.