CLI Commands

Available commands in Code Analyzer CLI

analyze

Analyze a codebase and generate insights.

codesync analyze <repoPath>

Example

codesync analyze ./project

Options

  • --json → Output results in JSON format

What it does

  • Scans all files
  • Builds dependency graph
  • Detects cycles and unused files
  • Calculates complexity
  • Displays summary in CLI

detail-analysis

Run a detailed analysis with extended output.

codesync detail-analysis <repoPath>

Example

codesync detail-analysis ./project

Options

  • --json → Output full analysis as JSON

What it does

  • Everything from analyze
  • Shows cycles in detail
  • Displays depth and complexity table
  • Provides full structured output

dashboard

Start the interactive dashboard.

codesync dashboard

What it does

  • Starts backend server
  • Starts frontend dashboard
  • Opens browser automatically

Output

Dashboard available at: http://localhost:5173


complexity

Analyze complexity scores of files.

codesync complexity <repoPath>

Example

codesync complexity ./project

Options

  • --json → Output JSON

Output

  • List of files
  • Complexity score for each file

cycles

Detect circular dependencies.

codesync cycles <repoPath>

Example

codesync cycles ./project

Options

  • --json → Output JSON

Output

  • List of cycles
  • Files involved in each cycle

depth-table

Generate depth and dependency table.

codesync depth-table <repoPath>

Example

codesync depth-table ./project

Options

  • --json → Output JSON

Output

  • File name
  • Complexity score
  • Dependency depth
  • Import relationships

Common Workflow

Typical usage flow:

codesync analyze ./project
codesync dashboard

Or for deeper inspection:

codesync detail-analysis ./project
codesync cycles ./project
codesync complexity ./project

Notes:

  • Always run analyze before commands like cycles, complexity, or depth-table.
  • These commands rely on previously generated data.

CodeSync

Understand your codebase. Instantly.

© 2026 Code Analyzer. All rights reserved.