home / dev-tools / travis

Travis CI CLI

Official · Travis CI
1.6k

Travis CI CLI for inspecting builds, streaming logs, managing repo settings and env vars, and encrypting `.travis.yml` secrets.

$gem install travis
Language
Ruby
Stars
1,589
Category
Dev Tools
Agent
Ready
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis

Travis CI CLI is the shell client for working with Travis CI repositories, builds, and configuration. It covers build inspection, log access, repository-level settings and secrets, and .travis.yml setup tasks, with a direct API escape hatch through raw when needed.

What It Enables
  • Check build status, history, requests, branches, and logs for a Travis project, then follow failures or open the related build page for more detail.
  • Enable or disable repositories, restart or cancel builds, sync repos from GitHub, and manage repository env vars, settings, caches, and SSH keys.
  • Encrypt values or files for .travis.yml, lint or scaffold Travis config, and add supported deploy or addon sections without editing YAML by hand.
Agent Fit
  • Repo-scoped commands plus flags like --repo, --token, and status --exit-code make it workable in scripted inspect-change-verify loops around Travis CI state.
  • Structured output is limited. Real JSON support is mainly raw --json, while most other commands print human-oriented text, color, or streaming logs.
  • Best for Travis-specific automation on known repositories; login, repo autodetection, and some setup paths still assume an interactive shell.
Caveats
  • Parts of the command surface reflect older Travis CI eras, including travis-ci.org references, deprecated endpoint shortcuts, and many aging deploy target helpers.
  • The checked-in README install guidance lags the current gemspec, so runtime requirements in docs are less trustworthy than the package metadata.