See: https://github.com/adelavega/CLI-PKCE for example I think it would be useful to add a CLI command for this. In the future, implementing refresh tokens would be helpful as well.