title: "Bad Credentials" when attempting to create a GitHub repo through the CLI using curl
body: <p>I'm trying to create a GitHub repo using the command line.</p>
  
  <p>It was suggested <a href="https://stackoverflow.com/a/10325316/1822096">here</a> that you can use the following command:</p>
  
  <pre><code>curl -u 'USER' https://api.github.com/user/repos -d '{"name":"REPO"}'
  # Remember replace USER with your username and REPO with your repository/application name!
  git remote add origin git@github.com:USER/REPO.git
  git push origin master
  </code></pre>
  
  <p>When I use it, I'm prompted to enter my password (which I am positive is correct as I can log in successfully on the GitHub.com). I then receive this error:</p>
  
  <pre><code>c:\Development\Projects\MovieStar&gt;curl -u 'jonnymaceachern' https://api.github.com/user/repos -d '{"name":"MovieStar"}'
  Enter host password for user ''jonnymaceachern'':
  {
    "message": "Bad credentials",
    "documentation_url": "http://developer.github.com/v3"
  }
  </code></pre>
  
  <p>I've tried with no quotes around my username and it just gives me a "Problems parsing JSON" error.</p>