PlatformIO Community

Windows subsystem for linux: Error: Please specify `upload_port` for environment or use global `--upload-port` option

I am uploading code through Ubuntu CLI and I have a Windows subsystem for Linux. It is not autodetecting Serial port for ESP32 Board. I also typed “pio device list”, still not showing.
Although, when I am using platformio(Visual Studio) on windows, it is successfully detecting the port.