Bash / JQ for Cloudant Bulk Upload & Download
✓ Published0🌍 Public
CCliffordAnderson
Last edited Mar 12, 2018
Created on Nov 15, 2014
This example demonstrates a command-line workflow for bulk uploading and downloading JSON documents to and from a Cloudant database, using bash scripts that combine HTTPie and JQ. It shows how to aggregate multiple local JSON files into a single `_bulk_docs` payload via `jq -s`, upload that payload with an HTTP POST request, and retrieve data from a Cloudant view—transforming the response into either a plain document array or a GeoJSON FeatureCollection. The scripts also convert view output back into a file, enabling round-trip data migration and export without a custom application.
AI-generated description