---
name: atomic-bomb-cli-examples
description: Use when an agent needs executable Atomic Bomb CLI examples for generating components, domains, pages, and reusable front-end architecture.
---

# Atomic Bomb CLI Examples

Use executable examples. Agents learn the intended structure from concrete commands.

## Component Commands

```shell
npx atomic-bomb --type atom --name Button
npx atomic-bomb --type atom --name Label
npx atomic-bomb --type atom --name Input
npx atomic-bomb --type molecule --name SearchField
npx atomic-bomb --type molecule --name ProductCard
npx atomic-bomb --type organism --name Header
npx atomic-bomb --type organism --name LoginForm
npx atomic-bomb --type template --name Dashboard
npx atomic-bomb --type page --name ProductDetail
```

## Multiple Components

```shell
npx atomic-bomb --type atom --name Label,Input,Button
npx atomic-bomb --type molecule --name EmailField,PasswordField,FormActions
```

## Domain Commands

```shell
npx atomic-bomb --type domain --name Products
npx atomic-bomb --type domain --name Orders
npx atomic-bomb --type domain --name Customers
```

## Domain-Scoped Components

```shell
npx atomic-bomb --for Products/Catalog --type molecule --name ProductCard
npx atomic-bomb --for Products/Detail --type organism --name ProductHero
npx atomic-bomb --for Orders/Checkout --type organism --name CheckoutSummary
```

## Generation Recipe: Login Form

```shell
npx atomic-bomb --type atom --name Label,Input,Button,Paragraph
npx atomic-bomb --type molecule --name EmailField,PasswordField,FormActions
npx atomic-bomb --type organism --name LoginForm
```

## Generation Recipe: Dashboard

```shell
npx atomic-bomb --type atom --name Icon,Label,Number,Heading
npx atomic-bomb --type molecule --name MetricTile,FilterControl,NavigationItem
npx atomic-bomb --type organism --name DashboardHeader,MetricGrid,ActivityFeed
npx atomic-bomb --type template --name Dashboard
npx atomic-bomb --type page --name Dashboard
```

## After Running Commands

Always verify generated:

- Component file.
- Interface file.
- Mock file.
- Story file.
- Test file.
- Sass file.
- Sass barrel.
- TypeScript barrel export.
