vexor-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVexor CLI Skill
Vexor CLI 技能
Goal
目标
Find files by intent (what they do), not exact text.
根据意图(文件用途)而非精确文本查找文件。
Use It Like This
使用方式
- Use first for intent-based file discovery.
vexor - If is missing, follow references/install-vexor.md.
vexor
- 优先使用进行基于意图的文件检索。
vexor - 若未安装,请参考references/install-vexor.md进行安装。
vexor
Command
命令
bash
vexor "<QUERY>" [--path <ROOT>] [--mode <MODE>] [--ext .py,.md] [--exclude-pattern <PATTERN>] [--top 5] [--format rich|porcelain|porcelain-z]bash
vexor "<QUERY>" [--path <ROOT>] [--mode <MODE>] [--ext .py,.md] [--exclude-pattern <PATTERN>] [--top 5] [--format rich|porcelain|porcelain-z]Common Flags
常用参数
- : root directory (default: current dir)
--path/-p - : indexing/search strategy
--mode/-m - : limit file extensions (e.g.,
--ext/-e).py,.md - : exclude paths by gitignore-style pattern (repeatable;
--exclude-pattern→.js)**/*.js - : number of results
--top/-k - : include dotfiles
--include-hidden - : include ignored files
--no-respect-gitignore - : only the top directory
--no-recursive - :
--format(default) orrich/porcelainfor scriptsporcelain-z - : in-memory only, do not read/write index cache
--no-cache
- :根目录(默认值:当前目录)
--path/-p - :索引/检索策略
--mode/-m - :限制文件扩展名(例如:
--ext/-e).py,.md - :通过gitignore风格的规则排除路径(可重复使用;
--exclude-pattern等效于.js)**/*.js - :返回结果数量
--top/-k - :包含隐藏文件
--include-hidden - :包含被git忽略的文件
--no-respect-gitignore - :仅检索顶层目录
--no-recursive - :输出格式,
--format(默认)或rich/porcelain(适用于脚本)porcelain-z - :仅在内存中运行,不读取/写入索引缓存
--no-cache
Modes (pick the cheapest that works)
检索模式(选择资源消耗最低且满足需求的模式)
- : routes by file type (default)
auto - : filename-only (fastest)
name - : first lines only (fast)
head - : keyword summary (good for PRDs)
brief - : code-aware chunking for
code(best default for codebases).py/.js/.ts - : Markdown headings/sections (best for docs)
outline - : chunk full file contents (slowest, highest recall)
full
- :根据文件类型自动选择策略(默认)
auto - :仅基于文件名检索(速度最快)
name - :仅检索文件开头内容(速度快)
head - :基于关键词摘要检索(适用于PRD文档)
brief - :针对
code文件的代码感知分块检索(代码仓库的最佳默认选项).py/.js/.ts - :基于Markdown标题/章节检索(文档检索的最佳选项)
outline - :分块检索文件完整内容(速度最慢,召回率最高)
full
Troubleshooting
问题排查
- Need ignored or hidden files: add and/or
--include-hidden.--no-respect-gitignore - Scriptable output: use (TSV) or
--format porcelain(NUL-delimited).--format porcelain-z - Get detailed help: .
vexor search --help - Config issues: or
vexor doctordiagnoses API, cache, and connectivity (tell the user to set up).vexor config --show
- 若需要检索被忽略或隐藏的文件:添加和/或
--include-hidden参数。--no-respect-gitignore - 若需要可脚本化的输出:使用(TSV格式)或
--format porcelain(空字符分隔格式)。--format porcelain-z - 获取详细帮助:执行。
vexor search --help - 配置问题:执行或
vexor doctor诊断API、缓存和连接问题(请用户完成相关配置)。vexor config --show
Examples
使用示例
bash
undefinedbash
undefinedFind CLI entrypoints / commands
查找CLI入口/命令
vexor search "typer app commands" --top 5
```bashvexor search "typer app commands" --top 5
```bashSearch docs by headings/sections
根据标题/章节检索文档
vexor search "user authentication flow" --path docs --mode outline --ext .md --format porcelain
```bashvexor search "user authentication flow" --path docs --mode outline --ext .md --format porcelain
```bashLocate config loading/validation logic
定位配置加载/验证逻辑
vexor search "config loader" --path . --mode code --ext .py
```bashvexor search "config loader" --path . --mode code --ext .py
```bashExclude tests and JavaScript files
排除测试文件和JavaScript文件
vexor search "config loader" --path . --exclude-pattern tests/** --exclude-pattern .js
undefinedvexor search "config loader" --path . --exclude-pattern tests/** --exclude-pattern .js
undefinedTips
使用技巧
- First time search will index files (may take a minute). Subsequent searches are fast. Use longer timeouts if needed.
- Results return similarity ranking, exact file location, line numbers, and matching snippet preview.
- Combine with
--extto focus on a subset (exclude rules apply on top).--exclude-pattern
- 首次检索会对文件建立索引(可能需要一分钟)。后续检索速度会很快。必要时可设置更长超时时间。
- 检索结果会返回相似度排名、精确文件位置、行号和匹配代码片段预览。
- 可将与
--ext结合使用以聚焦特定文件子集(排除规则优先级更高)。--exclude-pattern