The Ionic command line interface (CLI) is your go-to tool for developing Ionic apps.
Forked from ionic-team/ionic-cli because the CLI looks
for Cordova's iOS build products in platforms/ios/build/emulator and
platforms/ios/build/device, which cordova-ios no longer writes to. The fix is submitted upstream
as ionic-team/ionic-cli#5079; it has been open
since 2024-02-16, so treat this fork as permanent until that merges and ships.
Published as @herdwatch/ionic-cli.
Changes from upstream, all on the stable branch:
- Derive the iOS build output path from the Xcode configuration
(
build/Debug-iphonesimulator,build/Release-iphoneos) instead of the removedemulator/devicedirectories.
npm install -g @ionic/cli
Detailed installation instructions can be found in the CLI documentation.
The Ionic CLI ships with command documentation, accessible in your terminal by using the --help flag. These docs are also available online.
- For a list of commands:
ionic --help
ionic cordova --help
ionic capacitor --help
- For command usage and a list of options:
ionic start --help
ionic serve --help
ionic cordova run --help
📖 Documentation: https://ionicframework.com/docs/cli
📣 Support/Questions? Please see our Support Page for general support questions. The issues on GitHub should be reserved for bug reports and feature requests.
💖 Want to contribute? Please see CONTRIBUTING.md.