Tiber docs

The CLI reference is below. For the language itself — syntax, examples, everything else — head to the full docs.

ADB installed Device or AVD running

Not set up yet? Start on the downloads page →

Full documentation

Syntax, the alarm example walked through step by step, and the complete language reference now live at tiber-docs.oryvex.in.

CLI reference

Everything the tiber command supports, from tiber -h.

E:\tIBER\v1.0.0> tiber -h

usage: tiber [-h] [--version] [--device DEVICE] [--dry-run] [--verbose] [--live]
             [--live-cache SECONDS] [--start-from LABEL] [--end-before LABEL]
             [--interpret] [--write-to FILE] [--record-live FILE]
             [--input-device PATH] [--log-to FILE] [--components [FILE ...]]
             [file]

Run a .tib/.tbr/.tiber automation script, inspect UI components,
or start an interactive session.
ArgumentWhat it does
filePath to the .tib/.tbr/.tiber script. Omit when using --components, --interpret, or --record-live.
-h, --helpShow this help message and exit.
--versionShow the program's version number and exit.
--device DEVICEDevice serial, passed straight to uiautomator2.connect.
--dry-runPrint device actions without performing them.
--verbosePrint every device call as it runs.
--liveTreat every import(...) as live.
--live-cache SECONDSSets how long a live page's UI hierarchy can be reused before it is automatically refreshed from the device.
--start-from LABELStarts execution from the specified top-level label. Setup statements (import, live, rid, and func) defined before the label are still executed, while other statements before it are skipped.
--end-before LABELStops execution immediately before the specified top-level label, allowing only the statements preceding that label to run.
--interpretStart an interactive, line-by-line Tiber session (like the Python REPL) instead of running a script file.
--write-to FILEWith --interpret, save each accepted statement to this .tib file as you type it — a live recording of the session.
--record-live FILERecord real taps/swipes on the connected device into a runnable .tib script at FILE. Requires a real device connection (not --dry-run). Doesn't capture typed text.
--input-device PATHWith --record-live, manually specify the touchscreen's /dev/input/eventN path if auto-detection fails.
--log-to FILEAlso write all input/output to this log file. Works alongside a normal run, --verbose, or --interpret.
--components [FILE ...]Inspect UI components instead of running a script. With no FILE args, captures the live UI from the connected device via uiautomator2. Pass .xml/.json UI dumps to inspect those instead.

Ready to run this yourself?

Get Tiber and the tools around it on the downloads page.