Ignite UI CLI
raw JSON →The `igniteui-cli` is a robust command-line interface tool engineered to accelerate the development of applications utilizing Ignite UI components. It empowers developers to rapidly scaffold new projects across popular frameworks such as Angular, React, and jQuery, and efficiently integrate individual components or complex scenario-based templates like dashboards into existing applications. The current stable version, 15.0.0, marks a significant major release, modernizing all Angular templates, embedding AI agent configurations into scaffolded projects, and introducing the Ignite UI CLI Model Context Protocol (MCP) Server to provide AI assistants with documentation, API reference lookup, and scaffolding capabilities. This version also deprecates and removes legacy wrapper-based project types, steering developers toward modern practices. The CLI undergoes frequent updates, particularly with major versions bringing substantial feature enhancements and breaking changes, distinguishing itself through comprehensive multi-framework support and a guided development experience.
Common errors
error command not found: ig ↓
npm install -g igniteui-cli to install the CLI globally. If the issue persists, ensure your npm global bin directory is in your system's PATH. error Error: Port X is already in use ↓
ig start command to learn how to specify a different port (e.g., ig start --port 4201). error Error: Project type 'legacy-wrapper' is no longer supported. Please choose a modern project template. ↓
igx-ts for Angular or igr-ts for React. Refer to the latest documentation for available project types. Warnings
breaking Version 15.0.0 has removed support for legacy wrapper-based project types. Existing projects using these types must be migrated or recreated using modern templates. ↓
gotcha When using `ig new`, if `--framework`, `--type`, or `--theme` are not specified, the CLI will default to a jQuery framework and the first available project type/theme. This can lead to an unexpected project setup if not explicitly defined. ↓
gotcha The `ig start` command attempts to open the scaffolded project in the default browser using a predefined port. If this port is already in use by another application, the project may not launch automatically or could fail to start. ↓
Install
npm install igniteui-cli yarn add igniteui-cli pnpm add igniteui-cli Imports
- igniteui-cli (Global Tool) wrong
import { igniteui } from 'igniteui-cli'; const igniteui = require('igniteui-cli');correctnpm install -g igniteui-cli # Then use 'ig' or 'igniteui' commands - ig new (Scaffold Project) wrong
newProject("MyAngularApp", ...); igniteui create "MyAngularApp"correctig new "MyAngularApp" --framework=angular --type=igx-ts --template=side-nav - ig add (Add Component) wrong
addComponent('grid'); igniteui addComponent gridcorrectig add grid --name=MyDataGrid
Quickstart
npm install -g igniteui-cli
# Start an interactive guided experience
ig
# Or create a new Ignite UI for Angular project directly
ig new "MyDashboardApp" --framework=angular --type=igx-ts --template=dashboard
# Navigate into the new project directory
cd MyDashboardApp
# Add a new grid component to the project
ig add grid --name=EmployeesGrid
# Build and run the application
ig start