buoy init
Initialize Buoy in your project. Auto-detects frameworks and creates a configuration file.
Usage
buoy init [options] Options
| Option | Description |
|---|---|
-y, --yes | Accept all defaults without prompting |
What It Does
- Scans your project for package.json, config files, and source directories
- Detects frameworks like React, Vue, Svelte, Angular, and Tailwind
- Creates buoy.config.mjs with detected settings
Example
$ buoy init
Detecting project configuration...
Detected frameworks:
✓ React (from package.json)
✓ Tailwind CSS (from tailwind.config.js)
Creating buoy.config.mjs...
Done! Run `buoy audit` to see your design system health. Generated Config
The generated buoy.config.mjs looks like:
export default {
sources: {
react: { enabled: true },
tailwind: { enabled: true },
},
include: ['src/**/*.{tsx,jsx,css}'],
exclude: ['node_modules', 'dist', 'build'],
} Manual Configuration
You can also create buoy.config.mjs manually. See
Configuration for all available options.
Related Commands
- buoy scan — Scan after initialization
- buoy audit — Get health report