title: How do I use the drone secret command in the current version?
body: <p>I want to add an <code>ssh</code> key to my <code>drone</code> secrets, but can't get the command to work. I've tried many versions of the command found on various stackoverflow/documentation pages, but none of them work. The command help also gives an entirely different syntax than the one in the documentation...</p>
  
  <p>From <a href="http://docs.drone.io/manage-secrets/" rel="nofollow noreferrer">the documentation</a>:</p>
  
  <pre><code>drone secret add \
    --repository &lt;registry&gt; \
    --image &lt;image&gt; \
    --name &lt;name&gt; \
    --value &lt;value&gt;
  </code></pre>
  
  <p>This just doesn't work for me.</p>
  
  <p>Then I've found this <a href="https://stackoverflow.com/questions/41330947/how-to-create-a-drone-secret-file">Stackoverflow question</a> about adding ssh keys to secrets. The answer shows again a different syntax, I tried this way, still doesn't work.</p>
  
  <p>When I try to use the command, I get this:</p>
  
  <blockquote>
    <p>Incorrect Usage.</p>
    
    <p>NAME:    drone secret add - adds a secret</p>
    
    <p>USAGE:    drone secret add [command options] [repo] [key] [value]</p>
    
    <p>OPTIONS:    --event [--event option --event option]   inject the secret
    for these event types    --image [--image option --image
    option]   inject the secret for these image types    --input                  input
    secret value from a file    --skip-verify             skip verification for the
    secret    --conceal                   conceal secret in build logs</p>
  </blockquote>
  
  <p>Which suggests it should be used like this:</p>
  
  <p><code>drone secret add user/repo SSH_KEY &lt;my_id_rsa&gt;</code></p>
  
  <p>But that doesn't work either.</p>
  
  <p>So what's the actual way of using this command?</p>