title: How do I upload a design document to CouchDB using cURL?
body: <p>I'm trying to learn CouchDB and I can create views and such in Futon, but I want to write my design documents on the desktop and the upload them using cURL. The 'Definitive Guide' shows updating content documents with cURL but all the design documents are either Futon or CouchApp.</p>
  
  <p>I'd like to download the current design doc to a local file, edit the file, then send it back to CouchDB.</p>
  
  <p>What are the cURL commands to download and upload CouchDB design documents?</p>