This is the repository for Bits of Good's internal CLI used to manage integrations with internal tools to our applications.
After cloning this repository locally, install the necessary packages using npm i. This sets up the project locally, but to run commands, follow the steps below.
To run commands based on your local code, run the following commands:
npm run dev
npm run link
When you are making changes to the CLI, it is recommended to have npm run dev running in the background as it can watch for your changes actively.
To run commands, use the bog command. For example, bog design init will run the design system init command below.
These are the current commands this CLI supports. All commands support the -h/--help flags.
designinit: Initializes the design system in an existing React/Next.js project. This command gives you the option to install Tailwind V4, the dependencies for the design system, our global stylesheet containing our theme, and our fonts directly into your project.edit: Manages design system components in your project. This unified command allows you to add new components, update existing components to the latest version, or remove components from your project. It provides an interactive interface to select which components to add, update, or remove.