CLI for DEVONthink tools distilled from mcp-server-devonthink.
It publishes these equivalent binaries:
devonthinkdtdt-cli
Install from npm:
npm install -g devonthinkAfter installation, you can use any equivalent executable:
devonthink --help
dt --help
dt-cli --helpAll binaries also expose shell completion generation:
devonthink completion
dt completion
dt-cli completionFor Claude Desktop, add dvcrn/devonthink-cli as a marketplace plugin, then install the devonthink plugin from that marketplace.
For Claude Code, the equivalent commands are:
claude plugins marketplace add dvcrn/devonthink-cli
claude plugins install devonthink@devonthink-cli --scope userFor npx skills, run:
npx skills add dvcrn/devonthink-cliGenerate a shell completion script:
devonthink completionInstall bash completion for the current shell session:
source <(devonthink completion)Persist bash completion in ~/.bashrc:
echo 'source <(devonthink completion)' >> ~/.bashrcFor zsh, enable bash completion compatibility and load the script:
echo 'autoload -U +X bashcompinit && bashcompinit' >> ~/.zshrc
echo 'source <(devonthink completion)' >> ~/.zshrcList tools:
devonthink tools
devonthink tools --jsonInspect a tool schema:
devonthink schema create_record
devonthink schema create_record --jsonRun a tool in human-readable mode:
devonthink open_databases
devonthink search Alpha --group-uuid <uuid> --database-name Test
devonthink record_content <uuid>Run the same tool in machine-readable mode:
devonthink open_databases --json
devonthink search --query Alpha --group-uuid <uuid> --database-name Test --jsonEvery command supports both:
- default text output for humans
--jsonoutput for scripts and automation
Many tools also support the first obvious required argument positionally. For example:
devonthink search Alpha
devonthink record_content <uuid>
devonthink rename_record <uuid> --new-name "New title"src/devonthink/: DEVONthink-specific module and tool implementationssrc/app.ts: yargs CLI wiringsrc/output.ts: human-readable and JSON output formatters
When testing, only use the Test database.
GPL-3.0-or-later