The API commands directly hit the Travis API, and some require that you have a proper access token which you can get by using the travis login command.
API commands
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.