Is there any cli command to know the configuration details of VM like, number of existing cpus, number of network cards etc., in VM.
The vSphere PowerCLI can do this for you from powershell. From here:
Get-VM | `
ForEach-Object {
$Report = "" | Select-Object -property Name,NumCpu,MemoryMB,Host,IPAddress
$Report.Name = $_.Name
$Report.NumCpu = $_.NumCpu
$Report.MemoryMB = $_.MemoryMB
$Report.Host = $_.Host
$Report.IPAddress = $_.Guest.IPAddress
Write-Output $Report
} | Export-Csv "C:\VM.csv"