http://www.couchbase.com/forums/thread/dump-all-keys-bucket
Another user here:
http://www.couchbase.com/forums/thread/get-all-key-names-bucket-php