Welcome to the Bit documentation. Start your journey here to leverage Bit for building composable software. Below you will learn to create, release and re-use your first component.
Run the following to install Bit:
Initialize Bit on a new folder or in an existing project by running the following command:
Make sure to create your scope on the Bit platform and use the right org and project name. After running the command, Bit is initialized on the chosen directory, and ready to be used via Bit commands, your editor or the Bit UI!
Build your first components in the cloud
Skip installing the Bit CLI and use Cloud Workspaces for a ready-to-go, web-based and integrated development environment.
After initiatizing your workspace, you can start creating components. Run the following command to generate a component from one of our default templates:
The following command uses the React UI component template to create a new reusable React component:
You can find simple guides for creating NodeJS modules, UI components and apps, backend services and more on our create components page. Run the Bit UI to preview components using the following command:
Use bit run
to preview applications during development. To start creating apps follow this guide.
Authenticate with the Bit platform:
Use semantic versioning to version your components:
By default, Bit uses Ripple CI to build components. You can use the --build
flag to build the components on the local machine. To tag and export from your CI of choice to automate the release process or use our official CI scripts.
After versioning, you can proceed to release your components:
Congrats! 🎉 Your first components are now released! You can now view your components, ready to be used on the Bit platform.
Start using these components all across your projects: