---
schema_version: "1"
id: b8246da26db402f99e65154216b04447aa0a3eeb6614f8a5ac46204f679bc2a9
title: ハイブリッドアプリケーションの CLI
collection: mulesoft
version: current
locale: ja-jp
portal_url: https://docs.salesforce.com/mulesoft/current/ja-jp/anypoint-cli/3.x/standalone-apps.md
canonical_url: https://docs.mulesoft.com/jp/anypoint-cli/3.x/standalone-apps
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 07b07545f6d71c04b8f7417836ef04dabb80ded80b93bcb1bef58db8a4a96b35
description: MuleSoft Documentation Site
release: 3.x
latest: false
---
# ハイブリッドアプリケーションの CLI

ローカル Mule サーバーにデプロイされていて Runtime Manager で管理されるアプリケーションには次のコマンドを使用します。

Anypoint Platform CLI で対象サーバーを認識できるように、手動で各サーバーをプラットフォームに登録する必要があります。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 35%;">
<col style="width: 65%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">コマンド</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-artifact">runtime-mgr standalone-application artifact</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションアーティファクトバイナリをダウンロードする</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-deploy">runtime-mgr standalone-application deploy</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>オンプレミスサーバー、サーバーグループ、クラスターにアプリケーションをデプロイまたは再デプロイする</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-describe-json">runtime-mgr standalone-application describe-json</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションの未加工の JSON 応答を表示する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-modify">runtime-mgr standalone-application modify</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションアーティファクトを変更する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-start">runtime-mgr standalone-application start</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションを開始する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-delete">runtime-mgr standalone-application delete</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションを削除する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-describe">runtime-mgr standalone-application describe</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションの詳細情報を表示する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-list">runtime-mgr standalone-application list</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>環境内のすべてのスタンドアロンアプリケーションをリストする</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-restart">runtime-mgr standalone-application restart</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションを再起動する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-stop">runtime-mgr standalone-application stop</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションを停止する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><a href="#runtime-mgr-standalone-application-copy">runtime-mgr standalone-application copy</a></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>スタンドアロンアプリケーションをコピーする</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#runtime-mgr-standalone-application-artifact)runtime-mgr standalone-application artifact

\> runtime-mgr standalone-application artifact \[options\] <identifier> <directory>

このコマンドは、​`identifier`​ アプリケーションのアプリケーションアーティファクトを ​`directory`​ で渡されるディレクトリにダウンロードします。 `identifier`​ パラメーターは、アプリケーション ID または名前のいずれかになります。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-deploy)runtime-mgr standalone-application deploy

\> runtime-mgr standalone-application deploy \[options\] <targetIdentifier> <name> <zipfile>

このコマンドは、パス ​`zipfile`​ の ZIP ファイルとして渡されるアプリケーションを ​`targetIdentifier`​ で渡されるオンプレミスの対象にデプロイまたは再デプロイします。

`targetIdentifier`​ パラメーターは、対象 ID または名前のいずれかになります。

対象は、サーバー、サーバーグループ、クラスターのいずれかになります。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

アプリケーションを再デプロイしてログレベルを設定したり、インサイトイベント追跡を有効にしたりするには、「​[runtime-mgr standalone-application modify](#runtime-mgr-standalone-application-modify)​」を参照してください。

## [](#runtime-mgr-standalone-application-describe-json)runtime-mgr standalone-application describe-json

\> runtime-mgr standalone-application describe-json \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションの情報を未加工の JSON 応答として表示します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-modify)runtime-mgr standalone-application modify

\> runtime-mgr standalone-application modify \[options\] <identifier> <zipfile>

このコマンドでは、パスとして ​`zipfile`​ で渡される ZIP ファイルアプリケーションを使用して、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを変更します。

