LinuxCommandLibrary

ionic

CLI manages Ionic Framework projects

TLDR

Create new app

$ ionic start [myapp] [blank|tabs|sidemenu]
copy
Serve locally
$ ionic serve
copy
Build for production
$ ionic build --prod
copy
Add platform
$ ionic capacitor add [ios|android]
copy
Run on device
$ ionic capacitor run [ios|android]
copy
Generate component
$ ionic generate component [name]
copy

SYNOPSIS

ionic command [options]

DESCRIPTION

Ionic CLI manages Ionic Framework projects. It creates hybrid mobile apps using web technologies.
The tool integrates with Capacitor or Cordova for native functionality. It provides development server, build tools, and code generation.

PARAMETERS

start NAME TEMPLATE

Create new project.
serve
Start development server.
build
Build web assets.
capacitor COMMAND
Capacitor integration commands.
generate TYPE NAME
Generate components, pages, services.
--prod
Production build.
--help
Display help information.

CAVEATS

Requires Node.js. Native builds need platform SDKs. Framework updates may require migration.

HISTORY

Ionic was created by Drifty Co. in 2013 as a framework for building hybrid mobile applications with web technologies.

SEE ALSO

capacitor(1), cordova(1), npm(1), ng(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community