CLI Flags

Available flags for customizing CLI output

CLI Flags

Flags allow you to customize how Code Analyzer outputs results.


–json

Output results in JSON format instead of formatted CLI output.

Usage

codesync analyze ./project --json

Where it works

The --json flag is supported in:

  • analyze
  • detail-analysis
  • complexity
  • cycles
  • depth-table

Example

Default output

codesync analyze ./project

Shows:

  • Formatted summary
  • Sections like “Codebase Summary”
  • Human-readable output

JSON output

codesync analyze ./project --json

Returns structured data:

{
  "totalFiles": 120,
  "entryPoints": ["index.js"],
  "cycles": 3,
  "deadFiles": 5
}

When to use –json

Use JSON output when:

  • Integrating with other tools
  • Writing scripts or automation
  • Saving results for later analysis

Best practice

  • Use default output for quick understanding
  • Use --json for programmatic usage

Future flags

More flags may be added to support:

  • Filtering results
  • Limiting output
  • Custom formats

CodeSync

Understand your codebase. Instantly.

© 2026 Code Analyzer. All rights reserved.