KosshiKosshi
AutomationBeta
Contents

This feature is in beta, and command names or results may change. Send feedback via Contact or the Forum.

CLI use cases

Common shell and terminal patterns. See the CLI quick start for setup. Replace row names such as "Trip planning" with names from your own outline.

Append a note to today's daily note

Adds a quick note under today's date row (creating it if needed) without leaving the terminal.

DAY_ID=$(kosshi ensure-path "Daily" "$(date +%Y-%m-%d)" | jq -r '.id')
kosshi add "Checked release steps" --under "$DAY_ID"

Import files or command output

import imports indented text or OPML hierarchically from standard input. Pass files via redirection (<) or the output of other commands via pipes (|). Use --format opml to import OPML.

DAY_ID=$(kosshi ensure-path "Daily" "$(date +%Y-%m-%d)" | jq -r '.id')

# Import an indented text file while keeping its hierarchy
kosshi import --under "$DAY_ID" < notes.txt

# Pipe command output directly into Kosshi (for example, recent commits)
git log --oneline -5 | kosshi import --under "$DAY_ID"

List incomplete tasks

Prints unchecked checkbox rows (is:todo) right in the terminal without switching to Kosshi.

# List all incomplete tasks across the outline
kosshi find --query "is:todo" | jq -r '.rows[].plainText'

# Limit the search to one parent branch
PROJECT_ID=$(kosshi find-path "Trip planning" | jq -r '.id')
kosshi find --within "$PROJECT_ID" --query "is:todo" | jq -r '.rows[].plainText'

Export a branch to a Markdown file

Export drafts or specs you are writing in Kosshi to a blog or repository .md file with a single command (include notes with --notes). Since export outputs text in the specified format as-is, you can redirect it straight to a file.

PROJECT_ID=$(kosshi find-path "Trip planning" | jq -r '.id')
kosshi export "$PROJECT_ID" --format markdown --notes > travel.md