Toukan CLI Setup Guide
A CLI tool to operate Toukan from your terminal. Install via Homebrew and integrate it into your development workflow.
Prerequisites
- CLI 2.4.0 requires macOS 27 or later on a Mac with Apple silicon
- Homebrew installed
- Mac App Store version of Toukan is not required (CLI works standalone)
* Install separately if you want to use both the GUI and CLI
Installation
brew install bon-clevique/tap/toukan
Verify the installation:
toukan --version
Initial Setup
Run toukan setup to start the interactive setup wizard.
- Enter your Notion API token (input is masked)
- Select the folder to sync
- Enter and verify your Notion data source ID
toukan setup
Use Toukan with an AI agent
Send Markdown generated by an AI agent on your Mac to a chosen Notion database.
Homebrew installs the agent skill and its setup and recovery guide under$(brew --prefix toukan)/share/toukan/skills/toukan-sync.
- Copy the entire
toukan-syncfolder to your agent's skill directory. For a Codex user skill, use~/.agents/skills/. - Run
toukan setupto configure the Notion connection andtoukan list --jsonto check the destination name. Enter your token at the interactive prompt. - Tell the agent which file and named destination to use and what to do with the original. This example previews the send and keeps the source file.
toukan sync --target research --keep --dry-run --json -- ./out/report.md
Verify the file and destination, then authorize the send.
Use toukan watch --target research to monitor a folder for recurring exports.
You can also get the archive from the CLI and skill release page.
Command Reference
| Command | Description |
|---|---|
toukan setup |
Interactive setup wizard |
toukan list |
List sync targets |
toukan add <folder> --data-source <id> |
Add a sync target |
toukan remove <folder> |
Remove a sync target |
toukan status |
Show configuration and folder statistics |
toukan sync |
Sync all targets |
toukan sync <files...> |
Sync specific files only |
Claude Code Integration
For developers using Claude Code, Toukan provides a command to automatically install a reference document.
toukan config install-claude-ref
This places a file at ~/.claude/rules/toukan.md, enabling Claude Code to reference Markdown output rules when working with Toukan.
Updating
brew upgrade toukan
Troubleshooting
Reset your Notion token
toukan config set notion-token
Check your configuration
toukan status
Files are not syncing
Check the following:
- Folder access permissions
- Notion data source sharing settings
- Whether
toukan statusreports any errors