Bluetooth pair on shell without simple-agent

The process is done with bluetoothctl.

bluetoothctl

[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# agent KeyboardOnly
Agent registered
[bluetooth]# pair XX:XX:XX:XX:XX:XX 
Attempting to pair with XX:XX:XX:XX:XX:XX 
[CHG] Device XX:XX:XX:XX:XX:XX Connected: yes
Request passkey
[agent] Enter passkey (number in 0-999999): 1234
[MoarBacon]# pair XX:XX:XX:XX:XX:XX 
Attempting to pair with XX:XX:XX:XX:XX:XX 
[CHG] Device XX:XX:XX:XX:XX:XX Paired: yes
Pairing successful

agent (available)

DisplayOnly DisplayYesNo KeyboardDisplay KeyboardOnly NoInputNoOutput off

Get bluetooth devices

devices
scan on / off