Skip to main content

View

Command

$ vela view worker <parameters...> <arguments...>
tip

For more information, you can run vela view worker --help.

Parameters

The following parameters are used to configure the command:

NameDescriptionEnvironment Variables
worker.hostnamehostname of the workerVELA_WORKER_HOSTNAME, WORKER_HOSTNAME
worker.registration.tokengenerate a registration token for the worker (requires Vela Platform Admin)VELA_WORKER_REGISTRATION_TOKEN, WORKER_REGISTRATION_TOKEN
outputformat the output for the repositoryVELA_OUTPUT, WORKER_OUTPUT
tip

This command also supports setting the following parameters via a configuration file:

  • output

For more information, please review the CLI config documentation.

Permissions

COMING SOON!

Sample

warning

This section assumes you have already installed and setup the CLI.

To install the CLI, please review the installation documentation.

To setup the CLI, please review the authentication documentation.

Request

$ vela view worker --worker.hostname MyWorker

Response

id: 1
hostname: MyWorker
address: myworker.example.com
routes:
- vela
active: true
status: busy
laststatusupdatedat: 1681487969
runningbuildids:
- 123
lastbuildstartedat: 1681487969
lastbuildfinishedat: 1681487969
lastcheckedin: 1681487969
buildlimit: 1