Skip to content

emulsify-ds/emulsify-cli

Emulsify Design System npm

Emulsify CLI

Command line interface for creating Emulsify projects, installing component systems, installing system components, and generating local components.

Requirements

Emulsify CLI requires Node.js 24 or newer.

Installation

Install Emulsify CLI globally from npm:

npm install -g @emulsify/cli

Run the current command help at any time:

emulsify --help

Quick Start

Create a Drupal starter project, install a system, and add components:

emulsify init "My Theme" ./web/themes/custom --platform drupal
cd ./web/themes/custom/my_theme
emulsify system list
emulsify system install compound
emulsify component list
emulsify component install card
emulsify component create promo-card --directory molecules --format default

For non-interactive environments, pass the flags that normally prompt for input:

emulsify init "My Theme" ./web/themes/custom --platform drupal --yes
emulsify component create promo-card --directory molecules --format default --yes

Documentation

Detailed documentation lives in docs.

Topic Use This When
CLI Reference Looking up commands, aliases, options, and examples.
Project Initialization Creating a new Emulsify project from a starter.
Systems Listing, installing, or authoring component systems.
Components Listing, installing, dry-running, or creating components.
Project Configuration Understanding project.emulsify.json, variants, and structure mappings.
Component Template Overrides Customizing files generated by emulsify component create.
Hooks And Cache Understanding starter hooks, system hooks, and local repository cache behavior.
Development Setting up this repository and running local checks.
Release Understanding CI, semantic-release, and npm publishing.

Command Overview

Command Alias Description
emulsify init [name] [path] Initializes an Emulsify project from a starter.
emulsify system list emulsify system ls Lists built-in systems available for installation.
emulsify system install [name] Installs a system in the current Emulsify project.
emulsify component list emulsify component ls Lists components available from the installed system and variant.
emulsify component install [name] emulsify component i [name] Installs one component from the installed system and variant.
emulsify component create [name] emulsify component c [name] Creates a local component in the current Emulsify project.

Contributors

See Contributors.

About

Command line interface for Emulsify

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors