How to create new bucket from CouchbaseLite


How to create bucket or database using couchbase lite , and how to give specific name to bucket instead of db. How to create more than one bucket in single server url from couchbase lite sdk.


Hello @itssrinadh,

You can reference this blog on how to create the buckets in the Couchbase Admin UI.
Using Couchbase Lite programmatically in your project would be to reference the database by name and using the manager class and getDatabase() method while passing in a String name for your database.

Take a look at the Creating Manager and Database section in the Mobile Developer Portal on how to do this in code.


Hi @sweetiewill,

Thanks for your valuable answers, i got solutions on above questions, i have latest question that is SERVER REST API

How to create documents and retrieve documents from Couchbase Server REST API