Adding ssh key to github account from terminal

Is there a way to add your ssh key to your github ssh keys through terminal commands on ubuntu 18.04? Or is the only way to go to your github settings on the website and add it manually?

You can use the API for this. Tools like git-spindle use this to upload ssh keys from the commandline.