Skip to main content

5‑Minute Quickstart

Get X‑Fidelity running and see results in minutes.

1. Install and run

# From your project root
yarn global add x-fidelity

# Analyze current git repo directory with demo config
xfidelity .
  • Results are written to .xfiResults/
  • Latest results: .xfiResults/XFI_RESULT.json (never deleted)

2. View results in VSCode

  1. Install the "X‑Fidelity" VSCode extension
  2. Open your project
  3. Run: Ctrl+Shift+PX‑Fidelity: Run Analysis Now
  4. Open the Problems panel and X‑Fidelity sidebar

3. Common commands

# repo root (with monorepo support)
xfidelity .

# JSON for CI and save to file
xfidelity . --output-format json --output-file xfi-results.json

# Targeted analysis on specific files (fast feedback)
xfidelity . --zap '["src/index.ts","src/app.ts"]'

# Use a remote config server
xfidelity . --configServer http://localhost:8888

# Use a GitHub-hosted config tree
xfidelity . --githubConfigLocation https://github.com/org/repo/tree/main/xfi-config

# Start the config server (HTTPS with certs if available)
xfidelity --mode server --port 8888

4. Next steps