When i created some couch-db based system i didn't think about deploying at time, so now i need to save all views, so i can re-deploy them to fresh database.
It seems pretty straightforward:
but we'll get it in kinda one-line unreadable format.
Welp, let's get some python power to help us:
Okay, now it's pretty printed and all. But we'll probably won't need _rev field, so the final command will look like this: