CLI Overview
The ArchiCore CLI provides a powerful command-line interface for analyzing and exploring your codebase.
Installation
npm install -g archicore
Basic Usage
# Start interactive mode
archicore
# Run a specific command
archicore <command> [options]
Interactive Mode
When you run archicore without arguments, you enter interactive mode:
$ archicore
╭─────────────────────────────────────╮
│ │
│ ArchiCore v0.1.0 │
│ AI-Powered Architecture Twin │
│ │
╰─────────────────────────────────────╯
Type /help for available commands
>
In interactive mode, you can:
- Type natural language questions about your code
- Use
/commands for specific actions - Navigate with arrow keys through history
Command Categories
| Category | Description |
|---|---|
| Analysis | /analyze, /metrics, /security, /dead-code |
| Search | /search, /find |
| Project | /index, /status, /export |
| Rules | /rules, /validate |
| AI | Natural language questions |
Quick Reference
# Index current project
archicore index
# Search for code
archicore search "user authentication"
# Analyze impact of changes
archicore analyze src/auth/
# Check code metrics
archicore metrics
# Find security issues
archicore security
# Export report
archicore export --format html
Configuration
ArchiCore stores configuration in .archicore/ directory:
.archicore/
├── config.json # Project configuration
├── rules.json # Architecture rules
└── cache/ # Index cache
Next Steps
- Installation - Detailed setup guide
- Commands - Full command reference
- Configuration - Customize ArchiCore