{"id":18170,"library":"bog-cli","title":"bog-cli","description":"bog-cli is a command-line interface tool for managing Bits of Good internal tools and design system integrations. Current stable version is 1.0.1, released on npm. It allows initializing a design system in React/Next.js projects with options to install Tailwind V4, dependencies, global stylesheets, and fonts. It also provides a unified command to add, update, or remove design system components interactively. The package ships TypeScript types and requires Node.js >=18.","status":"active","version":"1.0.1","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","cli","bits-of-good","typescript"],"install":[{"cmd":"npm install bog-cli","lang":"bash","label":"npm"},{"cmd":"yarn add bog-cli","lang":"bash","label":"yarn"},{"cmd":"pnpm add bog-cli","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Default import for programmatic usage; CLI is primarily used via npx.","symbol":"default","correct":"import bog from 'bog-cli'"},{"note":"TypeScript type/interface, only available with ESM import.","wrong":"const { BogConfig } = require('bog-cli')","symbol":"BogConfig","correct":"import { BogConfig } from 'bog-cli'"}],"quickstart":{"code":"#!/usr/bin/env node\nimport { execSync } from 'node:child_process';\nexecSync('npx bog design init', { stdio: 'inherit' });","lang":"typescript","description":"Initializes the Bits of Good design system in a React/Next.js project using npx bog."},"warnings":[{"fix":"Update Node.js to version 18 or later.","message":"The CLI requires Node.js >=18. Using older versions will fail.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Use npx bog <command> for intended usage.","message":"Commands are intended to be run via npx bog, not direct require/import. Programmatic API is limited.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install -g bog-cli' or use 'npx bog-cli' instead of 'bog'.","cause":"The bog-cli package is not installed globally or the command is not available.","error":"npx: command not found: bog"},{"fix":"Run 'npm install bog-cli' in your project directory.","cause":"The package is not installed in the current project.","error":"Error: Cannot find module 'bog-cli'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}