Exporting views via Github

Is it possible to export views to Github? Or share views?

If you’re talking about JavaScript map/reduce views, there isn’t a feature to directly export to GitHub.

However, there is a REST API for them here: https://docs.couchbase.com/server/current/rest-api/rest-views-intro.html that you could use to export/import the JSON that can be used to automate the creation of views.

1 Like