atm

Atomix

v0.4.6

    1. Home
    2. Getting Started
    3. CLI Reference

Getting Started
  • Introduction
  • Installation
  • Quick Start
  • Migration Guide
  • CLI Reference
Design Tokens
  • Overview
  • All Tokens
  • Colors
  • Spacing
  • Typography
  • Grid
  • Elevation
Styles System
  • Architecture
  • Customization
  • Utilities
  • API Reference
Layouts
  • Grid System
  • Masonry Grid
  • Responsive Patterns
  • Customization
  • Performance
Components
  • Overview
  • Guidelines
  • Accordion
  • AtomixGlass
  • Avatar
  • Badge
  • Breadcrumb
  • Button
  • ButtonGroup
  • Card
  • Checkbox
  • Date Picker
  • Dropdown
  • Form
  • Input
  • Modal
  • Progress
  • Radio
  • Rating
  • Select
  • Slider
  • Spinner
  • Tab
  • Textarea
  • Toggle
  • Tooltip
  • Upload
  • Block
  • Callout
  • Countdown
  • Hero
  • Icon
  • List
  • Messages
  • Navbar
  • Pagination
  • Popover
  • Steps
  • SectionIntro
  • Container
  • Grid
  • GridCol
  • Row
  • River
  • MasonryGrid
  • DataTable
  • EdgePanel
  • SideMenu
  • Nav
  • NavItem
  • NavDropdown
  • VirtualizedGrid
Guides
  • Theming Guide
  • AtomixGlass Performance
  • AtomixGlass Theming
  • Theme Studio
  • Devtools
  • Theme Inspector
  • Theme Preview
  • Theme Comparator
  • Live Editor
  • CLI Tool
  • Try Live Editor
  • Try Inspector
  • Try Preview
  • Try Comparator
  • AtomixGlass Playground
Examples
  • Common Patterns
  • Landing Page
API Reference
  • React API
  • JavaScript API
  • CSS API
CLI
  • Overview
  • User Guide
  • API Reference
  • Migration Guide
  • Security Guide
Resources
  • Roadmap
  • Changelog
  • Contributing

Atomix Design System

A comprehensive design system for building modern, accessible, and performant web applications with React and vanilla JavaScript.
GitHubTwitterDiscordNPM

Getting Started

IntroductionInstallationQuick StartTheming Guide

Documentation

ComponentsDesign TokensStyles SystemLayouts

Resources

GitHub Repository↗NPM Package↗Storybook↗API Reference

Community

ContributingRoadmapChangelogReport Issue↗

© 2026 Atomix Design System. Built with ❤️ by the Shohojdhara.

Atomix CLI Reference

Complete command-line interface documentation for Atomix design system

Installation

The Atomix CLI is automatically available when you install the Atomix design system

Install Atomix

Install the Atomix package to get access to the CLI

BASH
npm install @shohojdhara/atomix
1 line31 characters

Access CLI

Use npx to run CLI commands without global installation

BASH
npx atomix --help
1 line17 characters

Quick Start

Get started with common CLI commands

Initialize Project

Interactive setup wizard for new projects

BASH
npx atomix init
1 line15 characters

Create Theme

Create and build a custom theme

BASH
1npx atomix create-theme my-theme 2npx atomix build-theme my-theme --watch
2 lines72 characters

Generate Component

Generate a new component with boilerplate

BASH
npx atomix generate component Button --typescript --story
1 line57 characters

Command Reference

Complete reference for all CLI commands

Atomix init

Interactive setup wizard for new projects

BASH
npx atomix init [options]
1 line25 characters

Options

  • --skip-install - Skip automatic dependency installation

Features

  • Project type selection (React, Next.js, Vanilla)
  • Theme configuration
  • Feature selection (TypeScript, Storybook, Testing)
  • Automatic file generation
  • Package.json script setup

atomix build-theme

Build custom themes from SCSS

BASH
npx atomix build-theme <path> [options]
1 line39 characters

Arguments

  • <path> - Path to theme directory or SCSS file