`identifier`​ パラメーターでは、アプリケーション識別子を指定します。 識別子を取得するには、「​[runtime-mgr standalone-application list](https://docs.mulesoft.com/jp/anypoint-cli/latest/standalone-apps#runtime-mgr-standalone-application-list)​」を参照してください。

このコマンドでは、デフォルトの ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ オプション以外に次のオプションも使用できます。

<table class="tableblock frame-all grid-all stretch">
<colgroup>
<col style="width: 37.5%;">
<col style="width: 62.5%;">
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">オプション</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>--insight</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>各 Mule トランザクションのメッセージメタデータを保存する。</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><p class="tableblock"><code>--log [level:scope]</code></p></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>ログレベルとスコープのペアを設定する。</p>
</div>
<div class="ulist">
<ul>
<li>
<p><code>level</code>​: TRACE、DEBUG、INFO、WARN、ERROR、FATAL、OFF</p>
</li>
<li>
<p><code>scope</code>​: 記録するクラス、コネクタ、モジュールのパッケージ名 (FTP 用 Anypoint Connector の ​<code>org.mule.extension.ftp</code>​ など)</p>
</li>
</ul>
</div>
<div class="paragraph">
<p>複数のログレベルを設定するには、​<code>--log INFO:org.apache --log WARN:org.mule</code>​ のように複数の ​<code>--log</code>​ オプションを指定します。</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#runtime-mgr-standalone-application-start)runtime-mgr standalone-application start

\> runtime-mgr standalone-application start \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを開始します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-delete)runtime-mgr standalone-application delete

\> runtime-mgr standalone-application delete \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを削除します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

<table><tbody><tr><td class="icon"><i class="fa icon-warning" title="Warning"></i></td><td class="content">このコマンドは、削除する前に 2 回入力を促しません。削除命令を送信する場合、確認を求められることはありません。</td></tr></tbody></table>

## [](#runtime-mgr-standalone-application-describe)runtime-mgr standalone-application describe

\> runtime-mgr standalone-application describe \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションの状況、作成日、最終更新日などの詳細情報を表示します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-list)runtime-mgr standalone-application list

\> runtime-mgr standalone-application list \[options\]

このコマンドでは、すべてのスタンドアロン (オンプレミス) アプリケーションをリストします。

このコマンドでは、デフォルトの ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ オプション以外に次のオプションも使用できます。

<table class="tableblock frame-all grid-all fit-content spread">
<colgroup>
<col>
<col>
</colgroup>
<thead>
<tr>
<th class="tableblock halign-left valign-top">オプション</th>
<th class="tableblock halign-left valign-top">説明</th>
</tr>
</thead>
<tbody>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>--limit &lt;num&gt;</code></p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>取得する結果の数を指定する</p>
</div></div></td>
</tr>
<tr>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p><code>--offset &lt;num&gt;</code>​</p>
</div></div></td>
<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
<p>渡されるアプリケーションの数をオフセットする</p>
</div></div></td>
</tr>
</tbody>
</table>

## [](#runtime-mgr-standalone-application-restart)runtime-mgr standalone-application restart

\> runtime-mgr standalone-application restart \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを再起動します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-stop)runtime-mgr standalone-application stop

\> runtime-mgr standalone-application stop \[options\] <identifier>

このコマンドでは、​`identifier`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを停止します。

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。

## [](#runtime-mgr-standalone-application-copy)runtime-mgr standalone-application copy

\> runtime-mgr standalone-application copy \[options\] <source> <target> <targetIdentifier>

このコマンドでは、​`source`​ で渡されるスタンドアロン (オンプレミス) アプリケーションを ​`target`​ で渡される対象およびサーバー、サーバーグループ、クラスター ID (​`targetIdentifier`​ で渡される名前) にコピーします。

`source`​ と ​`destination`​ の引数はどちらも、次のように ​`<organizationName>:<environmentName>/<appName>`​ の形式を使用して表されます。

\> runtime-mgr standalone-application copy Services:QA/application-1 Development:QA/application-2 123456

`application-1`​ という名前のアプリケーションを​_サービス_​組織の QA 環境からサーバー ID 123456 の ​`_Development_`​ 組織の QA 環境にコピーします。

Anypoint Platform CLI でサービス組織の QA 環境を使用する場合、コマンドの ​`source`​ としてアプリケーション名を使用できます。

\> runtime-mgr standalone-application copy application-1 Development/QA/application-2 123456

<table><tbody><tr><td class="icon"><i class="fa icon-note" title="Note"></i></td><td class="content">このコマンドを実行するには、ユーザーに OS の ​<code>/tmp</code>​ ディレクトリ (CLI のインストール先) への参照/更新アクセス権が必要です。</td></tr></tbody></table>

このコマンドはデフォルトのオプション ​`--help`​、​`-f`​/​`--fields`​、​`-o`​/​`--output`​ のみを受け入れます。