title: How to store binary data in etcd v3 using CLI
body: <p>It's simple to extract etcd data in json(base64) or hex formats with either -w json or --hex flags</p>
  
  <pre><code>ETCDCTL_API=3 etcdctl get /registry/secrets/myns/mykey --print-value-only --hex 
  ETCDCTL_API=3 etcdctl get /registry/secrets/myns/mykey -w json 
  </code></pre>
  
  <p>But how can one write hex/json extracted data from another etcd instance via cli?
  <code>etcdctl put</code> doesn't accept any of these parameters and will store passed value as string</p>