OpenStack では、コマンドは OpenStack コンポーネントに対応します。たとえば、nova コマンドは計算操作に、cinder はストレージに、neutron はネットワークにそれぞれ適用されます。
これらのコマンドの使用に関するヘルプ (正しい構文、サポートされるサブコマンド、可能なオプションなど) を取得するには、command-component help コマンド (nova help や neutron help など) を使用します。grep コマンドを使用して、command-component コマンドとともに使用する可能なサブコマンドのリストをフィルタできます。たとえば、ルーターに関連した neutron サブコマンドを一覧表示するには、次のコマンドを入力します。
# neutron help | grep router l3-agent-list-hosting-router List L3 agents hosting a router. l3-agent-router-add Add a router to a L3 agent. l3-agent-router-remove Remove a router from a L3 agent. net-gateway-connect Add an internal network interface to a router. router-create Create a router for a given tenant. router-delete Delete a given router. router-gateway-clear Remove an external network gateway from a router. router-gateway-set Set the external network gateway for a router. router-interface-add Add an internal network interface to a router. router-interface-delete Remove an internal network interface from a router. router-list List routers that belong to a given tenant. router-list-on-l3-agent List the routers on a L3 agent. router-port-list List ports that belong to a given tenant, with specified router. router-show Show information of a given router. router-update Update router's information.
次に、あるサブコマンド (クラウド内のルーターを識別する router-list など) に関する具体的な詳細を取得するには、次のコマンドを入力します。
# neutron help router-list