CLI reference
Synopsis
Section titled “Synopsis”vlm [PALETTE] [SOURCE OPTIONS]vlm palettes sync [--overwrite]vlm -h | --helpvlm -V | --versionvlm [PALETTE]
Section titled “vlm [PALETTE]”Open an interactive palette. With no argument, PALETTE is default. A single path component without an extension resolves as <config-root>/palettes/<name>.toml. Explicit paths and arguments with extensions are used as provided.
vlmvlm herdr-agentsvlm herdr-agents --select-1vlm ./examples/demo.tomlThe config root is $XDG_CONFIG_HOME/vellum, then $HOME/.config/vellum. Optional global defaults load from <config-root>/config.toml.
Source options
Section titled “Source options”| Option | Meaning |
|---|---|
--stdin |
Auto-detect plain lines, a JSON array, or NDJSON input |
--lines FIELD |
Wrap each nonempty input line as an object containing FIELD |
--field TARGET=SOURCE |
Copy a dotted JSON source field to a target field; repeatable |
--jq FILTER |
Transform input through external jq -c before loading it |
Use exactly one of --stdin, --lines, or --jq. --field requires one of those modes. CLI sources are one-shot: periodic refresh is disabled and actions using on_success = "refresh" are rejected.
When no palette is given, --stdin uses a minimal finder that displays and returns each plain input line. For example, fd --type f | vlm --stdin requires no configuration.
Selection options
Section titled “Selection options”| Option | Meaning |
|---|---|
-1, --select-1 |
Accept the initial result without opening the menu when exactly one item exists |
With zero or multiple initial items, --select-1 opens the interactive palette normally. A sole item follows the usual accept behavior, including its configured item.value or default action.
vlm palettes sync
Section titled “vlm palettes sync”Copy official palettes into <config-root>/palettes. Existing paths are reported and skipped.
--overwrite replaces regular files with current bundled content. Symlink targets are refused.
Process output
Section titled “Process output”Accepted output-only selections write the configured item.value plus one newline to stdout. The TUI, terminal control, and diagnostics use stderr. Cancellation and successful native actions write no stdout.
Environment
Section titled “Environment”| Variable | Meaning |
|---|---|
XDG_CONFIG_HOME |
Parent directory for vellum/config.toml and vellum/palettes |
HOME |
Fallback configuration and data home |
VELLUM_DATA |
Absolute override for the Vellum data directory |
XDG_DATA_HOME |
Parent of the fallback vellum/frecency.sqlite3 |
Data directory precedence is absolute nonempty VELLUM_DATA, $XDG_DATA_HOME/vellum, then $HOME/.local/share/vellum.
