|
|
Posted on 6/27/2018 10:36:25 AM
|
|
|
|

_ _ (_) ___ _ __ (_) ___ | |/ _ \| '_ \| |/ __| | | (_) | | | | | (__ |_|\___/|_| |_|_|\___| CLI 3.20.0
Usage:
$ ionic <command> [<args>] [--help] [--verbose] [--quiet] [--no-interactive] [--confirm] [options]
Global Commands:
config <subcommand> ...... Manage CLI and project config values (subcommands: get, set) docs ..................... Open the Ionic documentation website info ..................... Print system/environment info login .................... Login with your Ionic ID signup ................... Create an Ionic account ssh <subcommand> ......... Commands for configuring SSH keys (subcommands: add, delete, generate, list, setup, use) start .................... Create a new project telemetry ................ (deprecated) Opt in and out of telemetry
Project Commands:
build .................... Build web assets and prepare your app for any platform targets cordova <subcommand> ..... Cordova functionality (subcommands: build, compile, emulate, platform, plugin, prepare, requirements, resources, run) doctor <subcommand> ...... Commands for checking the health of your Ionic project (subcommands: check, ignore, list) generate ................. Generate pipes, components, pages, directives, providers, and tabs (ionic-angular >= 3.0.0) (alias: g) git <subcommand> ......... Commands relating to git (subcommands: remote) integrations <subcommand> Add or disable various integrations in your app (subcommands: disable, enable) link ..................... Connect your local app to Ionic monitoring <subcommand> .. Commands relating to Ionic Pro error monitoring (subcommands: syncmaps) serve .................... Start a local dev server for app dev/testing
Official website introduction:https://ionicframework.com/docs/cli/commands.html
Create a project
ionic start myApp blank Create a blank app project ionic start myApp tabs to create a project with tabs ionic start myApp sidemenu to create an item with a slide
Use Cordova
ionic cordova --help See help ionic cordova platform add ios Add iOS platform ionic cordova platform add android
For more information:https://cordova.apache.org/docs/en/latest/guide/cli/index.html
ionic generate
ionic g page [name] Add page ionic g component [name] to create a component
More examples include:
$ ionic generate
$ ionic generate component
$ ionic generate directive
$ ionic generate page
$ ionic generate pipe
$ ionic generate provider
$ ionic generate tabs
$ ionic generate component foo
$ ionic generate page Login
$ ionic generate page Detail --no-module
$ ionic generate page About --constants
$ ionic generate pipe MyFilterPipe
|
Previous:Understand the relationship between Ionic, Angular, Cordova, and pluginsNext:ionic modifies the android package name and ios appId
|