README.md in github_cli-0.5.8 vs README.md in github_cli-0.5.9

- old
+ new

@@ -91,12 +91,14 @@ $ gcli help config ``` ### Authorization -To create oauth tokens you need to setup your basic authentication like so +To create oauth tokens you need to setup your basic authentication. +You can either set it up manually like so + ```shell $ gcli init $ gcli config user.login '...' $ gcli config user.password '...' ``` @@ -105,13 +107,25 @@ ```shell $ gcli auth create --scopes=repo --note=gihtub_cli --note-url=http://github.com/peter-murach/github_cli ``` +Alternatively `authorize` command has been provided that will guide you through authentication process by asking questions and then save the crednetials to `.githubrc` file. Example + +```shell +$ gcli authorize +``` + To see your current tokens do ```shell $ gcli auth ls +``` + +To see current tokens without configuration file pass `--login` and `--password` flags like so + +```shell +$ gcli auth ls --login=... --password=... ``` Finally to add the token to your config do ```shell