<p>I create a helm chart directory</p>
<p><code>helm create myChart</code></p>
<p>After updating the templates and values I run</p>
<p><code>helm template .</code></p>
<p>Everything looks as expected. Next, I want to output the manifest files into another directory</p>
<p><code>helm template . --output-dir ./test</code></p>
<pre class="lang-sh prettyprint-override"><code>wrote ./test/myChart/templates/serviceaccount.yaml
wrote ./test/myChart/templates/service.yaml
wrote ./test/myChart/templates/deployment.yaml
wrote ./test/myChart/templates/tests/test-connection.yaml
</code></pre>
<p>Is there a way to output just the file manifest without the <code>mychart/templates</code>?</p>
<pre class="lang-sh prettyprint-override"><code>wrote ./test/serviceaccount.yaml
wrote ./test/service.yaml
wrote ./test/deployment.yaml
wrote ./test/test-connection.yaml
</code></pre>

<p>I don't think there is such an option in the Helm command itself, but you can always run the following command.</p>
<pre><code>helm template myChart . --output-dir ./test &amp;&amp; mv ./test/myChart/templates/* ./test &amp;&amp; rm -r ./test/myChart
</code></pre>
