Capture in natural language · Query your tasks · Build repeatable workflows
Get started · Command reference · Workflow cookbook · Scripting guide
“clings” rhymes with “things.”
clings brings Things 3 to the command line. Read your lists from the local SQLite database, capture tasks with natural language, and write through Things’ automation APIs. Compose the output with your own shell tools.
# Capture an idea before it disappears
clings add "Draft release notes tomorrow #docs // include migration steps"
# Build a working queue
clings focus --limit 5
# Find open work with a deadline
clings filter "tags CONTAINS 'docs' AND due IS NOT NULL" --json \
| jq -r '.data.items[] | [.name, (.dueDate // "—")] | @tsv'
# Preview a batch before changing anything
clings bulk move --list inbox --where "tags CONTAINS 'docs'" \
--to "Documentation" --dry-run| Capability | What you can do |
|---|---|
| 📝 Natural-language capture | Parse dates, tags, project names, notes, and checklists; preview before creating |
| 🔎 Structured queries | Combine AND, OR, NOT, date comparisons, tag matches, and wildcards |
| 🧩 Reusable workflows | Save named filter views and task templates with relative date defaults |
| ⚙️ Shell composition | Use JSON and custom todo-line templates with jq, scripts, and reports |
| 🎯 Focus and review | Rank open work, audit projects, and generate weekly review reports |
| 📦 Resumable batches | Save exact-ID plans, confirm once, and retry unfinished items without repeating successes |
| ↩️ Retryable undo | Reverse supported single-todo and grouped status/tag changes; retain failed reversals |
You need macOS 14 or later and Things 3 for Mac. Building from source requires a Swift 6 toolchain. Writes may require macOS Automation permission for the terminal you use.
brew install dan-hart/tap/clings
clings --version
clings --helpUpgrade with brew update && brew upgrade clings. Homebrew installs the published release; examples on main describe the current source and may include changes awaiting release.
git clone https://github.com/dan-hart/clings.git
cd clings
swift build -c release
.build/release/clings --help
# Optional: install somewhere on your PATH
mkdir -p "$HOME/.local/bin"
install .build/release/clings "$HOME/.local/bin/clings"clings # Today is the default
clings inbox # See captured tasks
clings add "Draft outline tomorrow #writing" --parse-only
clings search "outline" # Find existing tasks
clings doctor --verbose # Inspect local setupRemove --parse-only when the parsed result looks right. For installation, permissions, and shell completion setup, see Getting started.
clings add "Publish documentation" \
--when tomorrow \
--deadline friday \
--project "Documentation" \
--tags docs release \
--notes "Include examples and migration notes" \
--parse-only --jsonThe start date is when you plan to work; the deadline is when it is due. Explicit options override parsed values; tags are combined. Invalid or impossible dates are rejected before a write. Preview unfamiliar expressions with --parse-only; update supports this preview too.
clings views save docs-due "tags CONTAINS 'docs' AND due <= today" \
--note "Documentation due by today"
clings views run docs-due
clings views run docs-due --format "{id} {name} [{project}] {due}"Views evaluate relative dates when run and live in local clings configuration. Their default scope is open lists; use --list to narrow it or --include-logbook to include history. Search, filter, and view execution support stable --sort and positive --limit controls.
clings template save release-prep "Prepare release" \
--when tomorrow --tags release docs \
--checklist "Run tests" "Review changelog" "Verify installation"
clings add "Prepare next release" --template release-prep --parse-only --json
clings template run release-prepTemplates retain relative dates from both embedded phrases and --when/--deadline options. Explicit options win; expressions resolve when the template runs.
# TSV for a spreadsheet or terminal report (requires jq)
clings today --json | jq -r '
["ID", "Task", "Project", "Deadline"],
(.data.items[] | [.id, .name, (.project // ""), (.dueDate // "")]) | @tsv'
# Completed work only, excluding canceled Logbook entries
clings logbook --json \
| jq -r '.data.items[] | select(.status == "completed") | .name'
# A compact text queue
clings focus --limit 5 --format "{name} [{project}] {tags}"umask 077
clings bulk complete --list inbox --where "tags CONTAINS 'done'" \
--dry-run --json > completion-plan.json
# Review the plan before explicitly authorizing its exact IDs
clings bulk complete --execute-plan completion-plan.json --yes --jsonBulk filters apply only to the selected list (default: Today). Without a filter, the entire list is selected. Every nonempty write prompts unless --yes is supplied. Plans reject stale snapshots and retain per-item results; retrying skips successes. Execution updates the plan file in place: never redirect stdout onto that same file. Status/tag batches support grouped undo; project moves do not.
| Command | Purpose |
|---|---|
today |
Today's working list; alias t; default command |
inbox |
Captured tasks; alias i |
upcoming |
Future scheduled work; alias u |
anytime |
Available unscheduled work |
someday |
Someday/maybe tasks; alias s |
logbook |
Completed history; alias l; query history scopes also include canceled tasks |
search |
Title/notes search; aliases find, f |
filter |
Structured queries over open lists |
show |
Inspect one exact todo ID |
add |
Natural-language capture, templates, parsing preview |
update |
Edit title, notes, deadline, schedule, heading, tags |
complete |
Complete by ID or unambiguous text; alias done |
cancel |
Mark a todo canceled |
delete |
Cancel via automation, not Trash movement; alias rm |
views |
Local saved queries: list, save, run, delete |
template |
Task blueprints: list, save, run, delete |
projects |
List visible projects |
project |
list, add, audit |
areas |
List areas of responsibility |
tags |
list, add, delete, rename |
bulk |
Preview/execute complete, cancel, tag, move |
focus |
Ranked working queue |
pick |
Interactive show, complete, cancel, delete |
undo |
Inspect/reverse supported recent mutations and groups |
doctor |
Read-only capability checks and redacted support bundles |
stats |
Dashboard, trends, heatmap |
review |
Weekly report: start, status, clear |
config |
set-auth-token for schedule/heading updates |
completions |
Generate bash/zsh/fish completion scripts |
open |
Currently disabled; returns an error |
clings --help
clings add --help
clings bulk move --help
clings template save --helpMost output commands accept --json and --no-color. Todo renderers also accept --format with {id}, {name}, {status}, {due}, {project}, {area}, and {tags}. JSON takes precedence over custom formatting. Put options after the command.
- Reads: SQLite access is read-only. clings does not write directly to the Things database.
- Writes: Things’ AppleScript/JXA automation APIs perform writes.
update --whenandupdate --headingadditionally use Things URLs and need an auth token;add --whendoes not. - Delete: Cancels a todo; it does not move it to Trash. Confirmation is required unless
--forceis supplied. Noninteractive deletion without explicit authorization fails. Use Things itself for permanent deletion. - Undo: Covers creation, status, name, notes, deadline, tags, and supported grouped status/tag changes. Failed reversals remain retryable. Schedule, heading, project moves, and project/tag management are not fully reversible; inspect
clings undo --showfirst. - JSON: Schema 1 responses wrap payloads in
.data, including previews and review reports. Failures include.errorand preserve partial results. Exit 1 means invalid/refused input; exit 2 means runtime or partial failure.pick --jsonis rejected without writes. Help, version, and completion scripts remain text. - Priority: Natural-language priority markers are parsed, but are not applied as a native Things priority. Use tags such as
urgentwithfocus.
Keep independent backups; synchronization is not a substitute for recoverable backups. Details are in the command reference and troubleshooting guide.
- Getting started: installation, permissions, local configuration, completions
- Command reference: every command family, defaults, options, and limitations
- Workflow cookbook: capture, planning, templates, bulk triage, and reporting
- Filtering and scripting: query syntax, JSON shapes,
jq, and shell patterns - Troubleshooting: diagnosis, dates, permissions, and unexpected results
- Machine interface and migration: JSON schema, exits, plans, and mutation guarantees
- Generated reference: options generated from the actual parser
- Ten improvements delivered: v0.4.0 changes and remaining boundaries
swift build
swift test
swift build -c release
bash scripts/release-docs-check.sh
bash scripts/asp-preflight.sh --staged --strictSee CONTRIBUTING.md, AGENTS.md, testing and coverage, and the release documentation checklist. Contributions that preserve Things terminology, scriptability, and safe automation are welcome.
GNU General Public License v3.0 — see LICENSE.
clings is an independent open-source project, not affiliated with or endorsed by Cultured Code. Things 3 is a registered trademark of Cultured Code GmbH & Co. KG.