Commands
Every tloop command and its flags.
tloop info k3x9qa ID: k3x9qa
Name: disk-check
Status: running
Interval: every 15min
Hours: 24/7
Shell: /bin/zsh
CWD: (current directory)
Created: 2026-11-30T01:00:00.000Z
Last run: 20261130-091500
Total runs: 2
Plist: ~/Library/LaunchAgents/com.tloop.task.k3x9qa.plist
Logs: ~/.tloop/logs/k3x9qa/
Cmd:
df -h /Every command except add and list takes the task's ID, the six characters tloop add printed. tloop list shows them all.
All commands
| Command | What it does |
|---|---|
tloop add | Saves a task, writes its launchd job and loads it. It runs once right away. |
tloop edit <id> | Changes a task's name, command, interval, folder or hours. A running task is reloaded, so it runs once right away. |
tloop list | Every task with its interval, hours and status. Alias ls. |
tloop info <id> | One task in full, with its last run and how many runs it has logged. Alias inspect. |
tloop logs <id> | The newest run's log. --last 5 shows the last five. Alias log. |
tloop run <id> | Runs the command once in your terminal, now. Nothing is logged. |
tloop trigger <id> | Asks launchd to run the task now, the same way a scheduled run goes, with a log. |
tloop stop <id> | Unloads the launchd job and marks the task disabled. |
tloop start <id> | Marks the task enabled, rewrites its launchd job and loads it. It runs once right away. |
tloop remove <id> | Unloads the launchd job, deletes it and removes the task. Its logs stay. Alias rm. |
tloop list shows each task as running (loaded in launchd), stopped (enabled but not loaded) or disabled (after tloop stop).
Add a task
tloop add --name pull-notes --cmd "git pull --ff-only" --cwd ~/notes --interval 1h --hours 9-21| Flag | Required | What it sets |
|---|---|---|
--name <name> | yes | A label for you. It doesn't have to be unique. |
--cmd <cmd> | yes | The command. Quote it. Pipes, &&, ~ and variables work, because your shell runs it. |
--interval <interval> | yes | How often it runs: 30s, 15m, 1h, 1d. See Schedules. |
--cwd <dir> | no | The folder it runs in. Without it, launchd starts the run in /. |
--hours <range> | no | Only run between these hours, like 9-21. See Schedules. |
Leave ~ in --cwd unquoted, so your shell turns it into a full path before tloop saves it.
Edit a task
tloop edit k3x9qa --interval 30m --cmd "df -h / /Volumes/Backup"edit takes the same flags as add, all optional, and needs at least one. It can set --cwd and --hours but not clear them. To clear one, delete its key from the task in ~/.tloop/config.json. The runner reads that file on every run, so the change applies from the next one.
Run it now
tloop run and tloop trigger both run a task right away, in different ways:
tloop run k3x9qaruns the command in your terminal and prints its output there. It uses the task's folder, or the one you're in, and ignores--hoursand whether the task is stopped. Use it to try a command.tloop trigger k3x9qaasks launchd to start the job now. It runs exactly like a scheduled run: same environment, same--hourscheck, and a log file. The task has to be loaded, so start it first if it's stopped.