ionic init

Contents

Initialize existing projects with Ionic

ionic init <name> [options]

This command will initialize the current directory with an ionic.config.json file.

ionic init will prompt for a project name and then proceed to determine the type of your project. You can specify the name argument and --type option to provide these values via command-line.

Examples

ionic init ionic init "My App" ionic init "My App" --type=angular

Inputs

name

Description

The name of your project (e.g. myApp, "My App")

Options

--type =<type>

Description

Type of project (e.g. angular, ionic-angular, ionic1, custom)

--force

Description

Initialize even if a project already exists

Aliases -f

Advanced Options

--project-id =<slug>

Description

Specify a slug for your app