Logging in to Travis CI

The login command is typically the first command that you will need to use in order to work with the Travis API as it authenticates you with the Travis API.

The login command will ask you for your GitHub username and password, but does not send these credentials to Travis CI. Instead it uses your username and password to create a GitHub API token and then shows the token to Travis API and then run a series of checks to make sure that you are who you say you are. It then gives you an access token for the Travis API in return, and finally the Travis Client will delete the GitHub token again. All of these steps occur under the hood once you successfully run the travis login command.

The following screenshot shows where ...

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.