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
- Install the "X‑Fidelity" VSCode extension
- Open your project
- Run:
Ctrl+Shift+P
→X‑Fidelity: Run Analysis Now
- 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
- Understand Result Files & Conventions
- Configure Local Configuration or Remote Configuration
- Build your first Rule or Plugin