All apps/Ionic CLI

Ionic CLI

ionic

The Ionic command-line interface for developing Ionic apps.

Runs as ionic|macOS, Linux, Windows|ionicframework.com

Command form

ai-draft · 4 tasks · 23 fields

Create, serve and build Ionic projects. Capacitor, Cordova, Appflow and account commands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui ionic

ionic start

Create a new project

Scaffold a new Ionic project from a starter template.

Create a new projectExample values, fixed in this page — nothing here reaches a terminal
Basic
Project name*
string
Starter template*
string
Project type
string
Include Capacitor
--capacitor
TasksEach one presets the form for one job
Start a project
nametemplatetypecapacitor
ParametersOnly these flags are editable in the form
Project name
The name of your new project, for example myApp.
string · positional 0
Starter template
Starter template such as blank or tabs.
string · positional 1
blanktabssidemenu
Project type
Framework to start with.
string
--typeangularreactvue
Include Capacitor
Include Capacitor integration.
boolean
--capacitor
Include Cordova
Include Cordova integration.
boolean
--cordova
Skip dependency install
Do not install npm/yarn dependencies.
boolean
--no-deps
Skip git init
Do not initialize a git repo.
boolean
--no-git
Package ID
Bundle ID / application ID in reverse-DNS notation.
string
--package-id
List templates
List available starter templates.
boolean
--list-l

ionic serve

Run the dev server

Start a local dev server for app development and testing.

Run the dev serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Port
integer
Do not open browser
--no-open
TasksEach one presets the form for one job
Serve the app
portno_open
Serve with Ionic Lab
labport
ParametersOnly these flags are editable in the form
Port
Port for the dev server.
integer
--port-p
Host
Host for the dev server.
string
--host
Listen on all interfaces
Host the dev server on all network interfaces.
boolean
--external
Ionic Lab
Test on multiple platform types in the browser.
boolean
--lab-l
Do not open browser
Do not open a browser window.
boolean
--no-open
No live reload
Just serve files without live reload.
boolean
--no-livereload
HTTPS
Use HTTPS for the dev server.
boolean
--ssl
Production configuration
Use the production configuration.
boolean
--prod
Print console logs
Print app console logs to the terminal.
boolean
--consolelogs

ionic build

Build web assets

Build web assets and prepare the app for platform targets.

Build web assetsExample values, fixed in this page — nothing here reaches a terminal
Basic
Production configuration*
--prod
TasksEach one presets the form for one job
Production build
prod
ParametersOnly these flags are editable in the form
Production configuration
Use the production configuration.
boolean
--prod
Watch
Rebuild when files change.
boolean
--watch
Source maps
Output source maps.
boolean
--source-map
Engine
Target engine.
string
--enginebrowsercordova
Platform
Target platform on the chosen engine.
string
--platformiosandroid
SourcesEvery flag above is checked against these
src
completion

github.com

src
completion

github.com

src
completion

github.com

src
completion

github.com

Before it fills your prompt, Otty checks the installed ionic against its version. A form that does not match your version is not offered.