Clear Tangle CLI.
Command-line interface for tasks, thoughts, pages, and projects.
Clear Tangle CLI brings your second brain to the terminal. Create tasks, capture thoughts, manage pages, and search everything without leaving your shell. It is built for speed, automation, and AI-friendly workflows.
ctFeatures
Installation
Install globally from npm:
After install, verify the CLI is on your path by running ct --help.
Quick start
Authentication
Get your API key from Settings › API Keys. Learn more on the API Keys page.
Environment variable
$ export CLEARTANGLE_API_KEY=ctak_your_api_key_hereGlobal options
These options work with any command:
--jsonOutput as formatted JSON--tableOutput as formatted table (default)--compactSingle-line per item for quick scanning--fields <list>Show only specific fields (comma-separated)--csvExport as CSV--tsvExport as TSV--plainNo colors or unicode (for scripts/pipes)-v, --verboseShow debug information--dry-runPreview changes without executingExamples
Commands
Tasks
Manage your tasks with status tracking, priorities, and due dates.
Plan
AI-powered task planning and prioritization.
The plan includes alerts, priorities, and recommendations.
Thoughts (captures)
Quickly capture ideas, notes, and observations.
Pages
Create and manage documentation pages.
Projects
Organize tasks and captures into projects.
Search
Semantic search across all your content.
Config
Manage CLI configuration.
Shell completions
Enable tab completion for your shell.
Output formats
Environment variables
CLEARTANGLE_API_KEYAPI keyCLEARTANGLE_OUTPUTOutput format (json or table)CLEARTANGLE_PLAINDisable colors and unicodeNO_COLORStandard no-color flagConfiguration file
Config is stored in OS-specific paths (via env-paths):
~/Library/Preferences/cleartangle-cli/config.json~/.config/cleartangle-cli/config.json%APPDATA%\cleartangle-cli\config.jsonTips for AI agents
--json when parsing output.Check auth first with ct auth status --json.Use --dry-run to preview destructive operations.Limit columns with --fields for smaller payloads.Prefer quick filters like ct tasks list today for speed.