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
Section titled “Opening files and folders”tktail C:\Logs\service.log open (same as: tktail open ...)tktail open a.log b.log --paused several files, start pausedtktail open C:\Logs\*.log wildcards in the file nametktail open server.log --line 150000 go to a linetktail open huge.log --offset 8GB go to a byte positiontktail open api.log --search ERROR open and findtktail open api.log --search "timeout|refused" --regextktail open session.fix --format fix choose the record formattktail open app.log --split-right open next to the current panetktail folder C:\Logs show a folder in the Explorertktail folder C:\Logs --search-content "OutOfMemory" --recursiveIf TKTail is already running, the command is passed to it and the console returns at once.
Windows Event Log
Section titled “Windows Event Log”tktail eventlog list the event logs of this computertktail eventlog open System open a tab: the newest 1,000 events, then LIVEtktail eventlog open Application --last 100 --level error,warningtktail eventlog open System --live only events from now ontktail eventlog query System --last 20 --level error print events, no windowMore in Windows Event Log.
Places and monitoring
Section titled “Places and monitoring”tktail favorites add C:\Logs\Service add / remove / list favorite folderstktail recent files recently opened files (also: recent folders)tktail monitor add C:\Logs\service.log keep watching a file in the backgroundtktail monitor listtktail alerts list alerts (condition, evidence, whether it is evaluated)Settings and Windows integration
Section titled “Settings and Windows integration”tktail settings open the Settings windowtktail settings list all public settings, their values and when they applytktail settings get general.closeActiontktail startup enable --tray start with Windows, hidden (or --minimized, --normal)tktail integration status autostart, Explorer entries, Start menu, desktop, Send Totktail integration open-with enable add "Open with TKTail" to Explorer's menu of filestktail integration explorer enable add the TKTail submenu (files and folders)tktail integration remove-all --yes undo every integrationtktail portable status where settings are storedControlling the running window
Section titled “Controlling the running window”tktail app activate bring the window to the fronttktail app tray hide it in the notification areatktail app exit close TKTail (monitoring stops)tktail ui open-dialog show File > OpenLinked windows
Section titled “Linked windows”tktail --new-window a new, empty linked window of the running TKTailtktail open app.log --new-window app.log in a new linked windowWithout a running TKTail the files open in the new main window. See Linked windows.
AI integration (MCP)
Section titled “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
Section titled “License”tktail license status the license in effecttktail license info details for support (never the code)type license.tktlic | tktail license activate --stdintktail license import license.tktlic activate the license in a filetktail 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
Section titled “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.