mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-26 23:50:32 +00:00
.. | ||
src/main/kotlin/org/jellyfin/sample/console | ||
build.gradle.kts | ||
README.md | ||
test.sh |
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
.