How to login on cli with account created via github?

I was able to login with help from this post: OAuth CLI login - #7 by ivankravets