How 'bout a step-by-step
Example from linked site, the instructions in bold (for the keyboard) also worked to add my phone. You need of course to update the MAC ID for your specific device:
pi@raspberrypi ~ $
sudo hciconfig hci0 down
pi@raspberrypi ~ $
sudo hciconfig hci0 up
pi@raspberrypi ~ $
bluetoothctl
[NEW] Controller 00:15:83:15:A3:10 raspberrypi [default]
[NEW] Device 7C:1E:52:0B:0D:97 Microsoft Wedge Mobile Keyboard
[bluetooth]#
agent on
Agent registered
[bluetooth]#
default-agent
Default agent request successful
[bluetooth]#
pairable on
Changing pairable on succeeded
[bluetooth]#
scan on
Discovery started
[CHG] Controller 00:15:83:15:A3:10 Discovering: yes
[CHG] Device 7C:1E:52:0B:0D:97 LegacyPairing: yes
[CHG] Device 7C:1E:52:0B:0D:97 Class: 0x002540
[CHG] Device 7C:1E:52:0B:0D:97 Icon: input-keyboard
[bluetooth]#
pair 7C:1E:52:0B:0D:97
Attempting to pair with 7C:1E:52:0B:0D:97
[CHG] Device 7C:1E:52:0B:0D:97 Connected: yes
[agent] PIN code: 953853
[CHG] Device 7C:1E:52:0B:0D:97 Paired: yes
Pairing successful
[CHG] Device 7C:1E:52:0B:0D:97 Connected: no
[bluetooth]#
connect 7C:1E:52:0B:0D:97
Attempting to connect to 7C:1E:52:0B:0D:97
[CHG] Device 7C:1E:52:0B:0D:97 Connected: yes
Connection successful
[bluetooth]#
quit
Agent unregistered
[DEL] Controller 00:15:83:15:A3:10 raspberrypi [default]
pi@raspberrypi ~ $