跳到主要内容

CLI 命令

ArchiCore CLI 所有命令的完整参考。

项目命令​

/index​

为语义搜索和分析索引当前项目。

/index [--force]
选项描述
--force即使已索引也重新索引

/status​

显示项目状态和统计信息。

/status

搜索命令​

代码语义搜索。

/search <查询> [--limit N]
选项描述
--limit最大结果数(默认:10)

分析命令​

/analyze​

分析更改的影响。

/analyze <路径>

/metrics​

计算代码质量指标。

/metrics [路径] [--format json|table]

/security​

扫描安全漏洞。

/security [--severity high|medium|low]

/dead-code​

查找未使用的代码。

/dead-code [--include-tests]

/duplication​

查找代码重复。

/duplication [--min-lines N]

架构命令​

/rules​

管理架构规则。

/rules [list|add|validate]

导出命令​

/export​

导出分析报告。

/export [--format html|json|pdf] [--output 路径]

AI 命令​

自然语言问题​

直接输入您的问题,无需前缀:

> 认证系统是如何工作的?

实用命令​

/help​

显示可用命令。

/clear​

清除屏幕。

/exit 或 /quit​

退出 ArchiCore CLI。