Nodes with different ports in cluster

Couchbase server allows to create cluster where nodes have different ports.
eg In my single node cluster I edited static_config to change rest and memcached_port.
If I add a new node, it is added with default ports. I verified this with server-info cli output.
Now I have two nodes with different ports.
How do I create something like DefaultCoreEnvironment, out of two nodes whose rest and memcached_port do I specify ?