<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Command Line Arguments Run Template in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Command-Line-Arguments-Run-Template/m-p/382877#M244728</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108303"&gt;@FrankHaha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am a little confused on your ask due to the terminology used.&lt;BR /&gt;&lt;BR /&gt;A NiFi template (deprecated and removed in NiFi 2.x) is a reusable NiFi dataflow snippet (collection of interconnected components and controller services in XML format).&amp;nbsp; Templates have been replaced by "flow definitions" (similar to templates but in json format). You can't execute a template or a flow definition.&amp;nbsp; You can deploy a template or flow definition to the canvas of an installed and running NiFi instance.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Anything you can do via the NiFi UI, you can also accomplish via &lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_self"&gt;NiFi rest-api&lt;/A&gt; calls.&amp;nbsp; The easiest way to learn what rest-api calls are needed and the format of each of those rest-api calls is through the use of yoru browsers built-in developer tools.&amp;nbsp; You can perform each action via the UI and "capture as curl" through the browser developers tools "network" tab the rest-api call that was made.&amp;nbsp; This includes importing a flow definition or template, modifying components imported, enabling, starting, stopping, etc)&amp;nbsp; You can put those calls into a script to perform those same commands later without using the UI.&lt;BR /&gt;&lt;BR /&gt;Another option might be through the use of the&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html#nifi_CLI" target="_self"&gt; NiFi CLI toolkit&lt;/A&gt;&amp;nbsp;which offers a variety of commands for doing similar functions as the rest-api calls.&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2024 14:02:18 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2024-01-30T14:02:18Z</dc:date>
    <item>
      <title>Command Line Arguments Run Template</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Command-Line-Arguments-Run-Template/m-p/382671#M244655</link>
      <description>&lt;P&gt;I created a template to convert data from querying Postgres database and then convert it into xml. I want to run it by using command line arguments. Are there any way to do this in NiFi?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 15:03:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Command-Line-Arguments-Run-Template/m-p/382671#M244655</guid>
      <dc:creator>FrankHaha</dc:creator>
      <dc:date>2024-01-24T15:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: Command Line Arguments Run Template</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Command-Line-Arguments-Run-Template/m-p/382877#M244728</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/108303"&gt;@FrankHaha&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am a little confused on your ask due to the terminology used.&lt;BR /&gt;&lt;BR /&gt;A NiFi template (deprecated and removed in NiFi 2.x) is a reusable NiFi dataflow snippet (collection of interconnected components and controller services in XML format).&amp;nbsp; Templates have been replaced by "flow definitions" (similar to templates but in json format). You can't execute a template or a flow definition.&amp;nbsp; You can deploy a template or flow definition to the canvas of an installed and running NiFi instance.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Anything you can do via the NiFi UI, you can also accomplish via &lt;A href="https://nifi.apache.org/docs/nifi-docs/rest-api/index.html" target="_self"&gt;NiFi rest-api&lt;/A&gt; calls.&amp;nbsp; The easiest way to learn what rest-api calls are needed and the format of each of those rest-api calls is through the use of yoru browsers built-in developer tools.&amp;nbsp; You can perform each action via the UI and "capture as curl" through the browser developers tools "network" tab the rest-api call that was made.&amp;nbsp; This includes importing a flow definition or template, modifying components imported, enabling, starting, stopping, etc)&amp;nbsp; You can put those calls into a script to perform those same commands later without using the UI.&lt;BR /&gt;&lt;BR /&gt;Another option might be through the use of the&lt;A href="https://nifi.apache.org/docs/nifi-docs/html/toolkit-guide.html#nifi_CLI" target="_self"&gt; NiFi CLI toolkit&lt;/A&gt;&amp;nbsp;which offers a variety of commands for doing similar functions as the rest-api calls.&lt;/P&gt;&lt;P&gt;If you found any of the suggestions/solutions provided helped you with your issue, please take a moment to login and click "&lt;SPAN&gt;&lt;EM&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Accept as Solution&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/EM&gt;" on one or more of them that helped.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you,&lt;BR /&gt;Matt&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2024 14:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Command-Line-Arguments-Run-Template/m-p/382877#M244728</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2024-01-30T14:02:18Z</dc:date>
    </item>
  </channel>
</rss>

