Search docs/

Ionic CLI

The Ionic command-line interface (CLI) は、Ionicアプリを開発する時に頼りになるツールです。


Ionic CLI はnpmでグローバルにインストールできます:

$ npm install -g @ionic/cli


Ionic CLIでは --help フラグをつけることでコマンドのドキュメントを利用できます。

$ ionic --help
$ ionic <command> --help
$ ionic <command> <subcommand> --help

Be sure to run ionic <command> --help in your project directory.

For some commands, such as ionic serve, the help documentation is contextual to the type of your project, e.g. React vs Angular.


Ionic CLI は、TypeScriptNode.jsで構築されています。Node 10.3+をサポートしていますが、最新のNode LTSが推奨です。Follow development on the open source Github repository.


Ionic CLIの問題をトラブルシューティングするには、以下の方法が役立ちます:

  • Make sure the latest version of the Ionic CLI is installed. Get the installed version by running ionic --version.
  • Make sure the latest Node LTS is installed. See Node & npm environment setup.
  • The --verbose flag prints debugging messages, which may narrow down the issue.
  • Connection issues may be due to improperly configured proxy settings. See Using a Proxy to configure request proxying.
  • The global Ionic CLI configuration directory is ~/.ionic on 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.