iserv-cli

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: MIT

README

iserv-cli logo

iserv-cli

Unofficial interactive terminal workspace & scriptable CLI for IServ school portals
Powered by github.com/IServify/iserv-go & Bubble Tea

CI Lint Security Release MIT License

Interactive TUI · Scriptable CLI · Installation · Commands · Configuration

[!NOTE] Unofficial Project — iserv-cli is an independent, community-built open-source application and is not affiliated with, endorsed by, or officially connected to IServ GmbH. All trademarks belong to their respective owners.


Interactive TUI

Run iserv-cli with no arguments to launch the full 8-tab interactive terminal workspace — with bubblezone mouse support, per-account persistent Spotlight omni-search (Ctrl+K), card-style Appearance & Settings modal (,) with live palette & icon previews, Catppuccin Mocha & Dracula themes, EN / RU / DE localization (with Russian ЙЦУКЕН hotkey support), calendar month grid (v), live parallel health diagnostics, and automatic minimum terminal size guard (100×25):

iserv-cli interactive TUI walkthrough

Workspace Highlights

  • 8 integrated tabs — Profile, Mail (with HTML-to-Markdown rendering), Groups, Files (WebDAV), Calendar (List & Month Grid), Tasks (with spacious Hero detail view), Alerts (with auto-polling), and Tools (Directory Search, Health Diagnostics, Exporter).
  • Instant Spotlight (Ctrl+K) with per-account cache — Caches up to 400 lightweight item paths & metadata per (domain, username) in <UserCacheDir>/iserv-cli/spotlight/ (0700/0600) so previously browsed files, emails, groups, events, and tasks are searchable immediately after sign-in — strictly isolated per account, and never storing file contents, email bodies, or passwords.
  • Effortless keyboard & mouse navigation — Fast bubblezone mouse click & wheel support, Space contextual action menu with live contextual & global hotkeys (including Russian ЙЦУКЕН layout mapping), bookmarks (b), cross-platform clipboard copy (y, supporting Wayland wl-copy, X11, macOS, Windows, and OSC 52 over SSH), browser / .url shortcut opener (o), and a clickable OSC 8 GitHub footer link.
  • Card-style Settings (,), clean themes & 1-click Nerd Font installer — Defaults to auto: renders crisp 1-cell Universal Unicode glyphs on every terminal with zero missing boxes, and switches automatically to Nerd Font when ready. Open Settings (, or click Settings in the header) for rounded selector cards (Theme: clean borderless Catppuccin Mocha or Dracula; Icons: live Unicode / Emoji / Nerd Font previews; Language: EN / RU / DE flags), an automatic Yes/No Nerd Font installation prompt when choosing Nerd Font without a font installed, and a subtle Fix icons action (iserv-cli install-fonts also installs NerdFontsSymbolsOnly and writes ~/.config/fontconfig/conf.d/10-nerd-font-symbols.conf on Linux).
  • Responsive size guard — Automatically displays a clean localized resize prompt with current and minimum (100×25) dimensions if the terminal window is too small.
  • Safe by default — Passwords are never saved to disk; downloads and exports are confined to their target directory via Go's os.OpenRoot with 0600 permissions; --debug-log emits sanitized pnmd logs.

Scriptable CLI

Every portal module is also available as a composable subcommand supporting table, JSON, and plain TSV output (-o table|json|plain):

iserv-cli scriptable CLI and JSON pipeline showcase
export ISERV_DOMAIN="school.example.de"
export ISERV_USERNAME="firstname.lastname"
export ISERV_PASSWORD="your-password"

iserv-cli profile
iserv-cli mail list --folder INBOX --limit 10 --output json
iserv-cli files download /Documents/Syllabus.pdf
iserv-cli calendar events --start 2026-04-01 --end 2026-04-30 --export ics
iserv-cli tasks list --status all
iserv-cli health --output json
iserv-cli install-fonts

Installation

Pre-built Binaries

Download the latest archive for Linux, macOS, or Windows (amd64 / arm64) from GitHub Releases and verify with checksums.txt.

Go Install

go install github.com/IServify/iserv-cli/cmd/iserv-cli@latest

Build from Source

git clone https://github.com/IServify/iserv-cli.git
cd iserv-cli
make build
./bin/iserv-cli version
Shell Completion (Bash, Zsh, Fish, PowerShell)
# Bash
iserv-cli completion bash > /etc/bash_completion.d/iserv-cli

