@foxlight/cli
v0.2.0
Published
Command-line interface for Foxlight — analyze components, check health, run upgrades.
Downloads
33
Maintainers
Readme
@foxlight/cli
Command-line interface for Foxlight — the open-source front-end intelligence platform.
Installation
npm install -g @foxlight/cliOr use via npx:
npx @foxlight/cli <command>Commands
foxlight init
Initialize Foxlight in your project. Creates a .foxlight.json configuration file.
foxlight initfoxlight analyze
Scan your project and discover components, imports, and dependencies.
foxlight analyze
foxlight analyze --json # Output as JSON
foxlight analyze --root ./my-app # Specify project rootfoxlight health
Show the component health dashboard with scores for bundle size, test coverage, accessibility, freshness, and performance.
foxlight health
foxlight health --component Button # Filter to one component
foxlight health --json # Output as JSONfoxlight cost
Estimate hosting costs based on your bundle sizes across different providers.
foxlight cost
foxlight cost --provider vercel # Specific provider
foxlight cost --json # Output as JSONfoxlight upgrade <package>
Analyze the impact of upgrading a dependency.
foxlight upgrade react
foxlight upgrade react --to 19.0.0 # Target specific version
foxlight upgrade --json # Output as JSONGlobal Options
| Option | Description |
| -------------- | ------------------------------------- |
| --root <dir> | Project root directory (default: .) |
| --json | Output results as JSON |
| --help | Show help message |
| --version | Show version number |
Configuration
Create a .foxlight.json in your project root:
{
"include": ["src/**/*.{ts,tsx,js,jsx,vue,svelte}"],
"exclude": ["**/*.test.*", "**/*.spec.*"],
"framework": "react"
}License
MIT
