Skip to content

CLI reference

Every command uses the database at $NOTECAST_DB (default ./notecast.db), creating or upgrading it as needed. Commands exit with status 1 on an error, with the message on stderr. notecast --version prints the version; every command takes --help.

Notes

add

1
notecast add [OPTIONS] PATH

Import one file. Prints added, updated or unchanged with the note's id (see Re-importing).

Option
-t, --title TEXT use this title instead of the detected one
-p, --process then run the process stage (all pending notes)

add-batch

1
notecast add-batch [OPTIONS] DIRECTORY

Import every matching file under DIRECTORY, recursively.

Option
--ext TEXT comma-separated extensions; default .md,.txt
-x, --exclude TEXT glob to skip, matched against the relative path and the file name; repeatable
--dry-run print each file's title without importing

delete

1
notecast delete [OPTIONS] QUERY

Delete one note, found by exact id or by a case-insensitive substring of its title. With several matches it lists them and deletes nothing.

Option
-y, --yes don't ask for confirmation
1
notecast search [OPTIONS] QUERY

Full-text search over title, content, summary and keywords. See Search.

Option
-n INTEGER maximum results; default 5
-s, --similar also list notes similar to the first result

Pipeline

scan

1
notecast scan [OPTIONS]

Run pipeline stages. Checks first that Ollama is reachable and the models are pulled (except for consolidate, which needs neither). See The pipeline.

Option
--stage auto\|process\|classify\|organize\|consolidate default auto: the stages that are due
-v, --verbose per-note progress on stderr

status

Counts of notes per status, and of base and derived themes.

retry-failed

Set every failed note back to pending.

reset

1
notecast reset [--full]

Without --full: remove all theme assignments, set scanned, organized and unclassified notes back to processed, and zero the auto-scan counters. With --full (asks first): delete all notes and derived themes; base themes and the links between them stay.

Themes

theme list

Every theme with its id, note count, [base] marker and parents.

theme add

1
notecast theme add [OPTIONS] NAME

Create a theme, then re-queue unclassified notes for classification.

Option
--base a base (anchor) theme: used by classify, never pruned
--desc TEXT description, shown to the model when classifying
--parent TEXT name of an existing parent theme

theme remove

1
notecast theme remove NAME

Delete a theme and its links (notes are kept). Asks first for a base theme.

graph

1
notecast graph [OPTIONS]

Render the theme graph with Graphviz.

Option
-o, --output TEXT file name without extension; default notecast-graph
--format svg\|png\|pdf default svg

Configuration

config get

1
notecast config get [KEY]

One key, or all of them with defaults filled in.

config set

1
notecast config set KEY VALUE

Store a validated value. The keys are listed in Configuration.