You can manage uplinks and port groups with ESXCLI and with vicfg-vswitch.