{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/6","labels_url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/6/comments","events_url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/6/events","html_url":"https://github.com/couchbase/CouchbaseMock/issues/6","id":60319800,"number":6,"title":"Create buckets automatically when server is started","user":{"login":"hezjing","id":7230438,"avatar_url":"https://avatars.githubusercontent.com/u/7230438?v=3","gravatar_id":"","url":"https://api.github.com/users/hezjing","html_url":"https://github.com/hezjing","followers_url":"https://api.github.com/users/hezjing/followers","following_url":"https://api.github.com/users/hezjing/following{/other_user}","gists_url":"https://api.github.com/users/hezjing/gists{/gist_id}","starred_url":"https://api.github.com/users/hezjing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hezjing/subscriptions","organizations_url":"https://api.github.com/users/hezjing/orgs","repos_url":"https://api.github.com/users/hezjing/repos","events_url":"https://api.github.com/users/hezjing/events{/privacy}","received_events_url":"https://api.github.com/users/hezjing/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-09T09:50:54Z","updated_at":"2015-03-09T14:27:55Z","closed_at":null,"body":"Instead of creating the bucket using REST API, is there a way that we can configure CouchbaseMock to create the buckets automatically every time it is started?\r\n"},"comment":{"url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/comments/77862875","html_url":"https://github.com/couchbase/CouchbaseMock/issues/6#issuecomment-77862875","issue_url":"https://api.github.com/repos/couchbase/CouchbaseMock/issues/6","id":77862875,"user":{"login":"mnunberg","id":436049,"avatar_url":"https://avatars.githubusercontent.com/u/436049?v=3","gravatar_id":"","url":"https://api.github.com/users/mnunberg","html_url":"https://github.com/mnunberg","followers_url":"https://api.github.com/users/mnunberg/followers","following_url":"https://api.github.com/users/mnunberg/following{/other_user}","gists_url":"https://api.github.com/users/mnunberg/gists{/gist_id}","starred_url":"https://api.github.com/users/mnunberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnunberg/subscriptions","organizations_url":"https://api.github.com/users/mnunberg/orgs","repos_url":"https://api.github.com/users/mnunberg/repos","events_url":"https://api.github.com/users/mnunberg/events{/privacy}","received_events_url":"https://api.github.com/users/mnunberg/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T14:27:55Z","updated_at":"2015-03-09T14:27:55Z","body":"Sure, you can use the command line syntax (e.g. `-buckets). See the `-?` option for more details:\r\n\r\n```\r\n $ java -jar CouchbaseMock.jar -?\r\nOptions are:\r\n-h --host             The hostname for the REST port. Default=8091\r\n-b --buckets          (See description below\r\n-p --nodes            The number of nodes each bucket should contain. Default=10\r\n-v --vbuckets         The number of vbuckets each bucket should contain. Default=1024\r\n-R --replicas         The number of replica nodes for each bucket. Default=2\r\n   --harakiri-monitor The host:port on which the control socket should connect to\r\n-S --with-beer-sample Initialize the cluster with the `beer-sample` bucket active\r\n-D --docs             Specify a ZIP file that should contain documents to be loaded\r\n                      into the `default` bucket\r\n-E --empty            Initialize a blank cluster without any buckets. Buckets may then\r\n                      be later added via the REST API\r\n\r\n=== -- bucket option ===\r\nBuckets descriptions is a comma-separated list of {name}:{password}:{bucket type} pairs.\r\nTo allow unauthorized connections, omit password.\r\nThird parameter could be either 'memcache' or 'couchbase' (default value is 'couchbase'). E.g.\r\n    default:,test:,protected:secret,cache::memcache\r\nThe default is equivalent to `couchbase::\r\n```"}}