Start from an existing project

Use Bit in your project to track directories as Bit components. Tracked directories will become discrete units of code that can be developed, shared, consumed and collaborated on, independent of the rest of your project.

Run the following at the root of your project, to initialize a Bit workspace:

bit init
CopiedCopy

You will be asked several questions on your setup. We recommend the following answers:

  1. Which environment you will like to use? pick the most relevant default stack (you can add more later).
  2. Would you like to use your own package manager? Yes.
  3. Would you like to use MCP server for AI-powered development? Yes.
  4. Which IDE to set up? Select from list (you can add more later).

Tooling integration

Bit manages configuration tools for your components automatically, so your IDE will be in-sync with its typescript, linting and formatting configs.
When adopting Bit alongside an existing project, Bit creates a dedicated directory for components and their configuration files.

After a successful initialization of Bit in your project, you should see the following configured in your workspace.jsonc:

"defaultDirectory": "bit-components/{scope}/{name}"
...
 "teambit.workspace/workspace-config-files": {
    "enableWorkspaceConfigWrite": true,
    "useDefaultDirectory": true
  }
CopiedCopy

Specific guides

For more specific tools, head to the following guides:

What's next