...You can configure the protocol, hostname and port to use. For example to connect to a GitHub Enterprise instance. Request options can be set by setting defaults on the client. (e.g. Proxies). Authenticate to github in cli mode (desktop application) Ensure that the scopes argument is an object containing the required note property. For two-factor authentication add the One Time Password otp key with its corresponding code to the configuration object. If you would like to work with promises rather than callbacks, you can call the promise based version of any of the api calls by appending Async to the function call. ...