Run tugboat help
to see a list of commands you can execute. You can view the help of any command by passing the -h
or --help
option. Most of the commands support returning JSON by passing the -j
or --json
option.
A few common commands include:
tugboat ls repos
tugboat ls previews
To view the services of a preview with an ID of 5b04c7d14c3dad00016a2e80
:
tugboat ls services preview=5b04c7d14c3dad00016a2e80
To view the logs for a Preview with an ID of 5b04c7d14c3dad00016a2e80
:
tugboat log 5b04c7d14c3dad00016a2e80
To view the logs for a Service with an ID of 5d092b16bd44cb22a498be90
that’s running in a Preview:
tugboat log 5d092b16bd44cb22a498be90
To build a new Preview from the main
branch of a Tugboat Repository with an ID of 5b02ed093558930001c04cfa
:
tugboat create preview main repo=5b02ed093558930001c04cfa
To force the deletion of a Preview with an ID of 5b04c7d14c3dad00016a2e80
:
tugboat delete 5b02ed093558930001c04cfa -f
To start a shell on the default Service of a
Preview with an ID of 5b04c7d14c3dad00016a2e80
:
tugboat shell 5b04c7d14c3dad00016a2e80
To start a shell on Service that isn’t the default:
View the Services of a Preview via its ID; in this case, 5d1a5305216a15d4bf5dcbbb
:
tugboat ls services preview=5d1a5305216a15d4bf5dcbbb
Find the Service ID for the Service where you want to start the shell; in this case, I want the Service ID for the
Service I’ve named apache
:
Start the shell using the ID of the specific Service; in this example, 5d1a5307216a158a155dcbc3
:
tugboat shell 5d1a5307216a158a155dcbc3
Now you’ve got shell access in that Service: