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.
tktailbelow meansTKTail.exe(add its folder toPATH, or type the full path).
Opening files and folders
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.
Windows Event Log
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.
Places and monitoring
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)
Settings and Windows integration
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
Controlling the running window
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
Linked windows
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.
AI integration (MCP)
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).
License
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.
For scripts
- 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,jsonlorcsvon listing commands, e.g.tktail monitor list --output json. - Response files:
tktail @args.txtreads arguments from a file (one per line). - No prompts: commands that change or delete things need
--yes;--dry-runshows what would change. --quietprints only results and errors;--timeout 10slimits how long a command waits for the running instance.