vibrant init command creates a vibrant.config.js file in your current directory with sensible default settings.
Syntax
Description
This command initializes Vibrant in your project by creating a configuration file. It includes:- Default ignore patterns for common directories
- Output format preference
- AI provider configuration (commented out)
vibrant.config.js already exists, the command will skip creation and show a warning.
Generated configuration
The defaultvibrant.config.js created by init:
What gets configured
Array of glob patterns to exclude from analysis. Defaults include common directories like
node_modules, .git, dist, .next, build, and coverage.Default output format. Set to
'pretty' for colorful, detailed output.AI provider to use for enhanced analysis. Commented out by default. Uncomment and set to your preferred provider.
Example usage
Initialize in a new project
Initialize with existing config
Ifvibrant.config.js already exists:
Next steps
After runningvibrant init:
- Customize ignore patterns - Add project-specific directories to exclude
- Set output format - Choose between
pretty,compact,plan, orjson - Configure AI provider - Uncomment and set
providerfor AI-powered analysis - Configure rules - Add custom rule configurations (see rule config)