yams/docs/user_guide
2025-08-13 19:25:31 -04:00
..
tutorials yams 2025-08-10 23:41:49 -04:00
cli.md v0.1.5 2025-08-13 19:25:31 -04:00
installation.md packaging attempt 1 2025-08-13 12:27:40 -04:00
README.md yams 2025-08-10 23:41:49 -04:00
search_guide.md yams 2025-08-10 23:41:49 -04:00
vector_search_guide.md yams 2025-08-10 23:41:49 -04:00

YAMS User Guide

An index for using YAMS from the command line. Start here, jump to what you need, and get things done.

TL;DR (after install)

# Initialize (uses XDG paths or YAMS_STORAGE)
yams init --non-interactive

# Add content (file or stdin)
yams add ./README.md
echo "note" | yams add - --name "quick-note.txt" --mime-type text/plain

# Explore
yams list --format table --limit 20
yams search "config file" --limit 5

# Retrieve and delete
yams get <hash> -o ./file.bin
yams delete <hash> --force

Tips:

  • Global verbose help: yams --help-all
  • Per-command verbose help: yams <command> --help --verbose
  • Set a custom data root: export YAMS_STORAGE="$HOME/.local/share/yams"

Topics

Common patterns

  • Use JSON for scripting:
    • yams list --format json | jq '.'
    • yams search "error logs" --limit 10 | jq '.results[] | {title, score}'
  • Keep data separate per project:
    • YAMS_STORAGE="$PWD/.yams" yams init --non-interactive
    • YAMS_STORAGE="$PWD/.yams" yams add ./doc.md

See also

  • Documentation Hub: ../README.md
  • Manpages (if built): man yams

Last updated: This guide is kept minimal and links to authoritative pages above. For exhaustive flags/options, see the CLI Reference or use the verbose help.