Options

  • -o, --output <path> - Output directory (default: ./dist)
  • -m, --minify - Generate minified version (default: true)
  • -s, --sourcemap - Generate source maps (default: false)
  • -w, --watch - Watch for changes and rebuild
  • --analyze - Analyze bundle size

Examples

BASH
1# Build a theme 2npx atomix build-theme themes/custom 3 4# Build with watch mode 5npx atomix build-theme themes/custom --watch 6 7# Build with analysis 8npx atomix build-theme themes/custom --analyze
8 lines192 characters

atomix generate (alias: g)

Generate design system components

BASH
npx atomix generate <type> <name> [options]
1 line43 characters

Arguments

  • <type> - Type to generate (component, token)
  • <name> - Name in PascalCase

Options

  • -t, --typescript - Use TypeScript (default: true)
  • -s, --story - Include Storybook story (default: true)
  • --test - Include test file
  • --scss-module - Use SCSS modules
  • --path <path> - Custom output path (default: ./src/components)
  • -f, --force - Overwrite existing files

Examples

BASH
1# Generate a component with all files 2npx atomix generate component Button --typescript --story --test 3 4# Short version 5npx atomix g c Card --scss-module 6 7# Custom path 8npx atomix g component Header --path ./src/layouts
8 lines219 characters

Atomix migrate

Migrate from other CSS frameworks

BASH
npx atomix migrate <from> [options]
1 line35 characters

Arguments

  • <from> - Framework to migrate from (tailwind, bootstrap, scss-variables)

Options

  • -s, --source <path> - Source directory (default: ./src)
  • --dry-run - Preview changes without modifying files
  • --create-backup - Create backup before migration (default: true)

Examples

BASH
1# Migrate from Tailwind 2npx atomix migrate tailwind --source ./app 3 4# Migrate from Bootstrap (dry run) 5npx atomix migrate bootstrap --dry-run 6 7# Migrate SCSS variables 8npx atomix migrate scss-variables
8 lines201 characters

atomix tokens

Manage design tokens

BASH
npx atomix tokens <action> [options]
1 line36 characters

Actions

  • list (alias: ls) - List all design tokens
  • validate (alias: check) - Validate token files
  • export - Export tokens to various formats
  • import - Import tokens from file

Examples

BASH
1# List all tokens 2npx atomix tokens list 3 4# List specific category 5npx atomix tokens list --category colors 6 7# Validate tokens 8npx atomix tokens validate 9 10# Export tokens 11npx atomix tokens export --format json --output tokens.json 12npx atomix tokens export --format css --output tokens.css
12 lines288 characters

atomix dev

Development mode with hot reload

BASH
npx atomix dev <theme> [options]
1 line32 characters

atomix validate

Validate themes and design tokens

BASH
npx atomix validate [target] [options]
1 line38 characters

atomix create-theme

Create a new theme from template

BASH
npx atomix create-theme <name> [options]
1 line40 characters

atomix doctor

Diagnose common issues

BASH
npx atomix doctor
1 line17 characters

Configuration

Configure Atomix CLI with configuration files

Configuration File

Create .atomixrc.json or atomix.config.js in your project root:

JSON
1{ 2 "theme": { 3 "name": "custom", 4 "outputDir": "./dist/themes", 5 "minify": true, 6 "sourceMaps": false 7 }, 8 "components": { 9 "style": "scss-module", 10 "typescript": true, 11 "stories": true, 12 "tests": false 13 } 14}
14 lines235 characters

Common Workflows

Real-world workflows for using the Atomix CLI

Starting a New Project

BASH
1# 1. Initialize project 2npx atomix init 3 4# 2. Create custom theme 5npx atomix create-theme my-brand 6 7# 3. Build and watch 8npx atomix dev my-brand
8 lines144 characters

Component Development

BASH
1# 1. Generate component 2npx atomix g component Card --typescript --story 3 4# 2. Run Storybook 5npm run storybook 6 7# 3. Validate design tokens 8npx atomix tokens validate
8 lines166 characters

Need Help?

If you encounter any issues or have questions about the CLI, check out our troubleshooting guide or reach out to the community.

View Full DocumentationGitHub Issues