Intialize and add node

I would think that your host name would be “127.0.0.1” or “first.com” but never “127.0.0.1.com”. The second example here shows an undecorated host name, despite the “host names” section, so I think the protocol portion can be dispensed with.

Further, it looks like a missing space before the --ipv4 argument and you have to quote arguments that contain spaces (in common with general multi-argument command line invocations) - i.e. whenever an argument includes “Program Files” it is best to quote it.

I would imagine, something like:

couchbase-cli node-init --cluster 127.0.0.2 --username aya --password 123 --node-init-data-path "c:/Program Files/Couchbase/Server/var/lib/couchbase/data" --node-init-hostname 127.0.0.1 --ipv4

might suffice. (This is untested though!)
(You my also try omitting the node-init-hostname option & argument altogether to get started.)

HTH.

1 Like