LinuxCommandLibrary

travis

Travis CI command-line interface

TLDR

Login to Travis CI

$ travis login
copy
Enable repository
$ travis enable
copy
Show build status
$ travis status
copy
View build logs
$ travis logs
copy
Lint travis.yml
$ travis lint
copy
Encrypt secret
$ travis encrypt [SECRET_VAR=value]
copy
Add encrypted to yaml
$ travis encrypt [SECRET=value] --add
copy
Trigger build
$ travis restart
copy

SYNOPSIS

travis [options] command [args]

DESCRIPTION

travis is the official command-line client for Travis CI, a continuous integration and deployment service. It provides programmatic access to CI operations including repository management, build monitoring, secret encryption, and configuration validation, all from the terminal.
Authentication is handled through GitHub OAuth tokens, and most operations require being logged in. The CLI can enable or disable CI for repositories, view build status and logs, restart builds, and manage encrypted environment variables. The encrypt command generates per-repository encrypted strings that can be safely committed to version control.
The lint subcommand validates `.travis.yml` configuration files to catch syntax errors and misconfiguration before pushing. The CLI also supports managing caches, viewing branch status, and interacting with the Travis CI API directly.

PARAMETERS

login

Authenticate.
enable
Enable repo.
status
Build status.
logs
Build logs.
lint
Validate config.
encrypt DATA
Encrypt secret.
restart
Restart build.
--add
Add to yaml.
-r, --repo SLUG
Repository.

CAVEATS

Requires Travis CI account. travis-ci.org shut down. Use travis-ci.com.

HISTORY

Travis CI was founded in 2011 as a hosted CI service for GitHub. The CLI provides command-line access to CI operations.

SEE ALSO

gh(1), circleci(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community