hrs-nkym
6/16/2018 - 9:25 AM

gistfile1.md


title: awsmobileコマンド一覧 tags: AWS aws-cli awsmobile-cli mobilehub author: hrs-nkym slide: false


###awsmobileコマンド一覧 version 1.1.2 2018/06/16 公式サイト https://docs.aws.amazon.com/ja_jp/aws-mobile/latest/developerguide/aws-mobile-cli-reference.html


#####サポートされている機能

No.機能
1user-signin (Cognito)
2user-files (AWS S3)
3cloud-api (CloudLogic)
4database (Dynamo DB)
5analytics (Pinpoint)
6hosting (S3 and CloudFront Distribution)

$ awsmobile start スタート用のテンプレートを使用してawsmobilejsプロジェクトを開始し、クラウド上にバックエンドのモバイルハブ プロジェクトを自動で設定・配置し、aws-exports.jsファイルを取得します。

$ awsmobile init 現在のプロジェクトをawsmobilejsの機能で初期化し、バックエンドのモバイルハブ プロジェクトを設定し、aws-exports.jsファイルを取得します。

$ awsmobile configure [aws | project] awsmobile-cli用のawsアクセスクレデンシャルとawsリージョンを設定します。

$ awsmobile configure project awsmobile-cliのプロジェクトの属性を設定します。

$ awsmobile pull aws-exports.js等のバックエンド モバイルハブ プロジェクトの最新の詳細を取得します。

$ awsmobile push 最新のローカル開発の情報でバックエンド モバイルハブ プロジェクトを更新します。

$ awsmobile run awsmobile pushを実行し、プロジェクトのstartコマンドを実行してクライアント側アプリケーションをテストします。

$ awsmobile console バックエンド モバイルハブ プロジェクトのAWS Webコンソールをブラウザで開きます。

$ awsmobile features 現状の機能の表示、および利用可能なモバイルハブ プロジェクトの機能を表示し、それらを有効/無効にすることができます。

$ awsmobile <feature> enable 選択した機能を有効にします。

$ awsmobile <feature> disable 選択した機能を無効にします。

$ awsmobile <feature> configure 機能の定義の詳細を構成します。

$ awsmobile cloud-api invoke <apiname> <method> <path> [init] ローカルでテストするためにAPIを呼び出します。これにより、ローカル環境で未署名のAPIをすばやくテストできます。

$ awsmobile delete モバイルハブプロジェクトを削除します。クラウド上のプロジェクトごと一式削除されます。

$ awsmobile help [cmd] [cmd]のヘルプを表示します。