title: How to trigger a Mule job from CLI (Command Line Interface)?
body: <p>I have the below flow that will make a REST request on a periodic basis and then store the data into the PostgreSQL database.</p>
  
  <pre><code>&lt;jdbc:postgresql-data-source name="PostgreSQL_Data_Source" user="postgres" password="*******" url="jdbc:postgresql://localhost:5432/TestDB" transactionIsolation="UNSPECIFIED" doc:name="PostgreSQL Data Source"/&gt;
  &lt;jdbc:connector name="PostgreSQL_JDBC_Connector" dataSource-ref="PostgreSQL_Data_Source" validateConnections="true" queryTimeout="-1" pollingFrequency="0" doc:name="Database"&gt;
      &lt;jdbc:query key="InsertRecord" value="INSERT INTO "tblJSON"("StoreHere") VALUES (CAST(#[message.payload] AS json))"/&gt;
  &lt;/jdbc:connector&gt;
  
  &lt;flow name="RESTServiceScheduling" doc:name="RESTServiceScheduling"&gt;
  
       &lt;!-- Step 1: Generates events at a given interval of time --&gt;
       &lt;quartz:inbound-endpoint jobName="RESTServiceJobSchedule" repeatInterval="0" doc:name="Quartz" responseTimeout="10000" cronExpression="0 0 10 ? * *"&gt;
            &lt;quartz:event-generator-job/&gt;
       &lt;/quartz:inbound-endpoint&gt;
  
  
      &lt;!-- Step 2: This will read the REST service data --&gt;
      &lt;http:rest-service-component httpMethod="GET" serviceUrl="http://localhost:12186/RestServiceImpl.svc/StorageUsage" /&gt;
  
      &lt;!-- Step 3: Transform the HTTP-streamed payload into a java.lang.String  --&gt;   
      &lt;object-to-string-transformer doc:name="Object to String"/&gt;
  
      &lt;!-- Step 4: Dump into the destination Database --&gt; 
      &lt;jdbc:outbound-endpoint exchange-pattern="one-way" queryKey="InsertRecord" queryTimeout="-1" connector-ref="PostgreSQL_JDBC_Connector" doc:name="Destination"/&gt;
  
  &lt;/flow&gt;
  </code></pre>
  
  <p>This works fine but I need a way from CLI (Command Line Interface) to trigger the job. </p>
  
  <p>How can I do so?</p>
  
  <p>Thanks in advance</p>