To install dropbox on Ubuntu through CLI open the command prompt or terminal, for this you can press,
Ctrl+Alt+t
Next type the following command on terminal:
sudo apt install nautilus-dropbox
Type your sudo password and press Enter
or y
when it prompts you to.
To check if dropbox has been installed correctly, type the following command on terminal:
dropbox --version
This will show your dropbox version and help of all dropbox commands.
After installation, a window will appear prompting you to finish download and connect your computer to dropbox by signing in.