<p>I'm trying to make argocd cli output yaml/json to prep it for script ingestion.</p>
<p>According to this PR: <a href="https://github.com/argoproj/argo-cd/pull/2551" rel="nofollow noreferrer">https://github.com/argoproj/argo-cd/pull/2551</a>
It should be available but I can't find the option in cli help nor in documentation.</p>
<pre><code>#argocd version:                                                                                                                                    
argocd: v2.1.2+7af9dfb
...
argocd-server: v2.0.3+8d2b13d
</code></pre>

<p>Some commands accept the <code>-o json</code> flag to request JSON output.</p>
<p>Look in the <a href="https://github.com/argoproj/argo-cd/tree/master/docs/user-guide/commands" rel="nofollow noreferrer">commands documentation</a> to find commands which support that flag.</p>
<p><code>argocd cluster list -o json</code>, for example, will return a JSON list of configured clusters. <a href="https://github.com/argoproj/argo-cd/blob/caa246a38d56639f76ba0efb712967a191fddf44/docs/user-guide/commands/argocd_cluster_get.md#options" rel="nofollow noreferrer">The documentation</a> looks like this:</p>
<blockquote>
<h2>Options</h2>
<pre><code>   -h, --help            help for get
   -o, --output string  
Output format. One of: json|yaml|wide|server (default &quot;yaml&quot;)
</code></pre>
</blockquote>
