Skip to content
Alexander M edited this page Jan 9, 2018 · 17 revisions

ig new

Overview

ig new [name] creates a new Ignite UI application.

Using the new command, you can create a new jQuery, Angular or React application. The application will be configured to use either Ignite UI for JavaScript or Ignite UI for Angular controls. The new application is created in a directory of the same name. Keep in mind that creating a new application inside an existing application is not supported.

Arguments

name

name (alias: -n)

The name of the application. The application is created inside a directory with the same name.

framework

--framework (alias: -f) default value: "jquery"

Framework to setup project for. The supported frameworks are jQuery, Angular and React.

type

--type (alias: -t)

The available project types depend on the selected framework. Currently, when creating an Angular project, you can select between `ig-ts` and `igx-ts` types (the latter for applications that are configured to use Ignite UI for Angular). jQuery and React projects support a single type only - `js` for jQuery and `es6` for React. As those are default project types, you do not need to provide `--type` argument when creating jQuery or React projects.

theme

--theme (alias: -th)

Project theme (depends on project type).

Creating Ignite UI for JavaScript applications

To create an application that is configured to use the Ignite UI for Angular controls, you need to provide the desired framework you want to work with as an argument. Following are examples of how to use the new command to create an Ignite UI for JavaScript applications in all supported frameworks:
In jQuery: ig new newIgniteUIjQuery (jQuery is the default choice so you do not need to provide the "framework" argument)
In React: ig new newIgniteUIReact --framework=react
In Angular: ig new newIgniteUIAngular --framework=angular --type=ig-ts

Creating Ignite UI for Angular applications

To create an application that is configured to use the Ignite UI for Angular controls, you need to provide "igx-ts" as your project type argument.
Example: ig new newIgniteUIAngular --framework=angular --type=igx-ts