Skip to content

tmd config

Manage .typemd/config.yaml from the command line. Provides get, set, and list subcommands for reading and writing vault configuration without editing files directly.

Set a config value. Creates .typemd/config.yaml if it doesn’t exist.

Terminal window
tmd config set cli.default_type idea
tmd config set ai.enabled true

Only known keys are accepted. Setting an unknown key returns an error listing the valid keys.

Get a config value. Prints the value to stdout. If the key is not set, prints nothing.

Terminal window
tmd config get cli.default_type
# → idea

List all set (non-empty) config values in key: value format. Prints nothing if no config exists or all values are empty.

Terminal window
tmd config list
# cli.default_type: idea
# ai.enabled: true

Use --all to show all known keys, including unset keys with their defaults.

KeyTypeDefaultDescription
cli.default_typestring(empty)Default type for tmd object create when no type argument is given
KeyTypeDefaultDescription
tui.debounce_msint200File watcher debounce interval in milliseconds
tui.stats_type_layoutstringfullscreenStats type detail layout: fullscreen or popup
tui.keybindings.<action>string(per-action default)Override a global TUI keybinding by action name. See TUI customization for the full action list.

AI features require the claude CLI to be installed and authenticated.

KeyTypeDefaultDescription
ai.enabledboolfalseEnable AI features in the TUI (g and ctrl+e keybindings)
ai.modelstring(claude default)Override the Claude model (e.g. claude-haiku-4-5-20251001)
ai.prompts.describestring(built-in)Custom system prompt for AI description generation
ai.prompts.tagstring(built-in)Custom system prompt for AI tag suggestions
ai.prompts.explorestring(built-in)Custom system prompt for AI schema exploration
ai.explore.sample_countint10Number of objects sampled for schema exploration
ai.explore.body_truncateint500Max characters of object body included in schema explore prompt

Keys use dot-notation that maps to YAML nesting:

cli:
default_type: idea
tui:
debounce_ms: 200
stats_type_layout: fullscreen
ai:
enabled: true
model: claude-sonnet-4-6-20250627
prompts:
describe: "Custom prompt for descriptions"
explore:
sample_count: 20
body_truncate: 1000
ScenarioBehavior
Unknown key on set or getError with list of known keys
Unset key on getEmpty output, exit code 0
No config file on listEmpty output, exit code 0