ExfilGuardian
Getting Started

Commands

Complete reference of available commands

Nx Commands

All project commands go through Nx for task orchestration, dependency resolution, and caching. Root package.json scripts are thin wrappers around nx run / nx run-many.

CommandDescription
bun run devStart all dev servers in parallel (desktop, docs, server)
bun run buildBuild all projects
bun run testRun all tests
bun run lintLint all projects
bun run graphVisualize project dependency graph

Per-Project

CommandDescription
bun run dev:desktopDesktop app dev server
bun run dev:docsDocs site dev server
bun run dev:serverRust gRPC + REST server
bun run build:analysisBuild analysis crate
bun run build:serverBuild server (depends on analysis)
bun run build:desktopBuild desktop app
bun run build:docsBuild docs site

You can also call Nx directly:

npx nx run server:build
npx nx run analysis:test
npx nx run-many -t build --projects=analysis,server

Build

Frontend

CommandDescription
bun run build:desktopBuild Next.js for production
bun run distPackage Electron distributable

Backend

CommandDescription
cargo build --workspaceBuild all Rust crates (Windows for full workspace)
cargo build --release --workspaceBuild all Rust crates optimized
cargo build -p exfil-analysisBuild analysis crate only (cross-platform)
cargo build -p exfil-serverBuild server only
cargo build -p exfil-agentBuild agent only (Windows)
cargo build -p exfil-certs-genBuild certificate generator
bun run build:releaseBuild release binaries (analysis + server + certs)

Development

Frontend

CommandDescription
cd desktop && bun run devStart Next.js dev server
cd desktop && bun run dev:electronStart Electron app in dev mode

Backend

CommandDescription
cargo run -p exfil-serverRun gRPC/HTTP server
cargo run -p exfil-agentRun agent (Windows, requires driver)
cargo run -p exfil-certs-genGenerate mTLS certificates

Testing

Frontend

CommandDescription
bun testRun all frontend tests

Backend

CommandDescription
cargo test --workspaceRun all Rust tests (18 analysis tests)
cargo test -p exfil-analysisTest analysis crate only
cargo test -p exfil-serverTest server only

Linting & Formatting

Frontend (Biome)

CommandDescription
bun run checkBiome lint check
bun run check:fixAuto-fix linting issues
bun run formatFormat code with Biome
bun run typecheckTypeScript type check

Backend (Rust)

CommandDescription
cargo clippy --workspaceLint all Rust code
cargo fmtFormat Rust code

Packaging

Desktop Distribution

CommandDescription
bun run distPackage Electron distributable

Documentation

CommandDescription
cd docs-site && bun run devStart docs dev server
cd docs-site && bun run buildBuild docs for production
cargo doc --openGenerate and open Rust docs

On this page