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
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
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
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
search
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
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
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
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
notecast theme remove NAME
Delete a theme and its links (notes are kept). Asks first for a base theme.
graph
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
notecast config get [KEY]
One key, or all of them with defaults filled in.
config set
notecast config set KEY VALUE
Store a validated value. The keys are listed in
Configuration .