Skip to content
Download

Command line

TKTail.exe is also a command-line tool. Everything here works from Command Prompt, PowerShell, shortcuts and scripts. The complete reference (every command, option, value format and exit code) is docs/CLI.md; tktail --help and tktail <command> --help print it in the console.

tktail below means TKTail.exe (add its folder to PATH, or type the full path).

tktail C:\Logs\service.log open (same as: tktail open ...)
tktail open a.log b.log --paused several files, start paused
tktail open C:\Logs\*.log wildcards in the file name
tktail open server.log --line 150000 go to a line
tktail open huge.log --offset 8GB go to a byte position
tktail open api.log --search ERROR open and find
tktail open api.log --search "timeout|refused" --regex
tktail open session.fix --format fix choose the record format
tktail open app.log --split-right open next to the current pane
tktail folder C:\Logs show a folder in the Explorer
tktail folder C:\Logs --search-content "OutOfMemory" --recursive

If TKTail is already running, the command is passed to it and the console returns at once.

tktail eventlog list the event logs of this computer
tktail eventlog open System open a tab: the newest 1,000 events, then LIVE
tktail eventlog open Application --last 100 --level error,warning
tktail eventlog open System --live only events from now on
tktail eventlog query System --last 20 --level error print events, no window

More in Windows Event Log.

tktail favorites add C:\Logs\Service add / remove / list favorite folders
tktail recent files recently opened files (also: recent folders)
tktail monitor add C:\Logs\service.log keep watching a file in the background
tktail monitor list
tktail alerts list alerts (condition, evidence, whether it is evaluated)
tktail settings open the Settings window
tktail settings list all public settings, their values and when they apply
tktail settings get general.closeAction
tktail startup enable --tray start with Windows, hidden (or --minimized, --normal)
tktail integration status autostart, Explorer entries, Start menu, desktop, Send To
tktail integration open-with enable add "Open with TKTail" to Explorer's menu of files
tktail integration explorer enable add the TKTail submenu (files and folders)
tktail integration remove-all --yes undo every integration
tktail portable status where settings are stored
tktail app activate bring the window to the front
tktail app tray hide it in the notification area
tktail app exit close TKTail (monitoring stops)
tktail ui open-dialog show File > Open
tktail --new-window a new, empty linked window of the running TKTail
tktail open app.log --new-window app.log in a new linked window

Without a running TKTail the files open in the new main window. See Linked windows.

TKTail.exe mcp --stdio the MCP server an AI client starts (not run by hand)

Your AI client (for example Claude Code) starts this command and talks to it; it answers from the running TKTail window once you allow it there. See AI integration (MCP).

tktail license status the license in effect
tktail license info details for support (never the code)
type license.tktlic | tktail license activate --stdin
tktail license import license.tktlic activate the license in a file
tktail license status --license-file x.license the license a given file gives (verified as usual)

The license code is never taken as an argument: other programs and your shell history could read it there. See License.

  • Exit codes: 0 success, 1 no match, 2 invalid arguments, 3 file not found, 4 access denied, 5 operation failed, … (full table in docs/CLI.md).
  • Machine-readable output: --output json, jsonl or csv on listing commands, e.g. tktail monitor list --output json.
  • Response files: tktail @args.txt reads arguments from a file (one per line).
  • No prompts: commands that change or delete things need --yes; --dry-run shows what would change.
  • --quiet prints only results and errors; --timeout 10s limits how long a command waits for the running instance.