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

  1. Scans your project for package.json, config files, and source directories
  2. Detects frameworks like React, Vue, Svelte, Angular, and Tailwind
  3. 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