title: Create github repo bash file, NOT be prompted for password
body: <p>I need to be able to create github repositories via bash scripts that run from a php page, so I need to be able to pass the password in the curl command or the API Key.  </p>
  
  <p>However I can not seem to find the API key as I believe this may be redundant now with V3 of the github API</p>
  
  <p>I followed <a href="https://stackoverflow.com/questions/2423777/is-it-possible-to-create-a-remote-repo-on-github-from-the-cli-without-ssh/10325316#10325316">Is it possible to create a remote repo on GitHub from the CLI without opening browser?</a> and it got me as far as being prompted for the password</p>
  
  <p>Bash file looks like this:</p>
  
  <pre><code>#! /bin/bash
  a=$1
  curl="-u 'USERNAME' -p 'PASSWORD' https://api.github.com/user/repos -d '{\"name\":\""$a"\"}'"
  curl $curl
  </code></pre>
  
  <p>This does not work as it is not liking the -p parameter it seems, tried <code>-u 'USERNAME:PASSWORD'</code> and it did not like that either and I can not seem to find the answer on github pages.  Ideally I would use the API key as this would not leave my repo password exposed in my bash file correct? </p>
  
  <p>Many thanks</p>