How to turn on the wi-fi hotspot using ADB? Do you have any idea how can we configure and turn on the wi-fi hotspot using the command line (ADB console)?
You could try this:

  adb shell am start -n com.android.settings/.TetherSettings
  adb shell input keyevent 20
  adb shell input keyevent 66


The first command opens the Settings page for Tethering and Hotspot while the latter simulate key presses: Down and Enter respectively.

Note: For different Android versions you may have to adjust the simulation of key presses depending on where the hotspot setting is located under settings.



Special Credits : Firelord and Kristopher

Firelord originally posted this as a comment, so I put this as an answer as comments are easily deleted or difficult to find