Ignite UI CLI for React
The Ignite UI CLI (igniteui-cli) is a standalone global command-line tool for creating and scaffolding React applications with Ignite UI for React. It provides project templates pre-configured for Ignite UI for React, a guided step-by-step wizard for first-time setup, non-interactive new and add commands for scripted workflows, a development server, and a built-in MCP server for connecting AI coding assistants to live Ignite UI for React documentation.
The Ignite UI CLI does not replace the build tooling for your framework - projects it creates are standard React applications that remain fully compatible with their native build commands and configuration after scaffolding.
The Ignite UI CLI does not replace Vite or other React tooling - projects created with the CLI are standard Vite-based React applications and remain fully compatible with npm scripts and Vite commands after scaffolding.
Install the Ignite UI CLI
Install the Ignite UI CLI globally using npm:
npm install -g igniteui-cli
Or, using yarn:
yarn global add igniteui-cli
Verify the installation:
ig version
Create a New Project
The Ignite UI CLI provides two modes for project creation: a guided interactive wizard and a direct command with arguments.
Use the guided wizard
The guided wizard is the recommended starting point for new projects. It prompts you to choose a framework, project type, template, and theme, then scaffolds and commits the project automatically.
To activate the wizard, run:
ig
or:
ig new
For a step-by-step walkthrough of the wizard options, see Step-by-Step Guide Using Ignite UI CLI.
Create a project directly
To create a React project non-interactively, provide react as the framework and igr-ts as the project type:
ig new <project-name> --framework=react --type=igr-ts --template=top-nav
The following project templates are available for React:
| Template ID | Description |
|---|---|
| empty | Minimal project structure with no predefined views |
| base | Project structure with a home page |
| top-nav | Project structure with a top navigation bar |
The following arguments are available when creating a project:
| Argument | Alias | Description |
|---|---|---|
name |
-n |
The name of the application. The application is created inside a directory with the same name. |
--framework |
-f |
The framework for the generated project. Default: jquery. Supported: jquery, angular, react, webcomponents. |
--type |
-t |
The project type for the selected framework. Use igr-ts for React or igc-ts for Web Components. |
--template |
The project template to use. See the template tables above for available options per framework. | |
--skip-git |
--sg |
Skips automatic Git repository initialization. Uses the global skip-git config value if omitted. |
--skip-install |
--si |
Skips npm package installation on project creation. |
--assistants |
Configures MCP servers for the specified AI coding assistants. Values: generic, vscode, cursor, gemini, junie, none. |
|
--agents |
Copies Agent Skill files into the specified agents' skill directories. Values: generic, claude, copilot, cursor, codex, windsurf, gemini, junie, none. |
AI Configuration During Project Creation
When --agents and --assistants flags are not provided, ig new prompts you to configure AI tooling as part of the project creation flow. After scaffolding the project, the wizard displays the following prompts:
? Which AI coding assistants do you want to configure MCP servers for? (Press <space> to select)
❯◉ VS Code (GitHub Copilot)
◉ Cursor
◯ Generic (.mcp.json)
◯ Gemini CLI
◯ JetBrains (AI Assistant)
◯ None
? Which AI agents should receive skill files? (Press <space> to select)
❯◉ GitHub Copilot (.agents/skills/)
◉ Claude (.claude/skills/)
◉ Cursor (.cursor/rules/)
◯ Codex (.codex/)
◯ Windsurf (.windsurfrules)
◯ Gemini CLI (.gemini/)
◯ JetBrains Junie (.junie/guidelines/)
◯ None
Navigate through the options using the arrow keys, toggle selections with SPACE, and confirm with ENTER.
To skip the AI configuration prompts entirely during project creation, pass --assistants none --agents none:
ig new my-app --framework=react --type=igr-ts --template=top-nav --assistants none --agents none
To auto-configure AI tools without prompting, specify the desired values:
ig new my-app --framework=react --type=igr-ts --template=top-nav --assistants vscode --agents copilot claude
Add a Component Template
Once you have created a project, you can add additional component views at any point. Running ig add without arguments launches an interactive template browser:
ig add
To add a specific component template directly, provide the template ID and a name for the new component:
ig add [component-template] [component-name]
For example, to add a data grid component named MyGrid:
ig add grid MyGrid
To list all available templates in the current project:
ig list
For a guided walkthrough of the component addition wizard, see Step-by-Step Guide Using Ignite UI CLI.
Note
Your routing file will be updated with the path to the newly generated page. For example, a component named MyGrid will be navigable at /my-grid.
To see all component templates available for the current project, run ig list. The list is project-aware and reflects the selected framework and type.
Run the Application
The start command builds the application, starts a local web server, and opens it in your default browser:
ig start
Using Vite
The React application generated by Ignite UI CLI uses Vite as the build tool and supports fast development builds and hot module replacement (HMR). To start the Vite development server directly without the CLI wrapper:
npm run dev
The Vite dev server starts on http://localhost:5173 by default. Use ig start when you want the CLI to handle building and launching in a single command.
AI Assistant Integration (MCP)
The Ignite UI CLI includes a built-in MCP (Model Context Protocol) server that connects AI coding assistants - GitHub Copilot, Claude, Cursor, and others - directly to Ignite UI for React component documentation and API references. Once configured, your AI assistant can scaffold projects, add and modify components, search docs, look up API details, and generate accurate Ignite UI for React code without leaving your editor.
The CLI MCP server starts via npx without requiring a global install:
npx -y igniteui-cli mcp
Or, if you have Ignite UI CLI installed globally:
ig mcp
Quick Setup with ig ai-config
The ai-config command configures MCP servers, copies framework-specific skill files into each agent's skills directory, and sets up instruction files - all in a single step. Run it from your project root:
npx igniteui-cli ai-config
If you have the CLI installed globally:
ig ai-config
Note
Without a version pin, npx may pull an older CLI version that does not recognize the ai-config subcommand and will instead launch an interactive project-creation prompt, scaffolding a new project inside your existing one. Make sure that you have installed CLI version 16.x.
Interactive Mode
If no parameters are provided, the command enters interactive mode. You are first prompted to select which AI coding assistants should receive MCP server configuration:
? Which AI coding assistants do you want to configure MCP servers for? (Press <space> to select)
❯◉ VS Code (GitHub Copilot) - writes .vscode/mcp.json
◉ Cursor - writes .cursor/mcp.json
◯ Generic (.mcp.json) - writes .mcp.json
◯ Gemini CLI - writes .gemini/settings.json
◯ JetBrains (AI Assistant) - writes .junie/mcp.json
◯ None
Next, you are prompted to select which AI agents should receive skill files:
? Which AI agents should receive skill files? (Press <space> to select)
❯◉ GitHub Copilot (.agents/skills/) - copies skills to .agents/skills/
◉ Claude (.claude/skills/) - copies skills to .claude/skills/
◉ Cursor (.cursor/rules/) - copies skills to .cursor/rules/
◯ Codex (.codex/) - copies skills to .codex/
◯ Windsurf (.windsurfrules) - copies skills to .windsurfrules/
◯ Gemini CLI (.gemini/) - copies skills to .gemini/
◯ JetBrains Junie (.junie/) - copies skills to .junie/guidelines/
◯ None
Navigate through the options using the arrow keys, toggle selections with SPACE, and confirm with ENTER.
Non-Interactive Mode
Use --assistants to choose which coding assistants receive MCP config and --agents to choose which agents receive skill files:
ig ai-config --assistants vscode --agents copilot
Target multiple assistants and agents in a single run:
ig ai-config --assistants generic vscode --agents claude copilot cursor
| Flag | Values | Default |
|---|---|---|
--assistants |
generic, vscode, cursor, gemini, junie, none |
Prompted interactively |
--agents |
generic, claude, copilot, cursor, codex, windsurf, gemini, junie, none |
Prompted interactively |
Start the Servers
After the command finishes, start the MCP servers in your AI client. The servers are configured but not yet running - the client needs to launch each server before its tools are available to the agent.
VS Code with GitHub Copilot: Open .vscode/mcp.json. VS Code displays an inline Start button above each server entry. Click Start for both igniteui and igniteui-theming. Once started, VS Code shows the available tool count next to each server (for example, "13 tools | 1 prompt"). Alternatively, run MCP: List Servers from the Command Palette (Ctrl+Shift+P / Cmd+Shift+P), select each server, and choose Start.
For full setup instructions across all AI clients and Agent Skills wiring, see Agent Skills and Ignite UI CLI MCP.
Configure your AI client to use the CLI MCP server manually. Most teams connect both the CLI MCP and the Theming MCP together - CLI MCP handles project and component workflows while Theming MCP handles palettes, themes, and design tokens.
VS Code - create or edit .vscode/mcp.json in your project root:
{
"servers": {
"igniteui-cli": {
"command": "npx",
"args": ["-y", "igniteui-cli", "mcp"]
},
"igniteui-theming": {
"command": "npx",
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
}
}
}
Cursor, Claude Desktop, Claude Code, JetBrains, and other MCP clients:
{
"mcpServers": {
"igniteui-cli": {
"command": "npx",
"args": ["-y", "igniteui-cli", "mcp"]
},
"igniteui-theming": {
"command": "npx",
"args": ["-y", "igniteui-theming", "igniteui-theming-mcp"]
}
}
}
For per-client setup guides (VS Code, GitHub, Cursor, Claude Desktop, Claude Code, JetBrains) and a full description of available tools, see Ignite UI CLI MCP. For an end-to-end walkthrough using both MCP servers, see Build an App End-to-End with CLI MCP and Theming MCP.
Ignite UI CLI Commands
A full list of available Ignite UI CLI commands is maintained on the Ignite UI CLI wiki:
| Command | Alias | Description |
|---|---|---|
| ig start | Builds the application, starts a web server, and opens it in the default browser. | |
| ig build | Builds the application into an output directory. | |
| ig generate | g | Generates a new custom template for supported frameworks and project types. |
| ig help | -h | Lists available commands with brief descriptions. |
| ig config | Reads and writes Ignite UI CLI configuration settings. | |
| ig doc | Searches the Infragistics knowledge base for a given term. | |
| ig list | l | Lists available templates for the project's framework and type. When run inside a project folder, uses the project's framework and type regardless of provided arguments. |
| ig test | Executes the tests for the current project. | |
| ig upgrade-packages | Upgrades Ignite UI packages in the project from Trial to Licensed. | |
| ig mcp | Starts the built-in MCP server for connecting AI coding assistants to Ignite UI for React component documentation. | |
| ig ai-config | Configures MCP servers and copies Agent Skills into each agent's skills directory. Supports --assistants and --agents flags or interactive mode. |
|
| ig version | -v | Shows the Ignite UI CLI version installed locally, or globally if no local installation is found. |