working with raspberry pi bluetooth from bash

    open bluetoothctl in interactive mode from bash

    bluetoothctl
    

    This will create an interactive prompt for working with the bluetooth stack directly

    list
    select <my-MAC>
    power on
    discoverable on
    scan on
    pair <other-MAC>
    scan off
    exit
    

    External Resources