Monaca CLI is one of the local deveopment environments which can be used to develop Monaca apps locally. Monaca CLI provides command line interface for using Monaca Cloud from your local PC. With Monaca CLI, you can:
You are required to have Node.js installed on your PC in order to install Monaca CLI.
Use the following command to install Monaca CLI:
$ npm install -g monaca
On some systems you may have to prefix the command with
of permission issue:
$ sudo npm install -g monaca
monacacommand. Moreover, if you want to update Monaca CLI, just re-install it using the above command.
After successfully installed Monaca CLI, please follow our simple and easy tutorial on how to use Monaca CLI.
Currently, it is available for the Vue, React and Angular2 templates. It can be triggered in two ways:
monaca transpile: runs the transpiler on the current project. If the
--watchargument is given, the transpiler will automatically run every time the source code is updated (and saved).
monaca preview: runs the transpiler in watch mode and starts an HTTP Server in order to display the app’s content.
There are cases where you want ignore/exclude specific files and folders
from uploading to Monaca Cloud. In this case, the
will be automatically created and placed under the root directory of the
React Native projects. You can edit the file to add or remove specific
files and folders.
.monacaignoreis using the same pattern as
Here is the default settings within the
node_modules .git .monaca/* !.monaca/project_info.json android/build ios/build build .DS_Store