# Zsh
iserv-cli completion zsh > "${fpath[1]}/_iserv-cli"

# Fish
iserv-cli completion fish > ~/.config/fish/completions/iserv-cli.fish

# PowerShell
iserv-cli completion powershell | Out-String | Invoke-Expression

Commands

Command Description
iserv-cli / iserv-cli tui Launch the interactive 8-tab Bubble Tea workspace
iserv-cli profile [avatar] Inspect profile metadata or download the user avatar
iserv-cli mail folders|list|show Browse mailboxes, list messages, and read message bodies
iserv-cli files ls|download Browse WebDAV directories and download files safely (os.OpenRoot)
iserv-cli groups list|show List school groups and view membership rosters
iserv-cli calendar sources|events List calendars, query events, and export .ics or .json
iserv-cli tasks list|show List current/past/all assignments and inspect details
iserv-cli notifications list|read List alerts, filter unread, and mark single or all read
iserv-cli directory search <query> Search the school user directory
iserv-cli health Run concurrent latency and status probes across all 8 modules
iserv-cli install-fonts Download & install official NerdFontsSymbolsOnly fallback glyphs and enable Nerd icons
iserv-cli version Print embedded version, commit, build date, and Go runtime info

Configuration

iserv-cli resolves settings in strict layered precedence:

CLI flags > ISERV_* environment variables > YAML config file > saved UI state > defaults

Passwords are never written to disk. See docs/configuration.md for the full configuration matrix and config.yaml reference.

Exit Codes

Code Meaning
0 Success
1 Runtime, network, or upstream IServ error
2 Invalid flags, arguments, configuration, or missing credentials
130 Interrupted via SIGINT / SIGTERM

License

Released under the MIT License.

Directories

Path Synopsis
cmd
iserv-cli command
Command iserv-cli provides an interactive Bubble Tea TUI and scriptable CLI for IServ school portals built on top of github.com/IServify/iserv-go.
Command iserv-cli provides an interactive Bubble Tea TUI and scriptable CLI for IServ school portals built on top of github.com/IServify/iserv-go.
internal
buildinfo
Package buildinfo exposes version, commit, and build timestamp metadata injected via -ldflags or discovered from Go module build info.
Package buildinfo exposes version, commit, and build timestamp metadata injected via -ldflags or discovered from Go module build info.
cli
Package cli implements the Cobra command tree for iserv-cli, supporting both scriptable non-interactive subcommands and the interactive Bubble Tea TUI.
Package cli implements the Cobra command tree for iserv-cli, supporting both scriptable non-interactive subcommands and the interactive Bubble Tea TUI.
client
Package client defines the consumer-side IServ interface used by CLI commands and the interactive TUI, along with the production adapter over iserv.Client.
Package client defines the consumer-side IServ interface used by CLI commands and the interactive TUI, along with the production adapter over iserv.Client.
config
Package config manages layered CLI configuration (flags > env > config file > defaults) via an injected Viper instance and persists non-sensitive TUI user preferences (domain, username, theme, icon set, language, bookmarks).
Package config manages layered CLI configuration (flags > env > config file > defaults) via an injected Viper instance and persists non-sensitive TUI user preferences (domain, username, theme, icon set, language, bookmarks).
fonts
Package fonts detects installed Nerd Fonts and installs the official NerdFontsSymbolsOnly fallback font (plus Linux fontconfig fallback rules) on Linux, macOS, and Windows.
Package fonts detects installed Nerd Fonts and installs the official NerdFontsSymbolsOnly fallback font (plus Linux fontconfig fallback rules) on Linux, macOS, and Windows.
output
Package output formats CLI command results as human-readable tables, machine-readable JSON, or script-friendly tab-separated plain lines.
Package output formats CLI command results as human-readable tables, machine-readable JSON, or script-friendly tab-separated plain lines.
safeio
Package safeio provides path-traversal-hardened file download and data export helpers confined to target directories using Go 1.24+ os.OpenRoot.
Package safeio provides path-traversal-hardened file download and data export helpers confined to target directories using Go 1.24+ os.OpenRoot.
tui
Package tui implements the interactive Bubble Tea terminal interface for IServ.
Package tui implements the interactive Bubble Tea terminal interface for IServ.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL