「Monaca/コマンド」の版間の差分
提供: 初心者エンジニアの簡易メモ
(ページの作成:「=CLIでの操作= ==セットアップとログインとインポート== npm i -g monaca monaca login monaca import」) |
(→CLIでの操作) |
||
| 行1: | 行1: | ||
=CLIでの操作= | =CLIでの操作= | ||
| + | |||
| + | ==公式マニュアル== | ||
| + | https://docs.monaca.io/ja/products_guide/monaca_cli/cli_commands/ | ||
==セットアップとログインとインポート== | ==セットアップとログインとインポート== | ||
| 行5: | 行8: | ||
monaca login | monaca login | ||
monaca import | monaca import | ||
| + | |||
| + | ==プレビュー== | ||
| + | monaca preview | ||
| + | |||
| + | 以下エラーが出たらupdateする | ||
| + | Project preview failed: Your project was created using Monaca CLI 2.x so you need to update your project ('monaca update') or downgrading your Monaca CLI version to 2.x. | ||
| + | |||
| + | 以下URLとかでプラウザが起動する | ||
| + | http://localhost:8080/ | ||
| + | |||
| + | ==monaca本体のupdate== | ||
| + | monaca update | ||
| + | monaca version | ||
| + | 3.3.2 | ||
| + | |||
| + | > monaca preview => Run app in the browser | ||
| + | > monaca debug => Run app in the device using Monaca Debugger | ||
| + | > monaca remote build => Start remote build for iOS/Android/Windows | ||
| + | > monaca upload => Upload this project to Monaca Cloud IDE | ||
| + | |||
| + | monaca update | ||
2020年5月20日 (水) 17:39時点における版
CLIでの操作
公式マニュアル
https://docs.monaca.io/ja/products_guide/monaca_cli/cli_commands/
セットアップとログインとインポート
npm i -g monaca monaca login monaca import
プレビュー
monaca preview
以下エラーが出たらupdateする Project preview failed: Your project was created using Monaca CLI 2.x so you need to update your project ('monaca update') or downgrading your Monaca CLI version to 2.x.
以下URLとかでプラウザが起動する
http://localhost:8080/
monaca本体のupdate
monaca update monaca version 3.3.2
> monaca preview => Run app in the browser > monaca debug => Run app in the device using Monaca Debugger > monaca remote build => Start remote build for iOS/Android/Windows > monaca upload => Upload this project to Monaca Cloud IDE
monaca update
