The Ionic command-line interface (
The Ionic CLI can be installed globally with npm:
$ npm install -g ionic
The Ionic CLI ships with command documentation that is accessible with the
$ ionic <command> --help
The Ionic CLI is built with
To troubleshoot issues with the Ionic CLI, the following may be useful:
- Make sure the latest version of the Ionic CLI is installed. Update with
npm install -g [email protected].
- Make sure the latest Node LTS is installed. See
Node & npmenvironment setup.
--verboseflag prints debugging messages, which may narrow down the issue.
- Connection issues may be due to improperly configured proxy settings. See
Using a Proxyto configure request proxying.
- The global Ionic CLI configuration directory is
~/.ionicon all platforms. It can safely be deleted and the Ionic CLI will repopulate it, but all configuration (including user sessions) will be lost. Configure this directory with
CLI environment variables.